News for hackers. Stuff that matters.
Re:Ruma, a Matrix homeserver written in Rust by biokoda on Monday July 04, 2016 @03:10AM (#12029269)
Right now I'm working on something where the choice was between Nim or Rust. I required integration with lots of C/C++ code and there are callbacks from C that execute my code, Nim was the clear choice.

The main app is C that links all my libs together, but the actual C code just calls a Nim to execute the code. I talk to all the C libs using Nim.

I'm very happy with that decision. It was a breeze to setup and is great to work with.

Re:Ruma, a Matrix homeserver written in Rust by baq on Monday July 04, 2016 @07:00AM (#12029981)
> I required integration with lots of C/C++ code and there are callbacks from C that execute my code, Nim was the clear choice.

i don't follow - Rust integrates with C quite well, too.

Re:Ruma, a Matrix homeserver written in Rust by biokoda on Monday July 04, 2016 @10:20AM (#12030916)
If it did as well as Nim the person I'm replying to would not have the issues he is describing.
Re:Ruma, a Matrix homeserver written in Rust by steveklabnik on Monday July 04, 2016 @02:15PM (#12032158)
Could you elaborate with more specifics here? How is nim's interfacing with C code nicer than Rust's?
Re:Ruma, a Matrix homeserver written in Rust by ambrop7 on Monday July 04, 2016 @12:46PM (#12031718)
Thanks for the hint, I must look at Nim sometime :)