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•1y ago

Comments

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

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

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

Ball Simulator in Python Made with Claude

https://github.com/simin75simin/ball-sandbox
1•mik09•2m ago•1 comments

Google's Own AI Researchers Jockey for Access to Its Computing

https://www.bloomberg.com/news/articles/2026-05-18/google-s-own-ai-researchers-jockey-for-access-...
1•osnium123•9m ago•0 comments

Have I Been Pwned: Colombian fintech company leaks 34.5M accounts in March 2026

https://haveibeenpwned.com/Breach/ADDI
1•guessmyname•11m ago•0 comments

Do Androids Dream of Your Electric Life?

https://medium.com/@vektormemory/do-androids-dream-of-your-electric-life-4c2c439ab0aa
1•vektormemory•13m ago•0 comments

Language Registries Are Unstable by Default

https://nesbitt.io/2026/05/15/language-registries-are-unstable-by-default.html
1•pabs3•16m ago•0 comments

Retrospective on DDIA

https://www.khola.blog/p/designing-data-intensive-applications
1•bcapchickadee•17m ago•0 comments

The American Rebellion Against AI Is Gaining Steam

https://www.wsj.com/tech/ai/the-american-rebellion-against-ai-is-gaining-steam-94b72529
3•JaakkoP•18m ago•1 comments

New features in GCC 16: Improved error messages and SARIF output

https://developers.redhat.com/articles/2026/04/28/gcc-16-improved-error-messages-sarif-output
1•siteshwar•19m ago•0 comments

A shallow dive into formal verification

https://vitalik.eth.limo/general/2026/05/18/fv.html
2•wslh•20m ago•0 comments

Reverse Lookup and AI-Powered Osint

https://sherlockeye.io/
1•mrzenodd•28m ago•0 comments

The Coming Food Crisis in South Asia

https://thediplomat.com/2026/05/the-coming-food-crisis-in-south-asia/
3•panny•34m ago•0 comments

The last six months in LLMs in five minutes

https://simonwillison.net/2026/May/19/5-minute-llms/
5•yakkomajuri•39m ago•0 comments

Surface owner loses their limited 50th Anniversary edition after a repair swap

https://www.windowscentral.com/hardware/surface/this-surface-owner-lost-their-limited-50th-annive...
2•Oblivion8442•40m ago•0 comments

Nitsum: Serving Tiered LLM Requests with Adaptive Tensor Parallelism

https://mlsys.wuklab.io/posts/nitsum/
1•matt_d•45m ago•0 comments

SuperInfer: SLO-Aware Rotary Scheduling and Memory Management for LLM Inference

https://supercomputing-system-ai-lab.github.io/projects/superinfer/
1•matt_d•46m ago•0 comments

What can a local model do for you in early May 2026?

https://manichord.com/blog/posts/what-can-local-model-do-in-may-2026
2•mkss•49m ago•1 comments

Guess where someone works based on their profile picture

https://tools.crustdata.com/guessthecompany
1•mhi3•53m ago•0 comments

Sony Pulls Back from PlayStation Games on PC

https://www.bloomberg.com/news/articles/2026-03-04/sony-pulls-back-from-playstation-games-on-pc
1•embedding-shape•54m ago•1 comments

Museum of Innocence (Museum)

https://en.wikipedia.org/wiki/The_Museum_of_Innocence_(museum)
2•brudgers•56m ago•0 comments

Video GTP

https://www.neotube.ai/
1•walkervin•58m ago•0 comments

BudgetBites – AI meal planning app that helps you save money on groceries

https://budgetbites.website/login
2•ClarenceJackson•1h ago•0 comments

Make products AI agents want

https://anitakirkovska.com/blog/make-products-ai-agents-want/
1•anitakirkovska•1h ago•0 comments

Google, Blackstone plan AI cloud venture with $5B backing, WSJ reports

https://www.reuters.com/business/google-blackstone-create-new-ai-cloud-company-wsj-reports-2026-0...
1•ndesaulniers•1h ago•0 comments

We should stop using Agile and Waterfall as is

https://quantumentangled.dev/viewpost/12/we-should-stop-using-agile-and-waterfall-asis
1•rulyone•1h ago•0 comments

Feedback on my S&P 500 Search Tool (fast search by name, ticker, sector)

https://sp500-search.streamlit.app/
1•gilthor•1h ago•0 comments

Will the Indus Valley script ever be deciphered?

https://www.livescience.com/archaeology/will-the-indus-valley-script-ever-be-deciphered
1•redwood•1h ago•1 comments

May I recommend eww for Emacs's innovative UI?

https://www.matem.unam.mx/~omar/apropos-emacs.html#may-i-recommend-eww-for-emacs-innovative-ui
2•birdculture•1h ago•0 comments

Google and Blackstone to Create New AI Cloud Company

https://www.wsj.com/tech/ai/google-and-blackstone-to-create-new-ai-cloud-company-0e35b91f
5•frays•1h ago•0 comments

Self-Hosted Web Application for Displaying and Interacting with KiCad Projects

https://github.com/krishna-swaroop/KiCAD-Prism
1•djfergus•1h ago•0 comments

An Apple (II) for Teacher

https://technicshistory.com/2026/05/19/an-apple-ii-for-teacher/
2•cfmcdonald•1h ago•0 comments