new Date(“wtf”)
How well do you know JavaScript’s Date class?
JavaScript is a crazy, mad language. Or better, it’s library is crazy. You can mostly blame automatic convertions
JavaScript
Fat, obese npm
I do understand that today designs tend to put less emphasis on conservative memory usage but that’s pretty outrageous. A simple search into node’s package manager ate one gigabyte and half of main memory having to deal with a simple question like
npm find foobar
more speficically GNU time told me that it took 48 seconds and 1799Mb of resident memory to scan thorugh a local list of the 169.312 total packages available from npmjs.com.
Apt, the almighty Debian package manager consumed a mere 99 MegaBytes to search into package names and descriptions throught more than an hundred thousands packages (107819) which are usually far beefier that javascript modules.
That’s more than eighteen times.
Javascript, your librarian is obese.
JavaScript + Other Languages
Those slides JavaScript + Other Languages are really useful to implement an eventual Eiffel to JavaScript compiler.
Well, actually it should be called transcompiler….
We could just feed the C files made by current Liberty compiler but it seems to me that passing throught C which is a procedural language like C could easily makes things quite beefier as an Eiffel compiler usually translate all the nifty niceries of Eiffel into low-level C code which could be quite cryptic.