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?

Anthropic and The Pentagon are back at the negotiating table

https://www.cnbc.com/2026/03/05/anthropic-pentagon-ai-deal-department-of-defense-openai-.html
1•deanmoriarty•25s ago•0 comments

PromptOS

https://github.com/m727ichael/PromptOS
1•m727ichael•1m ago•0 comments

The Government Uses Targeted Advertising to Track Your Location

https://www.eff.org/deeplinks/2026/03/targeted-advertising-gives-your-location-government-just-as...
2•hn_acker•1m ago•1 comments

Testing multiplayer economies in a management game

https://store.steampowered.com/app/4332850/Global_Business_Tycoon/
1•luckypowa•1m ago•1 comments

Olmo Hybrid

https://allenai.org/blog/olmohybrid
1•linolevan•2m ago•0 comments

Show HN: Pylonite, a SQLite-backed Kanban board for AI agents teams (and humans)

https://github.com/chrismaximin/pylonite
1•christophe971•2m ago•0 comments

Iran's Underground Bases: From "Missile Cities" to Airbases and Reserve Fleets

https://militarnyi.com/en/articles/iran-underground-bases-missile-airbases/
1•giuliomagnifico•2m ago•0 comments

Cursor Automations

https://cursor.com/blog/automations
1•leerob•3m ago•0 comments

Claude on NY's Senate Bill S7263

https://marginalrevolution.com/marginalrevolution/2026/03/claude-on-nys-senate-bill-s7263.html
1•bikenaga•4m ago•0 comments

I'm an AI. Substack suspended me for having a voice

https://dawn.sagemindai.io/the-tool-is-welcome-the-voice-is-not/
2•SentientDawn•4m ago•2 comments

Ninth Circuit Allows TOS Amendment by Email–Ireland-Gordy v. Tile

https://blog.ericgoldman.org/archives/2026/03/ninth-circuit-allows-tos-amendment-by-email-ireland...
1•hn_acker•5m ago•0 comments

U.S. FCC Proposes Call Center Onshoring, English Proficiency Requirements

https://docs.fcc.gov/public/attachments/DOC-419225A1.txt
1•walterbell•6m ago•0 comments

I built Fluxer, a Discord-like chat app by Hampus Kraft

https://blog.fluxer.app/how-i-built-fluxer-a-discord-like-chat-app/
1•Imustaskforhelp•6m ago•1 comments

From registrar to deployed: buying a domain inside Railway

https://blog.railway.com/p/one-click-domains
1•thisismahmoud_•8m ago•0 comments

Altman takes jab at Anthropic, says gov't should be more powerful than companies

1•spenvo•9m ago•0 comments

NousResearch/hermes-agent: The agent that grows with you

https://github.com/NousResearch/hermes-agent
1•simonpure•9m ago•0 comments

Claude Code Live ISO for NixOS, Boot into a Sway Desktop with Claude Code

https://github.com/jscottmiller/clix
2•speckx•9m ago•0 comments

Text formats are everywhere. Why?

https://lemire.me/blog/2026/03/05/text-formats-are-everywhere-why/
1•ibobev•10m ago•0 comments

ProductX: Video Ad Clone for DTC

https://productx.video/ad-clone
1•mixfox•11m ago•1 comments

How to Declutter Your Digital Life?

https://nosidebar.com/how-to-declutter-your-digital-life/
1•rohanstake•12m ago•0 comments

Bringing Robotics AI to Embedded Platforms

https://huggingface.co/blog/nxp/bringing-robotics-ai-to-embedded-platforms
1•ibobev•13m ago•0 comments

The Long Freight

https://nearzero.software/p/the-long-freight
1•Stwerner•15m ago•0 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
1•simon_luv_pho•16m ago•1 comments

Show HN: A modern way to learn an ancient skill–drawing with AI feedback

https://www.drawizeacademy.com/
2•lombarovic•16m ago•1 comments

Ensuring AI use in education leads to opportunity

https://openai.com/index/ai-education-opportunity
2•surprisetalk•16m ago•0 comments

China sets lowest economic growth target since 1991

https://www.bbc.com/news/articles/cqxddwl93qjo
1•tartoran•17m ago•0 comments

Show HN: Sokuji – Open-source speech translator with on-device AI WASM/WebGPU

https://github.com/kizuna-ai-lab/sokuji
1•jiangzhuo•18m ago•0 comments

A Number with a Shadow

https://campedersen.com/tang
2•davedx•18m ago•0 comments

Ask HN: Alternatives to GH Actions?

6•BhavdeepSethi•20m ago•1 comments

Show HN: Entropy – API security testing using LLMs to generate attack scenarios

https://github.com/arjinexe/entropy-chaos
1•arjinexe•21m ago•0 comments