Fork me on GitHub
#clojure-nl
<
2018-09-18
>
niels07:09:49

Finishing up defn 39. Colleagues wondering why I'm laughing with headphones on

niels07:09:31

Learned I'm reading a book that's being deprecated before eoy, Pythons dependency management is "fucking horrible", and Canada has 40°¢ weather because of all the wasted compile cycles of statically typed languages 👍 👍

borkdude07:09:04

on the other hand, dynamically typed programs have to do more runtime checks during their entire lifecycle so who spends more energy isn’t that obvious to me 🙂

borkdude07:09:19

There was this tweet recently from a guy who rewrote his Python script into Rust in six hours and went from 1.6s to 26ms, so in 40 years he would start profiting (not the exact numbers, can’t find the tweet)

lmergen07:09:43

i guess his python script wasn't that popular 🙂

lmergen07:09:48

otoh, let's say that a single core costs 5 cents an hour on clouds, 6 hours is worth 600 euros, and 1.57s is saved... 600 euros * 5 cents per hour = 12000 hours of cloud time 12000 hours / 1.57s = 27,515,923 so that means the scripts need 27.5MM invocations before being profitable

lmergen07:09:14

40 years sounds about right for quite a few use cases

thomas08:09:56

but in those 40 years the python script would get faster as well due to increased performance of the machine etc.

borkdude08:09:13

and maybe some JIT depending on the runtime

thomas08:09:08

yup, that might happen as well in the next 40 years. even for python....

lmergen08:09:58

i wouldn't get your hopes up, in 40 years, python will still have the GIL

borkdude08:09:58

so has OCaml right

thomas14:09:45

it will still have a GIL... just a much faster GIL though...

borkdude14:09:50

it can lock faster?

thomas14:09:38

surely yes... faster computer = better locking!!!

thomas14:09:48

:thinking_face:

borkdude14:09:10

just sprinkle kubernetes over it, it will solve everything

thomas14:09:10

more dockers!!!

thomas14:09:45

just add some microservices as well, just to be sure.