Live data from Hacker News

Zig is now self–hosted by default

github.com

21–30 of 115 posts

Re: Zig is now self–hosted by default

#22
post #20

Earlier quoted context omitted.

You can use it today!

Is there any IDE support? Any debugger?

any debugger support DWARF should work just fine.

Also imagine it's the same on Windows. Anything that can manage a PDB file should work

Re: Zig is now self–hosted by default

#23
post #18

We changed the URL from https://github.com/ziglang/zig/issues/89 .

Originally it was meant to be https://github.com/ziglang/zig/issues/89#issuecomment-122118..., but somehow last aprt was stripped. But that doesn't matter, thank you so much! New URL is definitely better.

Re: Zig is now self–hosted by default

#27
post #5

Very exciting. Are there plans to maintain the bootstrap path over the longer term? It always makes me sad when I hear about compilers which must bootstrap from magic binary blobs.

I believe the goal is to replace the C++ with a C bootstrap that is initially auto generated from the zig code by zig but manually cleaned up and maintained to match

Why?

Re: Zig is now self–hosted by default

#28

To clarify what this means, since things can get confusing with subtle differences in wordings: * stage1 is when zig is built from C++ code[1] (the "bootstrap" compiler) using system C/C++ compiler toolchain. * stage2 is when zig is built from Zig code[2] using stage1. * stage3 is when zig is rebuilt from the same Zig code[2] using stage2. Before today, zig would give you stage1 by default, and you could opt in to st…

> having better debug tooling What debug tooling are you referring to? It seems like people just use lldb to debug zig programs? I'm honestly interested, and searching doesn't turn up good tools as far as I can tell.

Maybe the runtime safety in debug builds? Like for out of bounds, int overflows, etc. In my zig projects those checks have saved me from using a debugger or valgrind in many cases.

Re: Zig is now self–hosted by default

#29

> Memory usage is improved by a factor of about 3x. For Zig, building itself went from using 9.1 GiB to 2.7 GiB. Pretty impressive.

Andrew did a nice talk on the kinds of modifications that were necessary to get those improvements https://vimeo.com/649009599

Re: Zig is now self–hosted by default

#30

Earlier quoted context omitted.

I believe the goal is to replace the C++ with a C bootstrap that is initially auto generated from the zig code by zig but manually cleaned up and maintained to match

Why?

Probably because they'll start adding features to the Zig version that might not be trivially portable to the C++ version due to architectural differences.
Post reply on HN