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

Comments

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

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

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

Show HN: OpenRig – agent harness that runs Claude Code and Codex as one system

https://github.com/mvschwarz/openrig
1•mschwarz•26s ago•0 comments

The Problem Isn't the Model, It's What It's Reading

https://www.ryanmcdonough.co.uk/the-problem-isnt-the-model-its-what-its-reading/
1•pierre•1m ago•0 comments

Deep Dive into Efficient LLM Inference with Nano-vLLM

https://cefboud.com/posts/inside-llm-inference-engine-nano-vllm-explanation/
1•cefboud•3m ago•0 comments

Your article about AI doesn’t need AI art

https://www.theverge.com/ai-artificial-intelligence/910460/new-yorker-david-szauder-illustration-...
1•satvikpendem•4m ago•1 comments

Apple App Store threatened to remove Grok over deepfakes: Letter

https://www.nbcnews.com/tech/tech-news/apple-threat-remove-grok-app-store-deepfake-letter-musk-x-...
1•donohoe•5m ago•0 comments

Reframing the Developer Experience of Data Assembly

https://allmonday.github.io/pydantic-resolve/blog_pydantic_resolve_vs_orm/
1•tank-34•5m ago•0 comments

John Deere Pays $99M to Settle 'Right to Repair' Class Action

https://www.techdirt.com/2026/04/14/john-deere-pays-99-million-to-settle-right-to-repair-class-ac...
2•cdrnsf•11m ago•0 comments

Did Taylor Swift Kill a Bunch of People?

https://www.nytimes.com/2026/04/10/well/car-crashes-streaming-friday-harvard.html
1•neehao•11m ago•1 comments

Characterizing the repeatability of cardiovascular responses to hypoxic apneas

https://physoc.onlinelibrary.wiley.com/doi/10.14814/phy2.70692
1•PaulHoule•14m ago•0 comments

Pointer-Stable Dynamic Arrays

https://vectrx.substack.com/p/pointer-stable-dynamic-arrays
1•whobre•15m ago•0 comments

NASA chose the right crew to launch a new era of human space exploration

https://arstechnica.com/space/2026/04/rockets-and-spaceships-are-cool-but-the-humanity-of-artemis...
2•LorenDB•16m ago•0 comments

Meta creating AI version of Mark Zuckerberg so staff can talk to the boss

https://www.theguardian.com/technology/2026/apr/13/meta-ai-mark-zuckerberg-staff-talk-to-the-boss
2•cpeterso•17m ago•0 comments

Show HN: Spectre: A systems design-by-contract language, self hosted compiler

https://spectrelang.org
2•death_eternal•17m ago•0 comments

NixOS example config using the dendritic pattern with flake-parts and hjem

https://github.com/eduardofuncao/nali
1•xGoivo•19m ago•1 comments

The Myopic Architects

https://twitter.com/AI_MickyJ/status/2043749839192649942
1•jger15•23m ago•0 comments

Sidecar: Mirror VS Code Copilot Chat to your phone over a WebSocket bridge

https://github.com/Davidobot/vscode-copilot-chat-sidecar
1•davidobot•24m ago•0 comments

Is the Strait of Hormuz Open?

https://isthestraitopen.io/
4•prngl•26m ago•0 comments

CadQuery is an open-source Python library for building 3D CAD models

https://cadquery.github.io/
1•gregsadetsky•26m ago•0 comments

Netgear Scores the First Exemption from the FCC's Foreign-Made Router Ban

https://www.pcmag.com/news/netgear-scores-the-first-exemption-from-the-fccs-foreign-made-router-ban
3•jnord•27m ago•0 comments

Suckless Screenshot Utility for Xorg

https://github.com/uint23/xnap
2•Jotalea•28m ago•0 comments

Show HN: I built a self-improving autonomous AI agent that runs 24/7

https://hergimuci.gumroad.com/l/ai-agent-blueprint
1•OpenClawAura•28m ago•0 comments

Italy Implements a New Labor Leave That Allows Workers to Care for Sick Pets

https://colombiaone.com/2026/04/11/italy-labor-leave-care-sick-pets/
1•doener•28m ago•0 comments

How Depression Physically Feels

https://passiveaggressionoftheworlds.substack.com/p/how-depression-feels
1•bunson_burner•31m ago•1 comments

Punjabi Kids YouTube – Rhymes and Learning

https://www.youtube.com/channel/UCuC2pezENaY3BTsDnACzY-w
1•fatbrother•32m ago•0 comments

I built an AI podcast that roasts a company with Lennys Newsletter as ammunition

https://www.lennyseviltwin.com/
1•Qlwentt•32m ago•1 comments

Measuring Human Performance on ARC-AGI-3

https://arcprize.org/blog/arc-agi-3-human-dataset
2•sanxiyn•34m ago•0 comments

PyCon needs 1,146 more hotel nights to meet "hotel minimum bookings."

https://twitter.com/LundukeJournal/status/2044107055049388115
3•fortran77•36m ago•0 comments

You can literally build a neural network w your hands. This CTO open-sourced how

https://twitter.com/lenadroid/status/2044185631396639195
1•lenadroid•36m ago•1 comments

The Most Boring Book in the World

https://ei3lh.eu/2026/04/14/the-most-boring-book-in-the-world/
1•austinallegro•38m ago•0 comments

A Terminal Spotify Client

https://github.com/dubeyKartikay/lazyspotify
1•Jotalea•39m ago•0 comments