You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I got an email today asking whether the JavaScript 'Easy Forth' (https://skilldrick.github.io/easyforth/) would work on Espruino... It turns out it will!

    You'll need a 'cutting edge' firmware (or release 1v100 or later when that's released) as it happened to show up a few things that Espruino didn't implement or where it wasn't doing quite the right thing.

    The modifications to the code itself are:

    • Just stuck https://skilldrick.github.io/easyforth/ into one file for ease of upload
    • Used setTimeout instead of the insane levels of recursion in the interpreter
    • Commented out a lot of the predefined code as there isn't enough memory for it on the Pico

    Having said that if you did 'save on send' you'd probably have enough memory for it.

    Once uploaded, you can just run cmd("1 2 +") to execute a bit of code.

    The interpreter could be so much more efficient than it is, but still - it's fun to be able to run something meant for a browser pretty much as-is.


    1 Attachment

About

Avatar for Gordon @Gordon started