dyn-lex
is an experiment with runtime lexical memory management for objects:
- Objects are attached to lexical blocks.
- Objects cannot escape their blocks.
- Objects are deallocated with their blocks.
- Objects are still garbage collected with long-lasting blocks.
- All verification occurs at runtime.
- Install
gcc
andjava
:
$ sudo apt install gcc default-jre
- Install
dlex
:
$ wget https://github.com/fsantanna/dyn-lex/releases/download/v0.2.0/install-v0.2.0.sh
$ sh install-v0.2.0.sh ./dlex/
- You may want to
- add
./dlex/
to yourPATH
- modify
./dlex/
to another destination
- add
- Execute
dlex
:
$ ./dlex/dlex ./dlex/hello-world.ceu
[1,2,3]