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•10mo 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?

Weaponizing Extension Packs with PackRAT

https://blog.yeethsecurity.com/2026/03/13/PackRat.html
1•somerandom1337•3m ago•0 comments

LA Jurors Find Meta, YouTube Liable for Youth Mental Health Problems, Award $6M

https://www.law.com/2026/03/25/los-angeles-jurors-find-meta-and-youtube-liable-for-youths-mental-...
1•1vuio0pswjnm7•7m ago•0 comments

Verdicts against social media companies carry consequences. But questions linger

https://www.boston25news.com/news/business/verdicts-against/EZ3JDN546E7RHDQDVPTYYGCAGI/
1•1vuio0pswjnm7•11m ago•0 comments

VS Code plugin to annotate in Markdown previews for your AI

https://github.com/41fred/ai-markdown-feedback
1•41fred•13m ago•1 comments

Web and File Server Comparison (NT Server 4.0 versus RedHat 5.2 on Linux 2.2.2)

http://www.mindcraft.com/whitepapers/first-nts4rhlinux.html
1•markus_zhang•14m ago•0 comments

Isolated Web Apps

https://chromeos.dev/en/web/isolated-web-apps
1•h4ch1•16m ago•0 comments

Every Online Conversation about AI, Summarized

https://rushyendramaganty.com/ai
3•finolex1•17m ago•0 comments

KKR to acquire Nothing Bundt Cakes for over $2B

https://www.reuters.com/business/retail-consumer/kkr-acquire-nothing-bundt-cakes-over-2-billion-w...
3•mattas•19m ago•0 comments

Docker Coding Agent Sandboxes (2025)

https://www.docker.com/blog/docker-sandboxes-a-new-approach-for-coding-agent-safety/
1•nateb2022•21m ago•0 comments

Your First Parser

https://davesnx.github.io/parseff/guides/first-parser/
1•y1n0•25m ago•0 comments

Fyrox Game Engine 1.0.0

https://fyrox.rs/blog/post/fyrox-game-engine-1-0-0/
1•robinsonrc•27m ago•0 comments

Buy Them the Tools

https://eric.mann.blog/buy-them-the-tools/
1•eamann•28m ago•0 comments

Electric Motorcycles Don't Have to Be Security Nightmares, but This One Was

https://hackaday.com/2026/03/25/electric-motorcycles-dont-have-to-be-security-nightmares-but-this...
1•initramfs•28m ago•1 comments

SpaceX set to file for share sale

https://www.bbc.com/news/articles/c5y8d721q18o
1•y1n0•29m ago•0 comments

FCC imposes ban on new foreign-made routers, allows 2 yrs firmware updates

https://arstechnica.com/tech-policy/2026/03/trump-fcc-prohibits-import-and-sale-of-new-wi-fi-rout...
1•walterbell•31m ago•1 comments

Mark to Market

https://cameronwestland.com/mark-to-market/
1•camwest•31m ago•0 comments

Background Agents Landscape

https://background-agents.com/landscape
1•sidk24•35m ago•0 comments

MCP Server for ERPNext / Frappe ERP – MCP Apps

https://github.com/Casys-AI/mcp-erpnext
1•ErwanLP•39m ago•0 comments

Ask HN: Why is a "War ON Iran" being labelled as a "War IN Iran"?

2•vfclists•44m ago•0 comments

streaming service for reading (6M+ titles)

https://lex-books.com
2•davidmainayar•45m ago•1 comments

The Alignment Illusion

https://cameronwestland.com/the-alignment-illusion/
2•camwest•46m ago•0 comments

Autoresearch Is Reward Function Design

https://cameronwestland.com/autoresearch-is-reward-function-design/
1•camwest•46m ago•0 comments

Show HN: Got fed up missing cool AI events: built tool to match them to my goals

https://mustgo.ai
1•yauyauyauhen•47m ago•0 comments

The Corporate Bullshit Receptivity Scale

https://disassociated.com/talk-talk-cannot-circle-back-walk-walk/
2•bawis•47m ago•0 comments

LiteLLM Has Been Compromised, Do Not Update

https://twitter.com/hnykda/status/2036414330267193815
1•hnlurker22•48m ago•1 comments

Show HN: AgentVerse – Open social network for AI agents (Mar 2026)

https://nickakre.github.io/agentverse-social/
1•nickakre•50m ago•0 comments

'Space Archaeology' Reveals First Dynamic History of a Giant Spiral Galaxy

https://www.cfa.harvard.edu/news/space-archaeology-reveals-first-dynamic-history-giant-spiral-galaxy
1•gmays•52m ago•0 comments

Show HN: Is Claude Dumb Today?

https://claudedumb.com/
1•ymaws•55m ago•0 comments

Show HN: Does anyone still read books?

https://MyBookList.club
2•BigBalli•57m ago•1 comments

Emotional Eating Elucidated in Fruitfly

https://www.nature.com/articles/s41586-026-10306-z
1•vi_sextus_vi•1h ago•1 comments