timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

re-instate the now undocumented `--header:FILE` option, or provide a suitable alternative #778

Open timotheecour opened 3 years ago

timotheecour commented 3 years ago

there should be a way to generate C/C++ header files from nim, that stays in sync with nim compiler development; making it built into the compiler seems by far the easiest way to avoid replicating what the compiler already does

linke

other languages allow generating header files, eg D

juancarlospaco commented 3 years ago

It seems that "Nimterop" project is dead abandoned now too BTW... 😐

timotheecour commented 3 years ago

is it? interop (in particular C++ interop) is a hard problem, but a critical one that's worth solving; note that neither c2nim nor nimterop correctly handle c++ (c2nim requires a lot of manual patching for eg) and the right tool will have to be clang-based (as done in D via calypso and other projects) which removes the hardest part (C, C++ frontend) out of the equation.