News for hackers. Stuff that matters.
Re:Meta Releases LLM Compiler by sagarm on Saturday June 29, 2024 @03:21PM (#40832800)
The three-way comparison operator just needs to return a ternary, and many comparisons boil down to integer subtraction. strcmp is also defined this way.

In C++20 the compiler will automatically use the spaceship operator to implement other comparisons if it is available, so it's a significant convenience.

There are no comments on this comment yet.