- 复现自编程语言 wren
- 原wren中所有测试用例均测试通过
- 原wren中所有benchmark用例均正常运行
- 使用zig实现
- zig build
- ./zig-out/bin/Zren some_script.wren
- 测试脚本可以在 https://github.com/wren-lang/wren/tree/main/example 中找到
- variable.index 改为usize
- 检查所有 -1 的变量
- 检查所有的len 相关变量
- 检查所有TODO
- gc流程
- hash码改进
- 编译改进为状态机
- 内存分配改为默认使用 realloc
- gc中传递user_data (alloc realloc等)
- 重构userdata 传递
- 删除字符串用 \x00判断结束(zig的slice自带长度信息)
- profiling