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?

The Video Software That Powers the Internet (and Almost Nobody Knows It Exists)

https://roughcut.heyeddie.ai/p/the-video-software-that-powers-the
1•rantingdemon•2m ago•0 comments

Tapes: transparent AI agent telemetry

https://johncodes.com/archive/2026/02-09-introducing-tapes/
1•speckx•2m ago•0 comments

A foundation model of vision, audition, and language for in-silico neuroscience

https://ai.meta.com/research/publications/a-foundation-model-of-vision-audition-and-language-for-...
1•dkrylov•3m ago•0 comments

How to Kill a Tech Monopoly

https://www.fourplex.net/2026/03/25/how-to-kill-a-tech-monopoly/
1•bbsc•4m ago•0 comments

Beijing's surprise intervention on Meta's Manus rattles tech founders

https://www.cnbc.com/2026/03/27/meta-manus-china-review-singapore-washing-model-regulation-.html
1•inaros•5m ago•0 comments

Clawbolt: AI assistant for contractors, not knowledge workers

https://blog.mozilla.ai/the-hardest-part-of-running-a-small-business-in-the-trades/
1•river_otter•6m ago•1 comments

Show HN: A votable list of the one thousand best books

https://kylebenzle.com/bookreviews.php
1•hilliardfarmer•9m ago•0 comments

Show HN: Foundry: a Markdown-first CMS written in Go

https://github.com/sphireinc/Foundry
2•nsayoda•15m ago•1 comments

Jaybird 6.0.5 Released

https://firebirdsql.org/en/news/jaybird-6-0-5-and-jaybird-5-0-12-released
1•mariuz•16m ago•0 comments

Speculative Decoding: Performance or Illusion?

https://specdecode-bench.github.io/
1•matt_d•16m ago•0 comments

Ask HN: Mercury Bank closed account due to residency – alternatives?

1•salleisha•17m ago•1 comments

LLM Persuasion Benchmark: Multi-Turn Persuasion Between Models

https://github.com/lechmazur/persuasion
5•zone411•18m ago•0 comments

Confinia – a supervised market research runtime for live trading systems

https://github.com/bamhann/confinia
1•bamhann•18m ago•0 comments

Scaling Laws: Should AI Laws Be Subject to a Higher Standard? [video]

https://www.youtube.com/watch?v=sx7FdK6ufPg
1•verdverm•18m ago•0 comments

Katpack.ai – a pack of AI agents that argue, vote, and sign before any trade

https://katpack.ai
2•claydronze•19m ago•0 comments

AI contract review for people afraid to sign

https://equaldocs.com
3•nmei•22m ago•2 comments

Why Software Engineering Will Never Die Revisited in the Age of Spec Driven Dev

https://www.i-programmer.info/professional-programmer/103-i-programmer/18759-why-software-enginee...
3•aquastorm•22m ago•1 comments

Cache Energy's Thermal Battery

https://www.wsj.com/business/energy-oil/thermal-battery-cache-energy-cement-799295ca
2•connoronthejob•23m ago•0 comments

How Apple became Apple: The definitive oral history of company's earliest days

https://www.fastcompany.com/91514404/apple-founding-50th-anniversary-apple-1-apple-ii-jobs-wozniak
5•CharlesW•23m ago•0 comments

Myelin – Procedural memory for AI agents

https://myelin.vercel.app
2•maksyyy•23m ago•0 comments

The first deterministic RAG system (same query = same results, every time)

https://saiql.ai/Atlas_LRAG-CE/
3•apolloraines•23m ago•1 comments

Browser-based SFX synthesizer using WASM/Zig

https://knell.medieval.software/studio
3•galsjel•24m ago•1 comments

Frenzy – Real-time prediction market where every trade resolves in 5 seconds

https://frenzy.finance
2•tinfoilcat•25m ago•1 comments

Structure and mechanistic basis of NrdR, a bacterial master regulator

https://www.sciencedirect.com/science/article/pii/S0141813026005738
3•PaulHoule•26m ago•0 comments

The Kleene Star

https://en.wikipedia.org/wiki/Kleene_star
2•dhorthy•27m ago•0 comments

A SECOND Sphinx detected in Egypt as scans hint at 'underground megastructure'

https://www.dailymail.co.uk/sciencetech/article-15681329/second-sphinx-egypt-giza-plateau.html
2•Brajeshwar•28m ago•0 comments

Anthropic's context-window.md is 18,501 tokens. 551 are content. I have notes

https://claylo.dev/articles/markdown-cosplay/
3•claylo•28m ago•1 comments

MCP Subagents

https://cameronwestland.com/mcp-subagents/
3•camwest•29m ago•1 comments

Amazon Dies: A Possible, Maybe Likely Future

https://markatwood.substack.com/p/how-amazon-dies-a-possible-maybe
2•greedo•31m ago•1 comments

Common Questions Asked in Investor Pitches

https://kailaos.com/blog/most-common-questions-in-investor-pitches
2•babaliauskas•32m ago•0 comments