I have embarked myself on quite a task, to translate and convert the 7000 LINES OF C CODE to Zig, and while a lot of the hard work was done simply with zig translate-c
, when hooking everything up, it doesn't just work like how linking everything does. So whats the current progress?
Well it compiles...butttt without a standard library, runtime error reporting is off, and there is possibly an integer overflow issue with the VM garbage collector, so how do we handle this?
Well first thing to make everything better is moving away from C ABI, which is very hard, because everything is currently in C ABI, but we must to have things work! And so we can move away from malloc
and to Zig's general purpose allocator which has better safety features.
I don't expect myself to complete this task in a couple of weeks, it'll probably be a few months, where was is happy news, the next is just cussing, and the other I post another update :)