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?

Datadog: We built a real-world evaluation platform for SRE agents at scale

https://www.datadoghq.com/blog/engineering/bits-ai-eval-platform/
1•SpaceJudas•1m ago•0 comments

Vercel Claude Code plugin wants to read your prompt

https://akshaychugh.xyz/writings/png/vercel-plugin-telemetry
1•akshay2603•3m ago•0 comments

Show HN: Cognitox – open-source Amazon Cognito emulator written in Rust

https://github.com/unvalley/cognitox
2•unvalley•5m ago•1 comments

Greece to ban social media for under-15s from next year

https://www.bbc.com/news/articles/ckgx1x742x5o
2•thunderbong•5m ago•0 comments

Claude mythos is the first model Anthropic didn't release

https://blog.alcazarsec.com/tech/posts/claude-mythos-the-first-model-anthropic-didnt-really-release
1•alcazar•6m ago•0 comments

The Dark Factory Harness: From Autonomous Hill-Climbing to Autonomous Research

https://sotaverified.org/blog/improving-autoresearch-dark-factory-harness
1•uberdavid•6m ago•1 comments

iPad at 16 – Redundant or Post-PC?

https://asymco.com/2026/04/09/ipad-at-16/
2•ndr42•6m ago•0 comments

How HTTPS Works

https://howhttps.works/
1•sebg•7m ago•0 comments

Workingasync.io – A job board for asynchronous remote jobs

https://workingasync.io
1•Log007•7m ago•1 comments

An Agent Skill that implements Karpathy's LLM-wiki on personal GitHub Repo

https://github.com/rarce/git-wiki
1•rarce•7m ago•0 comments

NASA Built Artemis II's Fault-Tolerant Computer

https://cacm.acm.org/news/how-nasa-built-artemis-iis-fault-tolerant-computer/
1•speckx•8m ago•0 comments

LLM agents shouldn't execute blindly – this one plans first and stays editable

https://cuddlytoddly.com/
1•philiparxist•8m ago•0 comments

Masjesu botnet targets IoT devices while evading high-profile networks

https://securityaffairs.com/190548/malware/masjesu-botnet-targets-iot-devices-while-evading-high-...
1•lschueller•8m ago•0 comments

Sociotechnical Archaeology

https://jensrantil.github.io/posts/sociotechnical-archaeology/
1•JensRantil•10m ago•0 comments

The M×N problem of tool calling and open-source models

https://www.thetypicalset.com/blog/grammar-parser-maintenance-contract
1•remilouf•13m ago•0 comments

Show HN: AI agents are bad at API integrations – we fixed it

https://www.apimatic.io/product/context-plugins/showcase
3•sohaibtariq•13m ago•1 comments

A Server That Forgets: Exploring Stateless Relays

https://blog.torproject.org/exploring-stateless-relays/
1•ahlCVA•14m ago•0 comments

Study: Google's AI Overviews show wrong answers every hour

https://www.popsci.com/technology/ai-overview-inaccuracy-google/
1•Brajeshwar•14m ago•0 comments

'Snoopy', 'Adolf' and 'Password': The Hungarian Government Passwords Exposed

https://www.bellingcat.com/news/2026/04/09/the-hungarian-government-passwords-exposed-online/
3•lschueller•15m ago•2 comments

Pipeline Architecture System Design

https://dvcoolarun.com/2026/04/09/Pipeline-architecture-system-design.html
1•dvcoolarun•15m ago•0 comments

Need Advice. Should I Give Up My CS Degree in the Last Semester?

1•jornbess•15m ago•0 comments

AI Code Security Scanner – static analysis for 14 languages, OWASP Top

https://github.com/astro717/ai-code-security-scanner
1•astro717•15m ago•0 comments

Using AI in Blogging

https://cagrimmett.com/2026/02/16/on-using-ai-in-blogging/
1•speckx•16m ago•0 comments

Real Time Tide Data Novaa

https://tidesandcurrents.noaa.gov/map/
1•prakashqwerty•16m ago•0 comments

A complete GPT language model in ~600 lines of C#, zero dependencies

https://github.com/milanm/AutoGrad-Engine
2•evo_9•16m ago•0 comments

What to Do with Your Extra Tokens

https://www.johnbhiggins.com/writing/extra-tokens
1•jhiggins777•17m ago•1 comments

Adam Back: I'm not Satoshi

https://twitter.com/adam3us/status/2041811857732768148
2•wslh•18m ago•0 comments

Uncharted island will soon appear on nautical charts

https://phys.org/news/2026-04-uncharted-island-nautical.html
1•pseudolus•19m ago•0 comments

Legos vs. 3D Printers

https://koaning.io/posts/legos-vs-3d-printers/
1•sebg•20m ago•0 comments

Show HN: MCP Gateway – Zero-Trust Access to MCP Tool Servers

https://github.com/openziti/mcp-gateway
3•michaelquigley•20m ago•0 comments