Writing a primitive Forth in JavaScript (2024)

(onirom.fr)

21 points | by dverlaeckt80 14 hours ago ago

4 comments

  • veltas 2 hours ago ago

    I think the first question I've got for JavaScript Forths is how you'd handle addresses, bytes, etc., because that's a staple of any conventional Forth, necessary to create tables, arrays, and handle strings. There are lots of ways of doing it but there are some nasty compromises required for a more standard-looking Forth.

    • jstanley an hour ago ago

      What about an array of numbers? What are the nasty compromises?

  • bitwize 9 hours ago ago

    "Writing things in a programming language" now seems to have the same quirky old-internet charm as "Flash games".

    • pjmlp 2 hours ago ago

      Unfortunely, I forsee eventually LLMs will become good enough to deliver the 4GL initial vision, we are already seeing that take shape in iPaaS products, or code generation that is as readable as minified C code for IOCCC entries.