3 ms·
You might also be interested to check out Nim. It transpiles to C before invoking the C compiler, so it runs as fast as C++ and has excellent C-compatibility (
by jboy 11y ago
You might also be interested to check out Nim. It transpiles to C before invoking the C compiler, so it runs as fast as C++ and has excellent C-compatibility (and by extension, excellent C++-compatibility).
Compiling a shared library is as easy as passing the "--app:lib" option to the Nim compiler: http://nim-lang.org/docs/nimc.html#compiler-usage-command-line-switches http://nim-lang.org/docs/nimc.html#compiler-usage-command-li...
The GC is optional; you can manage your memory manually if you prefer: http://nim-lang.org/docs/manual.html#types-reference-and-pointer-types http://nim-lang.org/docs/manual.html#types-reference-and-poi...
The Nim tutorial is here if you want to have a quick skim: http://nim-lang.org/docs/tut1.html http://nim-lang.org/docs/tut1.html
- carljv 11y agoPlease stop this. It's approaching spam. Someone put a lot of work into building a new capability into a language and writing up a lengthy blog post about it. If you want to do the same for what you think is good about Nim and submit it to HN, please do. Repeatedly intercepting people's question about D with "you should look at Nim" is obnoxious. If D users did this in a thread about Nim, I imagine you would find it frustrating.