News for hackers. Stuff that matters.
Re:Nimony: A New Compiler for Nim by afavour on Tuesday November 17, 2026 @09:00AM (#50531471)
I’m curious if this closes the door on Nim’s capability to output C code which you then compile yourself. I first discovered Nim when I was looking for something that could work with Apple’s requirements to embed bitcode in iOS apps, it meant you had to use their specific version of LLVM and that ruled out a lot of languages. It always seemed like a really unique feature (though IIRC Haxe has something similar).

Apple has long since removed that requirement so it doesn’t really matter anyway and I wouldn’t blame the Nim folks if it’s gone, these seem like a great set of improvements.

Re:Nimony: A New Compiler for Nim by txdv on Tuesday November 17, 2026 @09:09AM (#50531599)
A lot of compilers nowadays compile to wasm, when you have wasm, you can compile to C.
Re:Nimony: A New Compiler for Nim by 15155 on Tuesday November 17, 2026 @11:46AM (#50534169)
Wasm is great, but it's a terrible IR for C back-compilation if you have alternatives available IMO.
Re:Nimony: A New Compiler for Nim by tokai on Tuesday November 17, 2026 @10:12AM (#50532469)
Nimony still puts the C code in the .cache/ folder as nim does.
Re:Nimony: A New Compiler for Nim by mathisfun123 on Tuesday November 17, 2026 @01:43PM (#50536168)
what does this imply? are you saying it does in fact still actually "transpile" to C?
Re:Nimony: A New Compiler for Nim by tokai on Tuesday November 17, 2026 @02:28PM (#50536853)
As I understand it both 'transpile' and does native code generation.
Re:Nimony: A New Compiler for Nim by Gesee on Wednesday November 18, 2026 @04:58AM (#50544235)
I don't think we can call that transpilation as it's not a 1:1 conversion But yeah, the native backend and LLVM backend definitively close the "transpilation" door
Re:Nimony: A New Compiler for Nim by 15155 on Tuesday November 17, 2026 @11:47AM (#50534195)
The real win with the compile-to-C strategy is embedded - a million embedded devices only publish vendor-provided (typically GCC) C toolchains.
Re:Nimony: A New Compiler for Nim by elcritch on Tuesday November 17, 2026 @12:38PM (#50535092)
This is a great part of Nim. I started using it with ESP32's for 5+ years or so now. Nimony is even more ideal for embedded.

Great part is that Nim's stdlib networking was easy to port to esp-idf's lwIP based network stack. So you get access to production Nim libraries for lots of networking stuff, or async, etc.

Re:Nimony: A New Compiler for Nim by girvo on Wednesday November 18, 2026 @12:24AM (#50542208)
Which I used in actual production at my previous job! Running lots of devices in the field in extremely remote areas :)
Re:Nimony: A New Compiler for Nim by pjmlp on Wednesday November 18, 2026 @05:55AM (#50544680)
Very few of them don't support at least C++98/C++03 nowadays, in fact I would assert that they may have evolved into C++11 by now.

The modern embedded devices that still only get Assembly and C toolchains are like PIC class devices.

Re:Nimony: A New Compiler for Nim by jibalt on Tuesday November 17, 2026 @10:49PM (#50541635)
Compiling to C is still supported.