Re:Introduction to ARC/ORC in Nim
by auxym on Thursday October 15, 2020 @09:28AM
(#24788414)
Nim compiles to C, so you can use it as a "better C" like rust or Zig. That said, the main difference is that it comes with a GC, or more accurately, multiple GC options that are tunable. If you cannot have GC, as in embedded, you can compile without GC, but then you lose access to the vast majority of the standard library (which is similar to rust's --no-std, from my understanding).
[ Parent
| on HN ]
You can use ARC/ORC just fine on embedded :) Not sure why do you think that it's impossible.
It used to be the case that you turned the GC off when running on embedded, but you are correct that ARC/ORC runs on embedded devices and will indeed make these even easier to program against in the future. Whether running things that normally require a GC on a tiny microcontroller is a good idea is of course entirely up to the programmer.
Depends on which kind of embedded.