frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Packed Data Support in Haskell

https://arthi-chaud.github.io/posts/packed/
77•matt_d•8mo ago

Comments

nine_k•8mo ago
> Introducing the ‘packed’ data format, a binary format that allows using data as it is, without the need for a deserialisation step. A notable perk of this format is that traversals on packed trees is proven to be faster than on ‘unpacked’ trees: as the fields of data structures are inlines, there are no pointer jumps, thus making the most of the L1 cache.

That is, a "memory dump -> zero-copy memory read" of a subgraph of Haskell objects, allowing to pass such trees / subgraphs directly over a network. Slightly reminiscent of Cap'n Proto.

90s_dev•8mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•8mo ago
They mention this in the article.
spockz•8mo ago
It reminds me more of flat buffers though. Does protobuf also have zero allocation (beyond initial ingestion) and no pointer jumps?
cstrahan•8mo ago
No, one example of why being variable sized integers.

See https://protobuf.dev/programming-guides/encoding/

carterschonwald•8mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•8mo ago
> the serialised version of the data is usually bigger than its in-memory representation

I don’t think this is common. Perhaps for arrays of floats serialized as JSON or something. But I can’t think of a case where binary serialization is bigger. Data types like maps are necessarily larger in memory to support fast lookup and mutability.

nine_k•8mo ago
I suppose all self-describing formats, like protobuf, or thrift or, well, JSON are bigger than the efficient machine representation, because they carry the schema in every message, one way or another.
IsTom•8mo ago
If you use a lot of sharing in immutable data it can grow a lot when serializing. A simple pathological example would be a tree that has all left subtrees same as the right ones. It takes O(height) space in memory, but O(2^height) when serialized.
gitroom•8mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•8mo ago
This was very well written. Excellent article!
NetOpWibby•8mo ago
Is this like MessagePack for Haskell?

The Ascendance of Algorithmic Tyranny

https://www.noemamag.com/the-ascendance-of-algorithmic-tyranny/
1•nanmu42•22s ago•0 comments

All my Deutschlandtickets gone: Fraud at an industrial scale [video]

https://media.ccc.de/v/39c3-all-my-deutschlandtickets-gone-fraud-at-an-industrial-scale
1•Kyro38•1m ago•0 comments

Your brain doesn't suddenly 'fully develop' at 25 – what the neuroscience shows

https://theconversation.com/no-your-brain-doesnt-suddenly-fully-develop-at-25-heres-what-the-neur...
1•bikenaga•3m ago•0 comments

Global Memory Shortage Crisis: Market Analysis

https://www.idc.com/resource-center/blog/global-memory-shortage-crisis-market-analysis-and-the-po...
1•naves•4m ago•0 comments

The Industrial Age Roots of General Education

https://psu.pb.unizin.org/generaleducationfortheinformationsociety/chapter/the-industrial-age-roo...
2•teleforce•4m ago•0 comments

He Was a Supreme Court Lawyer. Then His Double Life Caught Up with Him

https://www.nytimes.com/2025/12/28/magazine/thomas-goldstein-supreme-court-gambling.html
1•hodgesrm•4m ago•1 comments

Don't Drag-N-Drop, Let AI Write Workflow Code

https://www.youtube.com/watch?v=zzkSC26fPPE
1•Edmond•7m ago•0 comments

IWD Development Hiatus

https://www.phoronix.com/news/Intel-IWD-Development-Halts
1•khimaros•8m ago•0 comments

Show HN: Niceform – a simple Typeform alternative with flat pricing

https://www.niceform.io/en
1•officialvikram•8m ago•0 comments

Ask HN: Resources and Tips for learning to play harmonica

1•tizzyapunkt•10m ago•0 comments

Show HN: Promode for Claude Code

https://github.com/mikekelly/promode
1•AffableSpatula•11m ago•0 comments

Show HN: Nederland Postcode API – validate Dutch addresses

https://nederlandpostcode.nl
1•tjardo•11m ago•0 comments

I Used AI to Prove the Riemann Hypothesis. Roast Me Like You Roasted Budden

https://www.academia.edu/145618833/The_Riemann_Hypothesis_via_Toroidal_Geometry_Caustic_Singulari...
1•kristintynski•13m ago•2 comments

Firefox's low-latency WebAssembly compiler

http://wingolog.org/archives/2020/03/25/firefoxs-low-latency-webassembly-compiler
1•fanf2•13m ago•0 comments

Ask HN: What are you building during the holiday break?

1•linsomniac•16m ago•1 comments

The Mathematics of Tuning Systems

https://johncarlosbaez.wordpress.com/2025/12/26/the-mathematics-of-tuning-systems/
1•chmaynard•16m ago•0 comments

Ask HN: Will AI-based 4K restoration of old content put Tubi TV out of business?

1•amichail•18m ago•0 comments

Local LLMs are how nerds now justify a big computer they don't need

https://world.hey.com/dhh/local-llms-are-how-nerds-now-justify-a-big-computer-they-don-t-need-af2...
3•janandonly•23m ago•2 comments

I removed 80% of my JavaScript and my product got better

https://clipnotebook.com/blog/removed-80-percent-javascript
5•puildupO•24m ago•2 comments

Show HN: Sapphire – A 12MB language with native UI and good performance

https://github.com/foxzyt/Sapphire
2•foxz•25m ago•0 comments

To Understand AI, Watch How It Evolves

https://www.quantamagazine.org/to-understand-ai-watch-how-it-evolves-20250924/
3•Brajeshwar•26m ago•1 comments

Michael Burry Bets He Isn't Too Early to Go Against the AI Juggernaut

https://www.wsj.com/finance/stocks/michael-burry-bets-he-isnt-too-early-to-go-against-the-ai-jugg...
3•megacorp•29m ago•1 comments

Show HN: Compare what your current rent gets you in other cities

https://rentcheckr.app/
1•Atallapr•31m ago•0 comments

Show HN: Play with Neural Net Flies

https://claude.ai/public/artifacts/4c5465b6-c384-4c9f-8a92-a4f840367ec2
1•logicallee•34m ago•0 comments

A (Biased) Pure Python Performance Comparison

http://shed-skin.blogspot.com/2025/12/a-biased-pure-python-performance.html
1•lumpa•38m ago•0 comments

Does the Nvidia "Revenue Sharing Agreement" Tie the US Gov't Hands?

4•DivingForGold•42m ago•1 comments

Drawing Truchet Tiles in SVG

https://alexwlchan.net/2025/truchet-tiles/
4•eustoria•45m ago•0 comments

Show HN: Monopipe (Alpha), read blogs from terminal using piping-server

https://monopipe.exe.xyz/
2•Imustaskforhelp•49m ago•0 comments

Netdata: Monitoring and Troubleshooting Transformed

https://www.netdata.cloud/
2•eustoria•50m ago•0 comments

Designing Predictable LLM-Verifier Systems for Formal Method Guarantee

https://arxiv.org/abs/2512.02080
2•PaulHoule•53m ago•0 comments