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

Comments

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

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

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

Llama.cpp with CUDA Support on Original Jetson Nano (4GB)

https://github.com/kreier/llama.cpp-jetson
1•Abishek_Muthian•2m ago•0 comments

LLMs on a PowerPC Mac

http://www.theresistornetwork.com/2025/03/thinking-different-thinking-slowly-llms.html
1•austinallegro•3m ago•0 comments

Show HN: WordGen, a fast and easy to use wordlist generator

1•CzaxTanmay•4m ago•0 comments

Stop Guessing. Start Scaling. Land Your Dream Big Tech Offer with InterviewGPT

https://interviewgpt.deepchill.app/blogs
1•tiancaioyzy•4m ago•0 comments

Show HN: NUPA is Pax Economica, 6,480x more stable than current US economy

1•bedardbrandon89•12m ago•0 comments

Show HN: Live global gas station inventory

https://tanklevel.info/
2•t819291•14m ago•0 comments

First evidence of birth assistance in non-primates filmed (whales)

https://www.dawn.com/news/1986116
1•fork-bomber•16m ago•0 comments

Sora 2 API and Sora 2 Pro API

https://sora2-api.com
1•Mehedy2026•18m ago•0 comments

Code review skill inspierd by Gilfoyle and Dinesh

https://github.com/v1r3n/dinesh-gilfoyle
1•opiniateddev•19m ago•0 comments

I Let AI Write My Code, but Not My Writing

https://hermeticwoodsman.substack.com/p/why-i-let-ai-write-my-code-but-not
2•tartoran•19m ago•1 comments

The Machiavellian Maze

https://www.robkhenderson.com/p/the-machiavellian-maze
1•barry-cotter•26m ago•0 comments

Pretext: JavaScript/TypeScript library for multiline text measurement and layout

https://github.com/chenglou/pretext
1•davidbarker•27m ago•0 comments

Building shared coding guidelines for AI (and people too)

https://stackoverflow.blog/2026/03/26/coding-guidelines-for-ai-agents-and-people-too/
1•vinhnx•29m ago•0 comments

Scientists film whale giving birth while other whales work together to help her

https://www.theguardian.com/environment/2026/mar/27/scientists-film-whale-giving-birth-other-whal...
1•sandebert•29m ago•0 comments

Ada and Spark on ARM Cortex-M – A Tutorial with Arduino and Nucleo Examples

http://inspirel.com/articles/Ada_On_Cortex.html
1•swq115•29m ago•0 comments

Poison AI Training Data Scrapers

https://github.com/austin-weeks/miasma
1•250call•37m ago•1 comments

Show HN: Local Vault – AES-256-GCM password manager in a single HTML file

https://github.com/RachidBoutaguiout/local-vault
1•frederic123•38m ago•0 comments

Stop Calling Them VPNs (2024)

https://flameeyes.blog/2024/09/29/stop-calling-them-vpns/
2•sysoleg•43m ago•0 comments

Ask HN: Best place to host a Node.js App in 2026

1•chbkall•45m ago•0 comments

The Deliverable Is You Programming as Theory Building

https://nekolucifer.substack.com/p/the-deliverable-is-you-programming
1•tartoran•46m ago•0 comments

Stop Calling Every AI Miss a Hallucination

https://ai.gtzilla.com/papers/stop-calling-every-ai-miss-a-hallucination-v1.0/
2•osconfused•48m ago•0 comments

Show HN: BillingEngine – usage-based billing for APIs with real-time rating

https://billingengine.cloud/cs/
1•mkellercz•54m ago•0 comments

Play Anthakshari

https://anthakshari.ai/
2•hareeshimo•57m ago•0 comments

101 Ads – Highway 101 Billboard Map

https://101ads.org/
1•ChrisArchitect•58m ago•0 comments

What happens when you clone mice for 20 years straight?

https://denovo.substack.com/p/what-happens-when-you-clone-mice
2•vinhnx•1h ago•0 comments

Atomic Rockets – Build your own spaceship

https://projectrho.com/public_html/rocket/heatrad.php
1•vismit2000•1h ago•0 comments

Show HN: Every Minute a Startup

https://everyminuteastartup.com
1•sawirricardo•1h ago•0 comments

What do frontier AI companies' job postings reveal about their plans?

https://epochai.substack.com/p/what-do-frontier-ai-companies-job
1•vinhnx•1h ago•0 comments

Pi: The Minimal Agent Within OpenClaw

https://lucumr.pocoo.org/2026/1/31/pi/
1•Anon84•1h ago•0 comments

Show HN: VizTools – 16 free tools for PMs and freelancers, deliberately no AI

https://viztools.app/
2•mizarau•1h ago•0 comments