News for hackers. Stuff that matters.
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
Re:Zig is now self–hosted by default by pabs3 on Saturday August 20, 2022 @08:49AM (#32531668)
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.

https://bootstrappable.org/

Re:Zig is now self–hosted by default by Kamq on Saturday August 20, 2022 @12:09PM (#32533062)
> 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?

Re:Zig is now self–hosted by default by pjmlp on Saturday August 20, 2022 @12:12PM (#32533091)
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.
Re:Zig is now self–hosted by default by Gibbon1 on Saturday August 20, 2022 @05:05PM (#32535133)
I think because Zig compilers can compile C but not C++.
Re:Zig is now self–hosted by default by int_19h on Saturday August 20, 2022 @05:37PM (#32535328)
Zig can compile C++ just fine. Which is no surprise, since it's Clang doing the heavy lifting - Zig provides the convenient CLI.