3 ms·
Curious to see that this is mostly JavaScript code. How does it work on the technical side? Does the modified firmware include a whole Node.js environment that
by j1elo 4y ago
Curious to see that this is mostly JavaScript code. How does it work on the technical side? Does the modified firmware include a whole Node.js environment that runs this code?
- hypfer 4y agohttps://github.com/vercel/pkg https://github.com/vercel/pkg
- j1elo 4y agoI see! I use pkg too myself, and now that I knew what to look for, was able to find the "pkg" entries in package.json
- hypfer 4y agoI continue to be amazed at how good that works. Both pkg but also running a full nodejs runtime on a 256MB RAM vacuum robot with a comically small heap size alongside the regular firmware.
- j1elo 4y agoYeah it is a very nice technology, and also working on a higher level than embedded C/C++ allows for a faster development cycle, not having to worry that much about handling memory manually (albeit incurring in a much higher usage, that's true)
- fxtentacle 4y agoIt uses pkg node18-linuxstatic-armv7