hana
hana copied to clipboard
🌸 a simple scripting language (alpha) 🌸
Using [clap](https://crates.io/crates/clap) would simplify all of the command line parsing.
The VM should be rewritten in Rust for: 1. Better link-time optimization 2. Safer abstraction over GC objects (the current C implementation does not increase GC object's reference count which...
When trying to print something without trailing newline, there's no output in the terminal. But with trailing newline, it's fine.
see branch [nan-tagging](https://github.com/ffwff/hana/tree/nan-tagging)
Tuples (fixed-length arrays) should be added. # Syntax The syntax for defining a tuple would be: ``` (a, b) ``` Which creates a tuple with values a and b. Tuple...
The library should probably expose data structures (Hash maps, arrays...) which would return Value instead of NativeValue. This is so that library writers won't have to do `.wrap()` every time...
Implement a tri-color garbage collector that does mark&sweep in a separate thread. (or at least use a better garbage collection algorithm)