Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Anyone here tried mercrisp FORTH for programming ARM Cortex M? i.e. "Blue Pill", nRF5, STM32, etc.?

Anyone here tried mercrisp FORTH for programming ARM Cortex M? i.e. "Blue Pill", nRF5, STM32, etc.?

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #1

    http://mecrisp.sourceforge.net/

    It runs very close to the bare metal because, despite being REPL interpretive, it includes an optimising compiler that seamlessly generates native code AND runs on the target itself, AND the whole thing runs on as little as 16K flash and 2K RAM. Amazing!

    It also happens to be what the founder of Jeelabs has switched to using instead of C, and we all know that he's a very capable C programmer. I already knew that but had been dismissive about it (after all, FORTH has been around a long time) until I saw this interesting short overview video where a regular guy demonstrates how easily it programs a "blue pill":

    https://www.youtube.com/watch?v=dvTI3KmcZ7I&t=1152s

    So, sure, FORTH itself is nothing new, but it's the inclusion of a native code generating optimizing compiler in such small space on the target that suddenly makes this all so attractive. I mean, for instance, you could wirelessly connect to any node you want and debug it and/or modify it in real time if you wanted to.

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by
      #2

      I have since installed it on a BBC microbit. Installation is a snap: literally one drag and drop.

      1 Reply Last reply
      1
      • nagelcN Offline
        nagelcN Offline
        nagelc
        wrote on last edited by
        #3

        I'd be interested to hear what you think compared to uLisp. The notion of uLisp seems a little strange to me. But then, I never got past thinking of lisp as just fun to play with.

        NeverDieN 1 Reply Last reply
        0
        • nagelcN nagelc

          I'd be interested to hear what you think compared to uLisp. The notion of uLisp seems a little strange to me. But then, I never got past thinking of lisp as just fun to play with.

          NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by
          #4

          @nagelc I'm working to get the nRF52840 supported by mecrisp-stellaris. If that happens, then it will be faster than uLisp, because then FORTH will automatically compile seamlessly into native machine code rather than running on a VM. Allegedly the performance would then be very close to that of compiled C code. To me that would be like having my cake (interactivity of a REPL) and eating it too (fast execution speed).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          9

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular