tfm@europe.pub to Programmer Humor@lemmy.mlEnglish · 5 days agoPython!lemmy.mlimagemessage-square58fedilinkarrow-up1717arrow-down114
arrow-up1703arrow-down1imagePython!lemmy.mltfm@europe.pub to Programmer Humor@lemmy.mlEnglish · 5 days agomessage-square58fedilink
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up16arrow-down3·4 days agoAh, Python. It might not be fast, but it gets it right in the end. :)
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up7arrow-down1·4 days ago$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))' 4503599627370495.5 #python
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up11·4 days agoAhh, contrived examples of floating point errors. I haven’t seen those since I asked Javascript to add 0.1 and 0.2 :)
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up2·4 days agodeleted by creator
minus-squareMashedTech@lemmy.worldcakelinkfedilinkarrow-up1·4 days agoJust wait till they get rid of GIL!
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up1·4 days agoAnd get a whole bunch of multi threading horrors…
minus-squareMashedTech@lemmy.worldcakelinkfedilinkarrow-up1·3 days agoWell… I’m sorry to tell you… But they’re already working on it.
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 :)
deleted by creator
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 …