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?

Thalidomide Scandal

https://en.wikipedia.org/wiki/Thalidomide_scandal
1•jseip•12s ago•0 comments

Superpower Suicide Or, Attempted Suicide

https://snyder.substack.com/p/superpower-suicide
1•hkhn•1m ago•0 comments

AI cannot plan

https://orchidfiles.com/ai-will-build-your-roadmap-in-ten-seconds/
1•theorchid•1m ago•0 comments

Europe to burned American scientists: We'll take you in

https://www.politico.eu/article/europe-exploit-dunald-trump-brain-drain-academic-research-progres...
3•vrganj•7m ago•0 comments

Show HN: OO – Automated O&O Shut-Up for Windows

https://github.com/mytech-today-now/OO
1•mytechtoday•8m ago•0 comments

Show HN: DDoS detection in 0.9s, tested against a 48 Gbps attack live

https://flowtriq.com/blog/lorikeet-security-case-study
1•jacob_masse•8m ago•0 comments

Fast Fourier Transforms: for fun and profit (1966)

https://dl-acm-org.mutex.gmu.edu/doi/abs/10.1145/1464291.1464352
2•smitty1e•12m ago•0 comments

Ask HN: Oh, What Places to Go (Seriously Tho)

3•thx•14m ago•2 comments

Show HN: MTTCleaner – Same as CCleaner but free, no ads

https://github.com/mytech-today-now/mTTCleaner
1•mytechtoday•23m ago•0 comments

Why Has There Been So Little Progress on Alzheimer's Disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
7•chiefalchemist•23m ago•0 comments

Multiple things can be true at the same time

https://frederikbraun.de/feels-and-llms.html
2•birdculture•24m ago•0 comments

U.S. Considering Foreign Designs, Shipyards for New Navy Ships in $1.85B Study

https://news.usni.org/2026/04/24/u-s-considering-foreign-designs-shipyards-for-new-navy-frigate-d...
3•Teever•26m ago•0 comments

Google Spanner On-Prem (Spanner Omni)

https://cloud.google.com/products/spanner/omni
2•alpb•30m ago•0 comments

Show HN: SigmaLifting CLI – helping agents understand strength training

https://sigmalifting.app/
1•jklioewr•32m ago•0 comments

Foundational aspects of spinor structures and exotic spinors(2025)

https://arxiv.org/abs/2502.15471
2•rolph•35m ago•0 comments

What Managerial Economics can tell us about AI and Software Development

https://www.germanvelasco.com/blog/managerial-economics-ai-and-software-development
1•germsvel•35m ago•0 comments

Kraken Scales Serverless to Balance the National Grid (InfoQ) [video]

https://www.youtube.com/watch?v=RwgcvPWjXmg
1•zeristor•37m ago•1 comments

Agents Aren't Coworkers, Embed Them in Your Software

https://www.feldera.com/blog/ai-agents-arent-coworkers-embed-them-in-your-software
3•gz09•42m ago•0 comments

Aprendendo Inglês Com IA

https://fluencycraft.com/
2•carloscsc•42m ago•1 comments

Bees Change Color with the Weather

https://nautil.us/these-bees-change-color-with-the-weather-1280222
2•Brajeshwar•44m ago•0 comments

How Copenhagen built a metro for free (The Flying Moose) [video]

https://www.youtube.com/watch?v=GzamwVH3CXU
2•zeristor•44m ago•1 comments

Show HN: I built a PyPI watchdog that tests whether packages work

https://sovereignmail.org/pypiplace
1•contentist•45m ago•0 comments

IronBCI-32: 32-Channel 24-Bit EEG for BCI Research

https://hackaday.io/project/205585-ironbci-32-32-channel-24-bit-eeg-for-bci-research
2•Christiangmer•45m ago•0 comments

Microfiche, Microfilm and Other Minutiae (1981) [video]

https://www.youtube.com/watch?v=Q6P9FhSkd0I
2•susam•45m ago•0 comments

The most successful health campaign in modern history

https://www.msn.com/en-us/health/other/the-most-successful-health-campaign-in-modern-history/ar-A...
1•RickJWagner•47m ago•0 comments

DeepSeek-V4 on Day 0: From Fast Inference to Verified RL with SGLang and Miles

https://www.lmsys.org/blog/2026-04-25-deepseek-v4/
1•mji•52m ago•0 comments

Understanding the short circuit in solid-state batteries

https://www.mpie.de/5151287/short-circuit-solid-state-batteries
2•hhs•53m ago•0 comments

Uranus's Outermost Rings Are Made of Two Different Things

https://skyandtelescope.org/astronomy-news/uranuss-outermost-rings-are-made-of-two-different-things/
3•mooreds•54m ago•0 comments

Boulder's water supply hangs on for now amid historic drought conditions

https://boulderreportinglab.org/2026/04/23/boulders-water-supply-hangs-on-for-now-amid-historic-d...
2•mooreds•55m ago•0 comments

Once a Year, Seattle Center Becomes a Medical Clinic

https://www.thestranger.com/news/once-a-year-seattle-center-becomes-a-medical-center/
1•mooreds•55m ago•0 comments