4 ms·
Interesting that Nim is slightly faster than C it considering that it compiles down to C.
by ilitirit 7y ago
Interesting that Nim is slightly faster than C it considering that it compiles down to C.
- Lerc 7y agoThat's possibly because of the "Code must follow best practices" restriction. Oftentimes compile to C is "It's C Jim, but not as we know it" You can write C as if it is a SSA VM or similar intermediate representation that leaves very little work for the first stages of the compiler.
- niofis 7y agoThat's correct, as the nim's generated C code is not idiomatic.