News for hackers. Stuff that matters.
Re:OpenBSD C/C++ Toolchain in the Browser by exitb on Monday October 27, 2025 @11:30AM (#45722103)
A word of warning - this appears to download 350MB right away after you visit.
Re:OpenBSD C/C++ Toolchain in the Browser by munchlax on Monday October 27, 2025 @12:27PM (#45722892)
Thanks. That may well be enough to trash firefox all day.
Re:OpenBSD C/C++ Toolchain in the Browser by webdevver on Monday October 27, 2025 @01:23PM (#45723782)
it would be good to analyze which of those .text/data sections are actually visited - i recall someone running the Vivado FPGA toolset, that is notoriously massive (90GB+) over a special FUSE fs that tells you which files were accessed, and then stripping out the ones that weren't, leading ot substantial wins.

to be honest, it is surprising that a toolchain could be 350MB - that is a lot of code, if thats what it is.

Re:OpenBSD C/C++ Toolchain in the Browser by whitequark_ on Monday October 27, 2025 @04:09PM (#45725685)
122 MB of it is Wasm machine code of a MinSizeRel LTO build of LLVM; it is compressed to 23 MB by Zstandard when your HTTP client supports that. That is about as small as you can get an LLVM/Clang/LLD bundle to be, and I put a lot of effort into making it smaller.

248 MB of it is an OpenBSD sysroot; it is compressed to 45 MB by Zstandard when your HTTP client supports that. I have not used OpenBSD and have no particular insight into what's inside.

Re:OpenBSD C/C++ Toolchain in the Browser by whitequark_ on Monday October 27, 2025 @04:04PM (#45725641)
If your browser has Zstandard support, it downloads only 100MB. But yes, this is a proof-of-concept that needs some fixes.