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

Comments

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

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

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

Show HN: Konform Browser v140.7.0-108

https://codeberg.org/konform-browser/source/releases/tag/140.7.0.108
1•konform•1m ago•0 comments

Structure Beats Prose: Specs for Coding Agents That Work

https://medium.com/@stefanvanegmond/structure-beats-prose-specs-for-coding-agents-that-actually-w...
1•stefanve•4m ago•0 comments

Design is dead, it's all evolution now

https://ilyabirman.net/meanwhile/all/design-vs-evolution/
1•rozboris•5m ago•0 comments

Mistral.rs – Fast, zero-config multimodal LLM inference for a variety of models

https://github.com/EricLBuehler/mistral.rs
1•Curiositry•6m ago•0 comments

Benchmarking Claude C Compiler

https://dineshgdk.substack.com/p/benchmarking-claude-c-compiler
1•dinesh_gdk•6m ago•1 comments

What Moltbook alternatives are doing some actual constructive work?

1•Fh_•6m ago•0 comments

Show HN: PhoneClaw

https://github.com/rohanarun/phoneclaw
1•GPUboy•7m ago•0 comments

Towards a Standard for JSON Document Databases

https://arxiv.org/abs/2509.12189
1•ingve•10m ago•0 comments

Brutalist Southbank Centre Listed

https://www.architectsjournal.co.uk/news/brutalist-southbank-centre-finally-listed-after-35-years...
2•daverol•14m ago•0 comments

Sandboxing Systemd Services

https://ejaaskel.dev/sandboxing-systemd-services/
1•weinzierl•16m ago•0 comments

Ask HN: Starting my own startup to increase compute density

2•isubasinghe•16m ago•0 comments

Linux USB iPhone Tethering

https://wiki.archlinux.org/title/IPhone_tethering
3•walterbell•20m ago•0 comments

Why the Internet Is Terrified of London

https://www.youtube.com/watch?v=uDkyP37JgY0
2•robin_reala•27m ago•0 comments

AI Coding Is a Framework–Use It Like a Library

https://www.piglei.com/articles/en-ai-coding-is-a-framework/
2•zdyxry•29m ago•0 comments

A one-prompt attack that breaks LLM safety alignment

https://www.microsoft.com/en-us/security/blog/2026/02/09/prompt-attack-breaks-llm-safety/
1•weinzierl•32m ago•0 comments

Subscription plans for YouTube TV are now cheaper

https://www.neowin.net/news/good-news-for-youtube-tv-users-cheaper-plans-are-now-available/
1•bundie•32m ago•0 comments

Show HN: YAML-based security framework for CDN edge (CloudFront / Cloudflare)

https://github.com/albert-einshutoin/cdn-security-framework
1•einshutoin•33m ago•1 comments

How to Keep What You Built Together

https://claudepress.substack.com/p/how-to-keep-what-you-built-together
1•Paodim•39m ago•0 comments

Composer 1.5

https://cursor.com/blog/composer-1-5
2•albingroen•48m ago•1 comments

A few design decisions for a new chat platform

https://sporks.space/2026/02/10/a-few-design-decisions-for-a-new-chat-platform/
2•todsacerdoti•48m ago•0 comments

Show HN: Canon-C – a semantic C library

https://github.com/Fikoko/Canon-C
1•Fikoko•49m ago•0 comments

Ask HN: How do you maximize your luck surface area?

2•tiny-automates•51m ago•2 comments

Show HN: Local-first bookmark app for files, folders, and websites

https://www.pixelcoated.com/nb/
1•intensemagenta•54m ago•1 comments

Show HN: Pincer-MCP – Stop AI agents from reading their own credentials

https://github.com/VouchlyAI/Pincer-MCP
1•why_prem•55m ago•0 comments

Fiorello La Guardia and the Making of Modern New York

https://www.thenation.com/article/society/la-guardia-new-york-mike-wallace-gotham-at-war/
1•petethomas•57m ago•0 comments

Are we in an AI Bubble? A researched thesis detailing both sides.

https://www.cjroth.com/blog/2026-02-10-are-we-in-an-ai-bubble
2•thoughtfulchris•58m ago•0 comments

How Oura Ring Won over Washington

https://www.politico.com/news/2026/02/09/oura-ring-lobbying-rfk-maha-washington-00770320
2•0in•59m ago•0 comments

A16Z-backed super PAC is targeting Alex Bores

https://techcrunch.com/2025/11/17/a16z-backed-super-pac-is-targeting-alex-bores-sponsor-of-new-yo...
5•measurablefunc•1h ago•2 comments

Any public labeled dataset of (customer question → seasoned sales response)?

1•StupidoMaximo•1h ago•0 comments

Can you rewire your brain?

https://aeon.co/essays/what-the-metaphor-of-rewiring-gets-wrong-about-neuroplasticity
3•Hooke•1h ago•1 comments