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?

Have we tried asking women about the 'birth rate crisis' yet? – Glamour UK

https://www.glamourmagazine.co.uk/article/falling-birth-rates-uk-feminist-solution
1•janandonly•1m ago•0 comments

Extracting Gold from Antigravity's Brain

https://justin.poehnelt.com/posts/extracting-gold-from-antigravitys-brain/
1•justinwp•1m ago•1 comments

Frontier-CS 1.0 Release

https://frontier-cs.org/blog/feb-release/
1•matt_d•3m ago•0 comments

Show HN: Run QuantLib pricing in parallel via gRPC and FlatBuffers

https://github.com/joseprupi/quantraserver
1•melenaboija•3m ago•0 comments

How I've run major projects (2025)

https://www.benkuhn.net/pjm/
1•thomascountz•4m ago•0 comments

Show HN: I Made Claude Code for Calories Tracking

https://apps.apple.com/gb/app/ai-calories-tracker-bitekit/id6754662601
1•dvolkhonskiy•5m ago•2 comments

Ask HN: "Marking" Paywalled Articles Posted on HN

1•zahirbmirza•6m ago•0 comments

Historical Change in Midlife Development from a Cross-National Perspective

https://journals.sagepub.com/doi/10.1177/09637214251410195
1•ryan_j_naughton•7m ago•0 comments

Notepad++ supply chain attack breakdown

https://securelist.com/notepad-supply-chain-attack/118708/
2•natebc•7m ago•0 comments

Lexicon of Life Regulation

https://blog.hermesloom.org/p/lexicon-of-life-regulation
1•sigalor•10m ago•0 comments

Simulation, Consciousness, Existence (1998)

https://www.organism.earth/library/document/simulation-consciousness-existence
1•mrexroad•11m ago•0 comments

Walmart hits $1T market cap

https://www.cnbc.com/2026/02/03/walmart-wmt-hits-1-trillion-market-cap.html
2•ChrisArchitect•13m ago•0 comments

International AI Safety Report 2026

https://internationalaisafetyreport.org/publication/international-ai-safety-report-2026
2•sonabinu•16m ago•0 comments

Does AI already have human-level intelligence? The evidence is clear

https://www.nature.com/articles/d41586-026-00285-6
1•bookofjoe•18m ago•3 comments

Show HN: Obsidian meets Claude Code. A Markdown graph for agents and context

https://github.com/voicetreelab/voicetree
2•manumasson•19m ago•0 comments

A Role Model for How to Die

https://www.nytimes.com/2026/02/03/nyregion/cancer-friend-death-role-model.html
1•anarbadalov•20m ago•0 comments

Show HN: Dynamic Markdown Flashcards without database (Obsidian)

https://twitter.com/AlexWeichart/status/2018812097828962629
2•surrTurr•20m ago•0 comments

Scurl: Agent First Curl Wrapper with Markdown Extraction and Secret Blocking

https://github.com/sibyllinesoft/scurl
1•CuriouslyC•20m ago•1 comments

French headquarters of Elon Musk's X raided by Paris cybercrime unit

https://www.theguardian.com/technology/2026/feb/03/french-headquarters-elon-musk-x-raided-paris-c...
4•billybuckwheat•22m ago•1 comments

Democrats unveil WA income tax on people earning over $1M

https://www.seattletimes.com/seattle-news/politics/democrats-unveil-wa-income-tax-on-people-earni...
3•garbawarb•26m ago•1 comments

A CFO explains the history of EBITDA [video]

https://www.youtube.com/watch?v=JySZv_fSNqs
1•cjgustafson22•27m ago•0 comments

Evaluating Multilingual, Context-Aware Guardrails

https://blog.mozilla.ai/evaluating-multilingual-context-aware-guardrails-evidence-from-a-humanita...
1•benbreen•28m ago•0 comments

Ask HN: How do you detect silent data loss in user-facing systems?

1•Pepp38•28m ago•1 comments

Ask HN: Cheap laptop for Linux without GUI (for writing)

4•locusofself•31m ago•0 comments

Solving the AI Agent Dilemma: "Ask" Redefines Agent Skills Distribution

https://github.com/yeasy/ask
2•yeasy•33m ago•1 comments

Hostile (Corporate) Architecture

https://www.thevinter.com/blog/hostile_corporate_architecture
1•thevinter•33m ago•0 comments

uops-again.info: corner-case behaviours of port assignment on Intel processors

https://uops-again.info/
1•matt_d•34m ago•1 comments

In Depth – Memory Governance: The Achilles' Heel of Enterprise AI

http://yeasy.blogspot.com/2026/01/in-depth-memory-governance-achilles.html
1•yeasy•34m ago•1 comments

The Death of Code and the Rise of Data: The Software Economics Revolution in AI

http://yeasy.blogspot.com/2026/01/the-death-of-code-and-rise-of-data.html
1•yeasy•36m ago•1 comments

Electronicos Fantasticos

https://www.electronicosfantasticos.com/
1•nickt•36m ago•0 comments