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

Comments

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

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

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

Serve Markdown to LLMs from your Next.js app

https://github.com/kasin-it/next-md-negotiate
1•kasin-it•20m ago•1 comments

Idea Hunting Is Dead. Databases Like This Are Replacing It

1•briebella•22m ago•0 comments

Magawa the HeroRAT

https://en.wikipedia.org/wiki/Magawa
1•KolmogorovComp•24m ago•0 comments

The Lazy Way to Find Your Next SaaS Idea

1•DownCreater•27m ago•1 comments

Pentagon puts Scouts 'on notice' over DEI and girl-centered policies

https://www.npr.org/2026/02/27/nx-s1-5729159/pentagon-scouts-hegseth-dei-deal
1•iamflimflam1•30m ago•0 comments

We Will Be Divided

https://we-are-divided.com
2•shiftybitshiftr•30m ago•0 comments

Social media use/mental wellness links in youth are artifact of other factors [pdf]

https://www.christopherjferguson.com/Brainwaves.pdf
1•mpweiher•35m ago•0 comments

Agentic Engineering Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/
1•vinhnx•39m ago•0 comments

Might Be the Most Underrated Resource for Early Stage Founders

1•vibecoder21•42m ago•0 comments

Kakveda open source-level AI, Infra observability agent

https://www.kakveda.com/
1•prateekdalal•43m ago•1 comments

What Is It That Makes Today's Homes So Different, So Appealing?

https://smarthistory.org/richard-hamilton-just-what-is-it/
1•Torwald•44m ago•0 comments

How LDAP Works

https://growingswe.com/blog/ldap
1•vismit2000•44m ago•0 comments

How you invent math: From counting to complex numbers

https://growingswe.com/blog/inventing-math
1•vismit2000•45m ago•0 comments

Stop Burning Your Context Window – How We Cut MCP Output by 98% in Claude Code

https://mksg.lu/blog/context-mode
1•mksglu•45m ago•1 comments

Zerobyte

https://github.com/nicotsx/zerobyte
1•Erenay09•47m ago•0 comments

Researchers praise 'stunning' results of new prostate cancer treatment

https://www.theguardian.com/society/2026/feb/28/researchers-praise-stunning-results-of-new-prosta...
2•sandebert•48m ago•0 comments

Robotic Land Drone holds positions in Ukraine frontline for 45 days

https://www.youtube.com/watch?v=JMTSH1U44cw
2•lifeisstillgood•53m ago•0 comments

The Missing Piece of AI Discourse Is Trust

https://philipptanlak.com/the-missing-piece-of-ai-discourse-is-trust/
1•philippta•54m ago•0 comments

Modula-2

https://en.wikipedia.org/wiki/Modula-2
3•tosh•58m ago•0 comments

US Customs destroy a rare floppy disk containing demo version of Tsukihime

https://www.timeextension.com/news/2026/02/literally-crying-right-now-50-copies-of-this-adult-onl...
2•FMecha•58m ago•0 comments

ErsatzTV Has Been Archived

https://github.com/ErsatzTV/ErsatzTV/issues/2839
1•kassner•59m ago•0 comments

The Ml.energy Leaderboard

https://ml.energy/leaderboard/
1•kgolubic•1h ago•0 comments

Jeffrey Epstein saw promise in Bitcoin – and its far-right supporters

https://www.theverge.com/tech/885252/jeffrey-epstein-bitcoin-cryptocurrency-connections
1•robtherobber•1h ago•0 comments

Surface-Stable Fractal Dithering

https://runevision.com/tech/dither3d/
1•fanf2•1h ago•0 comments

Show HN: I Turned My CV into a Space Invaders Game (Rust and WASM)

https://breezko.dev
1•breezk0•1h ago•0 comments

Show HN: JobSeek Expat – a CLI tool to scrape English speaking jobs on LinkedIn

https://github.com/electricalgorithm/jobseek-expat
2•gyokhan•1h ago•0 comments

Accuracy vs. Speed in Local LLMs: Finding Your Sweet Spot

https://grigio.org/accuracy-vs-speed-in-local-llms-finding-your-sweet-spot/
1•grigio•1h ago•0 comments

Silent March (2021)

https://tobiaskucera.art/en/tichy-brezen/
1•theobias•1h ago•0 comments

Nano Banana 2 AI Image Generator – Pro Quality, Flash Speed

https://veevid.ai/nano-banana-2
1•jacksteven•1h ago•0 comments

Czinger 21C review: flat out in America's £1.6M, 3D-printed hypercar

https://www.topgear.com/car-reviews/czinger/21c/first-drive
1•teleforce•1h ago•0 comments