Difference between revisions of "Forth for the Mill and/or Forth-like variants, better suited to the Mill"

From Mill Computing Wiki
Jump to: navigation, search
(Started page on interpreters/Forth for the Mill CPU)
 
m (A root page for interpreted languages (Forth and similar) for the Mill CPU family.)
Line 6:Line 6:
  
 
* Simplicity.  Some interpreters, especially threaded/stack-based interpreters like Forth are small enough to be feasible assembly-language projects.
 
* Simplicity.  Some interpreters, especially threaded/stack-based interpreters like Forth are small enough to be feasible assembly-language projects.
 +
 +
* Size.  An interpreter can run in a small (think kilobytes) amount of memory, and is thus likely to run on Mill simulator well enough to be usable, instead of frustrating.
 +
 +
* Hands-on Mill experience.  While watching the presentations and reading the discussions is interesting, I think there's no substitute for programming itself.
  
 
----
 
----

Revision as of 16:54, 3 January 2015

An interpreter for the Mill would provide an another way to get software running on the Mill than the LLVM compiler port that is in process, but not yet ready as of this writing (03Jan2015.) This idea was first proposed in the forums [[1]]. Mill architect Ivan Godard has expressed some interest (in the forum discussion linked above), but keep in mind that this is not an official Millcomputing effort.

Why would one want an interpreter instead of the compiled languages (C, C++ and ??) that LLVM will support?

  • Timing (Namely, I hate to wait!) The LLVM port won't be ready for some time, but the genAsm language and assembler are getting close to alpha/beta/possibly-usable-under-NDA status.
  • Simplicity. Some interpreters, especially threaded/stack-based interpreters like Forth are small enough to be feasible assembly-language projects.
  • Size. An interpreter can run in a small (think kilobytes) amount of memory, and is thus likely to run on Mill simulator well enough to be usable, instead of frustrating.
  • Hands-on Mill experience. While watching the presentations and reading the discussions is interesting, I think there's no substitute for programming itself.