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

A bit offtopic, but when Rust will have incremental compilation? I just tested Piston's hello world and it takes 4 seconds to recompile. A bit too long for my taste.



It's a priority for this year with the ground work already completed last year:

https://github.com/rust-lang/rfcs/blob/master/text/1774-road...

https://blog.rust-lang.org/2016/09/08/incremental.html


It would be nice if they exposed these ideas, so that programs written in Rust can themselves become incremental.


What would this mean? Rust is AOT compiled, so I'm not quite understanding what it would mean for a program in Rust to become incremental.


Other programs are processing pipelines like a compiler, so the dependency graph code that computes when things need to be reprocessed could theoretically be extracted and published as a reusable library.


Ah ha! I see, that makes perfect sense, thanks.


That could be incredibly helpful to implement stuff like livecoding.


There is a lot of work already done, and more to do on this topic. The best source is the main tracking issue: https://github.com/rust-lang/rust/issues/2369


I would recommend this link actually: https://github.com/rust-lang/rust/milestones?state=open




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

Search: