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

Comments

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

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

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

Robots That Can See Around Corners Using Radio Signals and AI

https://www.seas.upenn.edu/stories/robots-that-can-see-around-corners-using-radio-signals-and-ai/
1•geox•34s ago•0 comments

Inference Is the New Sales and Marketing Spend

https://www.saastr.com/inference-is-the-new-sales-marketing-spend/
1•gmays•3m ago•0 comments

Show HN: AgentWire – Talk to your AI coding agents by voice, across machines

https://github.com/dotdevdotdev/agentwire-dev
1•prradox•3m ago•1 comments

I let Claude Code with 150 offensive security MCP tools loose on my homelab

https://www.credrelay.com/p/claude-code-homelab-hack
1•jeffaf•3m ago•0 comments

Show HN: We told OpenClaw to rm -RF and it failed successfully

https://securetrajectories.substack.com/p/openclaw-rm-rf-policy-as-code
1•joshdevon•4m ago•0 comments

Why Is AI a Bubble

1•SharavFounder•5m ago•0 comments

El Paso flights grounded as FAA cites security reasons in 10-day airspace ban

https://www.elpasotimes.com/story/news/2026/02/11/el-paso-flights-halted-by-faa-until-feb-20-what...
1•dylan604•5m ago•0 comments

Embrace Your Laziness in the Age of AI

https://matthiasplappert.com/blog/2026/laziness-in-the-age-of-ai
1•mplappert•7m ago•0 comments

Why Do We Like Music?

https://www.newyorker.com/culture/annals-of-inquiry/why-do-we-like-music
1•fortran77•7m ago•1 comments

Something Big Is Happening

https://twitter.com/mattshumer_/status/2021256989876109403
1•mhb•7m ago•0 comments

The Bull Case for Software Companies

https://twitter.com/RaineyAllDay/status/2021581352454230141
1•arainey1•7m ago•0 comments

Tokens Aren't Fungible

https://whoisnnamdi.com/tokens-arent-fungible/
1•speckx•9m ago•0 comments

The many-to-many problem of endophenotypes in psychiatry-biological perspective

https://www.nature.com/articles/s41380-026-03473-y
1•bookofjoe•10m ago•0 comments

Thousands of Amateur Gamblers Are Beating Wall Street Ph.D.s

https://www.nytimes.com/2026/02/11/business/economy/forecasts-prediction-markets-economy.html
1•tysone•10m ago•0 comments

Show HN: I extract recipes from TikTok, Instagram, and the messy web

1•sklaiber•10m ago•0 comments

MiniMax M2.5

https://agent.minimax.io/
2•tosh•12m ago•0 comments

Show HN: Speak about AI tools and Earn Cash

https://www.toolspotting.com/
1•npguy•13m ago•0 comments

What breaks when AI agents do the shopping? (200-page book)

1•toddpiechowski•14m ago•2 comments

Death of Software. Nah

https://twitter.com/stevesi/status/2019167552794948020
1•RickJWagner•14m ago•0 comments

Show HN: Open-source AI agent pentester perform multi-stage exploits

https://github.com/FrancescoStabile/numasec
1•francesco_sta•14m ago•0 comments

GLM5 Released on Z.ai Platform

https://chat.z.ai/
2•CuriouslyC•14m ago•0 comments

Nano Lander

https://pavel-krivanek.github.io/nanolander/
1•xkriva11•14m ago•1 comments

Show HN: I reverse-engineered Mewgenics (game) to build a luck/RNG calculator

https://mewgenius.com/
1•causalzap•15m ago•0 comments

Show HN: I created an app to remove Reels, now on iOS too

https://apps.apple.com/us/app/scrollguard-block-reels/id6754183872
1•adrianhacar•16m ago•0 comments

TidyCode is your one-stop online code formatting and data processing hub

https://tidycode.org
1•zhouhua•16m ago•1 comments

Show HN: Gridpaper: Scientific figures in the browser, built on gnuplot via WASM

https://gridpaper.org/examples/
1•hnarayanan•16m ago•1 comments

Unicode 18.0.0 Alpha

https://www.unicode.org/versions/Unicode18.0.0/
1•birdculture•17m ago•0 comments

Show HN: I extract recipes from TikTok, Instagram, and the messy web

https://taste-buddy.app
1•sklaiber•17m ago•0 comments

Weave, an entity-level semantic merge driver for Git

https://github.com/Ataraxy-Labs/weave
1•pbowyer•18m ago•0 comments

Show HN: Server Compass – GUI SSH client, deploy like Vercel but VPS pricing

https://servercompass.app/
1•vankhoa1505•18m ago•0 comments