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

Comments

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

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

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

Transformer.js v4

https://huggingface.co/blog/transformersjs-v4
1•sroussey•4m ago•1 comments

GitHub backs down, kills Copilot pull-request ads after backlash

https://www.theregister.com/2026/03/30/github_copilot_ads_pull_requests/
2•jjgreen•4m ago•0 comments

High memory usage in Postgres is good

https://planetscale.com/blog/high-memory-usage-in-postgres-is-good-actually
1•cyndunlop•5m ago•0 comments

6o6 v1.1: Faster 6502-on-6502 virtualization for a C64/Apple II Apple-1 emulator

http://oldvcr.blogspot.com/2026/03/6o6-v11-faster-6502-on-6502.html
1•homarp•5m ago•0 comments

Show HN: I made a cheaper alternative to Claude Code or Codex CLI

https://sweetcli.com/
2•gr00ve•6m ago•0 comments

Hermes Agent v0.6.0 solves its biggest weakness against OpenClaw

https://efficienist.com/hermes-agent-v0-6-0-finally-solves-its-biggest-weakness-against-openclaw/
1•jenic_•14m ago•0 comments

Judge halts Nexstar/Tegna merger after FCC let firms exceed TV ownership limit

https://arstechnica.com/tech-policy/2026/03/judge-halts-nexstar-tegna-merger-after-fcc-let-firms-...
2•strongpigeon•16m ago•0 comments

Delve into Compliance Theatre

https://www.complexsystemspodcast.com/episodes/delve-into-compliance-theatre/
1•flypunk•17m ago•0 comments

Love Dart

https://en.wikipedia.org/wiki/Love_dart
2•magicbuzz•17m ago•0 comments

Quay.io down: Nginx 502 bad gateway

https://status.redhat.com/incidents/04vm68m00t61
2•starefossen•18m ago•1 comments

Glyphs 3

https://glyphsapp.com
2•hmokiguess•19m ago•0 comments

When the Real World Came to Wicker Park (2021)

https://www.chicagomag.com/chicago-magazine/august-2021/when-the-real-world-came-to-wicker-park/
2•mooreds•20m ago•0 comments

AgentHandover: Watches you work then teaches your AI agents to do it like you

https://github.com/sandroandric/AgentHandover
2•ainthusiast•21m ago•1 comments

Run open-source AI skills in one click in the cloud

https://github.com/ReByteAI/run-any-skill-with-single-click
2•sonicgg•25m ago•0 comments

Is it safe to turn off your ad blocker?

https://blog.zgp.org/is-it-safe-to-turn-off-your-ad-blocker/
1•speckx•26m ago•0 comments

Mistral raises $830M to build Nvidia-powered AI centres in Europe

https://www.ft.com/content/229f4f59-d518-4e00-abd6-5a5b727cd2aa
5•JumpCrisscross•27m ago•0 comments

Explore the top 1000 most-starred repositories on GitHub

https://repo-explorer-nu.vercel.app/
3•geox•29m ago•0 comments

Ask HN: What's your favorite number, and why?

3•QuantumNomad_•30m ago•11 comments

Office, Messaging and Verbs

https://www.ben-evans.com/benedictevans/2015/5/21/office-messaging-and-verbs
2•AftHurrahWinch•31m ago•1 comments

Kelsey Hightower: "Everyone is a junior engineer when it comes to AI"

https://thenewstack.io/hightower-ai-open-source-kubecon/
3•mooreds•32m ago•0 comments

A Crisis Merely Postponed

https://www.nytimes.com/2011/08/03/opinion/the-debt-crisis-merely-postponed.html
3•jonathanehrlich•32m ago•0 comments

Ask HN: Is Google down or is it just me?

3•ahmedfromtunis•35m ago•1 comments

Joins Are Not Expensive

https://www.database-doctor.com/posts/joins-are-not-expensive
5•thunderbong•37m ago•0 comments

Market Participation Is Exhausting

https://pluralistic.net/2026/03/30/players-of-games/
2•hn_acker•38m ago•0 comments

A curated corpus of incidents and attack vectors for autonomous AI agents

https://github.com/h5i-dev/awesome-ai-agent-incidents
1•syumei•43m ago•0 comments

Microsoft plan 100% native Windows 11 apps in major shift away from web wrappers

https://www.techspot.com/news/111872-microsoft-plans-100-native-windows-11-apps-major.html
3•shaicoleman•43m ago•0 comments

White House Renamed 'Epstein Island' on Google Pixel Phones

https://www.washingtonpost.com/style/power/2026/03/27/white-house-google-database-epstein/
13•thisislife2•44m ago•1 comments

There are no happy endings on the internet

https://embedded.substack.com/p/there-are-no-happy-endings-on-the
1•herbertl•44m ago•0 comments

UK Politicians Continue to Miss the Point in Latest Social Media Ban Proposal

https://www.eff.org/deeplinks/2026/03/uk-politicians-continue-miss-point-latest-social-media-ban-...
3•hn_acker•44m ago•0 comments

Ubuntu MATE Is Seeking a New Primary Maintainer

https://discourse.ubuntu.com/t/ubuntu-mate-seeking-maintainers/79264
4•apple4ever•45m ago•2 comments