News for hackers. Stuff that matters.
Re:Nim vs Rust Benchmarks by abainbridge on Monday February 07, 2022 @09:45AM (#30245514)
I wouldn't have down voted this comment, but I guess people are objecting because using C as the backend doesn't really tell us anything about performance. If the C code the Nim compiler generates is inefficient, the resulting program will still be slow. I imagine it is difficult to convert a Nim program into efficient C.
Re:Nim vs Rust Benchmarks by otherme123 on Monday February 07, 2022 @10:34AM (#30246227)
E.g. the Json interface of the Nim stdlib is not the quickest, but there are some third party libraries, 100% Nim, really fast (jsony). A look a both reveals that the problem is not the Nim compiler, but the algorithm used and intended usage.
Re:Nim vs Rust Benchmarks by wyldfire on Monday February 07, 2022 @12:42PM (#30248233)
I tried to qualify it "should put it in a good position" but I guess I wasn't handwavy enough. Indeed, the C code could be inefficient. But, for example, nim uses a C backend unlike Python which interprets bytecode.