frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Understanding the Go Runtime: The Memory Allocator

https://internals-for-interns.com/posts/go-memory-allocator/
22•valyala•3d ago

Comments

burntcaramel•1h ago
> We said the runtime asks the OS for large chunks of memory. Those chunks are called arenas, and on most 64-bit systems each one is 64MB (4MB on Windows and 32-bit systems, 512KB on WebAssembly).

Incorrect. You ask the OS for pages. (Golang does internally appear to manage its heap into “arenas”.) On WebAssembly the page size is 64KiB. Window 64-bit it’s 4KiB, Apple Silicon 16KiB, Linux x86_64 4KiB.

mort96•42m ago
"Page" is OS terminology. "Arena" is Go terminology. An arena is made up of sequential pages. Go asks the OS for 64MB of sequential memory, and calls that 64MB chunk an arena; this is consistent with the text you quoted. It is not incorrect.
kitsune1•1h ago
If an article starts with a generated image, I don't read it. It's a signal to me that's it's more likely the rest is generated too.
rjgray•40m ago
I found https://nghiant3223.github.io/2025/06/03/memory_allocation_i... to be another excellent resource on this topic.
EdNutting•28m ago
You may also be interested in: https://go.dev/blog/greenteagc
jeffbee•37m ago
I don't see why this would be of interest to anyone. It doesn't introduce the topic with enough rigor to prepare someone to work on the runtime itself, and for everyone else it's just trivia. I think if someone wanted to write an article like this of general interest they should focus on observable behaviors of the application, such as the fact that the Go allocator (like its cousin tcmalloc) uses prctl to set the name of its maps, so you can see low-level details of allocation behavior in /proc/smaps, and that it is automatically hugepage-aware, which can help reduce TLB misses, increasing IPC.
EdNutting•29m ago
See also: https://go.dev/blog/greenteagc

Statement from Dario Amodei on Our Discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
593•qwertox•2h ago•336 comments

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
344•mlex•3h ago•325 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
315•DamnInteresting•8h ago•156 comments

Smartphone Mkt to Decline 13% in '26, Largest Drop Ever Due to Memory Shortage

https://www.idc.com/resource-center/press-releases/wwsmartphoneforecast4q25/
140•littlexsparkee•2h ago•142 comments

Will vibe coding end like the maker movement?

https://read.technically.dev/p/vibe-coding-and-the-maker-movement
292•itunpredictable•8h ago•283 comments

What Claude Code Chooses

https://amplifying.ai/research/claude-code-picks
213•tin7in•6h ago•96 comments

Launch HN: Cardboard (YC W26) – Agentic video editor

https://www.usecardboard.com/
92•sxmawl•6h ago•46 comments

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
94•alexmolas•4h ago•66 comments

Hydroph0bia – fixed SecureBoot bypass for UEFI firmware from Insyde H2O (2025)

https://coderush.me/hydroph0bia-part3/
22•transpute•2h ago•1 comments

OsmAnd's Faster Offline Navigation (2025)

https://osmand.net/blog/fast-routing/
107•todsacerdoti•6h ago•28 comments

Understanding the Go Runtime: The Memory Allocator

https://internals-for-interns.com/posts/go-memory-allocator/
22•valyala•3d ago•7 comments

An Introduction to the Codex Seraphinianus, the Strangest Book Ever Published

https://www.openculture.com/2026/02/an-introduction-to-the-codex-seraphinianus.html
7•vinhnx•3d ago•2 comments

Palm OS User Interface Guidelines (2003) [pdf]

https://cs.uml.edu/~fredm/courses/91.308-spr05/files/palmdocs/uiguidelines.pdf
146•spiffytech•7h ago•68 comments

I baked a pie every day for a year and it changed my life

https://www.theguardian.com/lifeandstyle/2026/feb/22/a-new-start-after-60-i-baked-a-pie-every-day...
209•NaOH•3d ago•141 comments

Museum of Plugs and Sockets

https://plugsocketmuseum.nl/index.html
66•ohjeez•3d ago•25 comments

Lidar waveforms are worth 40x128x33 words

https://openaccess.thecvf.com/content/ICCV2025/html/Scheuble_Lidar_Waveforms_are_Worth_40x128x33_...
31•teleforce•3d ago•11 comments

Show HN: Hacker Smacker – Spot great (and terrible) HN commenters at a glance

https://hackersmacker.org
84•conesus•2d ago•81 comments

Show HN: Deff – Side-by-side Git diff review in your terminal

https://github.com/flamestro/deff
75•flamestro•6h ago•48 comments

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
140•jasonpeacock•10h ago•45 comments

Show HN: Terminal Phone – E2EE Walkie Talkie from the Command Line

https://gitlab.com/here_forawhile/terminalphone
283•smalltorch•14h ago•71 comments

Show HN: Linex – A daily challenge: placing pieces on a board that fights back

https://www.playlinex.com/
47•Humanista75•2d ago•19 comments

Bild AI (YC W25) Is Hiring Interns to Make Housing Affordable

https://www.workatastartup.com/jobs/80596
1•rooppal•7h ago

Nano Banana 2: Google's latest AI image generation model

https://blog.google/innovation-and-ai/technology/ai/nano-banana-2/
474•davidbarker•8h ago•462 comments

The Wolfram S Combinator Challenge

https://www.combinatorprize.org/
64•paraschopra•3d ago•20 comments

Steering interpretable language models with concept algebra

https://www.guidelabs.ai/post/steerling-steering-8b/
52•luulinh90s•1d ago•3 comments

This time is different

https://shkspr.mobi/blog/2026/02/this-time-is-different/
111•speckx•11h ago•167 comments

Banned in California

https://www.bannedincalifornia.org/
550•pie_flavor•1d ago•649 comments

Open Source Endowment – new funding source for open source maintainers

https://endowment.dev/
207•kvinogradov•8h ago•125 comments

The Physics and Economics of Moving 44 Tonnes at 56mph

https://www.mikeayles.com/blog/heavy-haulage-basics/
90•mikeayles•3d ago•84 comments

Show HN: Rev-dep – 20x faster knip.dev alternative build in Go

https://github.com/jayu/rev-dep
35•jayu_dev•5h ago•7 comments