News for hackers. Stuff that matters.
Re:Go 1.19 Beta 1 is released by quixoticelixer- on Saturday June 11, 2022 @02:27AM (#31702432)
Yeah i really don't understand the advantage of go over c#. Async maybe?
Re:Go 1.19 Beta 1 is released by kjeetgill on Saturday June 11, 2022 @02:44AM (#31702492)
I'd argue goroutines are a mostly better alternative to async. Maybe a bit less optimal for a vast improvement of ergonomics and applicability.
Re:Go 1.19 Beta 1 is released by jpgvm on Saturday June 11, 2022 @03:05AM (#31702588)
Goroutines are better than C# async/await but C# is still a better language than Go.

When Java 19 lands you can have best of both worlds. Virtual Threads are equivalent to goroutines but you have access to better languages like Java, Kotlin and Clojure.

Re:Go 1.19 Beta 1 is released by morelisp on Saturday June 11, 2022 @03:51AM (#31702755)
I don't think virtual threads will be fully baked in time for production use at Java 19. IMO we'll be waiting at least one and probably two more releases.

Valhalla has also produced an amount of language machinery that results in most of the same issues as Go. (E.g. "is this function receiving an interface or concrete value?" becomes "do I have a class, value class, or primitive class?") The performance ripples of requiring value objects to be immutable also remains to be seen.

Re:Go 1.19 Beta 1 is released by jpgvm on Saturday June 11, 2022 @05:49AM (#31703253)
True. I intend to start using them the moment they land in preview but there is still some caveats (namely how they interact with synchronized).

I think by Java 21 they will be rock solid though which isn't really that far away in Java timescales.

Re:Go 1.19 Beta 1 is released by morelisp on Saturday June 11, 2022 @07:13AM (#31703637)
Sure, but by Java 21 we'll have Go 1.21 with a couple release cycles to push generics into stdlib, and we're back to more or less useless debates about aesthetic preferences and tooling priorities again.
Re:Go 1.19 Beta 1 is released by kaba0 on Saturday June 11, 2022 @07:00AM (#31703567)
Aren’t they in preview in 19 already?
Re:Go 1.19 Beta 1 is released by jpgvm on Saturday June 11, 2022 @09:12AM (#31704202)
Yes technically as they have been merged but 19 isn't out until September, you can download early-access builds today but we won't see a release build until the official release date.
Re:Go 1.19 Beta 1 is released by kaba0 on Saturday June 11, 2022 @07:00AM (#31703564)
> The performance ripples of requiring value objects to be immutable also remains to be seen

Immutability is trivial to optimize away.

Re:Go 1.19 Beta 1 is released by zija on Saturday June 11, 2022 @04:22AM (#31702862)
C# team began experimenting with green threads: https://twitter.com/davidfowl/status/1532880744732758018?t=P...
Re:Go 1.19 Beta 1 is released by jpgvm on Saturday June 11, 2022 @05:47AM (#31703243)
Well that is very cool!
Re:Go 1.19 Beta 1 is released by quixoticelixer- on Saturday June 18, 2022 @01:16AM (#31787406)
Yeah goroutines is what i meant by better async. I've used the clojure async stuff a fair bit which was heavily inspired by goroutines and it is quite nice.