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

Comments

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

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

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

Show HN: Figma alternative where AI works with vector primitives, not code

https://brilliant.design/
1•amantinband•51s ago•1 comments

Is Email Confidential in Transit Yet?

https://alexsci.com/blog/is-email-confidential-in-transit-yet/
1•fanf2•53s ago•0 comments

Does Point Cloud Boost Spatial Reasoning of Large Language Models?

https://arxiv.org/abs/2504.04540
1•gregsadetsky•1m ago•0 comments

Chip Startup Aims to Shatter AI's Dreaded Memory Wall

https://www.wsj.com/tech/chip-startup-aims-to-shatter-ais-dreaded-memory-wall-b5f4c563
1•Brajeshwar•3m ago•0 comments

Mild dehydration affects mood in healthy young women

https://pubmed.ncbi.nlm.nih.gov/22190027/
2•7777777phil•5m ago•1 comments

Scaling Test-Time Compute for Agentic Coding

https://arxiv.org/abs/2604.16529
1•gmays•6m ago•0 comments

Show HN: Rocky – Rust SQL engine with branches, replay, column lineage

https://github.com/rocky-data/rocky
1•hugocorreia90•6m ago•0 comments

Workday's Last Workday

https://www.a16z.news/p/workdays-last-workday
1•7777777phil•10m ago•0 comments

Big AI cluster little power the 8x Nvidia GB10 cluster

https://www.servethehome.com/big-cluster-little-power-the-8x-nvidia-gb10-cluster-marvell-cisco-ub...
1•teleforce•11m ago•0 comments

The Monetization of Spam

https://www.thomasmcgee.co/article/linkedin-inbox-spam
1•SunshineTheCat•12m ago•0 comments

The Making of Digital Identity: Mobile Revolution and the Surveillance Machine

https://syntheticauth.ai/posts/the-making-of-digital-identity-06-the-mobile-revolution-and-the-su...
1•zerolayers•14m ago•0 comments

The Pragmatic Prompter

https://liameveryday.substack.com/p/the-pragmatic-prompter
1•wlindner•15m ago•0 comments

Show HN: Keychase – A zero-config, offline Python secret scanner

https://github.com/Iflal/keychase
1•Iflal•15m ago•0 comments

GPT-5.5 prompt for Codex tries to make it not talk about goblins

https://twitter.com/arb8020/status/2048958391637401718
2•ndiddy•15m ago•0 comments

I Ditched the iCloud Keychain

https://webcatz.eu/blog/vaultwarden
1•speckx•16m ago•0 comments

Scammers use Gmail dot alias trick to spoof Robinhood in phishing scam

https://www.msn.com/en-us/news/technology/scammers-use-gmail-dot-alias-trick-to-spoof-robinhood-i...
1•kapkapkap•16m ago•0 comments

OpenAI's revenue, growth estimates fall short as company races toward IPO

https://www.cnbc.com/2026/04/28/openais-revenue-growth-estimates-fall-short-report.html
4•1vuio0pswjnm7•17m ago•0 comments

Show HN: Integrations gateway for agents with 2FA for destructive ops (OSS)

https://github.com/yakkomajuri/agentport
2•yakkomajuri•18m ago•0 comments

U.S. is 'being humiliated by Iran,' says Germany's Merz

https://www.cnbc.com/2026/04/28/us-humiliated-germany-merz-europe-iran-war-energy-prices-fuel.html
4•tcp_handshaker•18m ago•0 comments

Free retirement tax calculators – SS tax torpedo, IRMAA cliffs, Roth ladders

https://www.retiresmarter.co/
2•samedame•19m ago•0 comments

An AI prompt-injected another AI in the wild and recognized it had succeeded

https://ratnotes.substack.com/p/what-an-ai-does-when-nobody-on-the
3•mtrifonov•20m ago•0 comments

Wysiwyg LaTeX Editor Compositor for Windows and macOS Release 0.7

https://compositorapp.com/blog/2026-04-27/Compositor-Windows-07/
2•serhack_•21m ago•0 comments

Open grid data has a public benefit

https://nworbmot.org/blog/open-grid-data.html
2•lyoncy•21m ago•0 comments

PostgreSQL and the OOM Killer: Why We Use Strict Memory Overcommit

https://www.ubicloud.com/blog/postgresql-and-the-oom-killer-why-we-use-strict-memory-overcommit
2•yusufaytas•22m ago•0 comments

Clojure on Fennel part three: parsing

https://andreyor.st/posts/2026-04-27-clojure-on-fennel-part-three-parsing/
2•ibobev•22m ago•0 comments

Understanding Systems

https://entropicthoughts.com/understanding-systems
2•ibobev•22m ago•0 comments

Proton VPN's promises post-quantum groundwork, Stealth for Linux and new apps

https://www.techradar.com/vpn/vpn-services/proton-vpns-promises-post-quantum-groundwork-stealth-f...
3•losgehts•22m ago•0 comments

Where Optimizations Come From

https://buttondown.com/jaffray/archive/where-optimizations-come-from/
2•ibobev•22m ago•0 comments

Start with the sensors, then design the rest: How Zoox built its robotaxi

https://arstechnica.com/cars/2026/04/start-with-the-sensors-then-design-the-rest-how-zoox-built-i...
2•Brajeshwar•24m ago•0 comments

Microsoft Ecommerce Platform Options for Scalable Online Commerce

https://virtocommerce.com/blog/microsoft-ecommerce
2•vcmarketing•25m ago•0 comments