tfm@europe.pub to Programmer Humor@lemmy.mlEnglish · 2か月前Python!lemmy.mlimagemessage-square58fedilinkarrow-up1736arrow-down117
arrow-up1719arrow-down1imagePython!lemmy.mltfm@europe.pub to Programmer Humor@lemmy.mlEnglish · 2か月前message-square58fedilink
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up17arrow-down3·2か月前Ah, Python. It might not be fast, but it gets it right in the end. :)
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up7arrow-down1·2か月前$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))' 4503599627370495.5 #python
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up12·2か月前Ahh, contrived examples of floating point errors. I haven’t seen those since I asked Javascript to add 0.1 and 0.2 :)
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up1·2か月前And get a whole bunch of multi threading horrors…
minus-squareMashedTech@lemmy.worldlinkfedilinkarrow-up1·2か月前Well… I’m sorry to tell you… But they’re already working on it.
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up2·2か月前deleted by creator
Ah, Python. It might not be fast, but it gets it right in the end. :)
$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))' 4503599627370495.5
#python
Ahh, contrived examples of floating point errors. I haven’t seen those since I asked Javascript to add 0.1 and 0.2 :)
Just wait till they get rid of GIL!
And get a whole bunch of multi threading horrors…
Well… I’m sorry to tell you… But they’re already working on it.
Uh, it’ll be like C++ but slow then …
deleted by creator