logoalt Hacker News

afavour • today at 2:00 PM • 3 replies • view on HN

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.


Replies

15155 • today at 4:47 PM

The real win with the compile-to-C strategy is embedded - a million embedded devices only publish vendor-provided (typically GCC) C toolchains.

➕ show 1 reply
txdv • today at 2:09 PM

A lot of compilers nowadays compile to wasm, when you have wasm, you can compile to C.

➕ show 1 reply
tokai • today at 3:12 PM

Nimony still puts the C code in the .cache/ folder as nim does.