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•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?

US clears H200 chip sales to 10 China firms as Nvidia CEO looks for breakthrough

https://www.reuters.com/business/retail-consumer/us-clears-h200-chip-sales-10-china-firms-nvidia-...
1•layer8•1m ago•0 comments

Texas county pauses data center construction in rural areas

https://www.texastribune.org/2026/05/12/texas-hill-county-approves-data-center-construction-pause...
1•gmays•3m ago•0 comments

Deal reached with hackers to delete data stolen from the Canvas platform

https://www.nbcnews.com/tech/tech-news/deal-reached-hackers-delete-data-stolen-canvas-educational...
2•fortran77•4m ago•1 comments

Show HN: Nanci, CI written in plain Python, locally debuggable

https://nanci.dev/
1•Hex08•4m ago•0 comments

One in seven in UK prefer consulting AI chatbots to seeing doctor, study finds

https://www.theguardian.com/society/2026/may/13/one-in-seven-prefer-ai-chatbots-to-seeing-doctor-...
1•Brajeshwar•4m ago•0 comments

Blanet

https://en.wikipedia.org/wiki/Blanet
1•JumpCrisscross•6m ago•0 comments

A field manual for Deutsche Bahn

https://blog.hofstede.it/a-field-manual-for-three-years-on-deutsche-bahn/
1•fanf2•7m ago•0 comments

Plasma secrets: Windows position for naughty apps

https://www.dedoimedo.com/computers/plasma-window-position-2026.html
2•speckx•9m ago•0 comments

World's first laughing gas breathalyser trialled in England

https://news.sky.com/video/worlds-first-laughing-gas-breathalyser-trialled-in-england-13544036
1•austinallegro•9m ago•0 comments

Austin's population tops 1M residents for the first time

https://www.statesman.com/business/article/austin-population-tops-1-million-22258805.php
1•_JamesA_•9m ago•0 comments

Celebrating 10 Years of the MITx MicroMasters Programs

https://impact-openlearning.mit.edu/celebrating-10-years-of-the-mitx-micromasters-programs
1•raybb•10m ago•0 comments

GitHub Copilot's new desktop app

https://github.com/github/app
1•prosim•10m ago•1 comments

Bun's Rust rewrite has been merged

https://old.reddit.com/r/rust/comments/1tcrmjs/rewrite_bun_in_rust_has_been_merged/
3•ale•11m ago•0 comments

AI, open code and vulnerability risk in the public sector (UK)

https://www.gov.uk/guidance/ai-open-code-and-vulnerability-risk-in-the-public-sector
1•RobinL•14m ago•0 comments

How the Bird Eye Was Pushed to an Evolutionary Extreme

https://www.quantamagazine.org/how-the-bird-eye-was-pushed-to-an-evolutionary-extreme-20260513/
2•Brajeshwar•14m ago•0 comments

Why Do We Interface?

https://whydoweinterface.com/
2•structuredPizza•15m ago•0 comments

Jane Street Interview Simulator

https://janestreet.gg/
1•Jeanbu•15m ago•0 comments

A Single Infusion Could Suppress HIV for Years

https://www.nytimes.com/2026/05/11/health/hiv-infusion-immunotherapy.html
1•gmays•15m ago•0 comments

Discover Crosspad the best finger drumming web app

https://crosspad.app/
1•Brosper•20m ago•0 comments

Physics Guarantees the Datasphere Keeps Expanding (and What It Means for Agents)

https://twitter.com/i/status/2054961517767061668
1•dataranger•21m ago•0 comments

Show HN: BlitzGraph – Supabase for graphs, designed for LLM agents

https://blitzgraph.com
1•lveillard•22m ago•0 comments

Ambient Intents

https://xcancel.com/timourxyz/status/2054589504934273373
1•yurivish•22m ago•0 comments

Cannabis and driving? Studies reveal big risks

https://news.cuanschutz.edu/news-stories/cannabis-and-driving-studies-reveal-big-risks
3•PaulHoule•22m ago•0 comments

AI models are being used to predict conflict

https://www.economist.com/science-and-technology/2026/05/13/ai-models-are-being-used-to-predict-c...
2•Brajeshwar•23m ago•0 comments

Entire - How We Improved Agentic Search

https://entire.io/blog/improving-agentic-search-in-coding-agents
1•tanishqkanc•24m ago•0 comments

Claude Code cost observability to prevent tokenmaxxing

https://github.com/delta-hq/cc-ledger
1•tsv650•24m ago•1 comments

Which programming language is fastest?

https://benchmarksgame-team.pages.debian.net/benchmarksgame/index.html
1•tosh•24m ago•0 comments

Synthetic evaluation datasets for testing AI agents before production deployment

https://paixblox.github.io/learned/
1•cemillxchange•25m ago•0 comments

What's in a GGUF, besides the weights – and what's still missing?

https://nobodywho.ooo/posts/whats-in-a-gguf/
2•bashbjorn•27m ago•0 comments

The coming AI jobs-pocalypse

https://katecarruthers.com/ai-jobs-future/
1•speckx•28m ago•3 comments