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

Comments

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

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

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

Show HN: Sub-agents for Cursor via MCP (isolated context, no worktrees)

https://github.com/shinpr/sub-agents-mcp
1•shinpr•1m ago•0 comments

Show HN: LudvigEditor – A lightweight Python alternative to Electron editors

https://github.com/Ludvig2457Ultra/LudvigEditor
1•ludvig2457•2m ago•1 comments

How redefining disability/special needs has changed education

https://www.ft.com/content/8252a3bf-f3a5-4cbf-baeb-237a8d5b022b
1•walthamstow•6m ago•0 comments

Adventure can be disastrous: digital nomad families 'worldschooling' their kids

https://www.theguardian.com/lifeandstyle/2025/dec/14/the-adventure-can-turn-into-a-disaster-the-d...
2•Geekette•19m ago•0 comments

Show HN: CryptoGig – A Marketplace for Freelancers Paid in Crypto

https://cryptogig.com/
1•annakoren•33m ago•0 comments

10 People killed in Bondi Beach shooting

https://www.abc.net.au/news/2025-12-14/active-shooter-bondi-beach-sydney-nsw/106141580
7•BLKNSLVR•36m ago•0 comments

DoomScroll – Browse, preview, and play user-made Doom WADs in the browser

https://doomscroll.cx
1•jsheard•37m ago•0 comments

Git Will Make Sense After This [video]

https://www.youtube.com/watch?v=Ala6PHlYjmw
1•matthew16550•38m ago•0 comments

Show HN: cvfitr.com – An AI Job Application tailoring site

https://cvfitr.com
2•iamdavidmt•50m ago•0 comments

Dogalog: A realtime Prolog-based livecoding music environment

https://github.com/danja/dogalog
2•triska•53m ago•0 comments

University life: From 50 years ago to now (2019)

https://www.timeshighereducation.com/student/blogs/university-life-50-years-ago-now
3•zeristor•54m ago•0 comments

Shai-Hulud compromised a dev machine and raided GitHub org access: a post-mortem

https://trigger.dev/blog/shai-hulud-postmortem
4•nkko•55m ago•1 comments

Scale Test-Time Compute with Parallel Coordinated Reasoning [pdf]

https://github.com/stepfun-ai/PaCoRe/blob/main/pacore_report.pdf
1•nkko•59m ago•0 comments

Internet in the Age of Agents

https://thinkininpublic.substack.com/p/internet-in-the-age-of-agents
1•sujayk_33•1h ago•0 comments

Willison on Merchant's "Copywriters reveal how AI has decimated their industry"

https://simonwillison.net/2025/Dec/14/copywriters-reveal-how-ai-has-decimated-their-industry/
3•planckscnst•1h ago•0 comments

How to install a Toolchain for clang on phones without root access (2024, 2025)

https://xdaforums.com/t/guide-how-to-install-a-toolchain-for-clang-on-phones-without-root-access....
1•sipofwater•1h ago•2 comments

How the invention of buttons led to simplicity and to planned obsolescence

https://mikajovicic.com/writing/button-invention-made-interface-simplicity-possible/
2•violinar•1h ago•0 comments

Vanessa et S., magnifique dominatrice (13)

https://dominamag.com/suprematie-feminine/vanessa-et-s-magnifique-dominatrice-13/
1•ssoumi•1h ago•0 comments

Why We Age

https://onlinelibrary.wiley.com/doi/10.1002/brv.70109
2•XzetaU8•1h ago•0 comments

We Sent Our CEO to Dubai's Supercar Junkyards [video]

https://www.youtube.com/watch?v=IrGCv3sZXAQ
1•teleforce•1h ago•0 comments

An open-source energy and latency profiler for LLMs: ELANA

https://arxiv.org/abs/2512.09946
1•nkko•1h ago•0 comments

Total Internet Shutdowns per Year

https://public.tableau.com/app/profile/zach.rosson/viz/STOP_v2/Dashboard1
3•vivzkestrel•1h ago•1 comments

Show HN: Made a simple tool to generate App Store / Play Store screenshots

https://kappmaker.com/app-screenshots-generator
1•mirzemehdi•1h ago•0 comments

An array index points between elements

https://blog.nelhage.com/2015/08/indices-point-between-elements/
1•fanf2•1h ago•0 comments

Single prompt to Gemini to 6M parameters model

https://github.com/javantanna/Axiom
1•javantanna•1h ago•0 comments

Show HN: 2zuz – Shopping search without promoted or junk results

https://2zuz.com
1•pedrozieg•1h ago•0 comments

Show HN: A Simple, Fast, and Ad-Free Whois Lookup Tool

https://myip.casa/whois
1•myip_casa•1h ago•0 comments

Show HN: Stepped Actions – distributed workflow orchestration for Rails

https://github.com/envirobly/stepped
2•klevo•1h ago•1 comments

Evaluating GPT-5.2 Thinking: Cryptographic Challenge Case Study

https://www.irregular.com/publications/spell-bound-technical-case-study
1•jgeralnik•1h ago•0 comments

Startup Playbook

https://playbook.samaltman.com/
1•aleda145•1h ago•0 comments