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

Comments

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

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

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

A cosmic collection of old Soviet space imagery

https://www.huckmag.com/article/soviet-images-of-the-cosmos-space-artwork
1•_reza•51s ago•0 comments

Video is a Drawing App (2025) [video]

https://www.youtube.com/watch?v=LuangEd48wI
1•ekunazanu•59s ago•0 comments

Lines of Code Are Back (and It's Worse Than Before)

https://www.thepragmaticcto.com/p/lines-of-code-are-back-and-its-worse
2•birdculture•1m ago•0 comments

Hunter-gatherers took refuge in European 'water world' for millennia

https://www.nature.com/articles/d41586-026-00440-z
1•Brajeshwar•2m ago•0 comments

Why Does Dial Up Sounds Like That? [video]

https://www.youtube.com/shorts/dEXAgLjbcMw
1•avonmach•2m ago•0 comments

Recent Tropical Cyclone Outer Size Increases in the Western North Atlantic

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2025EF007162
1•bikenaga•2m ago•0 comments

Robots with human-inspired eyes have better vision

https://www.economist.com/science-and-technology/2026/02/11/robots-with-human-inspired-eyes-have-...
1•Brajeshwar•2m ago•0 comments

Humans are not the only animals that treat each other's injuries

https://www.economist.com/science-and-technology/2026/02/11/humans-are-not-the-only-animals-that-...
1•Brajeshwar•2m ago•0 comments

Ruby on Rails doesn't use CSRF tokens anymore

https://github.com/rails/rails/pull/56350
1•Einenlum•3m ago•0 comments

SpaceX takes down Dragon crew arm, giving Starship a leg up in Florida

https://arstechnica.com/space/2026/02/heres-why-americas-most-historic-launch-pad-is-getting-yet-...
1•voxadam•3m ago•0 comments

Mewgenics Wiki, Breeding Guide and Class Database

https://mewgenics.online/
1•lizbo•3m ago•0 comments

US businesses and consumers pay 90% of tariff costs, New York Fed says

https://www.ft.com/content/c4f886a1-1633-418c-b6b5-16f700f8bb0d
1•mraniki•5m ago•1 comments

Elon Musk posted about race almost every day in January

https://www.theguardian.com/technology/2026/feb/12/elon-musk-posts-january-white-supremacists
1•n1b0m•5m ago•0 comments

U.S. Health Officials Defend Rejection of Moderna's Flu Vaccine

https://www.nytimes.com/2026/02/11/health/fda-moderna-flu-vaccine.html
1•whack•6m ago•0 comments

Uber's Rate Limiting System

https://www.uber.com/blog/ubers-rate-limiting-system/
1•enz•7m ago•0 comments

Continuous Tensors

https://dl.acm.org/doi/10.1145/3763146
2•tesserato•7m ago•1 comments

Republicans vote to end Trump's Canada tariffs

https://www.cnbc.com/2026/02/12/cnbc-daily-open-republicans-vote-to-end-trumps-canada-tariffs-in-...
2•leopoldj•8m ago•0 comments

What the FDA's 2026 Update Means for Wearables

https://spectrum.ieee.org/fda-medical-device-rules
1•oldnetguy•8m ago•0 comments

Show HN: Production-Ready Django and React Auth Starter

https://github.com/maniishbhusal/django-react-auth-starter
1•okchildhood•8m ago•0 comments

Russia bans WhatsApp, pushes state-backed alternative "MAX"

https://www.aljazeera.com/news/2026/2/12/russia-bans-whatsapp-pushes-state-backed-alternative-max
1•fsdakhsdkjhask•9m ago•0 comments

Show HN: Quoracle, a recursive consensus-based multi-agent orchestrator (Elixir)

https://github.com/shelvick/quoracle
1•shelvick•10m ago•1 comments

Making the Vortex Mixer

https://www.asimov.press/p/vortex
1•mailyk•11m ago•0 comments

Show HN: Drift – Real-time codebase health dashboard with AI-powered fixing (Go)

https://drift.marquis.codes/
1•greatnessinabox•11m ago•0 comments

I built a zero-noise AI code review agent using Claude Code

https://medium.com/riskified-technology/lgtm-2-0-zero-noise-ai-code-review-agents-857441ec4f1a
4•aner-co•11m ago•1 comments

If SEO is rocket science, AI SEO is astrophysics

https://searchengineland.com/seo-rocket-science-ai-seo-astrophysics-468923
1•speckx•12m ago•1 comments

What Is Claude? Anthropic Doesn’t Know, Either

https://www.newyorker.com/magazine/2026/02/16/what-is-claude-anthropic-doesnt-know-either
2•jbegley•12m ago•1 comments

Texas Lawmakers Sound Alarm on 'Torture, Killing, and Inhumane Treatment'

https://www.commondreams.org/news/fort-bliss-inhumane-ice-conditions
1•wahnfrieden•12m ago•0 comments

Finding the Active Voice

https://elijahpotter.dev/articles/finding-the-active-voice
1•chilipepperhott•13m ago•0 comments

Show HN: The Algorithm's Favorite Child – A social experiment

https://chatbotkit.com/hub/blueprints/the-algorithms-favorite-child
1•_pdp_•13m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
2•sulongbin•13m ago•0 comments