3 ms·
Very interesting. What I'm curious about is how this language is compiled, the implication seems to be that it gets translated to C/C++ which seems to overlap a
by dom96 8y ago
Very interesting. What I'm curious about is how this language is compiled, the implication seems to be that it gets translated to C/C++ which seems to overlap a lot with what we are doing with Nim :)
- strmpnk 8y agoIt seems to be an option to compile to C for platform support, but the page also says: > V is compiled directly to x86_64 machine code (ARM support is coming later) with no overhead, so the performance is on par with C. Which is interesting. There is a lot more information required still but direct may also imply that it's doing the actual instruction scheduling too rather than relying on LLVM. I'm looking forward to hearing more.
- amedvednikov 8y agoLLVM is not used.
- amedvednikov 8y agoOriginally it was compiled to C, now there's also an option to generate machine code directly which improved compilation time by a factor of 10.
- calebwin 8y agoWould you mind explaining why compiling to machine code was faster than to C?