News for hackers. Stuff that matters.
Re:Zig 0.8.0 Release Notes by pjmlp on Saturday June 05, 2021 @03:02AM (#27402871)
> The idea of including a C++ and a C compiler gratis is brilliant, and solves a big interoperability headache very elegantly.

C++ did it first, having been born at same place as UNIX and C, all major C compiler vendors quickly added it into the box.

Re:Zig 0.8.0 Release Notes by ncmncm on Saturday June 05, 2021 @03:28AM (#27402999)
It would be better if a C or C++ header sufficed to declare things so they may be called directly from Zig, without need for matching declarations in Zig. Or, do they? For it to be useful, types would need to be imported, too. That would need destructor and overloading support. Which is doable.
Re:Zig 0.8.0 Release Notes by somethingor on Saturday June 05, 2021 @05:36AM (#27403571)
Re:Zig 0.8.0 Release Notes by ncmncm on Saturday June 05, 2021 @05:38PM (#27408652)
OK, that is very cool. It makes Zig seem like a markedly better choice than Rust for adoption in Linux.
Re:Zig 0.8.0 Release Notes by pjmlp on Saturday June 05, 2021 @05:10AM (#27403464)
Depends how much modern C and C++ Zig wants to implement in order to understand the types.

Generics, lambdas, concepts, templates, exceptions, ....

Re:Zig 0.8.0 Release Notes by ncmncm on Saturday June 05, 2021 @05:40PM (#27408667)
If Zig doesn't have lambdas yet, that is a clear omission. It would be wise to reserve syntax for it early.