News for hackers. Stuff that matters.
Re:Nim compiler — Pascal source code by k__ on Sunday November 29, 2020 @08:20AM (#25244979)
"The language is rapidly converging on an ownership model similar to rust "

Nice.

Do you have more resources on that?

Also, does Nim have a WASM target?

Re:Nim compiler — Pascal source code by sp33der89 on Sunday November 29, 2020 @09:00AM (#25245123)
Re:Nim compiler — Pascal source code by planetis on Sunday November 29, 2020 @02:12PM (#25247205)
Latest presentation is https://www.youtube.com/watch?v=zPlBZkWvuug It has updated information.
Re:Nim compiler — Pascal source code by nikki93 on Sunday November 29, 2020 @03:36PM (#25247858)
Re: WASM -- https://github.com/nikki93/ng-public -- Public repo for a game side project I've been working on that does Nim -> C/C++ -> WASM (native desktop also works, iOS probably works (have used the same build system for C++ iOS before) and Android can be made to work). One of the modules involved wraps entt which is a template-heavy C++ library and not many languages can actually wrap with just a cdecl-y ffi layer.

Re: borrow checking: https://nim-lang.org/docs/manual_experimental.html#view-type... It's still pretty early and also IME the mix of arc (which is determinstic) with manually managed memory (esp. through some data structure that manages entity data like entt) has been pretty nice.

Re:Nim compiler — Pascal source code by atombender on Sunday November 29, 2020 @11:54AM (#25246286)
Nim is apparently getting support for owned pointers [1]. There's a proposal [2]. The proposal PR has since been closed, but it's apparently still being worked on.

[1] https://nim-lang.org/araq/ownedrefs.html

[2] https://github.com/nim-lang/RFCs/issues/144

Re:Nim compiler — Pascal source code by planetis on Sunday November 29, 2020 @02:16PM (#25247246)
I had played with and really liked "owned". However there was design issues with it and that feature was forgotten.
Re:Nim compiler — Pascal source code by beagle3 on Sunday November 29, 2020 @03:57PM (#25248004)
Most of those semantics are now tracked automatically without needing annotation in arc/orc.