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?

Evaluating TCP BBRv2 on the Dropbox edge network

https://arxiv.org/abs/2008.07699
1•fanf2•30s ago•0 comments

Prankster launches Super Bowl party for AI agents

https://entertainment.slashdot.org/story/26/02/08/1827216/prankster-launches-super-bowl-party-for...
1•MilnerRoute•3m ago•0 comments

Show HN: A local-first documentation tool for AI agents (MCP)

https://github.com/neuledge/context
2•moshest•6m ago•1 comments

Federal statement on Jeffrey Epstein's death dated day before he was found dead

https://www.standard.co.uk/news/world/statement-jeffrey-epstein-death-day-before-b1270109.html
7•saubeidl•7m ago•0 comments

Preserving the Open Web: Inside the New Wayback Machine Plugin for WordPress

https://blog.archive.org/2026/02/04/inside-the-new-wayback-machine-plugin-for-wordpress/
2•Tomte•9m ago•0 comments

Updates and Bot Wars

https://marisabel.nl/public/blog/Updates_and_Bot_Wars
3•todsacerdoti•14m ago•0 comments

Seven Pages of a Sealed Watergate File Sat Undiscovered. Until Now.

https://www.nytimes.com/2026/02/08/opinion/trump-nixon-watergate-radford.html
2•themgt•15m ago•0 comments

Roundcube Webmail: SVG feImage bypasses image blocking to track email opens

https://nullcathedral.com/posts/2026-02-08-roundcube-svg-feimage-remote-image-bypass/
11•nullcathedral•18m ago•0 comments

Latest Epstein files reveal disgraced financier's Silicon Valley connections

https://www.france24.com/en/latest-epstein-files-reveal-disgraced-financier-s-silicon-valley-conn...
6•mgh2•18m ago•1 comments

Hackers arrested after being hired by Iowa to pentest courthouse win case [video

https://www.youtube.com/watch?v=x1txcEPPhrw
5•hajile•23m ago•0 comments

Google is killing authentic websites and I made it worse [video]

https://www.youtube.com/watch?v=II2QF9JwtLc
5•basilikum•24m ago•1 comments

Specification Driven Development

https://www.joshuapurtell.com/posts/spec_eng/
1•JoshPurtell•24m ago•0 comments

A header-only C allocator library

https://github.com/abdimoallim/alloc
2•abdimoalim•26m ago•1 comments

Experts Have World Models. LLMs Have Word Models

https://www.latent.space/p/adversarial-reasoning
5•aaronng91•28m ago•1 comments

Prepare your OSS repo for AI coding assistants

https://angiejones.tech/stop-closing-the-door-fix-the-house/
2•hashim-warren•28m ago•0 comments

Hud: Runtime Code Sensor for Production-Safe AI Code

https://marketplace.visualstudio.com/items?itemName=Hud.hud
2•aanthonymax•34m ago•0 comments

Beyond WaPo angst: Why journalists need to abandon hubris and look within

https://thejaggi.blogspot.com/2026/02/beyond-wapo-angst-why-journalists-need.html
2•porridgeraisin•35m ago•0 comments

Show HN: Launchpick – Native macOS launcher and window switcher

https://github.com/scorredoira/launchpick
2•dawkins•38m ago•0 comments

The Little Bool of Doom

https://blog.svgames.pl/article/the-little-bool-of-doom
10•pocksuppet•39m ago•0 comments

Discovery of Goethe's amber ant: its phylogenetic and evolutionary implications

https://www.nature.com/articles/s41598-026-36004-4
2•PaulHoule•40m ago•0 comments

Isledb: Database Built on Object Storage

https://isledb.com/
1•ankuranand•41m ago•0 comments

Algorithmic Wage Discrimination

https://www.columbialawreview.org/content/on-algorithmic-wage-discrimination/
2•softwaredoug•41m ago•0 comments

GitButler

https://gitbutler.com/
1•tosh•41m ago•0 comments

Canadian startups need to stop playing slow

https://bcbusiness.ca/industries/general/canadian-startups-stop-playing-slow/
2•ClearwayLaw•42m ago•0 comments

Simple tool to check SSL, HTTPS, TLS, Security headers and HTTP/3 support

https://httpsornot.com/
1•hackerbo•45m ago•2 comments

Web design without design software

https://goodinternetmagazine.com/web-design-without-design-software/
2•ovidem•46m ago•0 comments

Show HN: Plexsonic, a Plex Music to Subsonic Bridge

https://github.com/ClassicOldSong/Plexsonic
1•ClassicOldSong•49m ago•0 comments

EU to delay anti-deforestation law. Again

https://www.politico.eu/article/council-and-parliament-agree-to-delay-and-review-eu-deforestation...
2•aa_is_op•49m ago•0 comments

Show HN: Deploy to AWS in minutes – no DevOps required

https://obelis.ai/
1•fedepochat•50m ago•0 comments

How do you manage context window?

2•picklepixel•50m ago•0 comments