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?

Motis – High-performance public transport routing engine

https://github.com/motis-project/motis
1•dattl•1m ago•0 comments

Stagehand: AI browser agents now in every language

https://www.browserbase.com/blog/browser-automation-all-languages-with-stagehand
1•Kylejeong21•1m ago•0 comments

Why Every Country Should Set 16 as the Minimum Age for Social Media Accounts

https://www.afterbabel.com/p/why-every-country-should-set-16
3•paulpauper•2m ago•0 comments

Roundup #75: Checking in on the Bad Guys

https://www.noahpinion.blog/p/roundup-75-checking-in-on-the-bad
1•paulpauper•2m ago•0 comments

Mountains of Evidence

https://www.afterbabel.com/p/mountains-of-evidence
1•paulpauper•3m ago•0 comments

Is it time to retire stretching?

https://therundownbytherunningeffect.substack.com/p/is-it-time-to-retire-stretching
1•RalphHavensPT•3m ago•0 comments

Being Officially Classed as a Robot

https://www.pcg-random.org/posts/officially-classed-as-robot.html
1•Uzomidy•3m ago•0 comments

The Gleaners and I – Trailer [video]

https://www.youtube.com/watch?v=Jn8nHJTb_LY
1•ofrzeta•4m ago•1 comments

Meta Lays Off 1,500 People in Metaverse Division

https://www.wsj.com/tech/meta-layoffs-reality-labs-2026-347008b0
2•mfiguiere•7m ago•1 comments

Slack Webhooks:blessing and pain in the a** for application alerts on the cheap

https://immabark.stripmall.software/
1•rmoskal•7m ago•1 comments

Let your AI agents manage your Lambda GPU instances (MCP)

https://github.com/Strand-AI/lambda-cli
2•odedfalik•10m ago•2 comments

Page residents fight $10B data center near Horseshoe Bend

https://www.azfamily.com/2025/12/18/page-residents-push-back-10b-data-center-proposal-near-horses...
1•jameslk•10m ago•0 comments

What does it take to ship Rust in safety-critical?

https://blog.rust-lang.org/2026/01/14/what-does-it-take-to-ship-rust-in-safety-critical/
2•weinzierl•13m ago•0 comments

GPT-5.2-Codex is now available in the Responses API

https://twitter.com/OpenAIDevs/status/2011499597169115219
3•tosh•14m ago•0 comments

US to suspend immigrant visa processing for 75 nations, State Department says

https://www.reuters.com/world/us/us-suspend-visa-processing-75-nations-next-week-fox-news-reports...
4•barishnamazov•16m ago•2 comments

Upgrading DrizzleORM Logging with AsyncLocalStorage

https://numeric.substack.com/p/upgrading-drizzleorm-logging-with
1•bihla•16m ago•0 comments

SOTA on Bay Area House Party

https://www.astralcodexten.com/p/sota-on-bay-area-house-party
3•feross•20m ago•0 comments

Comparative Effectiveness of Exercise and Protein-Based Interventions on Muscle

https://pubmed.ncbi.nlm.nih.gov/41205420/
1•RickJWagner•21m ago•0 comments

A Manual for the Continuance of Species 3490-A (Humans)

https://substack.com/inbox/post/175824989
1•snorbleck•22m ago•0 comments

Show HN: I built a collaborative browser-based beat maker (no login required)

https://make-a-beat.com/
2•JonasN21•22m ago•3 comments

The string theory hype machine will never die

https://www.math.columbia.edu/~woit/wordpress/?p=15407
2•headalgorithm•23m ago•0 comments

Coding on a Phone: What I Learned Building Software on Mobile

https://rahulpandita.me/blog/2026-01-14-Mobile-Development
1•azhenley•24m ago•0 comments

WhisperClip: 300ms Voice-to-Text on macOS (Fully Local)

https://whisperclip.com
1•irqlevel•24m ago•1 comments

GPT-5.2-codex is now available via API

https://platform.openai.com/docs/models/gpt-5.2-codex
2•open-paren•25m ago•0 comments

The Complete Guide to Building Agents with the Claude Agent SDK

https://nader.substack.com/p/the-complete-guide-to-building-agents
1•gmays•26m ago•0 comments

No puedo cobrar en YouTube ¿ por qué será?

1•MilhouseSimp•26m ago•0 comments

AI in Mineral Exploration: 2025 in Review

https://posgeo.wordpress.com/2026/01/12/ai-in-mineral-exploration-2025-in-review/
1•williamjsdavis•27m ago•0 comments

Show HN: AI file watcher that provides intelligent suggestions using local LLM

https://github.com/skorotkiewicz/pomocnik
1•modinfo•28m ago•0 comments

HiTeX Press: A spam factory for AI-generated books

https://laurent.le-brun.eu/blog/hitex-a-spam-factory-for-ai-generated-books
2•birdculture•34m ago•0 comments

Building a keyword research tool with no monthly plan

https://keyword-research-tool-steel.vercel.app/
1•fanel•35m ago•1 comments