Bushmills / Bashforth

A Forth interpreter, entirely written as bash script. But by now is yoda (https://github.com/Bushmills/yoda) the better bashforth.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bashforth

This Forth interpreter, entirely written as bash script, is a F³ (Fully Functional Forth), albeit a tad slow. Some would call it "sluggish". As rough indication, an ARM SBC which I'm running Bashforth on takes about 15 second for an empty loop of 100,000 iterations. It has built-in doc and see facilities, simplifying exploration of Bashforth. Bashforth lacks floating point support and vocabularies, but comes with essentials like defining word builder, exception handling. It also provides an extra string stack, along with a set of words, operating on string stack.

Those interested in bashforth might like yoda which does away with the virtual machine and compiles directly to bash functions. As consequence can a substantial performance difference be realised (yoda is faster by a factor of somewhere between 30 and 50 times).
At this point yoda has progressed enough that I can say that now yoda is the better bashforth, being more potent while it's still smaller than bashforth. And it supports automatically including libraries.

About

A Forth interpreter, entirely written as bash script. But by now is yoda (https://github.com/Bushmills/yoda) the better bashforth.

License:Other


Languages

Language:Shell 100.0%