9 ms·
The Zig project is able to compile C because it embeds LLVM. This is different and has different use cases, imo. Example: this may be a good alternative fronten
by mitchellh 5y ago
The Zig project is able to compile C because it embeds LLVM. This is different and has different use cases, imo. Example: this may be a good alternative frontend for C compilation in Zig under specific scenarios.
- dnautics 5y agoI think incremental compilation and hotswapping are some of those use cases, but I could be wrong about that (I'm not entirely sure if/why LLVM can't do it)
- pjmlp 5y agoIt can partially do that already, thanks to CERN and others collaborating on its C++ JIT. 2021 LLVM Developers Meeting “Enabling Interactive C++ with Clang” https://www.youtube.com/watch?v=33ncbIQoa4c https://www.youtube.com/watch?v=33ncbIQoa4c Currently the best developer experience for hot code reload for C++ is Visual C++ 2022.
- gavinray 5y agoIt would be fair to say this is mostly due in particular to the work of Vassil Vassilev and Axel Naumann rather than all of CERN. If you're interested, they have monthly meetups open to the public, with fantastic speakers and presentations: https://compiler-research.org/meetings/ https://compiler-research.org/meetings/
- pjmlp 5y agoSure, I also didn't meant it was all of CERN. Back in my days, ROOT wasn't getting much love on my department, we were focused more in Python bindings.