Espruino Executable for Desktop?

Posted on
  • I saw that Espruino already exists as an executable for RasPi, and since I haven't posted a weird question in a while...

    I could imagine Espruino as an executable for desktop OSes as another step. As an simulator displaying the typical ports/LEDs of the supported boards and also for using the host's ethernet. I wouldn't go as far as suggesting to emulate displays and other SPI devices (for now :), but a port of the Raspi-Executable to a Mac OS X/Linux environment might be a nice and easy to add bonus.

  • Sounds cool, would be useful for some general testing. Often I wonder "how does this behave" or "is that working" on Espruino (as compared to standard JS implementations) but then I don't have my board at hand and can't be bothered.

  • For Linux/MacOS it should be as simple as typing:

    git clone https://github.com/espruino/Espruino.git
    cd Espruino
    make
    

    See https://github.com/espruino/Espruino - you'd need git installed to download it, but there are even ways around that.

    I do a lot of development and testing of the language on Desktop - it's just easier for debugging and lets me run through a bunch of automated tests - so it works quite well.

    There's no 'interface' though - so no representation of the state of outputs or anything. There is however ethernet support (at least on Linux - Mac requires some tweaks to get a compile).

  • Heh. Didn't expect that. Very cool :)

    Might be a good time to do that vertical step over that JS border and have look at your git repo.

    Might still be a nice binary to have pre-built in the Distro / on the web page.

  • Yes, I could drop a 64 bit linux compile in there easily I guess.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Espruino Executable for Desktop?

Posted by Avatar for Stev @Stev

Actions