Re:Writing a simple Lisp interpreter in Rust
by dgb23 on Saturday March 04, 2023 @06:48AM
(#35020168)
Familiarity can certainly be a stumbling block initially but I found it isn’t always the main problem.
It’s very easy to write code that’s hard to read, because everything nests and composes neatly together.
But a Lisp usually also gives you a lot of tools to structure code very nicely. Such as:
- local bindings to structure code in a LTR fashion
- macros to provide syntactic sugar
- functions are very easily extracted, because everything is an expression
- closures provide context and can be composed and specialized
Points 1 and 3 can be provided as automatic refactorings by a good editor.
So code can be literally an AST dump versus very clear and expressive with a Lisp.
I am interested in a Lisp language called Parlanse,
http://www.semdesigns.com/Products/Parlanse/examples.html
It has built in parallelisation.
I find LISP is really useful as an AST but I am not familiar enough with LISP to read it fluently as well as C or Python.