3 ms·
"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?
by k__ 6y ago
"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?
- sp33der89 6y agoHere are some handy links (for me) that might help you out too: https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc-in-nim.html https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc... https://www.youtube.com/watch?v=aUJcYTnPWCg https://www.youtube.com/watch?v=aUJcYTnPWCg https://github.com/stisa/nwasm https://github.com/stisa/nwasm You can also go an Emscripten route: https://hookrace.net/blog/porting-nes-go-nim/ https://hookrace.net/blog/porting-nes-go-nim/
- planetis 6y agoLatest presentation is https://www.youtube.com/watch?v=zPlBZkWvuug https://www.youtube.com/watch?v=zPlBZkWvuug It has updated information.
- atombender 6y agoNim 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 https://nim-lang.org/araq/ownedrefs.html [2] https://github.com/nim-lang/RFCs/issues/144 https://github.com/nim-lang/RFCs/issues/144
- nikki93 6y agoRe: WASM -- https://github.com/nikki93/ng-public 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-types 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.