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

Comments

nine_k•10mo 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•10mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•10mo ago
They mention this in the article.
spockz•10mo 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•10mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•10mo 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•10mo 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•10mo 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•10mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•10mo ago
This was very well written. Excellent article!
NetOpWibby•10mo ago
Is this like MessagePack for Haskell?

Show HN: AI pull request reviewer that analyzes Git diffs

1•bolitupac•41s ago•0 comments

Cursor: Build agents that run automatically

https://cursor.com/blog/automations
3•helloplanets•6m ago•1 comments

Show HN: Tool that simulates how visitors psychologically experience websites

https://human-psychology-simulator.thequantumgrove.io/
1•HPSimulator•6m ago•0 comments

Scholze: "For me, mathematics started with Grothendieck"

https://old.reddit.com/r/math/comments/1rl6yyf/scholze_for_me_mathematics_started_with/
1•iNic•8m ago•0 comments

How to Build a Personal Intelligence Agency

https://www.operator.io/blog/build-a-personal-intelligence-agency
1•david_shi•9m ago•0 comments

Show HN: Mt – Open-source Markdown notes app with spaced repetition

https://github.com/odosui/mt
1•yanis_t•10m ago•0 comments

Ask HN: For solopreneurs – how to you solve architecture?

1•rkuodys•11m ago•0 comments

Show HN: Utter, a free local dictation and meeting notes app for Mac and iPhone

https://utter.to/
2•hubab•12m ago•0 comments

"I'm obviously taking a risk here by advertising emoji directly."

https://unsung.aresluna.org/im-obviously-taking-a-risk-here-by-advertising-emoji-directly/
2•tobr•21m ago•0 comments

C++ Performance Improvements in MSVC Build Tools v14.51

https://devblogs.microsoft.com/cppblog/c-performance-improvements-in-msvc-build-tools-v14-51/
1•pjmlp•22m ago•0 comments

Ladybird browser update (February 2026) [video]

https://www.youtube.com/watch?v=Y3tteHSrJlY
2•radikalerludwig•23m ago•1 comments

JSR: The open-source package registry for modern JavaScript and TypeScript

https://jsr.io/
1•maxloh•27m ago•0 comments

DTOs at the Speed of Plain PHP

https://www.dereuromark.de/2026/03/02/dtos-at-the-speed-of-plain-php/
1•that_guy_iain•27m ago•0 comments

Show HN: I measured my context switching by scanning Git commits

https://github.com/MuhammadBaibarsZainUlAbideen/context-tracker
1•muhammadbaibars•28m ago•1 comments

Show HN: Introducing Kite AI Agent: Conversational Operations for Kubernetes

https://github.com/kite-org/kite/discussions/409
1•xdasf•28m ago•0 comments

Online harassment is entering its AI era

https://www.technologyreview.com/2026/03/05/1133962/online-harassment-is-entering-its-ai-era/
1•joozio•28m ago•0 comments

Cursor is now available in IntelliJ and other JetBrains IDEs through ACP

https://cursor.com/blog/jetbrains-acp#coding-with-cursor-in-jetbrains-ides
1•saharshpruthi•31m ago•1 comments

Show HN: Claude Code for iPad – Agentic AI coding tool with file ops, Git, shell

1•reviewpulse•34m ago•0 comments

How to Survive Your Project's First 100k Lines

https://verdagon.dev/blog/first-100k-lines
2•randomrainbow•34m ago•0 comments

Unlimited users, free and ad-free remote employee management tool

1•chronotrigger•35m ago•1 comments

Don't Be a Wrapper, Be a Container

https://www.hopsworks.ai/post/coding-agents-inside-data-platforms
1•LexSiga•36m ago•0 comments

A claudeism that I want to confirm if anyone else is experiencing

1•ramenprofitable•37m ago•0 comments

Show HN: Desktop Automation with Codex

https://github.com/nickbarth/closedbots/
1•nicbarth•38m ago•0 comments

Linux Mint is getting a new Wayland-compatible screensaver

https://www.neowin.net/news/linux-mint-is-getting-a-new-wayland-compatible-screensaver/
1•bundie•39m ago•0 comments

Fortify your app: Essential strategies to strengthen security – Meet with Apple [video]

https://www.youtube.com/watch?v=UZeSyodAszc
2•pjmlp•40m ago•0 comments

The Ugliest Beautiful Codebase

https://jimmyhmiller.com/ugliest-beautiful-codebase
1•harperlee•41m ago•0 comments

Show HN: Making remote MCP servers handle local files and generated artifacts

https://github.com/aakashh242/remote-mcp-adapter/
1•aakashh242•43m ago•0 comments

Show HN: Koshei AI – a voice-native AI language university (A1 to D2)

https://github.com/Bugsbuny24/Koshe-Al-
1•bugsbuny24•45m ago•0 comments

Federated torrent tracker based on Nostr

https://ygg.gratis/
1•routeroff•45m ago•0 comments

Towards Self-Replication: Claude Opus Designs Hardware to Run Itself

https://cpldcpu.github.io/smollm.c/
1•cpldcpu•47m ago•0 comments