JavaScript – Paolo Redaelli https://monodes.com/predaelli A civil engineer with a longlife fondness for Software Libero Tue, 28 Jul 2015 23:07:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 91795679 Fat, obese npm https://monodes.com/predaelli/2015/07/29/fat-obese-npm/ https://monodes.com/predaelli/2015/07/29/fat-obese-npm/#respond Tue, 28 Jul 2015 23:07:21 +0000 http://monodes.com/predaelli/?p=599 npm-huge-allocationI 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.

]]>
https://monodes.com/predaelli/2015/07/29/fat-obese-npm/feed/ 0 599
JavaScript + Other Languages https://monodes.com/predaelli/2015/06/12/javascript-other-languages/ https://monodes.com/predaelli/2015/06/12/javascript-other-languages/#respond Fri, 12 Jun 2015 21:11:51 +0000 http://monodes.com/predaelli/?p=297

JavaScript+OtherLanguages

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.

]]>
https://monodes.com/predaelli/2015/06/12/javascript-other-languages/feed/ 0 297