News for hackers. Stuff that matters.
Re:LLVM 7.0.0 released by ksec on Wednesday September 19, 2018 @10:15AM (#18024297)
I never view Go as a competitor to C, and Rust is more of an competitor to C++.

Zig reads to me as something actually trying to displace C. Or C with no corner cases and some modern features.

Re:LLVM 7.0.0 released by bluejekyll on Wednesday September 19, 2018 @11:14AM (#18024726)
Can you explain what constitutes a competitor to C? C++ and Rust (possibly Zig, I’ve barely looked at it) are both in the same category of low overhead languages that can operate in the same restricted environments as C. I don’t understand the distinction being drawn here.
Re:LLVM 7.0.0 released by kjeetgill on Wednesday September 19, 2018 @12:03PM (#18025180)
Zig maintains much more of the smaller scope and minimal feel of C compared to a C++ and Rust.

Sure C is more convenient that C++ in a few domains, but I'd suspect that plenty of C fans that "hate C++" will find more to like in Zig. It's about the features it doesn't have.

Re:LLVM 7.0.0 released by bluejekyll on Wednesday September 19, 2018 @12:51PM (#18025597)
Ah, so more talking about the competition to win over the mindshare of people who enjoy C, as opposed to technical competition and merits of the languages.

I might personally describe that differently, as I felt like the GP was implying that C++ and Rust couldn't be used in the same space as C, which isn't quite true.

One challenge C++ has always had is that the language overhead, while easier in some contexts, didn't bring with it significant safety guarantees. As more people are introduced to safer, low overhead languages, I anticipate that to change.

Re:LLVM 7.0.0 released by zbentley on Wednesday September 19, 2018 @11:51AM (#18025086)
> Zig reads to me as something actually trying to displace C

Shout out for DABC, another really enjoyable-to-work-with system in that space!

https://dlang.org/spec/betterc.html

Re:LLVM 7.0.0 released by IshKebab on Wednesday September 19, 2018 @10:38AM (#18024477)
Go is definitely a competitor to C, but only in places where you can tolerate a garbage collector. Zig seems to be a competitor to C in places where you can't.
Re:LLVM 7.0.0 released by protomikron on Wednesday September 19, 2018 @11:52AM (#18025091)
I would say Go is more a competitor to Java.
Re:LLVM 7.0.0 released by pjmlp on Wednesday September 19, 2018 @12:22PM (#18025348)
Not until they up their game in modern language features.

Until then they are pretty much a competitor to what would be otherwise a userspace C application.

Assuming having a GC enabled language isn't an issue to meet application SLAs.

Re:LLVM 7.0.0 released by andrewflnr on Wednesday September 19, 2018 @09:14PM (#18028976)
I'd say Go is a competitor to Java in terms of business case, not language features. In a similar way it competes with Python. You occasionally hear (heard? It's been a while) of Python projects getting rewritten in Go.
Re:LLVM 7.0.0 released by pjmlp on Thursday September 20, 2018 @01:33AM (#18030003)
Besides the language features, Go is not a match for the wealth of graphical tooling, IDE support, deployment targets and libraries of Java world.

Naturally people port code from Python to Go.

It is what happens when one uses scripting languages for a full blown application and then discovers how slow it is.

Then Go gets choosen cause Google is cool and Oracle is bad.

Meanwhile corporations keep using Java, .NET, JavaScript and C++ as their main workhorses.

Go's selling points are Docker and Kubernetes, and not everyone is actually using them.

Re:LLVM 7.0.0 released by mlindner on Wednesday September 19, 2018 @06:25PM (#18028150)
Just because the language has low language feature count doesn't make it a competitor to C.
Re:LLVM 7.0.0 released by pjmlp on Thursday September 20, 2018 @01:26AM (#18029989)
It does given the authors and the use cases Google has been applying it to.

TCP/IP stack and file system utilities in Fucshia, Kubernetes, Android OpenGL/Vulkan debugger, UEFI replacement, DNS server

Re:LLVM 7.0.0 released by knocte on Wednesday September 19, 2018 @11:01AM (#18024630)
I disagree, Go ignores errors by default. No sane C dev would accept that as an "upgrade".
Re:LLVM 7.0.0 released by skybrian on Wednesday September 19, 2018 @11:18AM (#18024759)
What do you mean? Error checking for C is very inconsistent (sentinel values and errno), so surely that's worse?
Re:LLVM 7.0.0 released by simias on Wednesday September 19, 2018 @11:43AM (#18025024)
I think they mean that C coders have wrestled so much with the language's terrible error handling mechanics (or lack thereof) that it's probably one of the first thing they'd want fix when "upgrading" languages. I would tend to agree.
Re:LLVM 7.0.0 released by knocte on Wednesday September 19, 2018 @11:36PM (#18029577)
Upgrading error handling is great, but Go has the worst approach on doing it.
Re:LLVM 7.0.0 released by skybrian on Thursday September 20, 2018 @12:08AM (#18029711)
Worse than checked exceptions (Java)? How about unchecked exceptions?
Re:LLVM 7.0.0 released by detaro on Wednesday September 19, 2018 @11:16AM (#18024743)
In what way does C not ignore errors?
Re:LLVM 7.0.0 released by presscast on Wednesday September 19, 2018 @12:13PM (#18025276)
>I never view Go as a competitor to C

I think it is in the sense that you (usually) should never write network-facing C code.

Re:LLVM 7.0.0 released by mlindner on Wednesday September 19, 2018 @06:24PM (#18028142)
I guarantee that almost any device you ever use in your day to day life has network-facing C code, if it has a network connection at all. What language do you think router/switch firmware is written in?
Re:LLVM 7.0.0 released by presscast on Friday September 21, 2018 @11:43AM (#18040514)
If you prefer: "there are very few cases in which it's legitimate to write network-facing C code".