News for hackers. Stuff that matters.
Re:John Carmack's arguments against building a custom XR OS ... by WalterBright on Saturday August 30, 2025 @05:48AM (#45073339)
I may be the only person who ever understood every detail of C++, starting with the preprocessor. I can make that claim because I'm the only person who ever implemented all of it. (You cannot really know a language until you've implemented it.) I gave up on that in the 2000's. Modern C++ is simply terrifying in its complexity.

(I'm not including the C++ Standard Library, as I didn't implement it.)

Re:John Carmack's arguments against building a custom XR OS ... by WalterBright on Saturday August 30, 2025 @07:58AM (#45073884)
P.S. we're adding an "Editions" feature to D so we can simplify the language by removing obsolete and deadend features. We didn't get everything right, and want to fix it!
Re:John Carmack's arguments against building a custom XR OS ... by metaltyphoon on Saturday August 30, 2025 @10:14AM (#45074864)
This is one thing Rust did it right and I hope more languages adopt this.
Re:John Carmack's arguments against building a custom XR OS ... by cornstalks on Saturday August 30, 2025 @01:05PM (#45076201)
You've done some great work but I have to call BS with this claim:

> I'm the only person who ever implemented all of it.

Sean Baxter is an easy counter example.

Re:John Carmack's arguments against building a custom XR OS ... by WalterBright on Saturday August 30, 2025 @02:05PM (#45076767)
I don't know much of anything about him. Did he implement the preprocessor? the optimizer? the code generator?

(For some context, back in the 80's, code generators needed enhancements to implement C++. You couldn't just use an existing one. Bjarne had to do some ugly workarounds because of this.)

Re:John Carmack's arguments against building a custom XR OS ... by tux3 on Saturday August 30, 2025 @04:29PM (#45077753)
Sean Baxter's circle compiler uses LLVM as a backend, but I believe the rest is from scratch.

Arguably these days having a clear frontend/backend separation is good compiler architecture. It might slow down compile times a bit, but it's worth the cost.

Re:John Carmack's arguments against building a custom XR OS ... by vkazanov on Saturday August 30, 2025 @06:28PM (#45078541)
So it sounds like he wrote the frontend of a cpp compiler? There's a lot of work in other layers as well.
Re:John Carmack's arguments against building a custom XR OS ... by WalterBright on Saturday August 30, 2025 @04:58PM (#45077952)
It wouldn't have made much sense to write the preprocessor these days, too, but it is part of the C++ compiler. Unless integrating it with the C++ lexer for speed purposes, as I did.
Re:John Carmack's arguments against building a custom XR OS ... by Conscat on Saturday August 30, 2025 @03:11PM (#45077194)
Sean Baxter single-handedly implemented all of up to C++23, and some C++26, including a huge number of GNU extensions and possibly an even larger number of his own features.
Re:John Carmack's arguments against building a custom XR OS ... by WalterBright on Saturday August 30, 2025 @05:39PM (#45078216)
Impressive!
Re:John Carmack's arguments against building a custom XR OS ... by skywal_l on Friday September 05, 2025 @09:28AM (#45138333)
Yep, too bad Circle never went anywhere...
Re:John Carmack's arguments against building a custom XR OS ... by ezoe on Sunday August 31, 2025 @09:50AM (#45083146)
Now, who can claim such bold... oh, it's YOU.