log☇︎
356600+ entries in 0.108s
mircea_popescu: mike_c it was an enjoying read. i am a sadist :D
mircea_popescu: I passionately hated PHP for a long time after that, but it's just not relevant enough to my work anymore to hate.
mircea_popescu: In other words, I was unsuccessful in explaining this rather basic concept. They got it blisteringly wrong, and hacked this wrongness into the language for all time. I attempted to explain (much more patiently than here) that no, this is not what === is supposed to do, but I wasn't heard. Not by Zeev, not by anyone else on channel. No one got it at all.
mircea_popescu: http://developers.slashdot.org/comments.pl?sid=204433&cid=16703529
mircea_popescu: does === fail to do object identity testing, it's simply '==', does all the "deep comparison" of ==, but also bothers to compare the type.
mircea_popescu: Amen to the cavalier attitude. You know about PHP's Javascript-esque === operator? (that's the one with three equals signs). That got designed on the spot in an IRC session with Zeev and some other devs. Because I actually had to explain to these folks what the concept of "object identity" was, i.e. what lisp does with 'eq', python does with 'is', and Javascript does with ===. Yes, because PHP's is different. Not only
mircea_popescu: For the same reason, "6" == " 6", "4.2" == "4.20", and "133" == "0133". But note that 133 != 0133, because 0133 is octal. But "0x10" == "16" and "1e3" == "1000"!
mircea_popescu: this is so great.
mircea_popescu: == converts to numbers when possible ( 123 == "123foo"… although "123" != "123foo"), which means it converts to floats when possible. So large hex strings (like, say, password hashes) may occasionally compare true when they’re not. Even JavaScript doesn’t do this.
mircea_popescu: so according to php is "1" = 1 evaluated to 1, 0 or what ?
mircea_popescu: ahahaha this is some epic shit
mircea_popescu: TRUE != 0.
mircea_popescu: "foo" == 0… but, of course,
mircea_popescu: It’s not transitive. "foo" == TRUE, and
mircea_popescu: ‣
mircea_popescu: == is useless.
mircea_popescu: now show me any other language which actually MAKES programmers.
mircea_popescu: out of which there were maybe even 2 actual programmers.
mircea_popescu: the time thus spent resulted in at least 3k babies,
mircea_popescu: that's like 100k man-hours.
mircea_popescu: 10mn people wrote === false code that worked.
mircea_popescu: see, this i will dispute.
mircea_popescu: Weak typing (i.e., silent automatic conversion between strings/numbers/et al) is so complex that whatever minor programmer effort is saved is by no means worth it.
mircea_popescu: ‣
mircea_popescu: wasn't lua supposed to be a scripting language ?
mircea_popescu: imagination has no impact on realitah still.
mircea_popescu: this is what he thinks.
mircea_popescu: or w/e, a digital scrapbook for the information superhighway
mircea_popescu: i still don't believe there's anything that even comes close to php for as long as what you're doing is basically... a blog.
mircea_popescu: well sure.
mircea_popescu: mike_c that's not automatically insecure.
mircea_popescu: run("hello i am running strings on your stack");
mircea_popescu: is there some system call construct in php ?
mircea_popescu: mike_c what's so insecure about php anyway. it securely failed the === "orly" test
mircea_popescu: simple is doumbly secure.
mircea_popescu: qed.
mircea_popescu: to prove this : consider cheating wives. the dumb ones don't.
mircea_popescu: davout dumb is secure.
mircea_popescu: php does not allow things.
mircea_popescu: hello multifacepalming logreader people. your facepalms have been foretold.
mircea_popescu: i can hear the collective multifacepalms of log reader ppl already.
mircea_popescu: lmao
mircea_popescu: speaking of "all the bits in it" : http://www.youtube.com/watch?v=M68GeL8PafE
mircea_popescu: then all the bits in it are boolean.
mircea_popescu: r3wt by making it a double.
mircea_popescu: worldends.jpg
mircea_popescu: waitno
mircea_popescu: if $row["hello"] ~= "false[$world]"
mircea_popescu: it should be i reckon
mircea_popescu: is a boolean an array ?
mircea_popescu: davout only for applications where it's not useful.
mircea_popescu: pankkake THAT'S OK MAKE EVERYTHING IN JSON A STRING
mircea_popescu: mod6 like urmom!
mircea_popescu: >~
mircea_popescu: should be a php operator this.
mircea_popescu: i like the "probably more" part.
mircea_popescu: it fixes your code.
mircea_popescu: r3wt so i guess now you have the answer : wot is the church of bitcoin miracles.
mircea_popescu: <r3wt> ah, now i see what i did wrong. i'm asking if a function is a boolean when it already returns one << pretty good this.
mircea_popescu: uh python does not have regexp ?!
mircea_popescu: which kind ?
mircea_popescu: kinda covers everything
mircea_popescu: i like the >=< operator.
mircea_popescu: import languages.
mircea_popescu: they see me sayin', they ignorin'.
mircea_popescu: with a !
mircea_popescu: no reason i guess.
mircea_popescu: uh
mircea_popescu: bitcoind in php ?
mircea_popescu: r3wt is this thing you're using documented anywhere ?
mircea_popescu: you mean ! ?
mircea_popescu: try ==
mircea_popescu: seems like it
mircea_popescu: people apparently paid 0.2 btc bounties in may 2011.
mircea_popescu: https://bitcointalk.org/index.php?topic=9838.0 ?
mircea_popescu: you mean the checksum ?
mircea_popescu: yes. this would be the contracts part.
mircea_popescu: its a tool to allow you (and us) to evaluate the credibility of agents.
mircea_popescu: r3wt https://bitcointalk.org/index.php?topic=110861.msg1227871#msg1227871 < there, it's explained.
mircea_popescu: r3wt pretty much, yes.
mircea_popescu: http://bitcoin-otc.com/viewgpg.php?nick=r3wt
mircea_popescu: seems apropriate.
mircea_popescu: r3wt yes.
mircea_popescu: TomServo is that the maria ?
mircea_popescu: perhaps a benign novelty of no use at the best.
mircea_popescu: i can't see how it's anything but a stupid idea.
mircea_popescu: davout when did firstbits become a thing ?
mircea_popescu: something like that.
mircea_popescu: yup
mircea_popescu: r3wt another thing you may consider is registering with nickserv. if your name is important to you.
mircea_popescu: not bad.
mircea_popescu: a ok
mircea_popescu: punkman you running it ?
mircea_popescu: "let us inject our stupid website spuriously" is not much of an ide.a
mircea_popescu: yeah, the idea is not interesting.
mircea_popescu: pankkake it is.
mircea_popescu: ;;register
mircea_popescu: mazel tov
mircea_popescu: you need management :D
mircea_popescu: yeah that'd be a strategic mistake.