News for hackers. Stuff that matters.
Re:Nim 1.6.2 by MrBuddyCasino on Friday December 17, 2021 @05:22AM (#29590254)
I've digged some more, and indeed in numeric tests Nim is often close to C. Its hard to find good data though, with documented compiler flags and recent versions.
Re:Nim 1.6.2 by shirleyquirk on Friday December 17, 2021 @05:37AM (#29590396)
There are definitely slow bits of the Nim stdlib; json parsing for example. String-heavy code is easy to make slow in Nim, too.
Re:Nim 1.6.2 by MrBuddyCasino on Saturday December 18, 2021 @08:45AM (#29604428)
Yes the benchmark against Crystal was heavy on strings (json & base64) and Crystal seems to do better there. Whats the reason, Nim using refcounting?