log☇︎
347500+ entries in 0.222s
ascii_butugychag: but they are not equivalent
mircea_popescu: c++ is fucking impossible to follow.
assbot: Logged on 22-01-2016 15:49:34; mircea_popescu: unsigned char *pos = &vchSig[0]; << this takes the pointer pos and points it to what vchsig is
assbot: Logged on 22-01-2016 15:49:10; mircea_popescu: memcpy(&vchSig[0], pchSig, nSize); << so this takes nsize bytes from pchsig and copies them over where vchsig lies.
ascii_butugychag: (other side of the equivalence)
ascii_butugychag: which is the other ?
mircea_popescu: my question is : are these two in fact equivalent. because we can end up with surprises in this sort of change.
mircea_popescu: unsigned char *pos = &vchSig[0]; << this takes the pointer pos and points it to what vchsig is ☟︎
ascii_butugychag: http://log.bitcoin-assets.com/?date=22-01-2016#1380926 << this kind of sad is well-known from the 'hired welfare fella and now he's poorer' thing ☝︎
mircea_popescu: memcpy(&vchSig[0], pchSig, nSize); << so this takes nsize bytes from pchsig and copies them over where vchsig lies. ☟︎
mircea_popescu: da fuck is this.
ascii_butugychag: these statements don't even refer to the same destination
assbot: Logged on 22-01-2016 12:42:36; mircea_popescu: and also, since we're taking out memcpy(&vchSig[0], pchSig, nSize); in favour of, from what i understand, unsigned char *pos = &vchSig[0]; are these actually and in fact equivalent ?
ascii_butugychag: http://log.bitcoin-assets.com/?date=22-01-2016#1380965 << how could this possibly be true ? ☝︎
ascii_butugychag: in exactly the same sense that man who eats chicken is not a man-chicken chimera.
assbot: Logged on 22-01-2016 14:57:50; mircea_popescu: lots of bunnies grew ears on their back etc
ascii_butugychag: http://log.bitcoin-assets.com/?date=22-01-2016#1381007 << these were not chimeras ! but immunocompromised beasts ☝︎
mircea_popescu: the problem with tests is that you can't test for something not happening. ☟︎
mod6: <+mircea_popescu> my one question, and not to mod6 in particular, is : can unsigned int nSize = ECDSA_size(pkey); be trusted to not fuck up the size ? << Not very "warm and fuzzy" on the openssl trust factor either. Would some tests or debugging help around this part?
PeterL: Biotech scientists now raising human–animal chimeras on U.S. farms ... << wasn't there already a thread about sheepfucking?
mircea_popescu: also someone tell newstarget.com that hostgator is stealing their 404s
mircea_popescu: lots of bunnies grew ears on their back etc ☟︎
mircea_popescu: supposedly 4chan accepts bitcoin payments.... except when you go to pay them, they take paypal and the ccs. what sorta bs is this, are these people living in 2011 or somesuch ?
mircea_popescu: i'm sure if they could.
shinohai: Does that apply to all proselytizing though?
shinohai: also known as the creepy people that stalk you in city subway terminals hawking magazines.
mircea_popescu: in other news : the title for stealing the highest traffic website doesn't go to the derps you'd expect, but to the russkis equivalent. http://jw.org
mircea_popescu: Steevo moaned, “I can’t even afford a pizza for the wife and kid on Friday night << the depth of the fucking disconnect. i wouldn't even eat what he calls pizza, if it were free. in fact i'd have serious compunction giving it to some begging dude.
mircea_popescu: but in any case the improvement over time is marked.
mircea_popescu: http://log.bitcoin-assets.com/?date=22-01-2016#1380928 << actually i'd say this is his best one yet. slowly a sort of milleresque dickensian balzac may emerge out of that fellow. ☝︎
deedbot-: [BitBet Bets Bets] 2.44000000 BTC on 'No' - BTC price to rise above PM price of 1oz of gold before Oct 2016 - http://bitbet.us/bet/1235/btc-price-to-rise-above-pm-price-of/#b16
mircea_popescu: "On GamerGhazi, comments explaining that Jace was little more than an elaborate hoax were deleted, because they did not fit Wu's harassment narrative." <doh.
mircea_popescu: e fucking concrete support in every town that has a subway that same day. what of it!
mircea_popescu: "The number of video views rose to almost 40,000 within a day" << sigh. this is notable in what fucking alt-world ? i remember the earlier days of "omaigerd teh interwebs matter" when the numbers destined to impress the reader were in the millions. by now it's as if "consensus" has been achieved around the proposition that such a statement is impressive period, and the number's irrelevant. 40k people viewed every singl
mircea_popescu: lazy kid and write down "student", look at a weirdo babbling and write down "threat report", the whole meta-state survives out of categorical confusion of this sort.
mircea_popescu: "If there is someone at this point who can look at Jace's insane rambling during this event and take it as a credible threat to Brianna Wu's life, they are either willfully misconstruing the facts or being intentionally alarmist to the point of complete credibility loss. " mno. they are being obtuse to the point of well adjusted, functioning ustard. how the fuck else does anything work in that country ? look at a dumb
mircea_popescu: http://log.bitcoin-assets.com/?date=22-01-2016#1380926 << did cosmo kramer (ex ceo, kramerica industries) end up hired as vp for fluentization and finally got to push through his pet project of homeless-driven rickshaws in new york or something ? ☝︎
mircea_popescu: i can't help myself but suspect there may have been a good reason for the weird, even given the immense piles of pointless insanity scattered throughout the code.
mircea_popescu: the wisdom seems to be that "don't fucking memcpy by hand, the compiler inlines (or even register-moves) most assignments itself and unlike you it fucking knows when to do it", but hey.
mircea_popescu: especially after hanging out here i trust c++ about as much as php with these sorts of things
mircea_popescu: and also, since we're taking out memcpy(&vchSig[0], pchSig, nSize); in favour of, from what i understand, unsigned char *pos = &vchSig[0]; are these actually and in fact equivalent ? ☟︎
mircea_popescu: my one question, and not to mod6 in particular, is : can unsigned int nSize = ECDSA_size(pkey); be trusted to not fuck up the size ?
assbot: Logged on 22-01-2016 04:16:03; asciilifeform: mircea_popescu: my objection was to the notion of reading 600kB patches of spaces-to-tabs-every-line
mircea_popescu: http://log.bitcoin-assets.com/?date=22-01-2016#1380835 << yeah well, that's sheer insanity. i wouldn't. ☝︎
BingoBoingo: They still out to get you?
BingoBoingo: Not to bad
TheNewDeal: oh hi there
BingoBoingo: Hello TheNewDeal
assbot: Dolphin Fluid Immersion Simulation - Therapeutic Bed & Mattress - OnCare ... ( http://bit.ly/20izFeH )
punkman: "The OnCare™ LiftSeat® Powered Toilet Lift™ features LiftTek™ core assistive technology" "patent-pending drop-in commode bucket"
assbot: OnCare LiftSeat - Powered Toilet Lift - OnCare ... ( http://bit.ly/20ixh7U )
punkman: http://www.tilera.com/products/?ezchip=585&spage=614<< these would be fun for "industrial-strength node", at least after some parallelizing
punkman: you know there are clothes that can survive 0 washes
danielpbarron: >> The Nadi tights, which were announced at CES and will be available for pre-sale in May, can survive up to 25 washes. << planned obsolescence, now for pants!
danielpbarron: http://www.fastcompany.com/3055510/these-vibrating-yoga-pants-will-correct-your-downward-dog >> For example, if your hip is rotated too far inwards in warrior pose, a vibration will move across the hip in an outwards direction, like the guiding hands of a yoga instructor. When everything’s aligned, the tights give off a gentle "om" hum.
assbot: Goat Rentals Take Off In Seattle On First Day Of Amazon Home Services | KUOW News and Information ... ( http://bit.ly/20itWpe )
BingoBoingo: Basically Ironman's that movie where batman finally spends enough Hodl to build a suit that lets him do all the things superman does
assbot: Logged on 21-01-2016 23:23:04; mircea_popescu: http://log.bitcoin-assets.com/?date=21-01-2016#1380386 << da fuck does that even mean
ben_vulpes: "the reason why cops call it the web is because, The online is a 'Web' of lies and/or Computers are Satans kingdom on earth"
BingoBoingo just stumbled upon this lulz catalog yesterday after getting my quarterly fix of CWC updates
ben_vulpes: "As always when a large group of people without prior exposure to Jace are introduced to his world, every single existing theory on his authenticity was brought up and discussed in great detail, as were questions concerning the state of mental health care in the United States, the situation of veterans, and the practicality of using a Prius in a street race." << ladies and gentlemen, i present...my peers in the eyes of american law.
ben_vulpes: AND NOW I BLESS THEE WITH THE HOLY BIGNUM THIS FUNCTION PASSES ALL AROUND ITSELF
ben_vulpes breathes through the nausea
mod6: again [ which is defined as : int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); BN_sub() subtracts b from a and places the result in r ("r=a-b"). ]
mod6: then we jump into the if block and execu:
mod6: then this part: (BN_cmp(sig->s, halforder) < 0) will return -1 since 40000 < 50000
mod6: fHighS = true, order = 100000, halforder = 50000 (hence rshift1), and sig->s = 40000
mod6: then this part: (BN_cmp(sig->s, halforder) < 0) will return 1 since 60000 > 50000
mod6: fHighS = true, order = 100000, halforder = 50000 (hence rshift1), and sig->s = 60000
mod6: so now on to fHighS
mod6: i'll type this out anyway.
ben_vulpes: need to read more. let's revisit tomorrow.
mod6: ok, so did the first and second case for fLowS make sense then?
mod6: etc, there are man pages for each.
mod6: this too: http://linux.die.net/man/3/bn_ctx_new
assbot: bn_ctx_get(3): use temporary BIGNUM variables - Linux man page ... ( http://bit.ly/1RXJ5v7 )
mod6: ima point you at this for right now, and we can discuss all of that later perhaps: http://linux.die.net/man/3/bn_ctx_get
ben_vulpes: forgive further derpitude, but how on earth does `BN_CTX_get(ctx)` return two different values?
mod6: i'll note the code is not *identical* it does have different greater than, less than signs.
mod6: so we have: sig->s is assigned to 10000 - 60000 ; sig->s now = 40000
mod6: [ which is defined as : int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); BN_sub() subtracts b from a and places the result in r ("r=a-b"). ]
mod6: then we do this line:
mod6: (BN_cmp(sig->s, halforder) > 0) evaluates to 1 since 60000 > 50000
mod6: fLowS = true, order = 100000, halforder = 50000 (hence rshift1), and sig->s = 60000
mod6: then this line: (BN_cmp(sig->s, halforder) > 0) will return -1 since 40000 < 50000
mod6: fLowS = true, order = 100000, halforder = 50000 (hence rshift1), and sig->s = 40000
ben_vulpes: i get the conditional branching on the flag, but now how the identical code in the branches enforces high/low-s-ness
ben_vulpes: i may simply be exhausted, but i don't see immediately how the code inside the two branches is supposed to work
mod6: i apprecaite you all trying to help me.
mod6: i guess we can pick this up tomorrow, or whenever.
mod6: if you do a pull of that patch (be sure to obviously run dos2unix on it to get rid of CRLF), you should see that all of the lines in key.h:Sign() have tabs in front of them.
mod6: and we'll go from there.
mod6: then im gonna add tabs infront of all the non-empty lines in Sign()
mod6: im gonna add the code to key.h by hand.
mod6: so this is what i'm gonna do
ben_vulpes: i set you on the btcd snipe hunt aeons ago iirc
asciilifeform: but if you want to auto-munge the whole thing, why not
BingoBoingo: Sounds like other arm could use papercut too, but cranked up to 11
asciilifeform: mircea_popescu: my objection was to the notion of reading 600kB patches of spaces-to-tabs-every-line ☟︎
mircea_popescu: but anyway. off to cinephile.