News for hackers. Stuff that matters.
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).
Re:Introduction to ARC/ORC in Nim by Tiberium on Thursday October 15, 2020 @09:34AM (#24788477)
You can use ARC/ORC just fine on embedded :) Not sure why do you think that it's impossible.
Re:Introduction to ARC/ORC in Nim by PMunch on Thursday October 15, 2020 @09:54AM (#24788681)
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.
Re:Introduction to ARC/ORC in Nim by pjmlp on Thursday October 15, 2020 @09:31AM (#24788451)