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?

A search for life on Earth (1993) [pdf]

https://gwern.net/doc/science/physics/astronomy/1993-sagan.pdf
1•mimorigasaka•2m ago•0 comments

AI Mania Is Eviscerating Global Decisionmaking

https://hermit-tech.com/blog/ai-mania-is-eviscerating-global-decisionmaking
1•olalonde•2m ago•0 comments

Ask HN: I've told everyone about my startup and its been harder than I thought

2•bunnybomb2•10m ago•0 comments

San Francisco orders Apple, Google to remove nudify apps from app stores

https://arstechnica.com/tech-policy/2026/07/apple-google-must-stop-profiting-off-ai-nudify-apps-s...
1•rbanffy•12m ago•0 comments

Not Holding Back the Ocean

https://ethanniser.dev/blog/not-holding-back-the-ocean/
1•tosh•18m ago•0 comments

There's a lot of hype around perimenopause. Don't buy it

https://www.technologyreview.com/2026/07/17/1140608/theres-a-lot-of-hype-around-perimenopause-don...
1•joozio•21m ago•0 comments

LLM Cliché Highlighter

https://tools.simonwillison.net/llm-cliche-highlighter
1•m_c•34m ago•0 comments

Can humans hibernate their way to Mars?

https://www.theguardian.com/science/ng-interactive/2026/jul/14/human-hibernation-space-mars
2•tosh•35m ago•0 comments

Agentic AI Is Taking over Execution, Not Just Content Generation

https://themarketingnewsletter.org/p/45-agentic-ai-is-taking-over-execution
1•thenewedrock•35m ago•1 comments

AI and Creativity

https://sunnyamrat.com/posts/2026-07-17-ai-creativity/
1•sunnyam•46m ago•0 comments

What Doom taught us about AI-assisted incident response

https://rootly.com/blog/what-doom-taught-us-about-ai-assisted-incident-response
1•DaWe01•47m ago•0 comments

Teamclaude rewrite in rust, run multiple Claude accounts in parllel

https://github.com/dhkts1/teamclaude-rs
1•dhkts1•47m ago•0 comments

Show HN: Find someone in the dark – light them or light yourself? (Three.js)

https://github.com/skorotkiewicz/signal-in-the-dark
3•modinfo•51m ago•0 comments

The Day I Accidentally Deleted Production

https://arpitbhayani.me/blogs/deleted-production/
2•dubeysatyam•55m ago•0 comments

Maze Bench

https://mazebench.com/
2•tosh•57m ago•0 comments

What Happened to Novell NetWare? Why the King of the Network Disappeared

https://www.youtube.com/watch?v=3NNbj1NoePI
2•cable2600•58m ago•0 comments

AgentGrove – local workspace for AI coding agents in Git worktrees

https://github.com/arnabk/agentgrove
2•arnabk•59m ago•0 comments

Labelled multi-dimensional arrays for representing research data

https://www.djmannion.net/data_nd/index.html
2•zetamax•1h ago•0 comments

I built a tool to prove a human reviewed an AI decision

https://caneni.net/
1•mbugay•1h ago•0 comments

Vice President Mispells « potato » (1992)

https://en.wikipedia.org/wiki/Dan_Quayle
1•jackhalford•1h ago•1 comments

Israeli ministers announce new illegal settlements in Gaza and West Bank

https://www.theguardian.com/world/2026/jul/18/israel-plan-new-illegal-settlements-gaza-west-bank-...
3•hebelehubele•1h ago•0 comments

The cost of saying yes has changed

https://github.blog/engineering/the-cost-of-saying-yes-has-changed/
2•e2e4•1h ago•1 comments

SigLIP 2 text embedding on CPU with Rust and ONNX

https://github.com/Hebbian-Robotics/siglip-onnx-server
1•kstonekuan•1h ago•0 comments

Elon Musk's Memphis AI empire is the epicenter of the data center backlash

https://www.cnbc.com/2026/07/16/elon-musk-memphis-ai-colossus-data-center.html
2•1vuio0pswjnm7•1h ago•0 comments

SpaceX stock has cratered nearly 23% since the company joined the Nasdaq-100

https://www.cnbc.com/2026/07/17/spacex-stock-starship-test-flight-aborted.html
2•1vuio0pswjnm7•1h ago•0 comments

The Java Story – The Official Documentary [video]

https://www.youtube.com/watch?v=ZqGSg4b_cZA
1•Tomte•1h ago•0 comments

US judge won't block Meta laying off workers who filed AI discrimination suit

https://www.reuters.com/business/world-at-work/us-judge-wont-block-meta-laying-off-workers-who-fi...
2•1vuio0pswjnm7•1h ago•0 comments

An Open Letter to A24 about Backrooms Copyright

https://backroomsmovie.com/2026/07/an-open-letter-to-a24-about-backrooms-copyright/
3•Tomte•1h ago•0 comments

Kimi K3 is the best performing model on Next.js evals

https://twitter.com/rauchg/status/2077900518404321759
1•tosh•1h ago•0 comments

Cicy-code – a local-first multi-agent coding workspace via npx

https://github.com/cicy-ai/cicy-code
2•cicyai•1h ago•0 comments