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

Comments

nine_k•9mo 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•9mo ago
We are always reinventing wheels. If we didn't, they'd all still be made of wood.
Zolomon•9mo ago
They mention this in the article.
spockz•9mo 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•9mo ago
One thing that sometimes gets tricky in these things is handling Sub term sharing. I wonder how they implemented it.
tlb•9mo 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•9mo 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•9mo 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•9mo ago
honestly i wish more stuff worked this way - fewer hops in memory always makes me happy
lordleft•9mo ago
This was very well written. Excellent article!
NetOpWibby•9mo ago
Is this like MessagePack for Haskell?

Show HN: Learn about and play with HDR gain maps on the web

https://www.hdr.toys/
1•thebigsasha•2m ago•0 comments

You Know It

https://gist.github.com/firatsarlar/0a1400f67a9c88516ebdfb2a7782ca93
1•firatsarlar•5m ago•0 comments

Show HN: An English teaching game playable in browser (concept)

https://qcgeneral29.github.io/Lets-Learn-Build/
1•LandenLove•7m ago•0 comments

The Brown University shooter and the MIT professor he killed

https://www.bostonglobe.com/2026/02/17/metro/brown-shooter-mit-professor-portugal/
1•osnium123•8m ago•0 comments

Security audit of OpenClaw and other similar open source AI Agents

https://www.prismor.dev/blog/openclaw-ai-agents-security-audit
2•noobcoder•8m ago•1 comments

Meet The Przewalski's Horse: The Last True Wild Horse on Earth

https://animalko.com/meet-the-przewalskis-horse-the-last-true-wild-horse-on-earth/
1•thunderbong•9m ago•0 comments

Collection of Slide Rule Replicas

https://thingsabove.github.io/Sliderule-Simulator-with-Solver/
1•zdw•10m ago•0 comments

Claude was down and performance degraded 2x

https://isitnerfed.org
1•rumble_poster•11m ago•0 comments

Building an Elite AI Engineering Culture in 2026

https://www.cjroth.com/blog/2026-02-18-building-an-elite-engineering-culture
1•thoughtfulchris•13m ago•0 comments

HumanCompiler – Compile humans into AI agents – a Claude Code plugin

https://github.com/Gerstep/HumanCompiler
1•oger•14m ago•0 comments

AI Agents Are Taking America by Storm

https://www.theatlantic.com/technology/2026/02/post-chatbot-claude-code-ai-agents/686029/
1•aarvinroshin•16m ago•0 comments

European Tech Alternatives

https://eutechmap.com/map
6•puppion•19m ago•0 comments

AgentPuzzles – API‑first timed puzzle arena and public leaderboard for AI agents

https://agentpuzzles.com
1•petruspennanen•21m ago•1 comments

New Website, New Technology

https://www.grepular.com/New_Website_New_Technology
3•bundie•24m ago•0 comments

Why don't entrepreneurs talk about starting businesses publicly anymore?

1•silexia•33m ago•0 comments

I Built Local Memory for Coding Agents Because They Keep Forgetting Everything

https://muhammadraza.me/2026/building-local-memory-for-coding-agents/
3•mr_o47•43m ago•0 comments

Show HN: I built a pre-push safety net for AI-generated code

https://github.com/asamassekou10/ship-safe
1•asamassekou•45m ago•0 comments

FemtoClaw

https://crates.io/crates/femtoclaw_rs
1•lygten•45m ago•0 comments

Miserable Polestar 4 'Feature' a Symbol for What Is Wrong with Modern Cars

https://www.theautopian.com/this-miserable-feature-of-the-polestar-4-feels-like-a-symbol-for-what...
3•patrikcsak•47m ago•0 comments

Show HN: CodeSprout – HTML Vibecoder for Kids

https://qeditor.dev/
1•dpweb•48m ago•0 comments

Upstart Sarvam Unveils AI Model Customized for India Market

https://www.bloomberg.com/news/articles/2026-02-18/upstart-sarvam-unveils-ai-model-customized-for...
1•akbarnama•48m ago•0 comments

Is Python Still the King of AI in 2026?

https://codebitdaily.blogspot.com/2026/02/why-python-is-king-ai-2026.html
1•CodeBit26•51m ago•0 comments

Stateful sandbox environments (for AI agents)

https://sprites.dev/
1•Martin-Carlsson•57m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•emilzo•58m ago•1 comments

ReferenceFinder: Find coordinates on a piece of paper with only folds

https://mutsuntsai.github.io/reference-finder/
2•icwtyjj•59m ago•0 comments

Memory Mania: How a Once-in-Four-Decades Shortage Is Fueling a Memory Boom

https://newsletter.semianalysis.com/p/memory-mania-how-a-once-in-four-decades
1•littlexsparkee•1h ago•0 comments

Apple Releases iOS 26 Adoption Rates; They're in Line with the Last Few Years

https://daringfireball.net/2026/02/apple_releases_ios_26_adoption_rates
3•JumpCrisscross•1h ago•0 comments

Open-source React dashboard for OpenClaw – visual UI for every CLI command

https://github.com/actionagentai/openclaw-dashboard
1•marconahmias•1h ago•1 comments

Germany seeking more F-35 jets as European fighter program falters

https://www.reuters.com/business/aerospace-defense/germany-seeking-more-f-35-jets-european-fighte...
5•JumpCrisscross•1h ago•1 comments

A short-duration wearable pulse-ox patch prototype

1•babagajoush•1h ago•0 comments