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

GitHub Actions for Gradle v6: What's Changing and Why

https://blog.gradle.org/github-actions-for-gradle-v6
1•arkon_hn•4m ago•0 comments

TIL: Uv Settings I Changed after LiteLLM

https://antisimplistic.com/posts/2026-03-28-til-uv-settings-after-litellm/
1•vinhnx•6m ago•0 comments

Grade Caps Fail the Game Theory Exam

https://www.thecrimson.com/article/2026/3/27/kominers-harvard-grade-cap/
1•yurivish•9m ago•0 comments

Building a computer from scratch and running C++ on it [video]

https://www.youtube.com/watch?v=lBooqws52YA
1•vinhnx•14m ago•0 comments

The US and Israel are making the Islamic republic stronger

https://www.aljazeera.com/opinions/2026/3/28/how-the-us-and-israel-are-making-the-islamic-republic
7•samizdis•18m ago•0 comments

Heerich.js – A tiny engine for 3D voxel scenes rendered to SVG

https://meodai.github.io/heerich/
2•OuterVale•21m ago•0 comments

Understanding Semiconductors: A Technical Guide for Non-Technical People

https://link.springer.com/book/10.1007/978-1-4842-8847-4
1•teleforce•30m ago•0 comments

Linux on Claude

https://github.com/prairielabs/LinuxOnClaude
1•indigodaddy•32m ago•0 comments

Can AI Exit Vim?

https://theadamcolton.github.io/can-ai-exit-vim
2•topwalktown•33m ago•2 comments

Five Things to Know About the Siri Chatbot Coming in iOS 27

https://www.macrumors.com/2026/03/27/ios-27-siri-chatbot-features/
1•evo_9•34m ago•0 comments

Calculate Dora Metrics for Free

https://www.arewedeploying.com/
2•jahrichie•36m ago•1 comments

Turing Complete

https://store.steampowered.com/app/1444480/Turing_Complete/
1•jr-14•40m ago•0 comments

Meet The 'Corporate Bro' Making Millions Satirizing Tech Sales

https://www.wsj.com/business/media/meet-the-corporate-bro-making-millions-satirizing-tech-sales-d...
1•petethomas•41m ago•0 comments

Claude found zero days in Ghost and the Linux kernel

https://twitter.com/chiefofautism/status/2037951563931500669
1•Murfalo•46m ago•0 comments

Rama matches CockroachDB's TPC-C performance at 40% less AWS cost

https://blog.redplanetlabs.com/2026/03/17/rama-matches-cockroachdbs-tpc-c-performance-at-40-less-...
1•nathanmarz•49m ago•0 comments

Sel – short film lauren flinner

https://www.youtube.com/watch?v=rhCn9DgOSiI
1•marysminefnuf•1h ago•0 comments

Kee – Key combination matching on the modern web

https://github.com/juzerzarif/kee
2•juzerzarif•1h ago•1 comments

Show HN: PeriodicTableOfElements.org

https://periodictableofelements.org/?lang=en
4•nadermx•1h ago•0 comments

Social media is populist and polarising; AI may be the opposite

https://www.ft.com/content/3880176e-d3ac-4311-9052-fdfeaed56a0e
1•malloryerik•1h ago•1 comments

Show HN: Anamnesis – Open-source 4D strategic memory engine for AI agents

https://github.com/gayawellness/anamnesis
2•gayawellness•1h ago•0 comments

Pretext Demos

https://chenglou.me/pretext/
1•vinhnx•1h ago•0 comments

Alzheimer's disease mortality among taxi and ambulance drivers (2024)

https://www.bmj.com/content/387/bmj-2024-082194
27•bookofjoe•1h ago•13 comments

pbix-mcp — create and modify Power BI PBIX files in pure Python

https://github.com/d0nk3yhm/pbix-mcp
2•d0nk3yhm•1h ago•0 comments

Translating non-trivial codebases with Claude

https://blog.danieljanus.pl/2026/03/26/claude-nlp/
1•vinhnx•1h ago•0 comments

Catching crumbs from the table by Ted Chiang (2000) [pdf]

https://gwern.net/doc/fiction/science-fiction/2000-chiang.pdf
2•sendes•1h ago•1 comments

The Opt Out Project

https://www.optoutproject.net/
4•billybuckwheat•1h ago•0 comments

BubbleWrap your dev env and agents

https://dpc.pw/posts/bubblewrap-your-dev-env-and-agents/
2•vinhnx•1h ago•0 comments

A simple explanation of the key idea behind TurboQuant

https://old.reddit.com/r/LocalLLaMA/comments/1s62g5v/a_simple_explanation_of_the_key_idea_behind/
2•thunderbong•1h ago•0 comments

IN Event of Moon Disaster [pdf]

https://www.archives.gov/files/presidential-libraries/events/centennials/nixon/images/exhibit/rn1...
2•interweb•1h ago•0 comments

Anthropic's Mythos leak: 3k files in a public CMS, and what the docs revealed

https://medium.com/ai-advances/anthropic-claude-mythos-leak-analysis-b77c1b304eb8
5•Aedelon•1h ago•0 comments