News for hackers. Stuff that matters.
Re:Goodbye to the C++ Implementation of Zig by AndyKelley on Thursday December 08, 2022 @04:50PM (#33914066)
Thank you for the compliment.

I have some interesting news for you... Go is a smashing success, wildly popular, and eating Java's lunch. It is an objectively incorrect generalization to say that people dislike Go.

Re:Goodbye to the C++ Implementation of Zig by pron on Thursday December 08, 2022 @05:07PM (#33914335)
Whoa, slow down there :) Go is certainly a success in absolute terms, making it to the top ten in some rankings, but at age 13 -- an age by which virtually all languages have either reached or neared their all-time peak with only a single exception I can think of -- it's only ~1/10th as popular as Java [1][2], and not eating nearly as much of its lunch as PHP or Ruby did back in the day.

[1]: https://www.devjobsscanner.com/blog/top-8-most-demanded-lang...

[2]: https://www.hiringlab.org/2019/11/19/todays-top-tech-skills/

Re:Goodbye to the C++ Implementation of Zig by azakai on Thursday December 08, 2022 @05:46PM (#33914849)
1/10th as popular as one of the by-far most popular programming languages of all time is still a huge success story.
Re:Goodbye to the C++ Implementation of Zig by AndyKelley on Thursday December 08, 2022 @05:09PM (#33914369)
Fair point! Thank you for adding nuance to the discussion.
Re:Goodbye to the C++ Implementation of Zig by auggierose on Thursday December 08, 2022 @05:14PM (#33914455)
What is the exception?
Re:Goodbye to the C++ Implementation of Zig by bmicraft on Thursday December 08, 2022 @05:45PM (#33914832)
I pretty sure that would be python
Re:Goodbye to the C++ Implementation of Zig by clord on Thursday December 08, 2022 @05:17PM (#33914498)
Certainly Haskell is an exception; it has a distinct bimodal distribution, if not more.
Re:Goodbye to the C++ Implementation of Zig by hoosieree on Thursday December 08, 2022 @07:12PM (#33915693)
Lisp's popularity, when plotted, resembles a bunch of tipped-over parentheses.
Re:Goodbye to the C++ Implementation of Zig by yazzku on Thursday December 08, 2022 @11:11PM (#33917335)
Learning it right now.
Re:Goodbye to the C++ Implementation of Zig by pa7ch on Thursday December 08, 2022 @05:06PM (#33914329)
Agreed, go has kept me liking programming because, for me, it most the most reliable tool for making trustworthy software. All langs have tradeoffs and areas they excel in but go brings me the most joy/motivation.

Its nice to see a language with similar philsophies tackle the space where go isn't as good at: when you don't want a GC and you need to interface with C. For many that is Rust and I respect it, but I think Rust values concurrency "safety" too high and makes too many compromises in language design to achieve it. Memory safety is a BIG deal to me, without it, sufficiently complex software has never ending CVE's but concurrency bugs just doesn't cause anywhere close to the same number of security problems (orders of magnitude) and crashing programs is fine in most applications and I find concurrency bugs usually are easy to fix early in application lifecycle.

Re:Goodbye to the C++ Implementation of Zig by zozbot234 on Thursday December 08, 2022 @05:14PM (#33914452)
Rust only protects against data races, not general concurrency bugs.
Re:Goodbye to the C++ Implementation of Zig by aidenn0 on Thursday December 08, 2022 @05:59PM (#33914978)
Stroustrup's law applies here: there are two types of languages: languages people complain about and languages nobody uses.
Re:Goodbye to the C++ Implementation of Zig by acedTrex on Thursday December 08, 2022 @05:03PM (#33914269)
> It is an objectively incorrect generalization to say that people dislike Go

It is not, people USE go, they do not like go really.

Re:Goodbye to the C++ Implementation of Zig by bmurphy1976 on Thursday December 08, 2022 @05:18PM (#33914506)
Nonsense. I love it and I've been programming since the 80's.

I watched (and used) C++ as it grew into the monstrosity it is today. I've written and maintained production code in F#, C#, Python, Ruby, Perl, Java, JavaScript, Go, PHP, Lua, VBScript, Visual Basic, C, and C++ and every variant of shell scripting imaginable.

I've spent time working with Erlang, Haskell, Rust and a variety of other exotic languages because I found it interesting. I created a port of Clojure's Transducers to C# because I could.

I am not afraid of abstractions, functional programming, or complicated CompSci concepts. And yet I keep going back to Go.

Re:Goodbye to the C++ Implementation of Zig by titzer on Thursday December 08, 2022 @06:49PM (#33915486)
PL arguments are like:

"I like icecream."

"You idiot! I hate icecream and think everyone who likes icecream is a raging moron who deserves having their teeth rot out of their head! I wish their teeth would rot out tomorrow because I am so sick of waiting for it!"

Re:Goodbye to the C++ Implementation of Zig by booleandilemma on Thursday December 08, 2022 @06:13PM (#33915101)
I like Go as a language in the abstract sense, but the experience of writing Go code is so tedious to me. Refusing to compile if there's an unused variable or unused import is too harsh - at least give me the option to make these things warnings.
Re:Goodbye to the C++ Implementation of Zig by sidlls on Thursday December 08, 2022 @07:27PM (#33915833)
Having unused variables or unused imports makes the code dirty and should be treated as errors. It's one of the (few) good things about Go.
Re:Goodbye to the C++ Implementation of Zig by IlliOnato on Friday December 09, 2022 @07:05AM (#33920370)
In production code? Absolutely. While you experiment, write throw-away code, debug? Hell no!
Re:Goodbye to the C++ Implementation of Zig by wtetzner on Friday December 09, 2022 @09:14AM (#33921394)
Sure, but it’s a lot of extra friction when iterating/debugging.
Re:Goodbye to the C++ Implementation of Zig by s_c_r on Tuesday December 20, 2022 @01:01PM (#34069653)
My usual approach is to comment stuff out while debugging/developing. Works well.
Re:Goodbye to the C++ Implementation of Zig by thadt on Thursday December 08, 2022 @05:16PM (#33914481)
This is true, I don't really like Go. After years of writing code in Assembly, C, C++, Perl, Basic, C#, Java, Python, Rust, JavaScript, TypeScript, Lua, Zig, and Go I find that what I really like is good tooling, and code that is easy to read and reason about. Go the language and toolset happen to do this really rather well at the moment though.
Re:Goodbye to the C++ Implementation of Zig by lordgroff on Thursday December 08, 2022 @05:10PM (#33914384)
Really? I like Go, I might even love it.
Re:Goodbye to the C++ Implementation of Zig by phinnaeus on Thursday December 08, 2022 @05:11PM (#33914404)
I like Go