frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The privacy nightmare of browser fingerprinting

https://kevinboone.me/fingerprinting.html
237•ingve•3h ago•162 comments

$1900 Bug Bounty to Fix the Lenovo Legion Pro 7 16IAX10H's Speakers on Linux

https://github.com/nadimkobeissi/16iax10h-linux-sound-saga
109•rany_•6d ago•41 comments

Agent design is still hard

https://lucumr.pocoo.org/2025/11/21/agents-are-hard/
288•the_mitsuhiko•9h ago•154 comments

As 'Dorian Gray' ages, its relevance only grows

https://www.washingtonpost.com/books/2025/11/08/dorian-gray-oscar-wilde-history/
52•apollinaire•1w ago•20 comments

Personal blogs are back, should niche blogs be next?

https://disassociated.com/personal-blogs-back-niche-blogs-next/
550•gnabgib•21h ago•333 comments

Gwern's "Stem Humor" Directory

https://gwern.net/doc/math/humor/index
7•surprisetalk•2h ago•1 comments

China Reaches Energy Milestone by "Breeding" Uranium from Thorium

https://humanprogress.org/china-reaches-energy-milestone-by-breeding-uranium-from-thorium/
82•surprisetalk•2h ago•50 comments

Helping Valve to power up Steam devices

https://www.igalia.com/2025/11/helpingvalve.html
762•TingPing•1d ago•273 comments

Depot (YC W23) Is Hiring a Staff Infrastructure Engineer

https://www.ycombinator.com/companies/depot/jobs/O2iB56E-staff-infrastructure-engineer
1•jacobwg•2h ago

Samsung's 60% DRAM price hike signals a new phase of global memory tightening

https://www.buysellram.com/blog/samsungs-memory-price-surge-sends-shockwaves-through-the-global-d...
409•redohmy•1w ago•361 comments

How to See the Dead

https://www.asimov.press/p/see-the-dead
53•mailyk•5d ago•7 comments

Show HN: Forty.News – Daily news, but on a 40-year delay

https://forty.news
4•foxbarrington•1h ago•0 comments

TiDAR: Think in Diffusion, Talk in Autoregression

https://arxiv.org/abs/2511.08923
80•internetguy•1w ago•11 comments

Digital echoes: open bus behavior on the compact Macintosh

https://thomasw.dev/post/compact-mac-openbus/
12•zdw•5d ago•0 comments

Show HN: Wealthfolio 2.0- Open source investment tracker. Now Mobile and Docker

https://wealthfolio.app/?v=2.0
610•a-fadil•1d ago•195 comments

'The French people want to save us': help pours in for glassmaker Duralex

https://www.theguardian.com/world/2025/nov/22/french-people-want-to-save-us-help-pours-glassmaker...
120•n1b0m•5h ago•76 comments

The Connectivity Standards Alliance Announces Zigbee 4.0 and Suzi

https://csa-iot.org/newsroom/the-connectivity-standards-alliance-announces-zigbee-4-0-and-suzi-em...
99•paulatreides•4d ago•62 comments

Tektronix equipment has been used in many movies and shows

https://vintagetek.org/tektronix-in-movies-shows/
5•stmw•5d ago•0 comments

Moss Survives 9 Months in Space Vacuum

https://scienceclock.com/moss-survives-9-months-in-space-vacuum/
141•ashishgupta2209•16h ago•61 comments

How I learned Vulkan and wrote a small game engine with it (2024)

https://edw.is/learning-vulkan/
167•jakogut•21h ago•87 comments

We should all be using dependency cooldowns

https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
437•todsacerdoti•1d ago•252 comments

Sharper MRI scans may be on horizon thanks to new physics-based model

https://news.rice.edu/news/2025/sharper-mri-scans-may-be-horizon-thanks-new-physics-based-model
134•hhs•19h ago•32 comments

Original Superman comic becomes the highest-priced comic book ever sold

https://www.bbc.com/news/articles/c8e9rp0knj6o
301•1659447091•15h ago•194 comments

In a U.S. First, New Mexico Opens Doors to Free Child Care for All

https://www.wsj.com/us-news/in-a-u-s-first-new-mexico-opens-doors-to-free-child-care-for-all-2dfd...
269•nairteashop•4h ago•302 comments

LAPD helicopter tracker with real-time operating costs

https://lapdhelicoptertracker.com/
218•polalavik•22h ago•252 comments

The twin probes just launched toward Mars have an Easter egg on board

https://arstechnica.com/space/2025/11/the-twin-probes-just-launched-toward-mars-have-an-easter-eg...
54•pseudolus•1w ago•35 comments

Arduino Terms of Service and Privacy Policy update: setting the record straight

https://blog.arduino.cc/2025/11/21/the-arduino-terms-of-service-and-privacy-policy-update-setting...
90•manchoz•23h ago•78 comments

New Apple Study Shows LLMs Can Tell What You're Doing from Audio and Motion Data

https://9to5mac.com/2025/11/21/apple-research-llm-study-audio-motion-activity/
44•andrewrn•4h ago•19 comments

Concrete Shipbuilding – Argentina

https://thecretefleet.com/blog/f/concrete-shipbuilding-–-argentina
58•surprisetalk•5d ago•15 comments

Weight-sparse transformers have interpretable circuits [pdf]

https://cdn.openai.com/pdf/41df8f28-d4ef-43e9-aed2-823f9393e470/circuit-sparsity-paper.pdf
68•0x79de•1w ago•29 comments
Open in hackernews

Optimizing Heap Allocations in Go: A Case Study

https://www.dolthub.com/blog/2025-04-18-optimizing-heap-allocations/
54•ingve•7mo ago

Comments

returningfory2•7mo ago
> It's possible that this is a compiler bug. It's also possible that there's some fringe case where the reference actually can escape via that method call, and the compiler doesn't have enough context to rule it out.

Here's an example, I think: suppose the method spawns a new goroutine that contains a reference to `chunkStore`. This goroutine can outlive the `ReadBytes` function call, and thus Go has to heap allocate the thing being referenced.

In general, this kind of example makes me suspect that Go's escape analysis algorithm treats any method call as a black box and heap allocates anything being passed to it by reference.

athorax•7mo ago

  The notion of stack vs heap allocation isn't something that even exists in the language. Users are expected to not worry about it... until, of course, until you're optimizing performance and you need to worry about it.
This is one of the best and worst aspects with Go. Anyone can write pretty performant code without having to understand the underlying memory model. If you get to the point where you are trying to optimize at this level, the benefits of using a more approachable language start to fall apart and you spend more time chasing implementation details.
nu11ptr•7mo ago
In general, it is a win, since it lets you code faster and 80-90% the performance doesn't matter. Over time, you learn generally what leads to heap allocs and what doesn't. In rare hot spot, using -m will show you the allocations and you can optimize.
athorax•7mo ago
I would generally agree. It's good enough performance for most applications. For those that it isn't fast enough for (even with optimizations like these), it still allows for rapid prototyping to arrive at that conclusion.
Ygg2•7mo ago
I think same applies to any GC language. Ride is fun until GC starts either taking too much time, too much memory or taking too much of CPU.
Thaxll•7mo ago
At least you have the tools to understand where things get allocated.
38•7mo ago
instead of this:

    t.Buf = []byte{}
you can just do:

    t.Buf = nil
rsc•7mo ago
Those are semantically different (one is nil and one is not) but neither allocates.
virexene•7mo ago
I wonder if the reason the escape analysis fails could be that, for small enough types, the concrete value is directly inlined inside the interface value, instead of the latter being "a smart pointer" as the author said. So when the compiler needs to take a reference to the concrete value in `vs.chunkStore`, that ends up as an internal pointer inside the `vs` allocation, requiring it to be on the heap.

Either that or the escape analysis just isn't smart enough; taking a pointer to an internal component of an interface value seems like a bit of a stretch.

Snawoot•7mo ago
I had an attempt to improve performance of memory allocation with the use of arenas in Go and I chose freelist datastructure[1]

It almost doesn't use unsafe except one line to cast pointer types. I measured practical performance boost with "container/list" implementation hooked to my allocator. All in all it performs 2-5 times faster or up to 10 times faster if we can get rid[2] of any and allocations implied by the use of it.

All in all, heap allocations can be not that bad at all if you approach them from another angle.

[1]: https://github.com/Snawoot/freelist

[2]: https://github.com/Snawoot/list