bjForth which stands for Bahman's Forth on the JVM is an attempt at writing a Forth which would allow the programmer to tap into the JVM and its ecosystem.
The idea came to my mind in 2014-2015, but I never had the time nor the understanding of how a Forth is implemented.
Then in 2022, I sat down and read the source of JONESFORTH which is a rather minimal and amasingly well-documented Forth implementation!
After that I knew what to do!
As bjForth is written with Java, all you need is JDK 21 installed.
Then to launch bjForth:
$ java -jar bjForth-v0.0.2.jar
bjForth <https://github.com/bahmanm/bjforth>
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Or you could include your own library:
$ cat my-lib.forth - | java -jar bjForth-v0.0.2.jar
bjForth <https://github.com/bahmanm/bjforth>
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
- Java inter-op (instance creation and method call)
- A set of libraries with commonly used words (
bjForth.forth
)
- ANSI Forth compatibility
- Java inter-op (lambdas)