A simple Forth-like language intended for DSL creation, implemented in Lua
1–9 of 9 posts
Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#2http://blog.ionoclast.com/2015/05/firth-pre-alpha-1-a-forth-...
Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#3I wrote a pretty detailed blog article about the motivations and some design aspects of the project. If you want to play with a new little toy, I'd love any (constructive!) feedback, bug reports, pull requests, etc. http://blog.ionoclast.com/2015/05/firth-pre-alpha-1-a-forth-...
Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#4I wrote a pretty detailed blog article about the motivations and some design aspects of the project. If you want to play with a new little toy, I'd love any (constructive!) feedback, bug reports, pull requests, etc. http://blog.ionoclast.com/2015/05/firth-pre-alpha-1-a-forth-...
Have you seen http://terralang.org ? With a little work, your DSL could be generating stand-alone, statically compiled executables and c-linkable libs :D
Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#5Earlier quoted context omitted.
Have you seen http://terralang.org ? With a little work, your DSL could be generating stand-alone, statically compiled executables and c-linkable libs :D
Oh, I hadn't heard of that. Sounds interesting... I've also considered at some point switching to an LLVM backend, which would let me JIT on the fly or build executables.
You run Lua to construct sequences of code in the language Terra. The Terra functions can be jitted or AOT compiled through LLVM.
Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#6Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#7Although I love old-school languages like Forth, Smalltalk, and LISP, I find it weird to use Forth for a DSL. I looked into the example and it's not very readable, to be honest.
The syntax is terse and a bit difficult to parse if you're not familiar with forth, since I follow many of their naming conventions. This is mostly at the lowest levels of code, though; it is expected that you'll end up building your own convenience functions and syntax extensions along the way.
Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#8Re: A simple Forth-like language intended for DSL creation, implemented in Lua
#9Stack based language is simple and cool. Although I did not use Forth, I once used qinmishu( http://qinmishu.org ).