Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thank you the distributed compile usecase is a fun one to think about. I can see why it would require some intermediate set of bytes to shuffle across the network.

> Being backed by disk locally mainly helps for incrementally building so that you can change one file and only recompile intermediate files for translation units that depend on this file.

For the local incremental usecase I’d love to see a more state-full compiler instead. One that could change the bytes of a binary instead. e.g. give all functions some additional “empty padding”. Then any modifications could directly fit into the binary as needed until some defragmentation process which creates the final output binary.



Don't quote me on this, but I do believe MSVC does exactly this by default. The option is /INCREMENTAL.

That said, it accomplishes this still using an on-disk datastore.




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

Search: