Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,279 posts.

Any topic
Any year
40203

Faster Sorting with Go Generics

Recently, a new set of sorting functions has landed in Go's golang.org/x/exp/slices package [1] . These functions leverage Go generics to provide a more ergonomic API for sorting (without requiring users to implement sort.Interface ), and also deliver a nice performance improvement, as the CL demonstrates.

40212

Self-Replicating Functions

These are notes I’m creating for myself as I explore functions \(f\) that can be written as a sum \(f = g_1 + g_2\) where \(g_1\) and \(g_2\) are shifted and possibly reflected versions of each other, both strongly resembling the original function \(f\) . When a function \(f\) has these properties, I informally call…

40223

Two Things

[UPDATE, added 15 June 2004: This page has been linked in some prominent places recently, and as a result I've received many submissions for inclusion in The Two Things List. Although I can't respond to everyone individually, I want to thank you all for your contributions. I hope that I will be able to update the list…

40230

Usenet over NNCP

Usenet, of course, originally ran over UUCP in quite a few cases. Since NNCP is quite similar to UUCP – in fact, you can map UUCP commands to NNCP ones – it is quite possible, and not all that hard, to run Usenet over NNCP. In fact, in a number of ways, it works better than Usenet over UUCP! Introduction to NNCP…