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•1y ago

Comments

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

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

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

Swift on Nvidia Jetson

https://mihaichiorean.com/blog/hard-part-of-swift-on-jetson/
1•mihaichiorean•28s ago•0 comments

Musk Testifies OpenAI Was Created as Nonprofit to Counter Google

https://www.cnbc.com/2026/04/28/openai-trial-elon-musk-sam-altman-live-updates.html
2•m463•6m ago•0 comments

Voxels in R3forth

https://www.reddit.com/r/Forth/s/wf7M7hV779
1•rickcarlino•7m ago•0 comments

State Dept. Finalizing Plan to Put Trump Picture on U.S. Passports

https://www.thebulwark.com/p/exclusive-state-dept-finalizing-plan
3•mikhael•7m ago•0 comments

Warp is now open-source

https://twitter.com/zachlloydtweets/status/2049154460039979268
1•dsr12•8m ago•1 comments

Personal Loan EMI Calculator – Check EMI Online – SMFG India Credit

https://www.smfgindiacredit.com/personal-loan-emi-calculator.aspx
1•saumyaraut11•18m ago•0 comments

AI Sandboxes with Memory

1•ajaysheoran2323•19m ago•0 comments

Google co-founder Sergey Brin says he fled socialism, rips billionaire tax

https://nypost.com/2026/04/27/us-news/google-co-founder-sergey-brin-says-he-fled-socialism-in-sta...
3•1vuio0pswjnm7•19m ago•3 comments

Omeka S: a platform for digital cultural heritage collections and resources

https://omeka.org/s/
1•the-mitr•19m ago•0 comments

Artificial Inteligence that works (maybe)

https://github.com/thepoorsatitagain/Artificial-Inteligence-that-works-maybe-./blob/main/README.md
1•thepoors•22m ago•0 comments

icloud-backup: The iCloud backup tool I always wanted

https://github.com/evantahler/icloud-backup
3•evantahler•22m ago•1 comments

Affinity gatekeeps MCP server; only available for Claude

https://www.affinity.studio/help/ai-connector-setup/
2•nik5•27m ago•2 comments

ChatGPT/Gemini can now draw on your screen to help you navigate complex software

https://sketchvlm.github.io/
4•septisum•29m ago•1 comments

Show HN: Plonk.world – Daily Geography Game

https://plonk.world/
1•plonk-er•32m ago•1 comments

Website is your first agent

https://nedkarlovich.com/writing/your-website-is-your-first-agent
1•birdwhistler•35m ago•0 comments

Ask HN: Google Account Is Being Deleted

2•14•37m ago•0 comments

Built a small side project to solve a tiny daily pain point

1•bbsclub•38m ago•0 comments

GitHub uses eBPF to improve deployment safety

https://github.blog/engineering/infrastructure/how-github-uses-ebpf-to-improve-deployment-safety/
1•geoffbp•38m ago•0 comments

Why AI Startup Offices in NYC Are Flashy but Mostly Empty

https://www.wsj.com/real-estate/commercial/why-ai-startup-offices-in-nyc-are-flashy-but-mostly-em...
1•petethomas•40m ago•0 comments

Full List of Cars with Soy-Based Wiring (2026 Update)

https://www.box-kat.com/blogs/box-kat-blog/full-list-of-cars-with-soy-based-wiring-2025-update
2•thunderbong•43m ago•0 comments

The versioned filesystem for AI agents

https://coregit.dev
2•AlenzhanJ•45m ago•1 comments

Show HN: Docktor – I put live window previews and widgets on the macOS 26 Dock

https://petercsauer.github.io/docktor-releases/
1•petercsauer•45m ago•0 comments

After the AI Crash: A Proposal, from the Vanderbilt Policy Accelerator

https://vanderbiltpolicyaccelerator.substack.com/p/after-the-ai-crash
1•adityaathalye•47m ago•0 comments

Crystal Sapphire Pokemon: Claude Code (Opus 4-7) vs. Codex (GPT 5.5)

https://www.twitch.tv/pokemon_race
1•oelmgren•48m ago•0 comments

Why Capitalism Can't Survive AI

https://www.newconsensus.com/blog/series/why-capitalism-cant-survive-ai
4•kjohnston71•53m ago•0 comments

Instacart co-founder launches hedge fund backing AI agents

https://www.privatebankerinternational.com/news/instacart-co-founder-launches-hedge-fund-backing-...
1•nlpnerd•58m ago•0 comments

Temperature Trends in India

https://www.dataforindia.com/temperature-trends-in-india/
2•neehao•59m ago•0 comments

AdaExplore: Search for Efficient Kernel Generation

https://stiglidu.github.io/AdaExplore/
1•matt_d•1h ago•0 comments

Sparkit: A Research Agent in an API

https://sparkit.science
2•JLSteenwyk•1h ago•0 comments

Britain Has a Tiny-Window Epidemic, and Old Ladies Are to Blame

https://www.wsj.com/world/britain-has-a-tiny-window-epidemic-and-old-ladies-are-to-blame-9ece9791
3•cwwc•1h ago•0 comments