|
|
Subscribe / Log in / New account

Generics for Go

Generics for Go

Posted Jul 1, 2020 17:21 UTC (Wed) by kjp (guest, #39639)
Parent article: Generics for Go

If only google and msft could team up and get native compilation going for C#. Nope, gotta be NIH.


to post comments

Generics for Go

Posted Jul 1, 2020 20:15 UTC (Wed) by epa (subscriber, #39769) [Link] (1 responses)

Yes, I was surprised not to see C# mentioned in the discussion, since it seems to avoid the macro expansion approach of C++, while not suffering the boxing overhead of Java. (Though surely Java too, these days, lets you create a vector of ints without having to box each one?)

Generics for Go

Posted Jul 1, 2020 20:17 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

> Though surely Java too, these days, lets you create a vector of ints without having to box each one?
Nope. That's on the TODO list, though: https://openjdk.java.net/projects/valhalla/

Generics for Go

Posted Jul 1, 2020 20:27 UTC (Wed) by dvdeug (guest, #10998) [Link]

How is this related? Go seems like a decidedly different language for a decidedly different audience. What's the expected win from native compilation? https://benchmarksgame-team.pages.debian.net/benchmarksga... says that C# already ties or beats Go on every single problem.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds