News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by dllthomas on Sunday August 28, 2016 @10:23PM (#12379598)
> C is very close to the hardware

At this point, I'd more say that the hardware does an awful lot of work trying to look like it's close to C.

Re:Zig: a system language which prioritizes optimality, safe... by bradhe on Sunday August 28, 2016 @10:40PM (#12379642)
It's an interesting phenomenon, specifically how processor companies (erm, Intel), who make "general purpose" CPUs, have clearly made trade offs to optimize for OSes that behave like UNIX or Windows varients!
Re:Zig: a system language which prioritizes optimality, safe... by dbcurtis on Sunday August 28, 2016 @11:07PM (#12379756)
Well, in fact, Intel and all the other major makers spend a huge amount of effort benchmarking important workloads. It isn't a decision to optimize for Unix or Windows, it is a decision to chase dollars. They will optimize processors for your favorite workload, too. Just demonstrate how many millions of dollars of business your workload represents, and create some sound benchmarks for it. Easy.
Re:Zig: a system language which prioritizes optimality, safe... by dman on Tuesday August 30, 2016 @03:54PM (#12393336)
Any information on how many millions before a workload becomes interesting to Intel/AMD/Nvidia?
Re:Zig: a system language which prioritizes optimality, safe... by jakub_h on Monday August 29, 2016 @08:37AM (#12381420)
Well it's certainly better than what they were doing before, trying to look like the iAPX 432 with their memory segments and all that stuff.
Re:Zig: a system language which prioritizes optimality, safe... by lohankin on Sunday August 28, 2016 @11:14PM (#12379776)
This seems to be changing. Hardware is trying to move closer to java -by adding support of GC, bounds checks, etc - something that won't help C programs as much.
Re:Zig: a system language which prioritizes optimality, safe... by Sanddancer on Sunday August 28, 2016 @11:22PM (#12379802)
Unfortunately, the C compiler devs didn't implement the bounds checking extensions of C11, etc. It would have been really nice to have a good checked C that was the standard.
Re:Zig: a system language which prioritizes optimality, safe... by pjmlp on Monday August 29, 2016 @11:17AM (#12382397)
Making it optimal is not a way to foster adoption.
Re:Zig: a system language which prioritizes optimality, safe... by dllthomas on Monday August 29, 2016 @11:54PM (#12387419)
Sounds like a great way, actually.

... I assume that you meant "optional".

Re:Zig: a system language which prioritizes optimality, safe... by pjmlp on Tuesday August 30, 2016 @03:13AM (#12388098)
Yeah, every time I post to HN via mobile, my autocorrection plays such jokes on me, when I type in a hurry.