frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Packed Data Support in Haskell

https://arthi-chaud.github.io/posts/packed/
77•matt_d•1y ago

Comments

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

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

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

Can Network Science Transform Health and Nutrition?

https://www.quantamagazine.org/can-network-science-transform-health-and-nutrition-20261112/
1•abixb•4m ago•0 comments

The No AI Slop Manifesto

https://gist.github.com/dexhorthy/4cc96f01be5b1208519e75dad250a948
2•ohjeez•8m ago•0 comments

Supposed Fired Rockstar Engineer Says GTAVI Makes Psychological Profiles

https://www.gadgetreview.com/man-claiming-to-be-fired-rockstar-engineer-says-gta-6-is-secretly-tr...
8•christhecaribou•14m ago•0 comments

Conic Sections Rebellion

https://en.wikipedia.org/wiki/Conic_Sections_Rebellion
3•subset•14m ago•0 comments

Chroma keying an image model to make stickers for my kids

https://sandkassa.app/en/workshop/green-screen-for-stickers
2•Espenhh•15m ago•1 comments

Show HN: Mount your iPhone as a filesystem on Linux over WiFi

https://github.com/Amirjon06/iphone-linux
1•Amirjon_Abd•16m ago•0 comments

SoftBank explored $1T buyout of SK Hynix

https://www.reuters.com/world/asia-pacific/softbanks-son-explored-1-trillion-buyout-sk-hynix-info...
3•linhns•18m ago•0 comments

Muru – Rust server for running ASGI and WSGI Python apps

https://github.com/muruhq/muru
1•vismit2000•20m ago•0 comments

Browser API for Utilizing On-Device Models

https://github.com/webmachinelearning/proposals/issues/22
1•kenzic•21m ago•0 comments

The Biggest Lie in the Jensen Huang Story

https://www.theringer.com/2026/11/18/tech/jensen-huang-nvidia-china-chips-ai-race
2•donbox•23m ago•0 comments

Claude Watermarks Your Words, and You Can't Check Them (Yet)

https://www.oreilly.com/radar/claude-watermarks-your-words-and-you-cant-check-them-yet/
4•Anon84•24m ago•0 comments

TonkAI – OpenAI-Compatible Gateway for GPT, Claude, Gemini, DeepSeek, and Qwen

https://tonkai.app/
1•reqz•27m ago•0 comments

High Agency

https://www.highagency.com/
2•xtacy•27m ago•0 comments

The Oracle of Bluegrass Bacon

https://pickipedia.xyz/bacon
1•jMyles•27m ago•1 comments

Show HN: Matinee – guess the year six films came out

https://matineegame.com/
1•Aeskiev•28m ago•1 comments

Leonida – PC Recompilation of the Xbox Version of GTA 6

https://github.com/ItsNotRexed/Leonida
2•ebrahimh•29m ago•0 comments

Automated K8s hill-climbing harness and tuning vLLM and SGLang on a single A100

https://github.com/johnsonshi/a100-inference-hillclimb
1•johnsonshi•30m ago•0 comments

24 Years of Derek Lowe's in the Pipeline: Topics, Trends, and Turning Points

https://analogintelligence.com/24-years-in-the-pipeline-derek-lowe-topics-trends-turning-points/
1•shagie•32m ago•0 comments

Mastodon instance hosting servers that allow you to have longer posts?

https://old.reddit.com/r/Mastodon/comments/1y25vgx/are_there_any_mastodon_instance_hosting_servers/
1•doener•42m ago•1 comments

Open-Source FPGA The "startup idea" to "go big fast"

1•daly•44m ago•2 comments

West Coast Customs Turns a Tesla Model 3 into a 1955 Chevy Bel Air

https://electrek.co/2026/11/18/west-coast-customs-tesla-model-3-1955-chevy-bel-air-ev/
2•MilnerRoute•46m ago•0 comments

Show HN: A phase diagram of CoreWeave's GPU economics, from its Q3 10-Q

https://erikbethke.com/coreweave/index.html
1•erikbethke•46m ago•1 comments

Leonardo de Moura, creator of the Lean proof assistent

https://en.wikipedia.org/wiki/Leonardo_de_Moura
1•tomtomtom777•48m ago•1 comments

lo-pi radio

https://pudding.cool/projects/lopi/
1•bookofjoe•49m ago•0 comments

The first conceptually aware space-time information platform

https://graphmetrix.com/TwinPod
1•gibsonf1•49m ago•0 comments

Send Something to 2050

https://the2050capsule.com/
2•zermelo_circle•55m ago•1 comments

ProDOS, Briefly: Checking a ProDOS volume's directory tree against its bitmap

https://norsewanderer.com/blog/BlogDSK6.html
1•mheilemann•1h ago•0 comments

GitHub's "Security Advisory Permissions" a win for OSS security sustainability

https://sethmlarson.dev/github-security-advisory-permissions-sustainability
1•lumpa•1h ago•0 comments

Yuccas of the World

https://www.notesfromtheroad.com/desertmexico/yuccas.html
3•jger15•1h ago•1 comments

Tesla launches FSD v15, targets its biggest weaknesses, from signs to potholes

https://electrek.co/2026/11/21/tesla-fsd-v15-rollout-25x-safety-reality-view/
8•m348e912•1h ago•2 comments