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•10mo ago

Comments

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

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

carterschonwald•10mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•10mo 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•10mo 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•10mo 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•10mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•10mo ago
This was very well written. Excellent article!
NetOpWibby•10mo ago
Is this like MessagePack for Haskell?

Coal plant forced to stay open due to emergency order isn't even running

https://arstechnica.com/science/2026/03/coal-plant-forced-to-stay-open-due-to-emergency-order-isn...
1•cratermoon•2m ago•0 comments

Show HN: Prepare for coding interviews via deliberate practice

https://interviewtraner.com/home/
1•trane_project•3m ago•0 comments

What's on HTTP?

https://whatsonhttp.com/
2•elixx•6m ago•0 comments

I built an AI baseball manager that runs all 30 MLB teams

https://deepdugout.com/
1•yesdeleon•11m ago•0 comments

Gea – The fastest compiled UI framework

https://github.com/dashersw/gea
1•arbayi•11m ago•0 comments

A BEAM-native personal autonomous AI agent built on Elixir/OTP

https://github.com/thatsme/AlexClaw
1•ahamez•11m ago•0 comments

iCloud Photo Sharing Sucks – Can AI Help Me Replace It?

https://medium.com/@DougDonohoe/icloud-photo-sharing-sucks-can-ai-help-me-replace-it-3b48fdd1350c
3•dougdonohoe•12m ago•0 comments

An alternative derivation of Shannon entropy

https://iczelia.net/posts/shannon-deriv/
1•purplesyringa•13m ago•0 comments

Rolls-Royce scraps goal to go all-electric by 2030

https://www.theguardian.com/business/2026/mar/18/rolls-royce-scraps-all-electric-car-company
2•bookofjoe•13m ago•0 comments

Stop Building AI "Teams." Start Building Software Factories. – Owen Zanzal

https://medium.com/devops-ai/stop-building-ai-teams-start-building-software-factories-627cef5d09eb
2•JnBrymn•13m ago•0 comments

Make your Linux keyboard act like a 'Tosh

https://github.com/RedBearAK/Toshy
1•conqrr•13m ago•0 comments

Radicle 1.7.0 – Daffodil

https://radicle.xyz/2026/03/18/radicle-1.7.0
1•Tmpod•13m ago•1 comments

IBM completes acquisition of Confluent

https://newsroom.ibm.com/2026-03-17-ibm-completes-acquisition-of-confluent,-making-real-time-data...
1•teleforce•14m ago•0 comments

Google Backs Down: Will Grant Hotseat in EU Browser Choice Screen

https://open-web-advocacy.org/blog/google-backs-down--will-grant-hotseat-in-eu-browser-choice-scr...
1•donohoe•16m ago•0 comments

Next.js 16.2

https://nextjs.org/blog/next-16-2
1•goldkey•19m ago•0 comments

ScreenSaverGallery: Turn your inactive device into a digital art gallery

https://screensaver.gallery/about
1•cernocky•21m ago•0 comments

Seeing types where others don't: static type inference for jq

https://theconsensus.dev/p/2026/03/06/seeing-types-where-others-dont.html
2•fanf2•22m ago•1 comments

What to Watch in March: Häxan (1922)

https://crimereads.com/what-to-watch-watch-in-march-haxan-1922/
2•jruohonen•22m ago•0 comments

We Made AI Gamble. What Poker Revealed About Frontier LLMs

https://twitter.com/boson2photon/status/2033953028160819273
1•chelseazouu•25m ago•0 comments

Former Syrian Assad Prison Official Convicted of Torture, US Immigration Fraud

https://www.justice.gov/opa/pr/former-syrian-assad-prison-official-convicted-torture-and-immigrat...
1•737min•27m ago•0 comments

We Made LLMs Gamble: Heres What Poker Revealed About Frontier AI Models

https://moltecarlo.com/
1•chelseazouu•29m ago•0 comments

Read Less, Steer More

https://blog.ezyang.com/2026/03/read-less-steer-more/
1•matt_d•29m ago•0 comments

Trashing American Allies Turns Out to Be Bad for National Security

https://www.theatlantic.com/ideas/2026/03/trump-independence-allies-support/686432/
20•breve•29m ago•0 comments

Alibaba Starts Major Revamp to Heighten Focus on AI Profits

https://www.bloomberg.com/news/articles/2026-03-16/alibaba-plans-major-revamp-to-heighten-focus-o...
1•gmays•30m ago•0 comments

Why attacks on gasfields like South Pars are a major escalation

https://www.theguardian.com/world/2026/mar/18/middle-east-war-why-attacks-gasfield-south-pars-are...
3•geox•32m ago•0 comments

Show HN: Stop GPU pods placement getting bottlenecked by reserved VRAM

1•medicis123•34m ago•0 comments

A look at content scrambling in DVDs

https://mathweb.ucsd.edu/~crypto/Projects/MarkBarry/
2•rvnx•35m ago•0 comments

Clinical-grade autonomous cytopathology through whole-slide edge tomography

https://www.nature.com/articles/s41586-025-10094-y
1•PaulHoule•37m ago•0 comments

ZJIT removes redundant object loads and stores

https://railsatscale.com/2026-03-18-how-zjit-removes-redundant-object-loads-and-stores/
1•tekknolagi•38m ago•0 comments

Trendslop

https://hbr.org/2026/03/researchers-asked-llms-for-strategic-advice-they-got-trendslop-in-return
2•bluechemist•39m ago•0 comments