Re:Zig is now self–hosted by default
by Schroedingersat on Saturday August 20, 2022 @08:36AM
(#32531575)
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
[ Parent
| on HN ]
Starting from auto-generated code isn't considered a proper bootstrap process by the Bootstrappable Builds project. You need to be able to start without any binaries or auto-generated code from the project itself. Usually that would mean starting with a basic implementation in another language, but starting with an older version of the same project that was written in another language and then going through several older versions of different milestones is often easier than reimplementing the language from scratch in another language.
> Starting from auto-generated code isn't considered a proper bootstrap process by the Bootstrappable Builds project.
Is there a reason we should weigh the Bootstrappable Builds project's opinion highly here?
There's nothing on their benefits page that is subverted by an auto-generated compiler that's hand maintained.
Actually, there's no mention of auto-generated code in their best-practices section. Do you have a link to where they even say this?
I am quite sure bootstraping as concept, precedes by several decades that website.
Re:Zig is now self–hosted by default
by Schroedingersat on Saturday August 20, 2022 @09:18AM
(#32531860)
Please read comments before responding
Re:Zig is now self–hosted by default
by edflsafoiewq on Saturday August 20, 2022 @10:57AM
(#32532481)
Why?
Re:Zig is now self–hosted by default
by hiccuphippo on Saturday August 20, 2022 @11:16AM
(#32532630)
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.
I think because Zig compilers can compile C but not C++.