Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Rhetorical questions about why programs are not smaller (programmingsimplicity.substack.com)
1 point by AstroJetson on July 18, 2024 | hide | past | favorite | 3 comments


I always love the "my programming language is smaller" and the "build a webserver in only 3 lines" type posts. This one is about smaller. He mentions Sector Lisp (a marvel at about 436 bytes, Tiny Lua in at 100K. Pretty cool. But as much as I admire Sector Lisp, it's the bare bones Lisp. I need to add scaffolding around it to do anything really practical. Likewise for Tiny Lua, it needs a ton of things before I can use it. Once I get done adding some support, it's up to 300K, the size of regular Lua.

(and on the other hand, Webserver in 3 lines, that's after pulling in 2MB of libraries, I guess that code doesn't count ;-) )


Snek, the embedded Python dialect, takes less than 32K ROM and 2K RAM. https://sneklang.org/


Oh cool, Snek and the Snekboard. Snekboard is one of the few controller boards that supports 4 motors. Pet peeve is needing 2 boards to run 4 motors. Snekboard was awesome. And it was one of the few boards 5 years ago that came with the things needed to adapt it to Lego. It is a great example that had everything you needed, not another dozen libraries to load.

Thanks for the memory trip!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: