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

New research suggests Bennu's boulders might be more porous than expected

https://science.nasa.gov/missions/osiris-rex/asteroid-bennus-rugged-surface-baffled-nasa-we-final...
1•ultratalk•2m ago•0 comments

Your Site Content Is Powering AI. Your Bank Account Has No Idea

https://medium.com/@tenslor.com/your-site-content-is-powering-ai-your-bank-account-has-no-idea-th...
1•emem_ndon•3m ago•0 comments

An effect notation based on with-clauses and blocks

https://blog.yoshuawuyts.com/a-with-based-effect-notation
1•fanf2•3m ago•0 comments

AI Team OS – Turn Claude Code into a Self-Managing AI Team

https://github.com/CronusL-1141/AI-company
1•cronus1141•7m ago•0 comments

The development of ChatGPT killed Chegg. I watched it happen live as an employee

https://old.reddit.com/r/OpenAI/comments/1rzcikg/how_the_development_of_chatgpt_slowly_killed/
1•thunderbong•8m ago•0 comments

Web Rewind

https://www.web-rewind.com/
1•SockThief•9m ago•0 comments

De-anthropomorphizing "AI": From wishful mnemonics to accurate nomenclature

https://firstmonday.org/ojs/index.php/fm/article/view/14366/12152
1•adrianhoward•10m ago•0 comments

Worker cooperative for open source tech related to scientific image data

https://image.coop/blog/posts/2026/03/16/why-image-cooperative/
1•jkh1•12m ago•0 comments

Running an AI Agent on a 448KB RAM Microcontroller (Zephyr)

https://github.com/LingaoM/zbot
1•menglingao•18m ago•0 comments

Mole – Deep clean and optimize your Mac

https://github.com/tw93/Mole
1•chetangoti•19m ago•0 comments

Big Tech Spends More on Buildings Than Research

https://cupellabs.com/big-tech-spends-more-on-buildings-than-research
1•impjohn•19m ago•0 comments

Response to Misleading Claims – Delve

https://delve.co/blog/response-to-misleading-claims
1•doppp•25m ago•0 comments

Polsia – AI That Runs Your Company While You Sleep

https://polsia.com/live
2•vismit2000•31m ago•0 comments

Ask HN: what’s your favorite line in your Claude/agents.md files?

3•khasan222•31m ago•0 comments

Designing delightful front ends with GPT-5.4

https://developers.openai.com/blog/designing-delightful-frontends-with-gpt-5-4
1•tosh•31m ago•0 comments

Debian's 2026 Election Accidentally Has Only One Candidate

https://plimmie.substack.com/p/debians-2026-election-accidentally
1•limp_diskit•32m ago•0 comments

Show HN: TabPilot – Search across Safari tabs and windows

https://apps.apple.com/cz/app/tabpilot/id6760547850?mt=12
1•bartaxyz•32m ago•0 comments

Unswitch – AI Assistance for doing, not chatting

https://unswitch.com/
1•rcarmo•33m ago•0 comments

Vibegif.lol

https://github.com/vibegif/vibegif.lol
1•planetrenox•36m ago•0 comments

Show HN: Machine learning and AI. Hype not included

https://www.youtube.com/channel/UCS3-Fuwaty1mc8MH6vJTVTw
1•frag•36m ago•0 comments

A European DNS Server Added 1 Second to Every Page Load in Australia

https://hsps.in/post/european-dns-server-added-1-second-to-every-page-load-in-australia/
1•coderhs•43m ago•0 comments

Philip K Dick [Wiki]

https://en.wikipedia.org/wiki/Philip_K._Dick
1•sans_souse•45m ago•0 comments

OpenAI offers $100 in free Codex credits to college students in US and Canada

https://chatgpt.com/codex/students
1•DanielHall•49m ago•0 comments

Construct's official 3D model object

https://www.construct.net/en/blogs/construct-official-blog-1/introducing-constructs-1900
1•AshleysBrain•50m ago•0 comments

Antibrittle Agents

https://www.southbridge.ai/blog/antibrittle-agents
1•vinhnx•53m ago•0 comments

The $3.5T Private Credit Crisis No One Is Talking About [video]

https://www.youtube.com/watch?v=8Qc5U00IiAk
2•u1hcw9nx•55m ago•0 comments

Pizza delivery driver built triple OS where folders SOLIDIFY at 5% capacity

1•Catanamu•56m ago•0 comments

Supermicro co-founder arrested, charged over $2.5B Nvidia GPU sales to China

https://www.theregister.com/2026/03/20/supermicro_nvidia_gpu_charges/
2•u1hcw9nx•1h ago•0 comments

Chinese AI videos used to look fake. Now they look like money

https://www.japantimes.co.jp/commentary/2026/03/20/world/chinese-ai-videos-used-to-look-fake/
1•mikhael•1h ago•0 comments

Now anyone can host a global AI challenge

https://blog.google/innovation-and-ai/technology/developers-tools/introducing-kaggle-community-ha...
1•T-A•1h ago•0 comments