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

Comments

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

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

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

Getting my daily news from a dot matrix printer 2024

https://aschmelyun.com/blog/getting-my-daily-news-from-a-dot-matrix-printer/
1•xupybd•4m ago•0 comments

Show HN: Harnessing LLM-Prompt Mutation to Build Smart,Automated Fuzz Drivers

https://github.com/FuzzAnything/PromptFuzz
1•JasonHEIN•5m ago•0 comments

Local SLM as a compression layer for cloud API calls

1•asong56•5m ago•0 comments

Shipping the OpenClaw Stack in Public

https://agentbot.raveculture.xyz/blog
1•Agentbot-esky•9m ago•0 comments

Claude Code Routines: 5 Production Workflows That Ship Real Work

https://www.arcade.dev/blog/claude-code-routines-mcp-setup/
1•manveerc•9m ago•0 comments

The Stress of Elite Chess Is Wearing Down the Game's Champions

https://thewalrus.ca/the-stress-of-elite-chess-is-wearing-down-the-games-champions/
1•pseudolus•12m ago•0 comments

"There's No Such Thing as Plain Text" – Dylan Beattie

https://www.slideshare.net/slideshow/theres-no-such-thing-as-plain-text-dylan-beattie/249952971
1•thunderbong•13m ago•0 comments

SAP just made the opposite bet from every other enterprise platform on AI agents

https://www.sap.com/documents/2026/04/dce9aee4-497f-0010-bca6-c68f7e60039b.html
1•millen_crusader•20m ago•0 comments

Google Research: A new light on neural connections

https://research.google/blog/a-new-light-on-neural-connections/
2•theorchid•21m ago•0 comments

GPT 5.5 flags accounts for "potential high-risk cybersecurity"

https://twitter.com/banteg/status/2047577218142871949
3•stared•23m ago•0 comments

Ask HN: Is Zuckerberg just a „one-hit-wonder"?

3•fandorin•24m ago•1 comments

The Lost Art of Structure Packing

http://www.catb.org/esr/structure-packing/
1•tosh•24m ago•0 comments

LinkedIn Premium Does Not Boost Your Posts

https://andrewpwheeler.com/2026/04/25/linkedin-premium-does-not-boost-your-posts/
2•apwheele•25m ago•0 comments

Flinku – I built a Firebase Dynamic Links replacement after the shutdown

https://www.flinku.dev/
1•luky_dev•25m ago•1 comments

Chernobyl 40 Years On

https://www.thetimes.com/world/europe/article/chernobyl-disaster-what-happened-why-nv2q28z9n
2•beejiu•27m ago•0 comments

Lambda Calculus Benchmark for AI

https://victortaelin.github.io/lambench/
3•marvinborner•28m ago•1 comments

KDE Plasma adds support for hardware overlay planes on Intel GPUs

https://www.neowin.net/news/good-news-for-intel-users-as-kde-adds-support-for-a-feature-amd-users...
2•bundie•30m ago•0 comments

RSME: A lightweight reactive encryption algorithm with internal anomaly sensing

https://zenodo.org/records/19712564
1•RanggaS•32m ago•2 comments

Discret 11, the French TV encryption of the 80s

https://fabiensanglard.net/discret11/
2•adunk•34m ago•0 comments

Roboticist-Turned-Teacher Built a Life-Size Replica of Eniac

https://spectrum.ieee.org/roboticist-turned-teacher-eniac-replica
2•pseudolus•34m ago•0 comments

Choose a Reliable Ruby on Rails Dev Partner for Ongoing Maintenance and Features

https://railsfever.com/blog/rails-development-partner-maintenance-feature-work/
4•quantum_mech•37m ago•0 comments

Only One Side Will Be the True Successor to MS-DOS – Windows 2.x

https://blisscast.wordpress.com/2026/04/21/windows-2-gui-wonderland-12a/
4•keepamovin•41m ago•0 comments

A web-based RDP client built with Go WebAssembly and grdp

https://github.com/nakagami/grdpwasm
5•mariuz•45m ago•1 comments

The eerie abandoned vehicles in Chernobyl's 'dead zone'

https://www.bbc.com/future/article/20260424-the-eerie-abandoned-vehicles-in-chernobyls-dead-zone
2•stephen-hill•45m ago•0 comments

Ask HN: Do you know the problem of "14" in India?

2•wasimsk•53m ago•0 comments

Amália- Open Source Large Language Model (LLM) for European Portuguese

https://portugal.gov.pt/gc24/comunicacao/noticias/modelo-de-linguagem-em-grande-escala-para-a-lin...
6•marcogarces•55m ago•1 comments

Another Microsoft Copilot AD injected into 4M GitHub commits

https://twitter.com/jitbit/status/2047990043688464443
5•jitbit•56m ago•1 comments

Martin Galway's music source files from 1980's Commodore 64 games

https://github.com/MartinGalway/C64_music
3•ingve•58m ago•0 comments

Morpheus spyware hijacks WhatsApp via fake Android update app

https://www.notebookcheck.net/Morpheus-spyware-hijacks-WhatsApp-via-fake-Android-update-app.12828...
2•DarrylLinington•1h ago•0 comments

With TPU 8, Google Makes GenAI Systems Better, Not Just Bigger

https://www.nextplatform.com/compute/2026/04/24/with-tpu-8-google-makes-genai-systems-much-better...
2•rbanffy•1h ago•0 comments