tfm@europe.pub to Programmer Humor@lemmy.mlEnglish · 1 day agoPython!lemmy.mlimagemessage-square53fedilinkarrow-up1663arrow-down113
arrow-up1650arrow-down1imagePython!lemmy.mltfm@europe.pub to Programmer Humor@lemmy.mlEnglish · 1 day agomessage-square53fedilink
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up13arrow-down1·16 hours agoAh, Python. It might not be fast, but it gets it right in the end. :)
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up2·14 hours agodeleted by creator
minus-squareMashedTech@lemmy.worldlinkfedilinkarrow-up1·12 hours agoJust wait till they get rid of GIL!
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up1·11 hours agoAnd get a whole bunch of multi threading horrors…
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up2·15 hours 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-up6·14 hours agoAhh, contrived examples of floating point errors. I haven’t seen those since I asked Javascript to add 0.1 and 0.2 :)
Ah, Python. It might not be fast, but it gets it right in the end. :)
deleted by creator
Just wait till they get rid of GIL!
And get a whole bunch of multi threading horrors…
$ 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 :)