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

Comments

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

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

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

A curated list of academic papers and resources on Physical AI

https://github.com/keon/awesome-physical-ai
1•kwk236•32s ago•1 comments

Show HN: Giant JSON Viewer – Open 1GB+ JSON Files on Android (Rust and MMAP)

https://giantjson.com/
1•kotysoft•55s ago•1 comments

The Insecure Evangelism of LLM Maximalists

https://lewiscampbell.tech/blog/260114.html
1•todsacerdoti•1m ago•0 comments

Launch on Hacker News

1•ramishamujahid•2m ago•0 comments

The Topology of Liberation: Jhanas, Cessations and the Geometry of Inner Harmony

https://andrsgmezemilsson.substack.com/p/the-topology-of-liberation-jhanas
1•eatitraw•4m ago•0 comments

EOL hardware should mean open-source software

https://www.marcia.no/words/eol
1•Marciplan•8m ago•0 comments

Show HN: Capture anything you see, here or think in your own knowledge base

https://www.tryultrathink.com
1•chriswright1664•16m ago•3 comments

Burroughs B21 / Convergent AWS Vintage Computer Restoration – Dr. Scott M. Baker

https://www.smbaker.com/burroughs-b21-convergent-aws-vintage-computer-restoration
2•rbanffy•17m ago•0 comments

Show HN: AsciiSketch a free browser-based ASCII art and diagram editor

https://files.littlebird.com.au/ascii-sketch.html
2•schappim•18m ago•0 comments

CentOS Hyperscale

https://www.centos.org/hyperscale/
2•Vortigaunt•23m ago•0 comments

Open Source Agent Toolkit

https://github.com/getlago/lago-agent-toolkit/pkgs/container/lago-agent-toolkit
2•jdenquin•24m ago•0 comments

We Don't Use AI

https://yarnspinner.dev/blog/why-we-dont-use-ai/
4•parisidau•27m ago•1 comments

Data Says You're Likely Screwing Up AI Adoption

https://gianlucamauro.substack.com/p/the-data-says-youre-likely-screwing
2•gianlucahmd•29m ago•0 comments

Why do educated people fall for conspiracy theories? It could be narcissism

https://theconversation.com/why-do-educated-people-fall-for-conspiracy-theories-it-could-be-narci...
5•defrost•32m ago•0 comments

How popular is Elon Musk?

https://www.natesilver.net/p/elon-musk-polls-popularity-nate-silver-bulletin
3•7777777phil•33m ago•3 comments

Show HN: Plezy – alternative Plex client built with Flutter

https://github.com/edde746/plezy
1•edde746•33m ago•0 comments

Show HN: Mp3rgain – Lossless MP3 volume adjustment in Rust

1•jphfa•34m ago•1 comments

A-1980-teenagers-view-of-social-media (2015)

https://medium.com/@brianstorms/a-1980-teenagers-view-of-social-media-eaf8a5fdbf6c
2•librasteve•35m ago•2 comments

A cave complex worthy of Batman Ten buildings that showed the world a new China

https://www.theguardian.com/artanddesign/2025/dec/17/cave-complex-batman-mind-boggling-buildings-...
1•PaulHoule•37m ago•0 comments

Epic vs. Health Gorilla: A New Fight Begins

https://healthapiguy.substack.com/p/epic-v-health-gorilla-a-new-fight
4•primitivesuave•39m ago•0 comments

Updating to the New Supabase Asymmetric JWT Keys Was a Developer's Dream

https://dreambase.ai/blog/updating-to-the-new-supabase-asymmetric-keys-was-a-developers-dream
1•alwaysunday•40m ago•0 comments

Senior AI Agents: True Intelligence Is Instructions Discovery

https://mrlesk.com/blog/instructions-following-discovery/
1•mrlesk•40m ago•0 comments

The Great Filter, Why High Performance Still Eludes Most Dev Teams, Even with AI

https://codemanship.wordpress.com/2026/01/12/the-great-filter-or-why-high-performance-still-elude...
2•terseus•42m ago•0 comments

Bad Apple but it's a sorting algorithm [video]

https://www.youtube.com/watch?v=3rz5GvCQjrc
1•layer8•45m ago•0 comments

Veo Goes Vertical

https://arstechnica.com/google/2026/01/googles-updated-veo-model-can-make-vertical-videos-from-re...
1•dreadsword•46m ago•1 comments

Lego

https://en.wikipedia.org/wiki/The_Lego_Group
1•simonebrunozzi•49m ago•0 comments

Terra - A rolling-release Fedora repository

https://terra.fyralabs.com/
2•doodlesdev•50m ago•0 comments

The Coming AI Compute Crunch

https://martinalderson.com/posts/the-coming-ai-compute-crunch/
1•gmays•53m ago•0 comments

SOTA on Bay Area House Party

https://www.astralcodexten.com/p/sota-on-bay-area-house-party
3•srijan4•54m ago•1 comments

Hypermobile Knees in Runners: Unlock Mobility, Prevent Injury, Run Strong

https://ralphhavenspt.substack.com/p/hypermobile-knees-in-runners-unlock
1•RalphHavensPT•55m ago•0 comments