4 ms·
This with lisp syntax, compiling to Rust code & datastructures would be fun!
by zdkl 11y ago
This with lisp syntax, compiling to Rust code & datastructures would be fun!
- ajuc 11y agoI was thinking of a system generating code in the same language, and still keeping the root object, so that you can experiment, add some new dependencies, and regenerate dependenceis, many times. But you can at any moment pass null from the main loop instead of the proper root object to see if the code is generated properly and works only with the functional part. It's more complicated than a system that just regenerates everything from scratch every time. And removing dependencies would be tricky. So maybe your idea is better.
- zdkl 11y agoWell you could precompile part of the guaranteed immutable stuff and distribute it seperately from the mutable execution part... Wait we've reinvented the JVM at this point!
- zdkl 11y agoCome to think of it you should take a look at clojure/script, the pattern you describe could easily be implemented with maps in atoms. Cf the 'reagent' libs way of handling state