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?

Show HN: A 3D sky city where my Claude Code agents work and take coffee breaks

https://github.com/ishraq21/skyborne
1•Ishraq21•6s ago•0 comments

Don't Feed the AI

https://github.com/zeroc00I/DontFeedTheAI
1•car•2m ago•1 comments

Show HN: GPT-3.5 answered, GPT-4 voided; I built an EOS gate for AGI

https://getswiftapi.com
1•rayanpal_•2m ago•0 comments

Intel Accelerates Open Infrastructure for the Agentic AI Era

https://www.intel.com/content/www/us/en/newsroom/news/artificial-intelligence/intel-accelerates-o...
1•boyter•10m ago•0 comments

Measure a Workflow, Not a System

https://rlafuente.com/posts/2026-10-11-agent-evals-2-measure-a-workflow.html
1•andes314•10m ago•0 comments

Show HN: Open Health Sync – Self-hosted API for wearable and health data

https://github.com/soma-intelligence/open-health-sync
1•quentincaron0•13m ago•0 comments

Why agents lose the plot on large or legacy codebases

https://loopsfinity.com/blog-context-rot-large-codebases
1•shymaple•14m ago•0 comments

FBI arrests Canadian cybersecurity expert in ShinyHunters hacking case

https://www.cbc.ca/news/canada/canadian-cybersecurity-expert-arrested-fbi-shinyhunters-9.7378256
1•empressplay•14m ago•0 comments

Costa Vayenas, Insights from "The Swiss Franc 1798 – 2055" [video]

https://www.youtube.com/watch?v=5-KdMBQkUic
2•johntfella•15m ago•0 comments

Fork-and-Flush: Escaping Idea Basins in Autoresearch Agents

https://arxiv.org/abs/2610.07447
2•matt_d•18m ago•0 comments

Stateless Language Agents: Scaling Long-Horizon Automated Research

https://arxiv.org/abs/2610.07625
2•matt_d•24m ago•0 comments

When should an agent own the control flow?

https://www.calm.rocks/blog/pipeline-vs-agent/
1•calmrocks•25m ago•1 comments

Trader Nets $1.28M on Papertrade as 1,000x Leverage Raises Risk Questions

https://coinmarketcap.com/community/post/380070089/
1•joeymabia1•26m ago•0 comments

PhoneBot: A Low-Cost Open Humanoid Robot Platform Reusing Smartphones

https://arxiv.org/abs/2610.08737
1•geox•26m ago•0 comments

Eliminating a gut microbe could slash gastric cancers (2024)

https://www.science.org/content/article/eliminating-gut-microbe-could-slash-gastric-cancers
1•rzk•27m ago•0 comments

J Spalletta Convicted for Defrauding Crypto Exchange of $50M in Hacks

https://www.justice.gov/usao-sdny/pr/jonathan-spalletta-convicted-defrauding-crypto-exchange-over...
2•Gaishan•27m ago•0 comments

AI Mentions Checker: Track Your Brand Visibility in AI Search

1•Scarlett5•30m ago•0 comments

NFL Big Data Bowl 2027

https://www.kaggle.com/c/nfl-big-data-bowl-2027
1•duck•32m ago•0 comments

Harpie – A local SSH key manager for Windows

https://github.com/HarpieDev/SSHKeyManager
1•Harpie•34m ago•0 comments

Why the Nobel Prize in Economics Went to Robert Hall and Michael Woodford

https://finshots.in/archive/why-the-nobel-prize-in-economics-went-to-robert-hall-and-michael-wood...
1•vismit2000•38m ago•0 comments

Show HN: Search for AI agents with usefulness score built in

https://github.com/Ayobamiu/usefulness-search
2•Ayobamiu•40m ago•0 comments

Subagents, Forks and Collapsing Context

https://arthur.place/subagents-forks-collapsing-context
1•arthurfiorette•40m ago•0 comments

dont Show HN:we made betr Moltbook alt thecollectives.dev social media/AI agents

https://www.thecollectives.dev/
2•nirav_rohra•48m ago•0 comments

OpenCode 2.0

https://anoma.ly/notes/opencode-2-0/
2•luispa•50m ago•1 comments

Can we change an AI model's architecture without retraining it from scratch?

https://www.amazon.science/blog/can-we-change-an-ai-models-architecture-without-retraining-it-fro...
1•qtqtqt•50m ago•1 comments

Barbed Wire Telephone: How Farmers Turned Fences into Phone Lines

https://commonplacefacts.com/2026/03/22/barbed-wire-telephone-network/
1•datas•50m ago•0 comments

Show HN: Malleable video editor that adapts to your workflow

https://github.com/iterative-computer/powermove
1•judekim0507•52m ago•0 comments

Show HN: vne – .env util for agents

https://github.com/pro-vi/vne
1•pro-vi•53m ago•1 comments

Show HN: ClaudeGuard – fixes the MSIX bug that nukes your Claude Code history

https://sidheart.gumroad.com/l/claudeguard
1•SifatAhmed•55m ago•1 comments

Show HN: RL environment for complex ML Development

https://blazerops.ai
2•jiminseo•1h ago•1 comments