I've got a big project written in C. To get familiar with its architecture I read the code, hack here and there and check the results.
I would like to translate that original project to Nim, and not in a single c2nim shot but step by step instead. Single automatic translation would break the project and as there are many places where errors would occur, it seems not realistic to get the project to work in sane time.
So my idea is to proceed as follows: grok one project's logical item (normally it is one pair of xxxx.c + xxxx.h source files), translate it to nim an put back to the project so that it continues to work.
Does anyone have an experience of such a migration?
Take a look at https://github.com/ckkashyap/nim-xv6
The author was going to convert the xv6 kernel from C into Nim (having tried and given up doing it in Rust), but ended up deciding that moving things over to Nim piece by piece and keeping everything compiling along the way made more sense.
He appears to have stalled out on it after getting some things working though.
Thank you!
It seems to be exactly what I need.
(The makefile looks primitive though...)