4 ms·
No indication of how large these programs are ... It would be amazing to have a compiler respond in 0.3s. I don't think I've ever experienced that. I've had sc
by pjc50 8y ago
No indication of how large these programs are ...
It would be amazing to have a compiler respond in 0.3s. I don't think I've ever experienced that. I've had scripting languages take longer to spin up. My current work test suite takes twenty minutes. I've had C++ programs take over ten minutes just in the linker.
- runevault 8y agoWe'll see if it holds up in the real world but Jon Blow has been working to keep Jai compiles on his game in it (I think it's at like 80k lines of code? might have that number wrong) under a half second, mind you that's not an optimized build, though you can run it through LLVM at a slower pace.
- Roboprog 8y agoI remember back in the early 90s having a copy of both Borland packages Pascal and C++ for Windows (3.x). They had similar demo programs. I compared one of them (forgot which) The C++ demo would build in 5 minutes on my machine. The [Object] Pascal demo would build in 5 seconds. The C++ package got shipped back. Ain’t nobody got time for that.
- shakna 8y agotcc [0] confines you to an older subset of C, and I don't believe it's still under serious development, but it is fast. Fast enough you can use it like a scripting language for most use cases. [0] https://bellard.org/tcc/ https://bellard.org/tcc/
- flukus 8y agoI find GCC compile times to be unnoticeable and perfectly usable as a scripting language, certainly competitive with the startup time of many scripting languages. By the time you're getting to noticable compile times your well into "this should be a proper project" territory, but everything from small scripts to simple GUI programs compile quickly. I wrote my own shebang scripts but there's a more full featured implementation here: https://github.com/RhysU/c99sh https://github.com/RhysU/c99sh