frontpage.
newsnewestaskshowjobs

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•1y ago
No, one example of why being variable sized integers.

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

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

Taxonomy of the Occlupanida (parasitoids on bread bag tags)

https://www.horg.com/horg/?page_id=921
1•beatthatflight•1m ago•0 comments

StackOverflow closed my OpenClaw and paperclipAI integration q. as "irrelevant"

https://stackoverflow.com/questions/79958607/how-do-i-view-server-logs-from-paperclipai-being-run...
1•khelavastr•1m ago•0 comments

License Plate Cameras Will Soon Track Phones, Wearables, Infotainment and Pets

https://www.thedrive.com/news/license-plate-cameras-will-soon-track-phones-wearables-infotainment...
1•xoxxala•2m ago•0 comments

Clojure Hosted on Go

https://github.com/glojurelang/glojure
2•dnlo•6m ago•0 comments

Show HN: ML condenses billions of logs into a tiny snapshot your LLM can debug

https://github.com/Rocketgraph/rocketgraph
2•kvaranasi_•7m ago•0 comments

A Secret Microsoft Tool Fixed Windows Performance [video]

https://www.youtube.com/watch?v=jH0BYAkPj78
1•tambourine_man•8m ago•0 comments

Build in Lovable, from Claude

https://xcancel.com/Lovable/status/2067326328110494129
1•doener•9m ago•0 comments

Tensordyne is making AI compute more efficient using logarithms

https://www.zach.be/p/tensordyne-is-making-ai-compute-more
1•hasheddan•12m ago•0 comments

The Free and Open Web Is Under Attack at the IETF

https://www.eff.org/deeplinks/2026/06/free-and-open-web-under-attack-ietf
4•hn_acker•16m ago•0 comments

The (real) dead economy theory

https://pluralistic.net/2026/06/17/its-the-stupid-economy-stupid/
6•hn_acker•17m ago•0 comments

The No Fakes Act Could Silence Satire, Commentary, and News

https://www.eff.org/deeplinks/2026/06/no-fakes-act-could-silence-satire-commentary-and-news
2•hn_acker•18m ago•0 comments

Salvager, Undo for AI agents that edit your files

https://www.salvager.sh/
1•gorkamb•20m ago•0 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app/
2•olievans•21m ago•1 comments

Hydra – a one-line Gradle RASP that seals app secrets until the device is clean

https://github.com/iamjosephmj/hydra
1•iamjosephmj1•23m ago•0 comments

Treating Agent Reasoning as a Span

https://forestmars.substack.com/p/ai-agents-run-to-completion
1•polynomial•25m ago•1 comments

Compiles any HuggingFace model into a single persistent megakernel

https://twitter.com/Akashi203/status/2067379010762338681
2•OsamaJaber•26m ago•0 comments

Apple Reveals Plans to Raise Prices

https://www.wsj.com/tech/apple-reveals-plans-to-raise-prices-1fbcc1d4
4•mfiguiere•26m ago•0 comments

Show HN: Righthand – Autonomous AI assistants with skills, goals, and a CLI

https://www.rigthhand.ai
2•notanaiagent•28m ago•0 comments

Vyrse – Social Bible reader for skeptics

https://vyrse.app
1•StudioHeat•29m ago•0 comments

Play Snake in Your Favicon

https://franciscouzo.github.io/favisnake/
1•toilet•31m ago•0 comments

China: Free AI for developing world; G7: who gets access to American models?

https://thenextweb.com/news/china-ai-global-cooperation-vs-g7-export-controls
1•skeledrew•34m ago•0 comments

Show HN: WaylandClientKit – a Swift Wayland client substrate for Linux

https://github.com/conxlgtm/WaylandClientKit
3•Nocerg•35m ago•0 comments

List of video game console color palettes

https://en.wikipedia.org/wiki/List_of_video_game_console_palettes
2•kibwen•37m ago•0 comments

HandoffKit: Coordinate agents by passing messages, not sharing memory

https://platformpilot.ai/blog/open-sourcing-handoffkit
1•ricardo-larosa•40m ago•1 comments

America's bull market has entered its manic phase

https://www.economist.com/finance-and-economics/2026/06/16/americas-bull-market-has-entered-its-m...
2•andsoitis•41m ago•1 comments

BytePack: Header-only message serialization library for C++17

https://github.com/alkonosst/BytePack
1•sohkamyung•42m ago•0 comments

Border Enforcement Does Affect American Workers' Wallets

https://www.wsj.com/opinion/border-enforcement-does-affect-american-workers-wallets-cc45d6b0
2•PKop•43m ago•0 comments

A Chrome extension for AI routing that reduces friction when selecting AI models

https://chromewebstore.google.com/detail/promptrouter/bojhdblkfdngamonhpbpofcnjonjbkff
1•rheorix•43m ago•0 comments

Chinese open source model better than Fable [video][13 mins]

https://www.youtube.com/watch?v=plcuiOXn_Pk
1•Bender•44m ago•0 comments

Report on Titan Submarine Destruction

https://www.tsb.gc.ca/eng/rapports-reports/marine/2023/m23a0169/m23a0169.html
2•bluenose69•45m ago•0 comments