peon-rewrite/README.md

23 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-07-20 14:38:38 +02:00
# peon-rewrite
2023-07-20 14:32:12 +02:00
2023-07-20 14:38:38 +02:00
Work in progress for Peon 0.2.x
## What changed
- Peon will no longer use a runtime GC. Instead, the memory model will use ~~lifetimes with regions~~-- actually, peon will use
[generational references](https://verdagon.dev/blog/generational-references) instead (they're way cooler IMHO)
- The compiler has been completely overhauled and no longer handles any code generation (in fact, currently there is no code generation
2024-02-19 17:32:51 +01:00
at all, just a parser and a type checker). This is to allow for true multi-backend support as well as to improve separation of concerns
because all the code generation stuff intertwined with the typechecking was driving me insane (please do send help)
2024-02-19 17:32:51 +01:00
## Build
Just run `nimble build`. It should grab all the dependencies, run the test suite and produce a `peon` binary in your current working directory
2024-02-19 17:32:51 +01:00
## Tests
Peon is starting to get large enough for it to need an automated test suite (wow, much fancy, such cool), so you can run `nimble test`
to run that (it's also ran automatically at every `nimble build`). The tests aren't using testament because I have a severe case of NIH syndrome,
sorry folks!