frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Gemini Diffusion

https://simonwillison.net/2025/May/21/gemini-diffusion/
219•mdp2021•2h ago•36 comments

Getting a paper accepted

https://maxwellforbes.com/posts/how-to-get-a-paper-accepted/
33•stefanpie•2h ago•2 comments

For algorithms, a little memory outweighs a lot of time

https://www.quantamagazine.org/for-algorithms-a-little-memory-outweighs-a-lot-of-time-20250521/
212•makira•8h ago•48 comments

Show HN: Display any CSV file as a searchable, filterable, pretty HTML table

https://github.com/derekeder/csv-to-html-table
76•indigodaddy•3h ago•13 comments

Google releases Material 3 Expressive, a more emotional UI design system

https://m3.material.io/blog/building-with-m3-expressive
13•nativeforks•2d ago•7 comments

Devstral

https://mistral.ai/news/devstral
399•mfiguiere•13h ago•86 comments

ITXPlus: A ITX Sized Macintosh Plus Logicboard Reproduction

https://68kmla.org/bb/index.php?threads/itxplus-a-itx-sized-macintosh-plus-logicboard-reproduction.49715/
59•zdw•5h ago•12 comments

Tales from Mainframe Modernization

https://oppi.li/posts/tales_from_mainframe_modernization/
35•todsacerdoti•3h ago•8 comments

Gemini figured out my nephew’s name

https://blog.nawaz.org/posts/2025/May/gemini-figured-out-my-nephews-name/
50•BeetleB•3d ago•18 comments

CERN gears up to ship antimatter across Europe

https://arstechnica.com/science/2025/05/cern-gears-up-to-ship-antimatter-across-europe/
77•ben_w•2d ago•28 comments

Rocky Linux 10 Will Support RISC-V

https://rockylinux.org/news/rockylinux-support-for-riscv
95•fork-bomber•7h ago•32 comments

Collaborative Text Editing Without CRDTs or OT

https://mattweidner.com/2025/05/21/text-without-crdts.html
199•samwillis•10h ago•54 comments

OpenAI to buy AI startup from Jony Ive

https://www.bloomberg.com/news/articles/2025-05-21/openai-to-buy-apple-veteran-jony-ive-s-ai-device-startup-in-6-5-billion-deal
659•minimaxir•10h ago•896 comments

Show HN: Confidential computing for high-assurance RISC-V embedded systems

https://github.com/IBM/ACE-RISCV
76•mrnoone•7h ago•5 comments

Animated Factorization (2012)

http://www.datapointed.net/visualizations/math/factorization/animated-diagrams/
235•miniBill•13h ago•53 comments

The curious tale of Bhutan's playable record postage stamps (2015)

https://thevinylfactory.com/features/the-curious-tale-of-bhutans-playable-record-postage-stamps/
91•ohjeez•8h ago•6 comments

Possible new dwarf planet found in our solar system

https://www.minorplanetcenter.net/mpec/K25/K25K47.html
116•ddahlen•9h ago•74 comments

Sorcerer (YC S24) Is Hiring a Lead Hardware Design Engineer

https://jobs.ashbyhq.com/sorcerer/6beb70de-9956-49b7-8e28-f48ea39efac6
1•maxmclau•6h ago

The Machine Stops (1909)

https://standardebooks.org/ebooks/e-m-forster/short-fiction/text/the-machine-stops
60•xeonmc•6h ago•14 comments

How AppHarvest’s indoor farming scheme imploded (2023)

https://www.lpm.org/investigate/2023-11-16/a-celebrated-startup-promised-kentuckians-green-jobs-it-gave-them-a-grueling-hell-on-earth
18•andrewrn•2h ago•4 comments

LLM function calls don't scale; code orchestration is simpler, more effective

https://jngiam.bearblog.dev/mcp-large-data/
182•jngiam1•10h ago•70 comments

Show HN: ClipJS – Edit your videos from a PC or phone

https://clipjs.vercel.app/
96•mohyware•7h ago•41 comments

An upgraded dev experience in Google AI Studio

https://developers.googleblog.com/en/google-ai-studio-native-code-generation-agentic-tools-upgrade/
116•meetpateltech•9h ago•66 comments

Storefront Web Components

https://shopify.dev/docs/api/storefront-web-components
130•maltenuhn•10h ago•38 comments

Did Akira Nishitani Lie in the 1994 Capcom vs. Data East Lawsuit?

https://www.thrillingtalesofoldvideogames.com/blog/akira-nishitani-capcom-data-east-lawsuit
25•danso•2d ago•1 comments

ZEUS – A new two-petawatt laser facility at the University of Michigan

https://news.engin.umich.edu/2025/05/the-us-has-a-new-most-powerful-laser/
96•voxadam•12h ago•97 comments

I have tinnitus. I don't recommend it

https://blog.greg.technology/2025/05/20/tinnitus.html
85•gregsadetsky•4h ago•80 comments

Understanding the Go Scheduler

https://nghiant3223.github.io/2025/04/15/go-scheduler.html
115•gnabgib•3d ago•19 comments

Introducing the Llama Startup Program

https://ai.meta.com/blog/llama-startup-program/?_fb_noscript=1
160•mayalilpony10•11h ago•61 comments

London’s water pumps: Where strange history flows freely (2024)

https://londonist.com/london/features/london-s-water-pump
17•joebig•3d ago•0 comments
Open in hackernews

Understanding the Go Scheduler

https://nghiant3223.github.io/2025/04/15/go-scheduler.html
115•gnabgib•3d ago

Comments

90s_dev•9h ago
I heard that the scheduler is a huge obstacle to many potential optimizations, is that true?
NAHWheatCracker•8h ago
In some ways, yes. If you want to optimize at that level you ought to use another language.

I'm not a low level optimization guy, but I've had occasions where I wanted control over which threads my goroutines are running on or prioritizing important goroutines. It's a trade off for making things less complex, which is standard for Go.

I suppose there's always hope that the Go developers can change things.

silisili•7h ago
You can kinda work around this though. runtime package has a LockOSThread that pins a goroutine to its current thread and prevents others from using it.

If you model it in a way where you have one goroutine per os thread that receives and does work, it gets you close. But in many cases that means rearching the entire code base, as it's not a style I typically reach for.

naikrovek•2h ago
That sounds a lot like just using another language.
silisili•2h ago
It's really not that bad. If you have a codebase in Go you can speed up, it's fine.

That said, if you're greenfielding and see this as a limitation to begin with, picking another language is probably the right way.

jasonthorsness•7h ago
It's always a sign of good design when something as complex as the scheduler described "just works" with the simple abstraction of the goroutine. What a great article.

"1/61 of the time, check the global run queue." Stuff like this is a little odd; I would have thought this would be a variable dependent on the number of physical cores.

01HNNWZ0MV43FF•1h ago
That's so funny. I just saw `61` in the Tokio code with a comment "copied this from Go"
__turbobrew__•7h ago
Make sure you set GOMAXPROCS when the runtime is cgroup limited.

I once profiled a slow go program running on a node with 168 cores, but cpu.max was 2 cores for the cgroup. The runtime defaults to set GOMAXPROCS to the number of visible cores which was 168 in this case. Over half the runtime was the scheduler bouncing goroutines between 168 processes despite cpu.max being 2 CPU.

The JRE is smart enough to figure out if it is running in a resource limited cgroup and make sane decisions based upon that, but golang has no such thing.

xyzzy_plugh•7h ago
Relevant proposal to make GOMAXPROCS cgroup-aware: https://github.com/golang/go/issues/73193
yencabulator•7h ago
This should be automatic these days (for the basic scenarios).

https://github.com/golang/go/blob/a1a151496503cafa5e4c672e0e...

jasonthorsness•6h ago
uh isn't that change 3 hours old?
yencabulator•6h ago
Oh heh yes it is. I just remembered the original discussion from 2019 (https://github.com/golang/go/issues/33803) and grepped the source tree for cgroup to see if that got done or not, but didn't check when it got done.

As said in 2019, import https://github.com/uber-go/automaxprocs to get the functionality ASAP.

jasonthorsness•6h ago
super-weird coincidence but welcome, I have been waiting for this for a long time!
williamdclt•4h ago
I honestly can’t count on my fingers and toes how many times something very precisely relevant to me was brought up or sorted out hours-to-days before I looked it up. And more often than once, by people I personally knew!

Always a weird feeling, it’s a small world

formerly_proven•5h ago
This is probably going to save quadrillions of CPU cycles by making an untold number of deployed Go applications a bit more CPU efficient. Since Go is the "lingua franca" of containers, many ops people assume the Go runtime is container-aware - it's not (well not in any released version, yet).

If they'd now also make the GC respect memory cgroup limits (i.e. automatic GOMEMLIMIT), we'd probably be freeing up a couple petabytes of memory across the globe.

Java has been doing these things for a while, even OpenJDK 8 has had those patches since probably before covid.

mappu•4h ago
GOMEMLIMIT is not as easy, you may have other processes in the same container/cgroup also using memory.
01HNNWZ0MV43FF•1h ago
Trying to see if Rust and Tokio have the same problem. I don't know enough about cgroups to be sure. Tokio at this line [1] ends up delegating to `std::thread::available_parallelism` [2] which says

> It may overcount the amount of parallelism available when limited by a process-wide affinity mask or cgroup quotas and sched_getaffinity() or cgroup fs can’t be queried, e.g. due to sandboxing.

[1] https://docs.rs/tokio/1.45.0/src/tokio/loom/std/mod.rs.html#...

[2] https://doc.rust-lang.org/stable/std/thread/fn.available_par...

kortex•6h ago
Fantastic writeup! Visualizations are great, the writeup is thorough but readable.
weiwenhao•48m ago
Your write-up is so detailed that I even feel like I could implement a complete golang scheduler myself