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?

Virgins, Unicorns and Medieval Literature (2017)

https://www.bowdoin.edu/news/2017/11/virgins-unicorns-and-medieval-literature.html
1•mooreds•21s ago•0 comments

Show HN: Sentinel Core – Open-source AI video search with real-time dashboard

https://github.com/abg-labs/sentinel-core
1•ab-abg•34s ago•0 comments

Show HN: I built a way for my family to access my accounts in an emergency

https://keeplineage.com
1•Sayuj01•45s ago•0 comments

Show HN: PolyClaw – An Autonomous Docker-First MCP Agent for PolyMCP

1•justvugg•1m ago•0 comments

YouTube adds new hurdles for ad blockers, and there's currently no way around it

https://www.androidauthority.com/youtube-ad-blocker-comments-turned-off-3641167/
1•speckx•1m ago•0 comments

Peer-Reviewers in the Coal Mine?

https://www.ericburel.tech/blog/ai-impact-employment-and-peer-review
1•eric-burel•3m ago•0 comments

Contrepreneurs: The Mikkelsen Twins [video]

https://www.youtube.com/watch?v=biYciU1uiUw
1•simonebrunozzi•3m ago•0 comments

TIL: Docker Log Rotation

https://ntietz.com/blog/til-docker-log-rotation/
1•todsacerdoti•5m ago•0 comments

Chronic Pain: The Science of Unlearning Pain

https://www.zeit.de/gesundheit/2025-11/chronic-pain-causes-treatments-pain-perception-english
1•Tomte•6m ago•0 comments

Amodei suggests OpenAI doesn't "understand the risks they're taking"

https://the-decoder.com/anthropic-ceo-dario-amodei-suggests-openai-doesnt-really-understand-the-r...
2•achow•6m ago•0 comments

Semantic ablation renders AI writing generic, boring and dangerous

https://www.theregister.com/2026/02/16/semantic_ablation_ai_writing/
1•samizdis•6m ago•0 comments

The Cyber Arms Trade: How Commercial Spyware Is Reshaping Global Security

https://breached.company/the-cyber-arms-trade-how-commercial-spyware-is-reshaping-global-security/
1•robtherobber•7m ago•0 comments

Show HN: YOPJ – Local AI coding agent with 8-layer security sandbox (no cloud)

https://github.com/WayneCider/YourOwnPersonalJean-Luc
1•WayneCider•8m ago•0 comments

Orion for Windows is taking shape

https://twitter.com/OrionBrowser/status/2020866955683520993
1•frizlab•9m ago•0 comments

Justifying Text-Wrap: Pretty

https://matklad.github.io/2026/02/14/justifying-text-wrap-pretty.html
1•ingve•9m ago•0 comments

Semantic Firewall v3: A Practical Audit Layer for AI

1•look888•11m ago•0 comments

Open source Agent Testing (BSL 1.1)

1•exordex•11m ago•0 comments

The Essential Economics of Nigeria's Okrika Industry (2023)

https://rpublc.com/august-september-2023/nigerias-okrika-industry/
2•ForHackernews•12m ago•1 comments

Flynn Effect

https://en.wikipedia.org/wiki/Flynn_effect
1•thunderbong•12m ago•0 comments

Show HN: Open-source, SDK-first email infrastructure built for agents

https://twitter.com/shanjai_raj/status/2023397491572387934
1•shanjai_raj7•13m ago•0 comments

Browse Code by Meaning

https://haskellforall.com/2026/02/browse-code-by-meaning
2•todsacerdoti•14m ago•0 comments

Retrocomputing (2020)

https://blog.information-superhighway.net/retrocomputing
1•tosh•14m ago•0 comments

Show HN: Multi-provider iOS usage alerts for AI subscription caps

https://0raculo.github.io/aiusagetracker-site/
1•afonsoduarte•15m ago•1 comments

Height-Safe Peptides for Muscle Growth

https://peptideunlock.com/blog/height-safe-peptides-for-muscle-growth-clavicular-inspired-protoco...
1•avirflux•15m ago•0 comments

The AI pro­ductiv­ity take-off is finally vis­ible

https://ft.pressreader.com/article/281857239993429
1•simonebrunozzi•16m ago•0 comments

San Francisco's 24-Hour Diner Stops the Cosmic Clock (2023)

https://www.altaonline.com/culture/food-drink/a44939075/san-franciscos-24-hour-diner-silver-crest...
1•NaOH•17m ago•1 comments

Large language models provide unreliable answers about public services

https://www.computerweekly.com/news/366638829/Large-language-models-provide-unreliable-answers-ab...
1•ohjeez•18m ago•0 comments

Why Didn't AI Replace Novelists?

https://old.reddit.com/r/Fantasy/comments/1r1csca/why_didnt_ai_replace_novelists/
1•dsr_•18m ago•0 comments

Get a portable monitor, they're great

https://davidgerard.co.uk/blockchain/2025/02/11/get-a-portable-monitor-theyre-great/
2•bariumbitmap•19m ago•0 comments

Hilbert Map of IPv6 address space

https://observablehq.com/@vasturiano/hilbert-map-of-ipv6-address-space
1•miyuru•20m ago•0 comments