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?

Show HN: Unblurry – Your memory lies about how you work

https://www.unblurry.app/
1•ImaneIdrissi•1m ago•0 comments

macOS Tahoe windows have different corner radiuses

https://lapcatsoftware.com/articles/2026/3/1.html
1•giuliomagnifico•2m ago•0 comments

Show HN: Notation – Real-time AI clinical notes for physical therapists

https://fownd.care
1•Sharanxxxx•3m ago•0 comments

Show HN: AlifZetta – AI Operating System That Runs LLMs Without GPUs

https://axz.si/
2•padamkafle•3m ago•1 comments

Show HN: Mirra – AI turns ideas into social media carousels and videos

https://www.mirra.my/ko
1•gtp7473•5m ago•0 comments

Google Just Made Your Reports Watchable. and Video Editors Are Worried

https://medium.com/@tbelbek/google-just-made-your-reports-watchable-and-video-editors-are-worried...
1•rdstrtwlkr•6m ago•0 comments

Free Ways to Find Someone's Email Address

1•lakshmirk•8m ago•0 comments

Microplastics and nanoplastics in urban air originate mainly from tire abrasion

https://phys.org/news/2026-03-microplastics-nanoplastics-urban-air-abrasion.html
1•JeanKage•9m ago•0 comments

FlowLessAI – connects to GitHub, audits your codebase, delivers a PR with fixes

https://www.flowlessai.one/
1•mozinovati•10m ago•1 comments

Qwen3-ASR-Swift

https://github.com/ivan-digital/qwen3-asr-swift
2•handfuloflight•10m ago•0 comments

X Accounts with over 1M Followers

https://millionsclub.win/
1•saejox•11m ago•1 comments

Can the Most Abstract Math Make the World a Better Place?

https://www.quantamagazine.org/can-the-most-abstract-math-make-the-world-a-better-place-20260304/
1•mathgenius•11m ago•0 comments

Show HN: Compare ORMs Side-by-Side

https://orm-party.fkey.dev/?f=django-prisma
1•kuchin•14m ago•0 comments

Delta – 3D racing game for MSX2 (z80)

https://jacco.ompf2.com/delta-dodge-engage-launch-target-assault/
1•jbikker•14m ago•1 comments

Summer Academy for Intercultural Dialogue 2026

https://survey.lamapoll.de/SAID26
1•rendx•21m ago•0 comments

Trojan Source: Invisible Vulnerabilities

https://arxiv.org/abs/2111.00169
2•rbanffy•21m ago•0 comments

RemixAI – All-in-One AI Platform to Generate Images, Videos and Creative Effects

1•rosemery•24m ago•0 comments

Insightful Pipe

https://insightfulpipe.com
1•bellamoon544•24m ago•1 comments

Why every demo account is named John DOE (a 700-year-old reason)

2•deep1283•26m ago•0 comments

The One Question That Exposes Fake Product-Market Fit

https://susanjmontgomery.substack.com/p/the-one-question-that-exposes-fake
1•mgav•28m ago•3 comments

Open YouTube links directly in the app, skip the browser

https://ytopen.app
1•ssarisen•30m ago•0 comments

The US military is still using Claude – but defense-tech clients are fleeing

https://techcrunch.com/2026/03/04/the-us-military-is-still-using-claude-but-defense-tech-clients-...
1•marcofloriano•31m ago•0 comments

Child's Play

https://cinemasojourns.com/2026/03/05/childs-play/
1•jjgreen•34m ago•0 comments

RasS (Rounding-as-a-Service)

https://github.com/jtayped/raas
4•matan-h•36m ago•1 comments

Federated Systems Dissapear

https://test.roelof.info/log/how-federated-systems-dissapear/
1•OuterVale•39m ago•0 comments

Show HN: I Built Glassdoor but for Food Delivery Drivers in Dubai

https://igotfilmed.com/
1•shraddha92•41m ago•0 comments

Vivo Time: stop wasting time, start living it

https://www.vivotime.net/
1•lopespm•43m ago•0 comments

Nokian Tyres launches studded winter tire that adapts to changes in temperature

https://company.nokiantyres.com/news-and-media/news-article/a-new-era-of-winter-driving-begins-no...
2•komape•43m ago•0 comments

The Technical Differences Between the MacBook Neo and MacBook Air

https://512pixels.net/2026/03/the-differences-between-the-macbook-neo-and-macbook-air/
1•tosh•43m ago•0 comments

AI in Warfare Is Here

https://www.wionews.com/world/ai-in-warfare-is-here-pentagon-used-anthropic-s-claude-ai-in-iran-s...
1•hmontazeri•48m ago•0 comments