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

Comments

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

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

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

Meta acquires AI agent social network Moltbook

https://www.theguardian.com/technology/2026/mar/10/meta-acquires-moltbook-ai-agent-social-network
1•bookofjoe•2m ago•0 comments

Time Travel Has Been Done

1•johnnyVincento•3m ago•0 comments

Qt SQL Under LGPL Despite MariaDB Under GPL

https://www.smallstepsystems.com/qt-sql-under-lgpl-despite-mariadb-under-gpl/
1•jandeboevrie•3m ago•0 comments

Thinking Deeply About Theming and Color Naming

https://css-tricks.com/thinking-deeply-about-theming-and-color-naming/
1•PaulHoule•4m ago•0 comments

Codex Monitor

https://github.com/Dimillian/CodexMonitor
1•tosh•5m ago•0 comments

Show HN: VeilPhantom – Open-source on-device PII detection for AI pipelines

https://helloveil.com/sdk/
1•nakaiwilliams•6m ago•0 comments

10 years of AlphaGo: The turning point for AI [video]

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

NASA and SpaceX disagree about manual controls for lunar lander

https://arstechnica.com/space/2026/03/nasa-and-spacex-disagree-about-manual-controls-for-lunar-la...
2•voxadam•7m ago•0 comments

Ask HN: Does automatic multilingual support make sense for a launch platform?

1•LeanVibe•7m ago•0 comments

Planning a multi-city trip without the spreadsheet nightmare

https://explorinder.com
1•pabloceg•7m ago•1 comments

Designing Interfaces for AI Agents Instead of Humans

https://twitter.com/rot13maxi/status/2031429866109710649
1•rot13maxi•8m ago•0 comments

The Clarity Act, Stablecoin Yield and the Chinese Crypto Bogeyman

https://toddhbaker.substack.com/p/the-clarity-act-stablecoin-yield
1•petethomas•9m ago•0 comments

Show HN: OpenMolt – A programmatic AI agent framework for Node.js

https://openmolt.dev
1•ybouane•10m ago•0 comments

AI, Human Cognition and Knowledge Collapse (NBER Working Paper)

https://www.nber.org/papers/w34910
1•imakwana•12m ago•0 comments

Agent API Spec Design: When API Callers Change from Application to AI Agent

https://github.com/tomsun28/agent-api-spec
1•tomsun28•15m ago•1 comments

Prioritizing energy intelligence for sustainable growth

https://www.technologyreview.com/2026/03/10/1133972/prioritizing-energy-intelligence-for-sustaina...
1•joozio•16m ago•0 comments

US added more solar than any other technology in 2025, but is down 14% from 2024

https://www.nytimes.com/2026/03/10/business/energy-environment/donald-trump-solar-energy-batterie...
6•epistasis•17m ago•0 comments

Cardiac side effects of RNA-based SARS-CoV-2 vaccines

https://bpspubs.onlinelibrary.wiley.com/doi/10.1111/bph.16262
3•blumomo•17m ago•1 comments

Epstein Fallout Tracker

https://epstein.observer
1•oldfuture•17m ago•0 comments

Why AI is both a curse and a blessing to open-source developers

https://www.zdnet.com/article/ai-curse-and-blessing-to-open-source-software-developers/
1•CrankyBear•17m ago•1 comments

Astro 6.0

https://astro.build/blog/astro-6/
2•todotask2•18m ago•0 comments

Fixing request smuggling vulnerabilities in Pingora OSS deployments

https://blog.cloudflare.com/pingora-oss-smuggling-vulnerabilities/
1•Tiberium•19m ago•0 comments

Using cookies to hack into a tech college's admission system

https://eaton-works.com/2026/03/09/skcet-hack/
1•nfriedly•20m ago•0 comments

StackOverflow Site Redesign Thread (2026)

https://meta.stackoverflow.com/questions/438177/new-site-design-and-philosophy-for-stack-overflow...
1•all2•20m ago•0 comments

Stay in the Loop: How I Use Claude Code

https://jola.dev/posts/stay-in-the-loop
1•shintoist•21m ago•0 comments

Flock Flocked up: How a license plate camera misread unraveled one man's life

https://www.businessinsider.com/flock-safety-alpr-cameras-misreads-2026-3
9•text0404•21m ago•0 comments

Rcarmo/PhotosExport: Export All Your Data from Apple Photos

https://github.com/rcarmo/PhotosExport
1•rcarmo•22m ago•0 comments

Paying without Google: New consortium wants to remove custom ROM hurdles

https://www.heise.de/en/news/Paying-without-Google-New-consortium-wants-to-remove-custom-ROM-hurd...
3•derbOac•23m ago•0 comments

Show HN: autoautoresearch – Karpathy's autoresearch on steroids

https://github.com/ArmanJR/autoautoresearch
1•armanj•23m ago•0 comments

Block Cut 4k Jobs and Blamed AI. The Truth Is More Complicated

https://newsletter.chainofthought.show/p/block-cut-4000-jobs-and-blamed-ai
3•cliffclimber•24m ago•0 comments