Tl;dr version: you can write a scripting engine from scratch in 4 functions and 50 lines of crystal-clear code (sans builtins). It won't be Lua, but it will be a real language that can perform useful work. And that's amazing.

Show thread

Update: it turns out that a more practical interpreter takes 70 lines of Python or JS for the reader and evaluator, and 40 builtins for basics likes math, logic, comparisons, types, lists. Still tiny.

Show thread
Sign in to participate in the conversation
Elekk: Gameing and Other Delightful Pursuits

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!