frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Poireau: A Sampling Allocation Debugger

https://github.com/backtrace-labs/poireau
8•luu•3d ago

Comments

PuercoPop•6h ago
Recently saw this through https://discuss.systems/@pkhuong/114532017716618023 which summaries why this would be useful:

> Flagging old live (i.e., potentially immortal) allocations is easier (https://github.com/backtrace-labs/poireau) and more closely matches the goal of identifying why the heap grows instead of entering a steady state.

Ej. Why is Sidekiq memory consumption growing over time.

itamarst•6h ago
One key question in these sort of things is how free() works: it is given a pointer, and it has to decide whether this was sampled or not, with _minimum_ effort.

Poireau does this, IIRC, by putting the pointers it sampled in a different memory address.

Sciagraph (https://sciagraph.com), a profiler I created, uses allocation size. If an allocation is chosen for sampling the profiler makes sure its size is at least 16KiB. Then free() will assume that any allocation 16KiB or larger is sampled. This may not be true, it might be false positive, but it means you don't have to do anything beyond malloc_usable_size() if you have free() on lots and lots of small allocations. A previous iteration used alignment as a heuristic, so that's another option.

The Future of Flatpak

https://lwn.net/Articles/1020571/
47•dxs•1h ago•6 comments

Show HN: Defuddle, an HTML-to-Markdown alternative to Readability

https://github.com/kepano/defuddle
109•kepano•3h ago•19 comments

Claude 4

https://www.anthropic.com/news/claude-4
1437•meetpateltech•8h ago•766 comments

32 Bits That Changed Microprocessor Design

https://spectrum.ieee.org/bellmac-32-ieee-milestone
18•mdp2021•1h ago•2 comments

That fractal that's been up on my wall for years

https://chriskw.xyz/2025/05/21/Fractal/
295•chriskw•9h ago•19 comments

The Copilot Delusion

https://deplet.ing/the-copilot-delusion/
90•isaiahwp•52m ago•52 comments

Airport for DuckDB

https://airport.query.farm/
31•jonbaer•3d ago•2 comments

Does Earth have two high-tide bulges on opposite sides? (2014)

http://physics.stackexchange.com/questions/121830/does-earth-really-have-two-high-tide-bulges-on-opposite-sides
117•imurray•6h ago•40 comments

"Secret Mall Apartment," a Protest for Place

https://modernagejournal.com/secret-mall-apartment-a-protest-for-place/251023/
37•rufus_foreman•2h ago•10 comments

Mozilla to shut down Pocket on July 8

https://support.mozilla.org/en-US/kb/future-of-pocket
755•phantomathkg•8h ago•485 comments

How to cheat at settlers by loading the dice (2017)

https://izbicki.me/blog/how-to-cheat-at-settlers-of-catan-by-loading-the-dice-and-prove-it-with-p-values.html
79•jxmorris12•6h ago•61 comments

Loading Pydantic models from JSON without running out of memory

https://pythonspeed.com/articles/pydantic-json-memory/
74•itamarst•7h ago•26 comments

A Scientist Fighting Nuclear Armageddon Hid a 50-Year Secret

https://www.nytimes.com/2025/05/19/science/richard-garwin-hydrogen-bomb.html
18•LAsteNERD•3d ago•2 comments

Improving performance of rav1d video decoder

https://ohadravid.github.io/posts/2025-05-rav1d-faster/
247•todsacerdoti•13h ago•84 comments

Fast Allocations in Ruby 3.5

https://railsatscale.com/2025-05-21-fast-allocations-in-ruby-3-5/
174•tekknolagi•11h ago•42 comments

Stargate and the AI Industrial Revolution

https://davefriedman.substack.com/p/stargate-and-the-ai-industrial-revolution
12•mhb•2h ago•8 comments

Trade Secrecy in Willy Wonka's Chocolate Factory (2009)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1430463
26•NaOH•4h ago•4 comments

Launch HN: WorkDone (YC X25) – AI Audit of Medical Charts

54•digitaltzar•9h ago•51 comments

I Built My Own Audio Player

https://nexo.sh/posts/why-i-built-a-native-mp3-player-in-swiftui/
166•nexo-v1•10h ago•87 comments

Planetfall

https://somethingaboutmaps.wordpress.com/2025/05/20/planetfall/
309•milliams•15h ago•84 comments

A South Korean grand master on the art of the perfect soy sauce

https://www.theguardian.com/world/2025/may/21/without-time-there-is-no-flavour-a-south-korean-grand-master-on-the-art-of-the-perfect-soy-sauce
119•n1b0m•1d ago•82 comments

Sketchy Calendar

https://www.inkandswitch.com/ink/notes/sketchy-calendar/
6•surprisetalk•1h ago•0 comments

When good pseudorandom numbers go bad

https://blog.djnavarro.net/posts/2025-05-18_multivariate-normal-sampling-floating-point/
33•chewxy•3d ago•2 comments

Show HN: SQLite JavaScript - extend your database with JavaScript

https://github.com/sqliteai/sqlite-js
138•marcobambini•11h ago•41 comments

Problems in AI alignment: A scale model

https://muldoon.cloud/2025/05/22/alignment.html
25•hamburga•5h ago•3 comments

The Annotated Kolmogorov-Arnold Network (Kan)

https://alexzhang13.github.io/blog/2024/annotated-kan/
22•jxmorris12•4h ago•1 comments

Show HN: Hsdlib – A C Library for Vector Similarity with SIMD Acceleration

16•habedi0•3d ago•0 comments

Adventures in Symbolic Algebra with Model Context Protocol

https://www.stephendiehl.com/posts/computer_algebra_mcp/
84•freediver•11h ago•20 comments

Practicing graphical debugging using visualizations of the Hilbert curve

https://akkartik.name/debugUIs.html
21•akkartik•6h ago•1 comments

Async from scratch 3: Pinned against the wall

https://natkr.com/2025-05-22-async-from-scratch-3/
19•todsacerdoti•5h ago•0 comments