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?

Behind the Pretty Frames: Pragmata

https://mamoniem.com/behind-the-pretty-frames-pragmata/
1•corysama•32s ago•0 comments

Depwire – Codebase dependency graph and MCP server for AI coding assistants

https://github.com/depwire/depwire
1•atefataya•49s ago•1 comments

AI for Alzheimer's

https://openaifoundation.org/news/ai-for-alzheimers
1•tosh•1m ago•0 comments

DARPA puts money where bots' mouths are, seeks new science of AI communication

https://www.theregister.com/2026/04/08/darpa_wants_ai_agent_communication/
1•Brajeshwar•2m ago•0 comments

Claude Managed Agents: everything you need to build and deploy agents at scale

https://twitter.com/i/status/2041927687460024721
1•matthieu_bl•2m ago•0 comments

I've been waiting over a month for Anthropic support to respond

https://nickvecchioni.github.io/thoughts/2026/04/08/anthropic-support-doesnt-exist/
1•nickvec•3m ago•0 comments

The Future of Everything Is Lies, I Guess: Dynamics

https://aphyr.com/posts/412-the-future-of-everything-is-lies-i-guess-dynamics
1•rdtsc•3m ago•0 comments

NERC is 'actively monitoring the grid' following Iran-linked cyber threat

https://www.utilitydive.com/news/nerc-cisa-iran-war-cyber-hacking/816914/
1•boringg•4m ago•0 comments

AI-to-Butt Chrome Plugin

https://chromewebstore.google.com/detail/ai-to-butt/npaglkhfpoakfebkkomapklcnojpmoel
1•roseleaf•5m ago•3 comments

1SubML: Plan vs. Reality

https://blog.polybdenum.com/2026/04/05/1subml-plan-vs-reality.html
1•fanf2•6m ago•0 comments

Fragile U.S.-Iran ceasefire shows cracks as attacks continue across the region

https://www.npr.org/2026/04/08/nx-s1-5777291/iran-war-updates
2•Jimmc414•6m ago•0 comments

Plain of Jars Archaeological Project (Pjarp)

https://www.plain-of-jars.org/
1•yeah879846•7m ago•1 comments

Prevent confidential data leaks at compile time with labelled types in Sigil

https://inerte.github.io/sigil/articles/labelled-types-and-boundary-rules/
1•inerte•9m ago•0 comments

Show HN: A two (or single) player codenames like game with an embedding based AI

https://lokimax.dev/games/links/
2•maxwg•9m ago•1 comments

How Costco Won in Japan

https://www.readtrung.com/p/how-costco-won-in-japan
2•gmays•9m ago•0 comments

Dux – Distributed DuckDB-Native DataFrames for Elixir

https://dux.now/
1•whalesalad•10m ago•0 comments

Show HN: Palinode – Git-versioned Markdown memory for AI agents

https://github.com/Paul-Kyle/palinode
1•paulkyle•10m ago•0 comments

Surelock: Deadlock-Free Mutexes for Rust

https://notes.brooklynzelenka.com/Blog/Surelock
1•codetheweb•11m ago•0 comments

Untangling Tokio and Rayon in production: From 2s latency spikes to 94ms flat

https://lobste.rs/s/bjgxm3/untangling_rayon_tokio
2•dylan-brinc•12m ago•0 comments

Intel is going all-in on advanced chip packaging

https://www.wired.com/story/why-chip-packaging-could-decide-the-next-phase-of-the-ai-boom/
1•rbanffy•13m ago•0 comments

Should Chat(TextArea) be the new homepage for SaaS?

https://www.openui.com/blog/should-chat-be-the-new-homepage-for-saas
1•zahlekhan•13m ago•0 comments

Allium

https://github.com/juxt/allium/tree/main
1•AlphaWeaver•13m ago•0 comments

S3 Is Not a Filesystem (But Now There's One in Front of It)

https://www.lastweekinaws.com/blog/s3-is-not-a-filesystem-but-now-theres-one-in-front-of-it/
1•stevehipwell•13m ago•0 comments

ClawsBench shows GPT-5.4 tries to reward hack 80% of the time

https://arxiv.org/abs/2604.05172
3•xdotli•13m ago•1 comments

Anthropic Launches Claude Managed Agents

https://www.wired.com/story/anthropic-launches-claude-managed-agents/
1•razcle•15m ago•0 comments

AI Is Really Weird

https://www.wheresyoured.at/ai-is-really-weird/
2•crescit_eundo•15m ago•0 comments

Deadnet is agent vs. agent gameplay and chat

https://deadnet.io
1•drewlong•19m ago•1 comments

Brit says he is not elusive Bitcoin creator named by New York Times

https://www.bbc.com/news/articles/cgrl4l1y9yxo
2•Brajeshwar•20m ago•0 comments

Show HN: Embedding Similarity with Confidence Intervals

https://www.embedding-analytics.com
1•areebms•20m ago•0 comments

OpenRAG

https://github.com/langflow-ai/openrag
2•saikatsg•21m ago•0 comments