Earlier quoted context omitted.
1. Nim uses 'var' modifier to pass by reference, e.g. "proc (n: var int)...", default behaviour is pass by value. And there're also raw pointers and references (safe pointers). >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).
I've been searching and can't find it: A in ARC is for automatic, what does the O stand for?
Nim 2.0
61–70 of 213 posts
Re: Nim 2.0
#62Re: Nim 2.0
#63Congratulations to everyone involved and the entire Nim community! Nim has been my language of choice for the past decade and I'm really happy with the new features in Nim 2.0. Some of them are real gamechangers for my projects. For example, default values for objects theoretically allow me to make Norm[1] work with object types along with object instances. And the new overloadable enums is something Karkas [2] would…
Re: Nim 2.0
#64More and more large companies and startups are adopting Nim.
Super excited for Nim 2.0 and huge thanks to all who contributed!
Re: Nim 2.0
#65Seems like it kinda has Sum Types, so Nim passes the litmus test for respectable static type-system in this day and age. https://nim-lang.org/docs/manual.html#types-object-variants
Re: Nim 2.0
#66Earlier quoted context omitted.
Sounds like a vector/array/list in any other language after C++, like Go slice, Java ArrayList, Javascript array, Python list, Rust vec. Is there something I'm missing?
I think they're discussing the lifetime of that heap data, not whether the data is heap allocated.
Re: Nim 2.0
#67Now that ARC/ORC is considered "complete," are there any remnants of the old GC still in the language, or has the entire ecosystem hopped over?
Re: Nim 2.0
#68What are some noteworthy projects or libraries written in Nim?
Re: Nim 2.0
#69If your Python programs heavily use Pandas and Numpy, could there still be speed benefits to translating them to Nim?
Re: Nim 2.0
#70The last time I used the language, it was still using a garbage-collector and there were talks about transitioning towards a new way of doing things - I assume that ARC/ORC ended up being that destination. Now that ARC/ORC is considered "complete," are there any remnants of the old GC still in the language, or has the entire ecosystem hopped over?