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?

Beware power stations where the app won't work without an Internet connection

https://old.reddit.com/r/camping/comments/1ifn4t4/beware_power_stations_where_the_app_wont_work/
1•behnamoh•17s ago•0 comments

Show HN: A unified API for electronic component pricing (Mouser, DigiKey, TME)

https://github.com/PartFuse/partfuse-examples
1•randombyte58•58s ago•0 comments

An Analogy Between LLM Agents and the Human Brain

https://medium.com/versanova/memory-as-intelligence-infrastructure-an-analogy-between-llm-agents-...
2•zsabet•1m ago•0 comments

One Human and One Agent = One Browser from Scratch

https://simonwillison.net/2026/Jan/27/one-human-one-agent-one-browser/
1•pretext•1m ago•0 comments

AI2: Open Coding Agents

https://allenai.org/blog/open-coding-agents
2•publicmatt•2m ago•0 comments

A tiny proof for a tiny LLM

https://mteoh.com//blog/a-tiny-proof-for-a-tiny-llm.html
1•crocsnsocks•5m ago•0 comments

mini-presenter

https://github.com/mitsuhiko/mini-presenter
1•tosh•5m ago•0 comments

Cocaine study that got up the nose of the US (2009)

https://www.theguardian.com/commentisfree/2009/jun/13/bad-science-cocaine-study
2•robtherobber•5m ago•0 comments

SoundCloud Data Breach Now on HaveIBeenPwned

https://haveibeenpwned.com/Breach/SoundCloud
2•gnabgib•8m ago•0 comments

A Regenerative Accelerationist Manifesto

https://omniharmonic.substack.com/p/a-regenerative-accelerationist-manifesto
1•NickNaraghi•9m ago•0 comments

Show HN: YAFS – Yet Another File Server

https://yafs.site/
1•Charmunk•10m ago•0 comments

The history of C# and TypeScript with Anders Hejlsberg | GitHub

https://www.youtube.com/watch?v=uMqx8NNT4xY
2•doppp•12m ago•0 comments

EU and India Reach Free-Trade Deal as World Responds to Trump Tariffs

https://www.wsj.com/economy/trade/eu-and-india-reach-free-trade-deal-as-world-responds-to-trump-t...
3•JumpCrisscross•12m ago•1 comments

Ur-Fascism: Umberto Eco

https://www.nybooks.com/articles/1995/06/22/ur-fascism/
2•everybodyknows•13m ago•0 comments

Scheme Benchmarks

https://ecraven.github.io/r7rs-benchmarks/
1•smartmic•13m ago•0 comments

Assessing internal quality while coding with an agent

https://martinfowler.com/articles/exploring-gen-ai/ccmenu-quality.html
1•mpweiher•13m ago•0 comments

Nudify apps found on Google and Apple's app stores

https://www.theverge.com/news/868614/nudify-apps-ttp-report-google-apple-app-stores
1•speckx•14m ago•0 comments

Show HN: Dexicon – Capture AI coding sessions so your team never loses context

https://www.dexicon.ai/
1•kpam•14m ago•0 comments

Is this the Year of Linux paid Apps?

1•DonnyV•15m ago•0 comments

French lawmakers approve bill banning social media for children under 15

https://apnews.com/article/france-social-media-ban-children-d3c4010741dd1a39f61c1f6d5bb3c85b
2•geox•15m ago•1 comments

Management as AI superpower: Thriving in a world of agentic AI

https://www.oneusefulthing.org/p/management-as-ai-superpower
11•swolpers•15m ago•0 comments

AI isn't inevitable. We should stop it while we can

https://www.usatoday.com/story/opinion/2026/01/24/ai-chip-manufacturing-data-centers-humanity/882...
2•thewebguyd•16m ago•1 comments

CNCF: Kubernetes is 'foundational' infrastructure for AI

https://thenewstack.io/cncf-kubernetes-is-foundational-infrastructure-for-ai/
2•CrankyBear•16m ago•0 comments

Bad Claude's Constitution

https://badclaude.com/
1•neural_thing•17m ago•1 comments

Should professors be forced to retire?

https://www.nature.com/articles/d41586-026-00055-4
1•bikenaga•19m ago•0 comments

Software Should Work Conference

https://softwareshould.work
1•isaacvando•20m ago•0 comments

Wanderly: One App to Plan, Budget, and Book Your Next Adventure

https://waitlister.me/p/wanderly
1•CuylerM•20m ago•1 comments

Show HN: Pingram – Send Telegram alerts with 1 line of Python (20KB)

https://github.com/zvizr/pingram
1•Zvizr•21m ago•1 comments

Run your startup from your phone

https://www.specor.dev/
1•sillygoose_189•21m ago•0 comments

Checkout Supacode.io

https://supacode.io/
1•ChrisJamesL•21m ago•0 comments