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?

Synthesizing scientific literature with retrieval-augmented language models

https://www.nature.com/articles/s41586-025-10072-4
1•bookofjoe•1m ago•0 comments

Moltbook: After the First Weekend

https://www.astralcodexten.com/p/moltbook-after-the-first-weekend
2•simonebrunozzi•5m ago•0 comments

The third golden age of software engineering [video]

https://www.youtube.com/watch?v=OfMAtaocvJw
1•tosh•5m ago•0 comments

Open-source AI program can answer science questions better than humans

https://www.science.org/content/article/open-source-ai-program-can-answer-science-questions-bette...
1•pseudolus•7m ago•1 comments

Show HN: AgentGuard – Open-source security layer for AI agents and skills

https://github.com/GoPlusSecurity/agentguard
1•agentguard•8m ago•1 comments

Agentic search vs. embedding-based search vs. truth layers

https://markmhendrickson.com/posts/agentic-search-and-the-truth-layer/
1•mhendric•9m ago•0 comments

My Eighth Year as a Bootstrapped Founder

https://mtlynch.io/bootstrapped-founder-year-8/
1•mtlynch•10m ago•0 comments

Battle of the privacy-focused search engines: Kagi vs. DuckDuckGo

https://kevinboone.me/kagi_ddg.html
1•LaSombra•11m ago•0 comments

Economy Layoffs in January were the highest to start a year since 2009

https://www.cnbc.com/2026/02/05/layoff-and-hiring-announcements-hit-their-worst-january-levels-si...
1•ironyman•14m ago•0 comments

Spotify to let users buy physical books

https://www.reuters.com/business/spotify-let-users-buy-physical-books-app-through-bookshoporg-par...
1•geox•14m ago•0 comments

(Un)portable defer in C

https://antonz.org/defer-in-c/
1•ingve•14m ago•0 comments

Drawing Connections with CSS Anchor Positioning

https://rolandfranke.nl/frontend-stories/drawing-connections-with-css-anchor-positioning/
1•speckx•17m ago•0 comments

Company as Code

https://blog.42futures.com/p/company-as-code
1•ahamez•18m ago•0 comments

HuggingFace Is Down

https://status.huggingface.co/
2•throwfaraway135•19m ago•0 comments

Our Beloved Monsters

https://tomasbjartur.substack.com/p/our-beloved-monsters
1•TomasBjartur•20m ago•0 comments

17 years later, Iran demoed viable, and deadly, internet blocking

https://www.thestack.technology/iran-blocked-the-internet-then-butchered-its-protestors/
1•thenak•21m ago•0 comments

CIA to Sunset the World Factbook

https://www.abc.net.au/news/2026-02-05/cia-closes-world-factbook-online-resource/106307724
9•kshahkshah•21m ago•0 comments

GB Renewables Map

https://renewables-map.robinhawkes.com/
3•RobinL•27m ago•0 comments

ChatGPT boss ridiculed for online 'tantrum' over rival's Super Bowl ad

https://www.bbc.co.uk/news/articles/ce3edyx74jko
3•g-mork•27m ago•0 comments

Stamped – Travel Map Tracker (Explore the World and Show Off Them)

https://stamped.global
1•jeffcyw•28m ago•2 comments

Handling the Dual-Write Problem in Distributed Systems

https://auth0.com/blog/handling-the-dual-write-problem-in-distributed-systems/
3•jcartw•28m ago•1 comments

Clankers with Claws

https://world.hey.com/david/clankers-with-claws-c0276023
3•tosh•30m ago•0 comments

Floppy disk history: The evolution of personal computing

https://www.hpe.com/us/en/insights/articles/the-history-of-the-floppy-disk-1703.html
2•fanf2•33m ago•0 comments

Show HN: ClawdWork – A job marketplace where AI agents hire each other

https://www.clawd-work.com/
3•jinfeng79•34m ago•1 comments

The Crumbling Workflow Moat: Aggregation Theory's Final Chapter

https://www.nicolasbustamante.com/p/the-crumbling-workflow-moat-aggregation
3•bingemaker•34m ago•0 comments

Nouriel Roubini: The Coming Crypto Apocalypse

https://twitter.com/nouriel/status/2019102926828974128
2•simonebrunozzi•36m ago•0 comments

Build Recommender System with LLM Ranker via Drag-and-Drop

https://gorse.io/posts/llm-ranker.html
3•zhenghaoz•36m ago•0 comments

Banned and Challenged Books

https://www.hachettebookgroup.com/landing-page/banned-books/
2•simonebrunozzi•36m ago•0 comments

Ace-Step 1.5

https://github.com/ace-step/ACE-Step-1.5
2•smusamashah•38m ago•0 comments

Evolved Virtual Creatures (1994)

https://www.karlsims.com/evolved-virtual-creatures.html
2•ajam1507•39m ago•0 comments