Re:Nim v2.0 Released
by msk-lywenn on Tuesday August 01, 2023 @11:47AM
(#36957596)
I've been searching and can't find it: A in ARC is for automatic, what does the O stand for?
Re:Nim v2.0 Released
by lambertsimnel on Tuesday August 01, 2023 @12:05PM
(#36957888)
I assumed the O stands for "optimised", but apparently it stands for "cycle":
O is a visual pun because it adds a cycle collector to ARC.
Re:Nim v2.0 Released
by ElegantBeef on Tuesday August 01, 2023 @02:39PM
(#36960432)
> default behaviour is pass by value
Is not exactly true, smaller than 24 bytes is passed by value, the compiler optimizes larger calls and passes by reference implicitly.
>is a no-gc mode available?
You can disable gc, but most of standard library depends on it. But in Nim 2.0 there's finally support for ARC and ORC (ARC + cycle collector).