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

Tell HN: Claude Code is unable to respond to this request

1•hmokiguess•1m ago•0 comments

What Is Dyslexia?

https://www.whatisdyslexia.org/
1•hkhn•1m ago•0 comments

Dyslexic thinking made me the scientist I am today. If we could harness its

https://www.theguardian.com/commentisfree/2026/apr/25/dyslexic-thinking-scientist-neurodiversity-...
1•hkhn•1m ago•0 comments

Show HN: Text Trace – Keynote-style SVG text trace animations for the web

https://github.com/Jannchie/text-trace
1•jannchie•2m ago•0 comments

List of personal sites that host Wander Console, a tool to explore the small web

https://susam.codeberg.page/wcn/
1•susam•2m ago•0 comments

Startups only remember backups after the crash

https://orchidfiles.com/backups-after-crash/
1•theorchid•4m ago•0 comments

GPT Image Generation Models Prompting Guide

https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide
1•gmays•9m ago•0 comments

Anthropic created a test marketplace for agent-on-agent commerce

https://techcrunch.com/2026/04/25/anthropic-created-a-test-marketplace-for-agent-on-agent-commerce/
1•Brajeshwar•9m ago•0 comments

Musk Touts Universal Income as Remedy to AI-Driven Unemployment

https://www.forbes.com/sites/siladityaray/2026/04/17/elon-musk-touts-universal-income-as-remedy-t...
1•geox•11m ago•1 comments

Pratt parsing is a black box

https://vinipsmaker.github.io/blog/blog/pratt-parsing-is-a-black-box/
1•vinipsmaker•15m ago•0 comments

A high-performance 2D graphics painter that use SDL3 GPU API

https://github.com/n67094/SDL_gp
1•n67094•17m ago•0 comments

Query neural network weights like a graph database

https://github.com/chrishayuk/larql
1•james_marks•24m ago•0 comments

Network File Systems on Macs

https://eclecticlight.co/2026/04/25/explainer-network-file-systems/
1•chmaynard•26m ago•0 comments

Ask HN: How I find a job where what is needed is solid code, not firefighting?

2•speeder•30m ago•1 comments

London Reverse Marathon FAQ

https://london.apped.uk/faq
3•susam•31m ago•0 comments

Stealth browser survey, April 2026

https://incoherency.co.uk/blog/stories/stealth-browser-survey-april-2026.html
2•stavros•31m ago•0 comments

Show HN: Are AI competitor newsletters useful?

https://newsletrix.com/
2•beledev•32m ago•0 comments

Deep Moats and Platform Shifts in Computing

https://semiconductor.substack.com/p/deep-moats-and-platform-shifts-in
1•chmaynard•34m ago•0 comments

GitHub unwanted UX change: issue links now open in a popup

https://github.com/orgs/community/discussions/192666
6•luckman212•35m ago•2 comments

HVD Bodedo

https://www.hvdfonts.com/fonts/hvd-bodedo
1•cainxinth•38m ago•0 comments

The cause of heart disease is inflammation

https://www.scientificamerican.com/article/new-evidence-links-heart-disease-to-inflammation-and-d...
3•sleepyguy•39m ago•0 comments

Show HN: A minimal context engine with streaming API

https://github.com/ohmstone/context-artist
1•tonelord•41m ago•0 comments

Claude Opus 4.6 vs. Opus 4.7 Effort Levels and Prompt Steering Benchmarks

https://ai.georgeliu.com/p/claude-opus-46-vs-opus-47-effort
1•mszel•42m ago•1 comments

Claude Platform on AWS

https://aws.amazon.com/claude-platform/
2•dkobia•43m ago•0 comments

The Physics Slop That YouTube Wants Tibees to Make

https://www.youtube.com/watch?v=Cd5EHfRerGI
2•srean•49m ago•0 comments

Ask HN: What percent of your YouTube consumption is listening only?

2•SpyCoder77•52m ago•4 comments

Anthropic's Argument for Mythos SWE-bench improvement contains a fatal error

https://www.philosophicalhacker.com/post/anthropic-error/
1•kmdupree•53m ago•0 comments

Ask HN: Where are all the consumer ChatGPT apps?

2•maxalbarello•55m ago•3 comments

Show HN: A Calendar for Songs

https://theyearinsongs.com/
3•rySeeR•55m ago•0 comments

Micron pushes US Congress to crack down on chip tool sales to Chinese rivals

https://www.reuters.com/legal/government/micron-pushes-us-congress-crack-down-chip-tool-sales-chi...
1•xbmcuser•55m ago•0 comments