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

Comments

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

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

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

First monolithic 3D chip built in a U.S. foundry

https://news.stanford.edu/stories/2025/12/monolithic-3d-chip-foundry-breakthrough-ai
1•giuliomagnifico•32s ago•0 comments

Aging Out of Fucks: The Neuroscience of Why You Suddenly Can't Pretend Anymore

https://www.blog.lifebranches.com/p/aging-out-of-fucks-the-neuroscience
1•mikestew•2m ago•0 comments

Why drawing rectangles instantly on a design job interview is a red flag

https://mikajovicic.com/writing/research-first-then-move-to-solution/
1•violinar•3m ago•0 comments

Show HN: Production-ready VS Code Extension boilerplate using React 19

https://github.com/kiran7893/vscode-extension-react-boilerplate
1•Kiran7893•4m ago•0 comments

Show HN: LeadJot – Stop Losing Leads to Slow Replies

https://leadjot.com
1•NikoNaskida•5m ago•0 comments

Show HN: I vibe coded a free typing game for my kids

https://free-kids-typing-games.com
1•Alan01252•7m ago•0 comments

How the Most Expensive Color Is Made [video]

https://www.youtube.com/watch?v=nBjgngg6_bE
1•gmays•7m ago•0 comments

John Varley (1947-2025)

https://locusmag.com/2025/12/john-varley-1947-2025/
3•pseudolus•9m ago•0 comments

Ask HN: Health/Ocean builders: What problem would you pay to get off your plate?

3•Frannky•15m ago•0 comments

Show HN: UK Butchers Meat Price Tracker

https://offer-spider.onrender.com
1•wolfer•16m ago•0 comments

Show HN: WineBar: A yet another Wine prefix manager, with Asahi Linux support

https://github.com/Tulon/WineBar
1•JosifA•17m ago•0 comments

Skills-kit/Framework for AI-generated, testable automation skills for every LLM

https://github.com/gabrielekarra/skills-kit
1•gabrielekarra•19m ago•1 comments

Our effort to improve the Mintlify assistant

https://www.mintlify.com/blog/assistant-improvements
1•samuel246•20m ago•0 comments

One Agent Isn't Enough

https://benr.build/blog/one-agent-isnt-enough
1•bisonbear•21m ago•0 comments

10K Docker images spray live cloud creds across the internet

https://www.theregister.com/2025/12/11/docker_hub_secrets_leak/
1•Brajeshwar•22m ago•0 comments

New window insulation blocks heat, but not your view

https://techxplore.com/news/2025-12-window-insulation-blocks-view.html
1•Brajeshwar•22m ago•0 comments

Show HN: Solodash – A single player, Balderdash-style daily word game

https://solodash.net
1•Nathanadian•23m ago•0 comments

Playing Santa Does Things to a Man. What It Did to Bob Rutan Was Even Stranger

https://www.esquire.com/lifestyle/a69597294/santaland-bob-rutan/
1•Lightbody•23m ago•0 comments

Show HN: Kinkora – A creative playground for experimenting with video models

https://kinkora.fun/
8•heavenlxj•28m ago•5 comments

Show HN: Oscilla – Free ngrok alternative for sharing localhost on the 'net

https://oscilla.tech/
1•clowerweb•29m ago•2 comments

What NeurIPS shows about where robotics and physical AI research is flourishing

https://robotsandstartups.substack.com/p/increased-focus-on-robotics-at-neurips
2•robotlaunch•32m ago•0 comments

Elegant Types in Ruby

https://github.com/low-rb/low_type
3•x3qt•37m ago•0 comments

Multiple Indicted on Charges of Theft and Re-Sale of Restaurant Cooking Oil

https://www.justice.gov/usao-sdia/pr/multiple-chinese-nationals-indicted-charges-related-theft-an...
8•737min•38m ago•2 comments

Science sleuths raise concerns about scores of bioengineering papers

https://www.nature.com/articles/d41586-025-03870-3
2•bookofjoe•38m ago•1 comments

Show HN: AI Fiction Duel – adversarial storytelling structure for LLMs

https://aifictionduel.com/
1•pfeaster•39m ago•0 comments

Molecular Effects of Indoor Tanning

https://www.science.org/doi/10.1126/sciadv.ady4878
1•thunderbong•41m ago•0 comments

Name your projects something fun

https://substack.com/inbox/post/181413808
2•lazy_afternoons•45m ago•1 comments

Show HN: Logforth, A versatile and extensible Rust logging framework

https://github.com/fast/logforth
1•tison•45m ago•0 comments

"Gentle" Lecture on the Wigner's Semicircle Law in Python Package Leymosun

https://github.com/msuzen/leymosun/blob/main/lectures/wigner_semicircle.ipynb
1•northlondoner•47m ago•0 comments

Supervisor Jackie Fielder is about to ban all new R&D in the Mission SF

https://twitter.com/terronk/status/1999532633097712090
3•donsupreme•47m ago•0 comments