News for hackers. Stuff that matters.
Re:NimConf 2020 Videos by filleokus on Saturday June 20, 2020 @05:35PM (#23587522)
Is there any usage of Nim in “production”? How is the performance of the compiled code (and also the compiler)?

(NB: I love a fun new language to play with as much as the next guy, just curious)

Re:NimConf 2020 Videos by mratsim on Saturday June 20, 2020 @06:30PM (#23587959)
As the resident Nim optimizer, if you can reach some performance in C, you can reach it in Nim.

With some work you can even reach the performance of code which is 95% assembly and has been tuned for years (i.e. matrix multiplication):

- Reaching C Quake code speed in Nim: https://forum.nim-lang.org/t/5124#32241

- Reaching and going beyond OpenBLAS + OpenMP performance (almost pure Assembly): https://github.com/mratsim/weave/issues/68#issuecomment-5717...

- Faster than C++ on Raytracing bench: https://github.com/mratsim/weave/tree/9f0c384f/demos/raytrac...

- Faster than C++ on another Raytracing implementation: https://github.com/mratsim/trace-of-radiance/tree/v0.2.0

Also Nim is easy to integrate with Intel VTune, Apple Instruments and perf. You have full control on the data layout, prefetching and the same control as C over cache and memory usage if you so wish it (i.e. the GC is not a hindrance, you have easy escape hatches).

Re:NimConf 2020 Videos by planetis on Saturday June 20, 2020 @05:36PM (#23587532)
Short answer yes. See: https://github.com/nim-lang/Nim/wiki/Companies-using-Nim

People usually announce this stuff in the forum before this page is edited so you might want to search there as well.

Re:NimConf 2020 Videos by Isomorpheus on Saturday June 20, 2020 @06:47PM (#23588077)
2/12 of those are dead links
Re:NimConf 2020 Videos by planetis on Sunday June 21, 2020 @04:16AM (#23590638)
Here is the first one: https://github.com/OnsetGame

Maybe someone can find the other.