4 ms·
Another reason: compile times are super fast compared to Rust and C++ even with lots of metaprogramming.
by arc776 6y ago
Another reason: compile times are super fast compared to Rust and C++ even with lots of metaprogramming.
- nikki93 6y agoI think this is really important for application programming, and one of the things that is promising to me about Nim. Also the metaprogramming / DSL stuff helps create eg. specific DSLs for UI programming and things like that (something we've seen people like with JSX in React for example). Can do things as far as https://github.com/krux02/opengl-sandbox https://github.com/krux02/opengl-sandbox (OpenGL pipeline DSL) or https://github.com/yglukhov/nimsl https://github.com/yglukhov/nimsl (literally converts Nim functions to GLSL (!)).
- cb321 6y agoCompile times can be even faster (like 200 milliseconds) with the TinyCC/tcc backend. (Of course, optimization of the generated machine code suffers some.)