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

Comments

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

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

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

Designing a Game Board for the TMS9918A

https://bumbershootsoft.wordpress.com/2026/03/07/designing-a-game-board-for-the-tms9918a/
1•ibobev•32s ago•0 comments

More Apple II chainable hard drives?

https://www.colino.net/wordpress/archives/2026/03/07/more-apple-ii-chainable-hard-drives/
1•ibobev•50s ago•0 comments

The True Scale Multiplication Grid

https://thechalkfaceblog.wordpress.com/2017/04/29/the-true-scale-multiplication-grid/
1•tzury•1m ago•0 comments

Ask HN: How to serve inference as we do with containes with cached token

1•elesbao•2m ago•0 comments

OS-Level Age Verification

https://waspdev.com/articles/2026-03-07/my-thoughts-on-os-level-age-verification
1•senfiaj•8m ago•0 comments

Old site, new site bookmarklets

https://www.autodidacts.io/old-site-new-site-bookmarklets/
1•Curiositry•11m ago•0 comments

Agent-town – A pixel-art AI agent online collaboration platform

https://github.com/geezerrrr/agent-town
2•felixding•13m ago•0 comments

Predicting Personality from Book Preferences with User-Generated Content Labels [pdf]

https://www.cs.ubc.ca/~lsigal/Publications/tac2018annalyn.pdf
1•Curiositry•14m ago•0 comments

We Moved from AWS to Hetzner. Cut Costs 89%. Here's the Catch

https://medium.com/lets-code-future/we-moved-from-aws-to-hetzner-cut-costs-89-heres-the-catch-961...
1•doener•16m ago•0 comments

Iranian Women Graduate in Stem 3× the Rate of U.S. Women and Has 5× More PhDs

https://hrnews1.substack.com/p/iranian-women-graduate-in-stem-at
1•williesmellson•16m ago•0 comments

When Distillation Strips the Soul: Safety Comparison of a Claude-Distilled Model

https://netrork.com/blog/when-distillation-strips-the-soul/
1•jrork•20m ago•0 comments

The User Is Stochastic: Testing Agentic Systems with Simulation and Evaluation

https://www.gojiberries.io/simulating-and-evaluating-agentic-systems/
1•neehao•20m ago•0 comments

They all said Hormuz closure would be brief. What if they were wrong?

https://www.lloydslist.com/LL1156532/They-all-said-Hormuz-closure-would-be-brief-What-if-they-wer...
1•everybodyknows•21m ago•0 comments

Quint: Executable Specs for Reliable Systems

https://quint-lang.org/
1•0xcafefood•21m ago•0 comments

We built a free AI local newspaper for towns that lost theirs

https://news.minir.ai/explore?town=chesterton
1•ToukoTok•24m ago•3 comments

The HArc Stack – A Web Stack Built on Raku

https://harcstack.org
1•TheWiggles•27m ago•0 comments

Show HN: Apc-CLI – sync AI memory across Claude Code, Cursor, Copilot

https://github.com/FZ2000/apc-cli
1•FZ2000•29m ago•0 comments

Ask HN: Building on-device call screening–no cloud, just local ML. Realistic?"

1•dorjedev•30m ago•0 comments

"Warn about PyPy being unmaintained"

https://github.com/astral-sh/uv/pull/17643
2•networked•31m ago•0 comments

New Strides Made on Deceptively Simple 'Lonely Runner' Problem

https://www.quantamagazine.org/new-strides-made-on-deceptively-simple-lonely-runner-problem-20260...
1•tzury•33m ago•0 comments

Don't bet that The Pentagon – or Anthropic – is acting in the public interest

https://www.theguardian.com/commentisfree/2026/mar/03/anthropic-openai-pentagon-ethics
1•gnabgib•33m ago•0 comments

Peter Pan (1928)

https://www.gutenberg.org/cache/epub/78131/pg78131-images.html
1•petethomas•33m ago•0 comments

Local News

https://news.minir.ai/
1•MRviber•34m ago•1 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•Wjh555777•36m ago•0 comments

Chinese Open Source: A Definitive History

https://interconnect.substack.com/p/chinese-open-source-a-definitive
1•mountainview•37m ago•0 comments

The Hive Mind

https://jacquesmattheij.com/the-hive-mind/
1•BatFastard•38m ago•1 comments

Voice Agents Latency

https://substack.com/home/post/p-189696660
2•agentropy•41m ago•0 comments

Roblox Is Minting Teen Millionaires

https://www.bloomberg.com/news/articles/2026-03-06/roblox-s-teen-millionaires-are-disrupting-the-...
3•petethomas•47m ago•0 comments

Secure Snake Home (SSH)

https://snake.eieio.games
1•fratellobigio•47m ago•1 comments

How AI Is Turbocharging the War in Iran

https://www.wsj.com/tech/ai/how-ai-is-turbocharging-the-war-in-iran-aca59002
1•JumpCrisscross•52m ago•0 comments