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?

CSS Grid Lanes

https://webkit.org/blog/17660/introducing-css-grid-lanes/
1•frizlab•40s ago•0 comments

A List of Books to Learn Programming with Ruby and Rails (2023)

https://www.writesoftwarewell.com/books-to-learn-ruby-and-rails/
1•todsacerdoti•1m ago•0 comments

When Your Private Fund Turns $1 into 60 Cents

https://www.wsj.com/finance/investing/when-your-private-fund-turns-1-into-60-cents-445d63c2
2•petethomas•2m ago•0 comments

The 'Race Against Time' to Save Music Legends' Decaying Tapes

https://www.nytimes.com/2025/12/01/arts/music/iron-mountain-audio-tape-preservation.html
1•austinallegro•4m ago•0 comments

Show HN: AI interview coach I built at 17 after bombing my first interview

https://www.kelvai.com/
1•Parth_Sharma_18•5m ago•0 comments

A "Ready-to-Use" Template for LLVM Out-of-Tree Passes

https://github.com/FedericoBruzzone/llvm-pass-template
1•matt_d•6m ago•0 comments

The gift card accountability sink

https://www.bitsaboutmoney.com/archive/gift-card-accountability-sink/
1•stuuuuuuuuu•7m ago•0 comments

Where Was My Generic Prescription Drug Made?

https://projects.propublica.org/rx-inspector/
2•walterbell•9m ago•0 comments

AskHnWisdom

https://www.askhnwisdom.com/
2•howToTestFE•10m ago•1 comments

Toffee Crisp and Blue Riband can't be called chocolate any more

https://www.bbc.co.uk/news/articles/c79x7q325p3o
3•jeffwass•10m ago•0 comments

Verify long-horizon tasks with GEPA on the judge

https://www.usesynth.ai/blog/building-verifiers-and-rlms
2•JoshPurtell•10m ago•0 comments

Show HN: Fylo – Forms, but Fun

https://fyloforms.online/
1•studlydev•11m ago•1 comments

These are the flying discs the government wants you to know about

https://arstechnica.com/science/2025/12/heres-why-nasa-and-the-space-force-are-interested-in-pizz...
3•breve•12m ago•0 comments

Deprecated Developers: A manifesto for building what comes next

https://depdevs.com
2•mutkertelag•13m ago•0 comments

Braid: Bounded reasoning for LLMs using symbolic Mermaid graphs

https://arxiv.org/abs/2512.15959
3•dashersw•13m ago•1 comments

He Built a Privacy Tool. Now He's Going to Prison [video]

https://www.youtube.com/watch?v=Fshsk8MCAf4
1•heavyset_go•14m ago•0 comments

Embracing New Technologies and Players in Payments

https://www.federalreserve.gov/newsevents/speech/waller20251021a.htm
2•petethomas•19m ago•0 comments

Mini-SGLang: Efficient Inference Engine in a Nutshell

https://lmsys.org/blog/2025-12-17-minisgl/
2•matt_d•19m ago•0 comments

Categories in RSS Feed Titles

https://eternodevir.com/palimpsests/logs/categories-in-rss-feed-titles/
2•sedboyz•21m ago•0 comments

Buteyko Method

https://en.wikipedia.org/wiki/Buteyko_method
6•rzk•21m ago•1 comments

Chemical Hygiene

https://karpathy.bearblog.dev/chemical-hygiene/
1•jvican•22m ago•0 comments

Show HN: Netrinos – A keep it simple Mesh VPN for small teams

https://netrinos.com
1•pcarroll•22m ago•0 comments

Jeffrey Epstein Files Released

https://www.justice.gov/queue/view?c=usdoj&e=usdojsearch&ver=javascript-5.0.1&cver=11&man=www.jus...
5•NullCascade•23m ago•2 comments

Can You Get a "0% Down, Near-Treasury Rate" Mortgage from the Options Market?

https://joshpearlson.com/articles/posts/mortgage-from-market/mortgage-from-market.html
4•jcpearlson•24m ago•0 comments

Show HN: I Built an Image Captioning Tool Using Llama.cpp

https://github.com/paradox460/imagecaption
1•paradox460•24m ago•0 comments

Cold Cases in the AI Era

https://hollisrobbinsanecdotal.substack.com/p/cold-cases-in-the-ai-era
1•HR01•24m ago•0 comments

The lightest notes app implementation

https://medv.io/notes/#HcmxDcIwEAXQ3lP8LMASNNCzwAl9bCtOzvJdkOhS0VAhpaHKAGyVCTICEq99Jz467Ov7FcJFek...
2•todsacerdoti•25m ago•0 comments

A Message from AI Research Leaders: Join Us in Supporting OpenReview

https://openreview.net/forum/pineau|a_message_from_ai_research_leaders_join_us_in_supporting_open...
1•mindcrime•26m ago•0 comments

School security AI flagged clarinet as a gun. Exec says it wasn't an error

https://arstechnica.com/tech-policy/2025/12/florida-schools-plan-to-vastly-expand-use-of-ai-that-...
3•nobody9999•27m ago•1 comments

The Big-O Complexity of Vibe Coders

https://www.shiveesh.com/thoughts-and-ideas/the-big-o-complexity-of-vibe-coders
2•shiveeshfotedar•28m ago•0 comments