Hacker News new | ask | show | jobs
by ilitirit 2618 days ago
Interesting that Nim is slightly faster than C it considering that it compiles down to C.
1 comments

That'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.

That's correct, as the nim's generated C code is not idiomatic.