Nim in 2020: A Short Recap
nim-lang.org
Nim in 2020: A Short Recap
1–10 of 121 posts
Re: Nim in 2020: A Short Recap
#2> Scope-based memory management (destructors are injected after the scope) - generally reduces RAM usage of the programs and improves performance.
How does Nim handle references? How similar is this to Rust's lifetimes GC-ed instead of manually managed?
Is this essentially like Rust, with the main difference that lifetimes (references) are handled via reference counting?
> Shared heap - different threads have access to the same memory and you don’t need to copy variables to pass them between threads - you can instead move them
I think this is the same as Rust thread move semantics?
Re: Nim in 2020: A Short Recap
#3Very interesting. Is the memory model essentially a middle ground between GC-based and manual memory management?: > Scope-based memory management (destructors are injected after the scope) - generally reduces RAM usage of the programs and improves performance. How does Nim handle references? How similar is this to Rust's lifetimes GC-ed instead of manually managed? Is this essentially like Rust, with the main differe…
Re: Nim in 2020: A Short Recap
#4Re: Nim in 2020: A Short Recap
#5In what cases is Nim a better option than Rust? Would be great if anyone with more experience can share more information.
Re: Nim in 2020: A Short Recap
#6Very interesting. Is the memory model essentially a middle ground between GC-based and manual memory management?: > Scope-based memory management (destructors are injected after the scope) - generally reduces RAM usage of the programs and improves performance. How does Nim handle references? How similar is this to Rust's lifetimes GC-ed instead of manually managed? Is this essentially like Rust, with the main differe…
Re: Nim in 2020: A Short Recap
#7In what cases is Nim a better option than Rust? Would be great if anyone with more experience can share more information.
Re: Nim in 2020: A Short Recap
#8In what cases is Nim a better option than Rust? Would be great if anyone with more experience can share more information.
Re: Nim in 2020: A Short Recap
#9In what cases is Nim a better option than Rust? Would be great if anyone with more experience can share more information.
Re: Nim in 2020: A Short Recap
#10In what cases is Nim a better option than Rust? Would be great if anyone with more experience can share more information.
For me, it's a full stack language, write the frontent with karax https://github.com/pragmagic/karax or react bindings https://github.com/kristianmandrup/react-16.nim and backend in pure nim with any of the available web frameworks (jester/prologue/looper) and orms (ormin/norm) and share code and type declaration between the two.