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?

Show HN: Revise – a new canvas-based word processor

https://revise.io/features/word-processor
1•artursapek•1m ago•0 comments

Scaling the Fraud Economy: Pig Butchering as a Service

https://www.infoblox.com/blog/threat-intelligence/scaling-the-fraud-economy-pig-butchering-as-a-s...
1•9woc•1m ago•0 comments

I created a tool to roast your landing page

https://landkit.pro/audit
1•nikhonit•2m ago•0 comments

Show HN: A full-scale build simulator for Dreadmyst (Action RPG)

https://dreadmystbuildsimulator.com
1•18272837023•2m ago•0 comments

Lsferreira42/figlet-go: A figlet Golang rewrite

https://github.com/lsferreira42/figlet-go
1•lsferreira42•3m ago•0 comments

Chinese woman discovers her iPhone X can be unlocked by her friend's face (2017)

https://mothership.sg/2017/12/iphone-x-asians-look-the-same/
1•thunderbong•4m ago•0 comments

Fill in a lean canvas nicely in the browser and download it

https://cluelessuk.github.io/lean-canvas-ui/
1•h0h0h0h0111•5m ago•0 comments

Ask HN: How do you prevent AI agents from going rogue in production?

1•techbuilder4242•5m ago•0 comments

AI Analyzes Faces to Measure Pain Levels

https://spectrum.ieee.org/machine-learning-measure-pain-surgery
2•JeanKage•6m ago•0 comments

Show HN: FlexList – A global leaderboard where you pay to own your city

https://flexlist.app
2•frodothebrave•8m ago•1 comments

EmbodIOS - AI inference as the operating system (3.5s cold start)

https://github.com/dddimcha/embodiOS
2•dddimcha•13m ago•0 comments

Birth Lottery

https://www.givingwhatwecan.org/birth-lottery
1•gmays•14m ago•1 comments

InvokeAI Commercial Platform Shuts Down, Open-Source Project Continues

https://softuts.com/invokeai-commercial-platform-shuts-down-open-source-project-continues/
2•XCSme•14m ago•1 comments

Salesforce, SAP, or ServiceNow: Which Is Most Ripe for Disruption?

1•Saurabh_Kumar_•15m ago•0 comments

90% of Cheese Contains a Pfizer-Developed GMO Ingredient–Here's What That Means

https://drgator.substack.com/p/90-of-cheese-contains-a-pfizer-developed
1•nateb2022•15m ago•0 comments

Show HN: AionUi – Open-Source Cowork for Claude Code, Gemini CLI, Codex and More

https://github.com/iOfficeAI/AionUi
2•waili•16m ago•0 comments

Show HN: FastScheduler – Decorator-first Python task scheduler, async support

https://github.com/MichielMe/fastscheduler
1•michielme•17m ago•0 comments

Ask HN: Salesforce, SAP, or ServiceNow: Which Is Most Ripe for Disruption?

1•Saurabh_Kumar_•17m ago•1 comments

Git Subtree and Other Tips for Migrating a Repo

https://spin.atomicobject.com/git-subtree-migrating-repo/
2•philk10•18m ago•0 comments

Password Storage

https://ciamweekly.substack.com/p/password-storage
1•PretzelFisch•18m ago•0 comments

Citigroup set to cut about 1k jobs this week

https://www.reuters.com/sustainability/citigroup-is-set-cut-about-1000-jobs-bloomberg-news-report...
1•geox•19m ago•0 comments

Show HN: StatefulSet Backup Operator v0.0.3–Configurable snapshots, Redis tested

https://github.com/federicolepera/statefulset-backup-operator
1•lep_qq•19m ago•0 comments

Node.js Tuesday, January 13, 2026 Security Releases

https://nodejs.org/en/blog/vulnerability/december-2025-security-releases
2•syvanen•20m ago•0 comments

Show HN: DSAT – Data Subject Access Toolkit

https://codeberg.org/erkinalp/dsat
2•anticensor•21m ago•0 comments

Software Is Mostly All You Need

https://softwarefordays.com/post/software-is-mostly-all-you-need/
4•jbmilgrom•21m ago•0 comments

Pentagon is embracing Musk's Grok AI chatbot as it draws global outcry

https://www.cnbc.com/2026/01/13/pentagon-is-embracing-musks-grok-ai-chatbot-as-it-draws-global-ou...
1•teekert•22m ago•0 comments

The rise (and future fall) of Discord (2024)

https://slugcat.systems/post/24-12-12-the-rise-and-future-fall-of-discord/
1•birdculture•23m ago•0 comments

Apple and Google's AI partnership announcement spells AI wrong

2•pnrth•23m ago•0 comments

Show HN: OneView – Autopilot for Marketing Data

https://oneviewhub.com/
2•lunarrocket•25m ago•0 comments

Overflow: React Flow component library for user-friendly diagrams and flows

https://github.com/synergycodes/overflow-ui
2•diagrammode•26m ago•1 comments