News for hackers. Stuff that matters.
Re:Lua Is So Underrated by kragen on Thursday December 26, 2024 @06:52PM (#42518801)
Lua 5.2 is 15000 lines of portable ANSI C. On amd64 the Debian default configuration of the interpreter compiles to a 950KiB executable that strips to 224K. I think reduced configurations can go below 100K. It doesn't start extra threads, demand a thread of its own, or have tricky memory management demands. What JS interpreter would you recommend for cases where that's a good fit? Something that's less than a megabyte and can be compiled to run on weird architectures.
Re:Lua Is So Underrated by Vogtinator on Thursday December 26, 2024 @07:01PM (#42518854)
https://duktape.org is in a similar ballpark.
Re:Lua Is So Underrated by kragen on Thursday December 26, 2024 @07:29PM (#42518981)
This does look great! Unfortunately it looks like it'll be hard for me to build it; it's yet another project that got fucked over by the Python community's irresponsibility.
Re:Lua Is So Underrated by tecleandor on Friday December 27, 2024 @07:12AM (#42521555)
Why is that? I think I haven't heard of Duktape before, so I don't have the background for whatever happened.
Re:Lua Is So Underrated by kragen on Friday December 27, 2024 @08:22AM (#42521856)
Its build system apparently depends on Python 2.
Re:Lua Is So Underrated by rcarmo on Friday December 27, 2024 @08:29AM (#42521898)
No it doesn't. People who complain about that clearly haven't actually checked - there's a warning in the old configuration scripts as well:

* Duktape python tooling is obsolete, migrate to JS-based tooling! *

Re:Lua Is So Underrated by kragen on Friday December 27, 2024 @11:49AM (#42523692)
I was looking at the example build configuration scripts on the project home page. Not somewhere linked from the home page, actually inline code on the page. Today! Literally as I'm writing this comment, it says:

  $ python2 duktape-2.6.0/tools/configure.py --output-directory src-duktape \
      -UDUK_USE_ES6_PROXY
I'm glad to hear my impression that there was no other build system was wrong!