• solrize@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    Doing that in Java sort of misses the point? I guess the enjoyment still counts if course.

    • bahmanm@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      Haha…good point! That said bjForth is still a fully indirect threaded Forth. It’s just that instead of assembler and C/C++ it calls Java API to do its job.

      • solrize@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        Traditionally Forth is implemented completely in Forth. Jonesforth is kind of non-traditional in that sense, because it is in assembler.

        • bahmanm@lemmy.mlOP
          link
          fedilink
          arrow-up
          2
          ·
          7 days ago

          That’s impossible unless you’ve got a Forth machine.

          Where the OS native API is accessible via C API, you’re bound to write, using C/C++/Rust/etc, a small bootstrap programme to then write your Forth on top of. That’s essentially what bjForth is at the moment: the bootstrap using JVM native API.

          Currently I’m working on a set of libraries to augment the 80-something words bjForth bootstrap provides. These libraries will be, as you suggested, written in Forth not Java because they can tap into the power of JVM via the abstraction API that bootstrap primitives provide.

          Hope this makes sense.