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

Comments

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

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

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

Got an Old Kindle? It Might Not Work Anymore

https://www.nytimes.com/wirecutter/reviews/older-kindle-support-ending/
1•eigenhombre•57s ago•0 comments

2,100 Swiss municipalities showing which provider handles their official email

https://mxmap.ch/
1•doener•1m ago•0 comments

Vercel hack – an old fashioned honey pot?

https://twitter.com/rauchg/status/2045995362499076169
1•Juusohei•4m ago•0 comments

NVFP4 on Nvidia DGX Spark is slower than FP8 on the same model

https://forums.developer.nvidia.com/t/nvfp4-on-dgx-spark-gb10-is-broken-i-bought-9-of-these-for-t...
1•vinnybad•5m ago•0 comments

Ultimate Guide to Vibe Coding

https://github.com/EnzeD/vibe-coding
1•indigodaddy•13m ago•0 comments

Ukraine Moves to Replace Frontline Soldiers with 25,000 Ground Robots

https://united24media.com/latest-news/ukraine-moves-to-replace-frontline-soldiers-with-25000-grou...
5•Teever•17m ago•0 comments

Headless Everything for Personal AI

https://interconnected.org/home/2026/04/18/headless
2•rdslw•18m ago•0 comments

Fear and Loathing Among the Haves and Have Mores in San Francisco

https://www.wsj.com/tech/ai/fear-and-loathing-among-the-haves-and-have-mores-in-san-francisco-ee8...
2•1vuio0pswjnm7•20m ago•0 comments

Interview with 0.1x Engineer [video]

https://www.youtube.com/watch?v=hwG89HH0VcM
1•strogonoff•21m ago•0 comments

Banned by Anthropic

https://bannedbyanthropic.com/
58•gck1•23m ago•24 comments

Show HN: Turn your PCB into a Minecraft world

https://www.youtube.com/watch?v=3z7CzlbqfR0
1•napowderly•24m ago•0 comments

Ex-CEO, ex-CFO of bankrupt AI company charged with fraud

https://www.reuters.com/legal/government/ex-ceo-ex-cfo-bankrupt-ai-company-charged-with-fraud-202...
2•1vuio0pswjnm7•27m ago•1 comments

US Draft Update: Major Tech Company Urges Universal National Service

https://www.newsweek.com/us-draft-update-major-tech-company-urges-universal-national-service-1185...
3•Teever•27m ago•0 comments

Cathode Ray Tube Memory (RAM)

https://www.radiomuseum.org/forum/williams_kilburn_williams_kilburn_ram.html
1•mycall•27m ago•0 comments

Audit Tool for Vercel Exposure of Environment Variables

https://github.com/garyhtou/Vercel-Env-Var-Exposure-Triager
2•garyhtou•29m ago•1 comments

Improving Office+Photoshop+Fusion on Linux with Adversarial Drinking

https://hajo.me/blog/2026/04/18/improving-office-photoshop-fusion-on-linux-with-adversarial-drink...
1•fxtentacle•34m ago•0 comments

Is Prolog Worth Learning?

https://medium.com/@kenichisasagawa/is-prolog-worth-learning-892e8a61bf57
3•myth_drannon•35m ago•0 comments

Claude UI Feature Request

2•simon_acca•37m ago•0 comments

Reminder: Enable ZRAM on your Linux system to optimize RAM usage

https://www.cnx-software.com/2026/04/15/reminder-enable-zram-on-your-linux-system-to-optimize-ram...
6•type0•37m ago•0 comments

Aliens.gov will be running as a WordPress multisite

https://aliens.gov/
2•johnnyApplePRNG•38m ago•0 comments

Show HN: Developerpod, K-Cups for Code

https://developerpod.com/
2•DavidCanHelp•38m ago•0 comments

Fuse Shared Libraries into ELFs

https://github.com/fossable/solder
2•fossable•41m ago•0 comments

Claude Design(ed) Numble.today

1•shauntrennery•46m ago•2 comments

Ask HN: Has AI impacted entry-level programming skills?

1•alejohausner•48m ago•0 comments

Trial by Fire: Crisis Engineering

https://www.oreilly.com/radar/trial-by-fire-crisis-engineering/
2•rmason•49m ago•0 comments

Show HN: A font that auto-translates Chinese

https://bryanhu.com/chinese-font/
2•thatxliner•50m ago•0 comments

suckmore.org – Software that sucks more

https://suckmore.org/
2•basilikum•52m ago•0 comments

Why do language models feel worse even as benchmarks improve? [pdf]

https://huggingface.co/datasets/realitydriftproject/semantic-fidelity-framework/blob/main/SFL-02_...
2•scaledsystems•55m ago•0 comments

LoRa

https://en.wikipedia.org/wiki/LoRa
2•downboots•56m ago•0 comments

Cursor in talks to raise $2B round at valuation of over $50B

https://www.cnbc.com/2026/04/19/cursor-ai-2-billion-funding-round.html
2•tcp_handshaker•56m ago•2 comments