3 ms·
How is the compiler, speed wise? One thing I really like about Go and really don't like about Rust are their relative compiler speeds. I think it makes a big di
by eikenberry 5y ago
How is the compiler, speed wise? One thing I really like about Go and really don't like about Rust are their relative compiler speeds. I think it makes a big different for the language and Nim has a chance to get this right as they didn't make the mistake of using LLVM and it's bad compiler UX.
- TylerE 5y agoPretty good. The actual compilation is via clang, so there's a lot of heavy lifting done by that. So basically nim actually compiles .nim -> .c -> binary
- elcritch 5y agoIt’s good to note that the C/C++ generated by Nim compiles much faster than normal C/C++ code since they don’t include a lot of headers.
- nimmer 5y agoNim compiles to C and then runs GCC (not LLVM) to compile the binary. Overall, it's much faster than Go and Rust.
- isubasinghe 5y agoI get that Nim can be faster than Go but I don't see how it can be faster than Rust, could you please elaborate as to why?
- FridgeSeal 5y agoThey probably mean the compilation is much faster than Rust.
- nimmer 5y agoI was referring to compilation time... given the question.
- iamcreasy 5y agoIs transpiled C readable?
- mrweasel 5y agoFor my small learning projects, on old hardware, I’d say about the same as Go.