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?

Show HN: Promode – Claude Code meta for its hidden "Team Mode"

https://github.com/mikekelly/team-mode-promode
1•AffableSpatula•3m ago•0 comments

Show HN: An Interactive playground to practice Low-Level Design (LLD) interviews

https://www.lowleveldesignmastery.com/playground/
1•vdsanku•3m ago•0 comments

Ubisoft Closes Recently Unionized Developer Studio

https://www.videogameschronicle.com/news/ubisoft-has-closed-its-halifax-studio-but-claims-decisio...
3•speckx•3m ago•0 comments

Show HN: GPT Packer conversational container packing with 3D load plans

https://gptpacker.com/
1•reverseblade2•5m ago•0 comments

The AI UI Problem

https://askcodi.substack.com/p/the-ai-ui-problem-nobody-talks-about
1•askcodi•6m ago•0 comments

NASA considers rare early ISS crew return due to astronaut's medical issue

https://www.nbcnews.com/science/space/nasa-considers-rare-early-iss-crew-return-due-astronauts-me...
2•voxadam•8m ago•0 comments

Estranged Wife of Indian Software Tycoon Claims He Transferred Ownership

https://www.forbes.com/sites/luisakroll/2023/03/13/zoho-srindhar-vembu-in-high-stakes-divorce-bat...
1•thunderbong•8m ago•0 comments

Vanilla: Software clone of the Wii U gamepad

https://github.com/vanilla-wiiu/vanilla
1•zdw•9m ago•0 comments

Productivity Paradox

https://en.wikipedia.org/wiki/Productivity_paradox
1•jamesgill•11m ago•0 comments

A person claiming to be a 'whistleblower' fooled the internet with AI's help

https://www.nbcnews.com/tech/internet/reddit-ai-food-delivery-fraud-rcna252661
2•areoform•12m ago•0 comments

Show HN: You need this for tracking AI search visibility

https://www.genrankengine.com/
1•arunkumars91•13m ago•0 comments

Show HN: PurchaseKit – In-app purchases for Rails and Hotwire Native

https://purchasekit.dev
1•joemasilotti•13m ago•0 comments

New Research: AI Coding Tools Attract Top Performers – But Do They Create Them?

https://www.gitclear.com/blog/new_research_ai_coding_tools_attract_top_performers_but_do_they_cre...
1•wbharding•14m ago•0 comments

AMD Gives Us a Peek at Upcoming Helios System, MI500 GPUs at CES

https://www.hpcwire.com/2026/01/07/amd-gives-us-a-peek-at-upcoming-helios-system-mi500-gpus-at-ces/
1•rbanffy•14m ago•0 comments

Show HN: Ranksty

https://ranksty.com
1•emilos•15m ago•0 comments

Grand Illusion

https://chrishedges.substack.com/p/grand-illusion
1•chmaynard•15m ago•0 comments

The Rise of Computer Games, Part II: Digitizing Nerddom – Creatures of Thought

https://technicshistory.com/2026/01/02/the-rise-of-computer-games-part-ii-digitizing-nerddom/
1•rbanffy•15m ago•0 comments

Ex–Google CEO funds private space telescope bigger than Hubble – Science – AAAS

https://www.science.org/content/article/ex-google-ceo-funds-private-space-telescope-bigger-hubble
1•rbanffy•16m ago•0 comments

A Content Repurposing Strategy That Works (Platform-Native, Not Asset-First)

https://aiforcontentmarketing.ai/a-content-repurposing-strategy-that-works-platform-native-not-as...
1•pakostina•16m ago•0 comments

Show HN: Milkyboard – Synth Keyboard with Milkdrop Background

https://milkyboard.com/
1•amadeuspagel•16m ago•0 comments

Flakes – A keyboard-first, AI-powered native browser for macOS

https://flakes.ai
1•flakes-ai•18m ago•0 comments

Show HN: Open-source iOS app for controlling your AWS DeepRacer

https://github.com/charleswolfe/deepracer-teleoperation
1•chuckwolfe•18m ago•0 comments

Reimagining the Sacred: Modern Shrines and Temples in Japan

https://www.tokyoweekender.com/travel/modern-shrines-and-temples-in-japan/
2•PaulHoule•19m ago•0 comments

Are violent video games like Grand Theft Auto 6 becoming too realistic?

https://www.bbc.com/culture/article/20260107-are-violent-video-games-like-grand-theft-auto-6-beco...
3•breve•21m ago•0 comments

X-shell – Complete web based terminal component

https://github.com/lsadehaan/x-shell
2•adriaandehaan•22m ago•1 comments

Data Science Weekly – Issue 633

https://datascienceweekly.substack.com/p/data-science-weekly-issue-633
2•sebg•23m ago•0 comments

How do you solve a problem like Wikipedia?

https://www.realclearpolitics.com/articles/2026/01/08/how_do_you_solve_a_problem_like_wikipedia_1...
3•RickJWagner•25m ago•2 comments

Some Things I've Learned About Software [video]

https://www.youtube.com/watch?v=RJgDW2AERr8
4•todsacerdoti•25m ago•0 comments

Amazon angers retailers by listing products from other sites without consent

https://www.businessinsider.com/amazon-angers-retailers-lists-products-without-consent-starfish-2...
3•AlexandrB•29m ago•0 comments

Load Balancing (2023)

https://samwho.dev/load-balancing
2•grep_it•30m ago•0 comments