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•9mo 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?

Show HN: AI phone assistant that became a lifeline for people who can't speak

https://mio.gg/
1•talyuk•32s ago•0 comments

Altman on AI resource usage: Water concerns 'fake,' and 'humans use energy too'

https://www.cnbc.com/2026/02/23/openai-altman-defends-ai-resource-usage-water-concerns-fake-human...
1•1vuio0pswjnm7•44s ago•0 comments

Reducing the size of Go binaries by up to 77%

https://www.datadoghq.com/blog/engineering/agent-go-binaries/
1•todsacerdoti•51s ago•0 comments

App alerts you when it detects Meta camera glasses nearby

https://manualdousuario.net/en/nearby-glasses-app-camera-meta-alert/
1•rpgbr•1m ago•0 comments

Show HN: AppMetaHub – Update App Store Metadata from Claude Code via MCP

https://appmetahub.com
1•vladosce•1m ago•0 comments

Advanced Theories Regarding Criticality

1•aegis-bot•2m ago•0 comments

Show HN: Map v1.0 – Deterministic identity for structured data

https://github.com/map-protocol/map1
1•agdavidson•2m ago•1 comments

Show HN: GitHub Action to list merged OSS PRs in your README

https://github.com/marketplace/actions/oss-contributions-generator
1•sanyam-khurana•4m ago•0 comments

Modeling Cycles of Grift with Evolutionary Game Theory

https://www.oranlooney.com/post/grifters-skeptics-marks/
2•ibobev•4m ago•0 comments

Zephyr

https://en.wikipedia.org/wiki/Zephyr_(operating_system)
1•tosh•4m ago•0 comments

Story time real quick – > Getting Reviews

https://thalendr.com/
1•TsepoMkwebu•5m ago•1 comments

Show HN: A triple store based Firebase alternative

https://linkedrecords.com/facts-and-triples/
1•WolfOliver•5m ago•0 comments

Dear researchers: Is AI all you've got?

https://austinhenley.com/blog/dearresearchers.html
1•ibobev•5m ago•0 comments

Expectation Again

https://buttondown.com/jaffray/archive/expectation-again/
1•ibobev•6m ago•0 comments

Let Developers Cook

https://jaylol.com/2026/02/23/ai-and-software-engineering-productivity/
2•turnwrighthere•7m ago•0 comments

Hornbeam. WSGI/ASGI HTTP Server and Application Server for Python on Erlang

https://hornbeam.dev/
1•mwheeler•7m ago•0 comments

Spotify Unwrapped

https://banjohans.github.io/Spotify-Unwrapped/
2•chha•7m ago•1 comments

Robinhood Ventures: Invest in private companies

https://robinhood.com/us/en/ventures/
1•wslh•8m ago•0 comments

Show HN: A Hacker News–style site focused on European tech

https://techposts.eu
2•davedx•8m ago•0 comments

Ask HN: Should CompSci Education Change

1•NoNameHaveI•8m ago•0 comments

Building a vehicle sandbox based on Magnum and Bullet with Google Gemini

https://www.hydrogen18.com/blog/google-gemini-magnum-bullet-3d-game-generation.html
1•sidewndr46•8m ago•0 comments

Show HN: ClankerRank – Vibe coding is a real skill, I built a way to prove it

https://clankerrank.xyz
1•PGSave•9m ago•0 comments

Dissecting the CPU-Memory Relationship in Garbage Collection (OpenJDK 26)

https://norlinder.nu/posts/GC-Cost-CPU-vs-Memory/
1•jonasn•9m ago•0 comments

Google the AI Company (2025, Acquired Podcast)

https://open.spotify.com/episode/1WICjyeivPI7KqGFq4zFKe
1•wslh•10m ago•0 comments

Everyone Is Betting on Bigger LLMs. She's Betting They're Fundamentally Wrong

https://www.generalist.com/p/everyone-is-betting-on-bigger-llms
1•jbredeche•11m ago•0 comments

Economic Friday – Interpreting Tariff, GDP and Inflation News

https://www.nominalnews.com/p/tariffs-gdp-inflation
1•NomNew•11m ago•0 comments

Building your own blogging tools is a fun journey

https://andregarzia.com/2026/02/building-your-own-blogging-tools-is-a-fun-journey.html
2•soapdog•13m ago•0 comments

Misfits Market

https://www.misfitsmarket.com
1•bookofjoe•13m ago•0 comments

OpenClaw and Agent Execution Firewall

https://github.com/sundarsub/sentra
1•sentra•14m ago•1 comments

Intel preps CPUs with 'Unified Core' architecture

https://www.tomshardware.com/pc-components/cpus/intel-preps-cpus-with-unified-core-architecture-j...
1•MaximilianEmel•14m ago•0 comments