frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Go: Support for Generic Methods

https://github.com/golang/go/issues/77273
33•f311a•4h ago

Comments

h1fra•52m ago
slowly implementing all the things they said we didn't need
TheChaplain•49m ago
It's not a bad thing to realize that one can be wrong and then strive for change.
a-french-anon•38m ago
Maybe, but personally I've become quite tired of programming languages "organically grown" as opposed to properly designed the first time. After a good decade of C then C++, I found ANSI CL (despite being a massive compromise and unfinished) much more coherent and complete than both.
ramon156•30m ago
So which language had it right from the start? is there a language that has a very low rewrite status?
bbkane•22m ago
I'd particularly like examples of statically typed languages that "got it right" (since I love me my types)
maccard•16m ago
That’s whataboutism - no language is perfect, but given when go released it’s fair to hold them to a higher standard than languages what were designed 25 years earlier.

As an aside - D, Zig, Rust, even typescript got most of the lessons learned from C right

ndr•25m ago
"Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp."

-- Greenspun's tenth rule

He had some lack of conviction to scope it so narrowly.

bbkane•23m ago
I know Go is justly criticized for many of its design decisions, but it still feels well-designed and "small" to me in day to day usage when many other languages don't.
xscott•10m ago
Scheme is (or at least was) coherent. You don't need to look any further than set/setf/setq to see that Common Lisp is "organically grown" from the fertilizer of a committee. CL does it's best to make every other lisp more attractive.
rootnod3•6m ago
Which Scheme are we talking about? R5RS? R7RS-small? R6RS? With SRFIs? Without? Which scheme? Is it `(library...)` or `(define-module...)`?
rootnod3•5m ago
ANSI CL is such a breath of fresh air nowadays. Does what you need, doesn't get in your way, comes with batteries included. And conditions are just god-tier.
tux3•26m ago
I don't think anyone admitted any wrong or had any big change in philosophy. It's always a good thing to learn something along the way. But the current message seems to be that this was the plan all along, and it just took some time to design properly.

Of course adding generics is not something that every language needs to do. Scripting languages like Ruby don't really need this style of generics. It doesn't fit the design of the language, and it's not even clear what that would look like in Ruby.

But static typing with generics does solve a recurring problem, and we've seen some real convergence towards type hints and type systems even in staunchly dynamic scripting languages. Modern Javascript is now mostly Typescript, and they've successfully retrofitted a very advanced type system in the last place I would have expected 20 years ago.

galangalalgol•15m ago
Type hinting seems like the worst of both. You pay the cost on refactor to go change them all, where dynamic typing or static type inference avoid that. You also don't have any of the benefits of static or dynamic typing. My strong preference is static typing with good inference and an ide that shows the inferred types everywhere when asked. Dynamic typing can make some tasks dramatically easier, I'm just not capable of using them without making hideous mistakes.
maccard•20m ago
There’s a fine line between being willing to change your mind and getting the basics wrong. Go has repeatedly gotten the basics wrong.
Jleagle•17m ago
Sounds like you want this feature, and you just got it. Not sure how that's wrong. You don't add in every feature from the start.
maccard•15m ago
I wanted it 10 years ago.
whoiskevin•5m ago
Declaring a highly successful language as having the basics wrong means that you are not correct about the basics that were needed.
9rx•13m ago
Of course, if you go back and watch the original Go announcement it said that it would need generics once they figured out how to do it. And when the first version of generics landed it was said that generic methods would be added later, once they figured out how to do it. So that isn't applicable here. The need was always recognized.
kardianos•20m ago
This is great. Will be useful for data access methods!

As for the detractors, from the first generics proposal this was called out as a "not now", not never. There were questions of implementation. They aren't a super large team, and they try to do things incrementally and do them well.

nasretdinov•6m ago
Lack of generic methods was really surprising to me when I was first trying to use generics in Go. Nice to see it being actually implemented

I'm Tired of Talking to AI

https://orchidfiles.com/im-tired-of-ai-generated-answers/
605•theorchid•2h ago•354 comments

Private Equity Bought America's Essential Services

https://rubbishtalk.com/economy/how-private-equity-bought-americas-essential-services/
91•NoRagrets•1h ago•68 comments

Mini Micro Fantasy Computer

https://miniscript.org/MiniMicro/index.html#about
100•nicoloren•3h ago•42 comments

Incident with Pull Requests, Issues, Git Operations and API Requests

https://www.githubstatus.com/incidents/xy1tt3hs572m
105•maxnoe•1h ago•79 comments

The Melancholy of Slaying Monsters

https://thereader.mitpress.mit.edu/the-strange-melancholy-of-slaying-monsters/
166•prismatic•18h ago•68 comments

All of human cooking compressed into 2 megabytes

https://arxiv.org/abs/2605.22391
95•josefchen•5h ago•34 comments

XLIDE: VBA without excel

https://github.com/WilliamSmithEdward/xlide_vscode
10•sts153•1h ago•0 comments

Matrix Multiplications on GPUs Run Faster When Given "Predictable" Data

https://www.thonking.ai/p/strangely-matrix-multiplications
16•tosh•4d ago•2 comments

Raft Consensus with a Minority of Nodes

https://padhye.org/raft-minority/
72•moarbugs•1d ago•5 comments

Go: Support for Generic Methods

https://github.com/golang/go/issues/77273
35•f311a•4h ago•20 comments

Cloudflare Flagship

https://developers.cloudflare.com/flagship/
268•tjek•13h ago•144 comments

BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass

https://badhost.org/
91•ylk•1d ago•33 comments

Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs

https://arps18.github.io/posts/claude-code-mastery/
144•arps18•8h ago•107 comments

That Methyl Methacrylate Tank

https://www.science.org/content/blog-post/methyl-methacrylate-tank
359•nooks•18h ago•151 comments

What Is a Direct Attach Copper (DAC) Cable

https://www.servethehome.com/what-is-a-direct-attach-copper-dac-cable/
43•teleforce•1d ago•23 comments

We are Poles, so, of course, we print in Latin

https://www.ustc.ac.uk/news/we-are-poles-so-of-course-we-print-in-latin
52•danielam•3d ago•11 comments

The worst job interview I ever had

https://www.oliverio.dev/blog/the-worst-job-interview-i-had
423•oliverio•17h ago•327 comments

A few interesting modern pixel fonts

https://unsung.aresluna.org/a-few-interesting-modern-pixel-fonts/
385•zdw•1d ago•82 comments

I built a Git-tracked book production pipeline

https://www.djspeckhals.com/posts/2026-05-22-how-i-bypassed-adobe-and-microsoft-to-build-a-git-tr...
259•dustin1114•4d ago•65 comments

Seeking a Language in Mathematics 1523-1571

https://tyndale.org/journals/reformj01/bmarsden.html
21•jruohonen•3d ago•2 comments

Rosalind: A genomics toolkit in Rust running whole-genome pipelines on a laptop

https://github.com/logannye/rosalind
172•samuell•5d ago•49 comments

Spain blocks prediction markets Polymarket, Kalshi over lack of gambling licence

https://www.reuters.com/business/spain-blocks-prediction-markets-polymarket-kalshi-over-lack-gamb...
1002•thm•1d ago•465 comments

Launch HN: Minicor (YC P26) – Windows desktop automations at scale

https://www.minicor.com/
94•fchishtie•22h ago•56 comments

C array types are weird

https://anselmschueler.com/blogposts/2025-c-pointers/
104•signa11•2d ago•108 comments

A history of obituaries in American newspapers

https://blogs.loc.gov/headlinesandheroes/2026/05/mourn-not-a-history-of-obituaries-in-american-ne...
32•NaOH•2d ago•3 comments

Sage Care (YC S24) Is Hiring Software Engineers

https://www.ycombinator.com/companies/sagecare/jobs/xtloH8r-senior-software-engineer
1•ian-gillis•20h ago

TSDuck: Open-source toolkit for MPEG-TS analysis and manipulation

https://tsduck.io/
48•phantomathkg•11h ago•5 comments

IBM Confidential: System/360 File Organization [video]

https://www.youtube.com/watch?v=zokKqP0plrM
52•DaiPlusPlus•2d ago•26 comments

A portentous reunion

https://bcantrill.dtrace.org/2026/05/25/a-portentous-reunion/
111•cafkafk•1d ago•31 comments

What I've Learned (So Far) Building Online Mini Games with Elixir and Swift

https://calvinflegal.com/2026/05/24/what-ive-learned-so-far-building-online-mini-games-with-elixi...
71•calflegal•3d ago•35 comments