tfmA to Programmer Humor@lemmy.mlEnglish · 21 days agoPython!imagemessage-square58linkfedilinkarrow-up1730arrow-down116cross-posted to: programmer_humor@programming.devprogrammer_humor@programming.dev
arrow-up1714arrow-down1imagePython!tfmA to Programmer Humor@lemmy.mlEnglish · 21 days agomessage-square58linkfedilinkcross-posted to: programmer_humor@programming.devprogrammer_humor@programming.dev
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up17arrow-down3·20 days agoAh, Python. It might not be fast, but it gets it right in the end. :)
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up8arrow-down1·20 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·20 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·20 days agodeleted by creator
minus-squareMashedTech@lemmy.worldlinkfedilinkarrow-up1·20 days agoJust wait till they get rid of GIL!
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up1·20 days agoAnd get a whole bunch of multi threading horrors…
minus-squareMashedTech@lemmy.worldlinkfedilinkarrow-up1·19 days agoWell… I’m sorry to tell you… But they’re already working on it.
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up1·19 days agoUh, it’ll be like C++ but slow then …
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 …