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

Comments

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

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

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

Hacker News front page now, but the titles are honest. #2

https://dosaygo-studio.github.io/hn-front-page-2035/news-honest-2025-01-27.html
1•keepamovin•2m ago•1 comments

Intrinsic Loneliness

https://juun.vercel.app/en/blog/13
1•juun_roh•4m ago•0 comments

GPUs Became the Newest Financial Asset

https://davefriedman.substack.com/p/how-gpus-became-the-newest-financial
1•walterbell•7m ago•0 comments

Hacker News: Savage Mode

https://dosaygo-studio.github.io/hn-front-page-2035/news-honest-2025-01-27-2.html
2•keepamovin•9m ago•1 comments

Show HN: Infinijest, Video Feed Experiment

https://infinijest.com
2•throwawaste•17m ago•0 comments

Borges' Library of Babel Online

https://libraryofbabel.info/
2•lorenzohess•19m ago•1 comments

Scott Galloway Explains How You Can Stop Government Overreach

https://www.openculture.com/2026/01/scott-galloway-shows-how-you-can-stop-government-overreach-wi...
2•nomagicbullet•19m ago•0 comments

AI Subscription vs. H100 [video]

https://www.youtube.com/watch?v=SmYNK0kqaDI
3•owenpalmer•22m ago•0 comments

How to Donate to the Debian Project

https://www.debian.org/donations
2•move-on-by•24m ago•0 comments

Using an LLM Gateway to Keep My Agent Config Stable

https://medium.com/@pala_28493/how-to-power-clawdbot-with-advanced-llms-using-vivgrid-step-by-ste...
1•kubesphere2025•25m ago•0 comments

What I Learned Making 34 Novels with Claude Sonnet

https://triptych.writeas.com/what-i-learned-making-34-novels-with-claude-sonnet
1•triptych•26m ago•0 comments

Show HN: Seedance 2.0 Pro AI Video Generator

https://www.seedance2pro.net
1•Zach_HE•27m ago•0 comments

Prolog-blog-engine: blog engine in pure Prolog. 0 dependencies, Markdown, server

https://github.com/cryptoque/prolog-blog-engine
1•todsacerdoti•29m ago•0 comments

Period three implies Chaos (1975) [pdf]

https://www.its.caltech.edu/~matilde/LiYorke.pdf
1•nill0•29m ago•0 comments

37signals Isn't Smarter Than You, but They Are Different

https://www.nateberkopec.com/blog/37signals-is-not-smarter-than-you/
2•mefengl•30m ago•0 comments

Easy_Claude_code

https://github.com/study8677/easy_claude_code
1•study8677•34m ago•1 comments

How Photos Are Cabled Across Atlantic (1926 Illustration)

https://commons.wikimedia.org/wiki/File:Science_and_Invention_April_1926_-_How_Photos_Are_Cabled_...
3•retrac•38m ago•2 comments

I slopcoded an open source version of Xilly's GameMode after the X fiasco today

https://github.com/bensheed/OpenGameBoost
1•bensheed•42m ago•3 comments

Claude Code suggests .claudeignore to protect .env, reads it anyway

https://pastebin.com/dkbMUva7
3•rodavok01•45m ago•0 comments

Tinykit: Self-hosted Lovable/v0 alternative. With Realtime database and storage

https://github.com/tinykit-studio/tinykit
2•thunderbong•48m ago•0 comments

The Great California Wealth Exodus

https://www.thefp.com/p/the-great-california-wealth-exodus
4•fortran77•49m ago•1 comments

Microsoft Needs a Windows Social Contract

https://www.windowscentral.com/microsoft/windows-11/from-the-editors-desk-microsofts-biggest-wind...
2•chwtutha•51m ago•0 comments

Show HN: Compile Python libraries for TypeScript with type completion (umo)

https://github.com/AlaShiban/umo
1•ashiban•52m ago•0 comments

Heathrow Drops the Liquids Rule

https://flymag.com/heathrow-drops-the-liquids-rule-what-changes-at-lhr-and-how-close-the-u-s-real...
2•lxm•53m ago•0 comments

AI Content Disclosure for HTML

https://github.com/WICG/proposals/issues/261
1•nnx•1h ago•0 comments

Sepp Blatter suggests fans should not travel to US for World Cup

https://www.theguardian.com/football/2026/jan/26/sepp-blatter-suggests-fans-should-not-travel-to-...
6•KnuthIsGod•1h ago•1 comments

iOS 26.3 Adds Privacy Setting to Limit Carrier Location Tracking

https://www.macrumors.com/2026/01/26/ios-26-3-limit-precise-location/
3•dmmalam•1h ago•0 comments

Claude Code Ported LeelaChessZero CUDA Back End to ROCm: End of CUDA Moat

https://github.com/LeelaChessZero/lc0/pull/2375
1•CalChris•1h ago•0 comments

Agentic coding is accelerating app releases

https://www.coatue.com/c/takes/chart-of-the-day-2026-01-22
1•nl•1h ago•0 comments

Show HN: Free image-to-JSON converter (extract structured data from images)

https://imageat.com/image-to-json-convertor
1•incendies•1h ago•0 comments