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?

Travelling with a man I'd known for two days changed my life forever

https://www.bbc.com/news/articles/cg4enzg27xdo
1•hmmmmmmmmmmmmmm•1m ago•0 comments

AI: The Wrong Kind of Bubble

https://breadcrumb.vc/ai-the-wrong-kind-of-bubble-72aa224ef0a5
1•sameer_singh17•1m ago•1 comments

What are the best AI focussed YouTube channels these days?

1•obayesshelton•1m ago•0 comments

Unhashing All the Things: Making Sense of Ethereum Storage Traces

https://numtide.com/blog/unhashing-all-the-things-making-sense-of-ethereum-storage-traces
1•draganm•1m ago•0 comments

Superconducting nanowire memory array achieves significantly lower error rate

https://phys.org/news/2026-01-superconducting-nanowire-memory-array-significantly.html
1•rbanffy•2m ago•0 comments

Show HN: Page2Profit – Find where your landing page is losing revenue

https://page2profit.com
1•LokHin•4m ago•1 comments

Reddit Lawyers Force Founder to Redact "WallStreetBets" from Miami Event

https://finance.yahoo.com/news/reddit-lawyers-force-founder-redact-184500502.html
1•indy•5m ago•0 comments

DocBabel – Translate books and long documents with AI

https://docbabel.com/
1•migueldv•6m ago•1 comments

Injury to Buildings and Vegetables

https://www.nplusonemag.com/online-only/online-only/injury-to-buildings-and-vegetables/
1•casca•6m ago•0 comments

Is It Dangerous to Let Kids Be Free?

https://thewalrus.ca/is-it-dangerous-to-let-kids-be-free/
1•bryanrasmussen•8m ago•0 comments

The Next Thing Will Not Be Big

https://blog.glyph.im/2026/01/the-next-thing-will-not-be-big.html
1•bryanrasmussen•9m ago•0 comments

Made to discriminate: UN's Gender Inequality Index always finds women worse off

https://socialsommentary.substack.com/p/designed-to-discriminate-how-the
1•dandare•13m ago•0 comments

Codex Down

https://status.openai.com/incidents/01KFZB0A5C1D3TQED136VXFT9W
1•HarishSush•15m ago•0 comments

Clawdbot Changed Name

https://xcancel.com/moltbot/status/2016058924403753024
1•Alifatisk•16m ago•0 comments

Windows is Ruining New Laptops [video]

https://www.youtube.com/watch?v=fDwt9AiItqU
1•articsputnik•16m ago•0 comments

Rags and Tools and Bellyaches

https://federicopereiro.com/rags-tools-bellyaches/
1•swah•16m ago•0 comments

Show HN: Blink-Edit – Cursor-style next-edit predictions for Neovim (local LLMs)

https://github.com/BlinkResearchLabs/blink-edit.nvim
1•atemyipod•16m ago•0 comments

TikTok investigating why some users can't write "Epstein" in messages

https://www.npr.org/2026/01/27/nx-s1-5689104/tiktok-epstein-direct-messages
4•Tomte•17m ago•0 comments

TikTok censorship claims spark probe of app's handling of anti-Trump content

https://www.nbcnews.com/tech/internet/tiktok-fixed-power-outage-not-censorship-work-views-down-rc...
4•top_sigrid•18m ago•1 comments

Interview with Yafah Edelman about AI welfare

https://thingofthings.substack.com/p/interview-with-yafah-edelman-about
1•verisimi•18m ago•0 comments

Toothbrush-activated powder whitens, repairs and protects teeth

https://phys.org/news/2026-01-toothbrush-powder-whitens-teeth.html
1•rbanffy•19m ago•0 comments

Leaflet, standard.site, and open social publishing

https://lab.leaflet.pub/3md4qsktbms24
1•mefengl•19m ago•0 comments

Show HN: I built a local macOS dictation app using Nvidia Parakeet and MLX

https://www.sayline.app/
1•martin_makes•21m ago•0 comments

Deep dive into the Maia 200 architecture

https://techcommunity.microsoft.com/blog/azureinfrastructureblog/deep-dive-into-the-maia-200-arch...
1•pjmlp•21m ago•0 comments

Gamers suspicious of AI content have forced developers to cancel titles

https://www.washingtonpost.com/technology/2026/01/26/gamer-protests-ai-slop-backlash/
1•perihelions•22m ago•0 comments

The Death of Hype: What's Next for Scala

https://www.lihaoyi.com/post/TheDeathofHypeWhatsNextforScala.html
3•lr0•23m ago•0 comments

V now has SSA, SSA => x64/ARM64 back ends, a linker built in V and a code signer

https://twitter.com/v_language/status/2016072133919518722
3•fork-bomber•24m ago•0 comments

Show HN: Real-time meeting cost calculator

https://heyloopy.com/meeting-cost-tracker/
1•iambenschmidt•33m ago•0 comments

Clawd Bot Renamed to Moltbot

https://clawd.bot/?m
2•schappim•34m ago•1 comments

Implementing the Transcendental Functions in Ivy

https://commandcenter.blogspot.com/2026/01/implementing-transcendental-functions.html
1•fanf2•42m ago•0 comments