News for hackers. Stuff that matters.
Re:A small kernel written in Nim by davorb on Tuesday May 05, 2015 @12:20PM (#9493323)
I'd actually like to see someone do a Nim vs Rust. We've seen plenty of rust vs go and rust vs c++.
Re:A small kernel written in Nim by def- on Tuesday May 05, 2015 @12:25PM (#9493352)
In my opinion Rust and Nim would make a nice team as complementary languages: Use Rust for everything that needs high safety and high performance at the same time, Nim for everything else.

https://andreaferretti.github.io/on-rust-and-nim/

https://arthurtw.github.io/2015/01/12/quick-comparison-nim-v...

Re:A small kernel written in Nim by progman on Tuesday May 05, 2015 @01:49PM (#9493857)
> In my opinion Rust and Nim would make a nice team as complementary languages

I don't think so because the syntax is very different. You would have to learn two languages, and if you know Rust and you need it for safety reasons -- then why not code everything in Rust?

Nim is very practical by design. I think some practical additional security features in Nim (pre- and post conditions for instance) make more sense than interaction with Rust or Haskell. Somewhere I read that the Nim developers plan to add pure functions (like Haskell). This would be the first step in that direction.

Re:A small kernel written in Nim by def- on Tuesday May 05, 2015 @01:57PM (#9493904)
You can use the noSideEffect pragma for that already.