Hacker News new | past | comments | ask | show | jobs | submit login

> complex language requires long compile times.

My point is not so much that the language is complex, but that the compiler does a lot more stuff along the lines of correctness checking. If you take a C or C++ compiler and add in the equivalent level of checks that Rust is doing, can we expect it to be faster than the Rust compiler?

Are any of the other examples you're putting forth doing things of the same complexity? I know many of them have their own ways of providing assurances, but I know some of them are not compile-time (or at least not more than inserting instructions for run-time checks). You would know better than me, since you've expressed previously that you have experience with many of those, at least at a cursory level. Can you comment on what they're doing at a compile time level that's approaching or surpassing the complexity of the borrow checking in Rust?




Regarding C++ compilation, here is the latest blog entries regarding Visual C++ compilation speedups,

https://devblogs.microsoft.com/cppblog/improved-linker-funda...

https://devblogs.microsoft.com/cppblog/msvc-backend-updates-...

Another ways of improving compilation times:

D has fast compiler as reference implementation, leaving the hard work for gcc and llvm backends.

Eiffel uses a JIT for development, with AOT compilation via the C or C++ system compiler for production releases.

.NET Native, which now also supports F# (so H-N comes into play) takes advantage of MSIL, the development builds are a bit lightweight in optimizations and only the deployment via the store does the heavy crunching of optimizations, based on Visual C++ backend.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: