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

Comments

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

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

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

Node.js creator says era of humans writing code is over

https://www.indiatoday.in/technology/news/story/nodejs-creator-says-era-of-humans-writing-code-is...
1•TriNetra•48s ago•0 comments

How I Design Systems

https://ooo-yay.com/blog/how-i-design-systems/
1•jacquesm•1m ago•0 comments

TraceMem OpenCode Plugin – Decision Tracing for AI Agents

https://github.com/tracemem/tracemem-opencode-plugin
2•tommihip•2m ago•0 comments

Find 'Abbey Road when type 'Beatles abbey rd': Fuzzy/Semantic search in Postgres

https://rendiment.io/postgresql/2026/01/21/pgtrgm-pgvector-music.html
1•nethalo•3m ago•0 comments

Building in-browser autocomplete for millions of entries with Radix Tries

https://aarol.dev/posts/wasm-trie-autocomplete/
1•abnercoimbre•5m ago•0 comments

Gemini CLI: Code and Create with an Open-Source Agent

https://learn.deeplearning.ai/courses/gemini-cli-code-and-create-with-an-open-source-agent/inform...
2•pretext•7m ago•0 comments

Tell HN: Amazon has deactivated my seller account. No idea how to move forward

1•hacky_engineer•8m ago•0 comments

Helsing AI

https://Helsing.ai/jobs
2•oxqbldpxo•8m ago•2 comments

Show HN: Red Horse Oracle – Privacy-first AI art, zero data stored

https://www.redhorseoracle.com/
1•lindsayhiebert•9m ago•0 comments

Wikipedia Signs of AI writing: a Vale ruleset

https://ammil.industries/signs-of-ai-writing-a-vale-ruleset/
1•cjlm•9m ago•0 comments

Zero to One: AI Agents and Agentic Patterns

https://pradyumnachippigiri.dev/blogs/understanding-ai-agents
2•PraddyChippzz•11m ago•0 comments

VidChat: Making Videos Searchable

https://chromewebstore.google.com/detail/vidchat/eakgninjebplbfobbngdmphbjnclmego
2•aylingakkus•11m ago•1 comments

Show HN: Schema First React Router

https://werkbank.dev/blog/schema-first-router/
1•fragile_frogs•12m ago•0 comments

Kafka Dead Letter Queue Triage: Debugging 25,000 Failed Messages

https://skey.uk/post/kafka-dead-letter-queue-troubleshooting-guide/
1•tanelpoder•12m ago•0 comments

GenAI, the Snake Eating Its Own Tail

https://www.ybrikman.com/blog/2026/01/21/gen-ai-snake-eating-its-own-tail/
3•brikis98•13m ago•0 comments

Eleven Album

https://elevenlabs.io/eleven-album
2•elemdos•15m ago•0 comments

No Name: The Colorado town that accidentally named itself

https://kdvr.com/news/colorado/no-name-exit-sign-on-i-70-isnt-a-mistake-its-an-actual-colorado-town/
1•thunderbong•15m ago•0 comments

Things I've learned in my 10 years as an engineering manager

https://www.jampa.dev/p/lessons-learned-after-10-years-as
2•jampa•17m ago•0 comments

How to Learn American Sign Language in 2025 [video]

https://www.youtube.com/watch?v=qp6Np0KicQQ
1•joebig•17m ago•0 comments

Lemonade Unveils Autonomous Car Insurance, Slashing Rates for Tesla FSD by 50%

https://www.lemonade.com/investor/news/lemonade-unveils-autonomous-car-insurance-slashing-rates-f...
1•atestu•18m ago•0 comments

Sony to Cede Control of Bravia TVs to China's Tcl

https://www.japantimes.co.jp/business/2026/01/21/companies/sony-tv-china-tcl/
3•mikhael•18m ago•0 comments

MariaDB Doesn't Depend on MySQL

https://programmingbrain.com/2025/01/mariadb-does-not-depend-on-mysql
1•alejandro-du•20m ago•0 comments

Show HN: Multi-cloud cost visibility with latency rings and GDP data

1•sschotten•20m ago•0 comments

Navy ditches touchscreens for knob and dial controls after fatal crash (2019)

https://techcrunch.com/2019/08/11/navy-ditches-touchscreens-for-knobs-and-dials-after-fatal-crash/
3•randycupertino•21m ago•1 comments

Compact Let Arrays for Origami-Based Mechanisms

https://www.mdpi.com/2218-6581/15/1/1
1•PaulHoule•22m ago•0 comments

Viking mice: Norse discovered Azores 700 years before Portuguese

https://cals.cornell.edu/news/2021/11/viking-mice-norse-discovered-azores-700-years-portuguese
3•kitd•22m ago•2 comments

Stanford scientists found a way to regrow cartilage and stop arthritis

https://www.sciencedaily.com/releases/2026/01/260120000333.htm
15•saikatsg•22m ago•1 comments

Show HN: UseWhisper.dev – AI Code Reviewer (please test and roast it)

https://www.usewhisper.dev/
1•alameenpd•23m ago•0 comments

Show HN: A real-time poker chip tracker built as a PWA (No signup required)

https://poker.beavergrow.com
1•jp1016•25m ago•1 comments

Apple Pay Could Arrive in India by the End of This Year

https://www.macobserver.com/news/apple-pay-could-arrive-in-india-by-the-end-of-this-year/
1•saikatsg•27m ago•0 comments