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?

The fading of Japan's Shōwa era – in pictures

https://www.theguardian.com/world/gallery/2025/dec/02/fading-japan-showa-era-in-pictures
1•n1b0m•1m ago•0 comments

VLLM-Omni: A framework for efficient model inference with Omni-modality models

https://github.com/vllm-project/vllm-omni
1•zyh888•1m ago•0 comments

Python Data Science Handbook

https://jakevdp.github.io/PythonDataScienceHandbook/
1•cl3misch•2m ago•0 comments

Boosting Ray Tracing Performance with Shader Execution Reordering

https://www.khronos.org/blog/boosting-ray-tracing-performance-with-shader-execution-reordering-in...
1•ibobev•2m ago•0 comments

Lazier Binary Decision Diagrams for set-theoretic types

https://elixir-lang.org/blog/2025/12/02/lazier-bdds-for-set-theoretic-types/
1•tvda•2m ago•0 comments

Feynman vs. Computer

https://entropicthoughts.com/feynman-vs-computer
1•ibobev•4m ago•0 comments

Memes reveal threats to graduate-student mental health

https://www.nature.com/articles/d41586-025-03924-6
1•giuliomagnifico•4m ago•0 comments

XBerry Pi Review – ZX Spectrum Next in Pi Form Factor

https://retrogamecoders.com/xberry-pi-review/
1•ibobev•4m ago•0 comments

Researchers discover sentence structure can bypass AI safety rules

https://arstechnica.com/ai/2025/12/syntax-hacking-researchers-discover-sentence-structure-can-byp...
2•pseudolus•10m ago•0 comments

TSA Imposes $45 Fee for Travelers Without Real ID Starting February 2026

https://www.nytimes.com/2025/12/01/travel/real-id-fee-tsa.html
2•donohoe•10m ago•1 comments

The Death of Software Engineering as a Profession

https://www.jasonscheirer.com/weblog/vignettes/
2•absqueued•12m ago•0 comments

Constant-time support for LLVM to protect cryptographic code

https://blog.trailofbits.com/2025/12/02/introducing-constant-time-support-for-llvm-to-protect-cry...
1•ingve•14m ago•0 comments

Vanguard Will Now Allow Crypto ETFs on Its Platform

https://www.bloomberg.com/news/articles/2025-12-01/vanguard-relents-on-crypto-etfs-will-allow-the...
1•giuliomagnifico•14m ago•0 comments

Administration Wants to Exclude 'Pornographic Activity' from 'No Tax on Tips'

https://www.nytimes.com/2025/12/01/us/politics/no-tax-on-tips-irs-exclusions.html
1•koolba•16m ago•0 comments

Flame Graphs

https://www.brendangregg.com/flamegraphs.html
1•ipnon•17m ago•0 comments

Show HN: Nexroo – From automation workflows to real products

https://nexroo.ai/
3•adriencloud•19m ago•0 comments

Doge Isn't Dead. Here's What Its Operatives Are Doing Now

https://www.wired.com/story/what-is-doge-doing-now/
4•BerislavLopac•20m ago•0 comments

Vim Motion for Writers (Inspired by Paul Graham)

https://www.ssp.sh/brain/vim-motions-for-writers/
2•articsputnik•21m ago•0 comments

A theoretical upper limit for offshore wind energy extraction

https://www.cell.com/cell-reports-sustainability/fulltext/S2949-7906(25)00269-1
2•Luc•23m ago•0 comments

The Harvest Will Come

https://www.joanwestenberg.com/p/the-harvest-will-come
1•computersuck•24m ago•0 comments

Show HN: Race from one side of the world to the other

https://geo-racers.com/
1•pattle•26m ago•0 comments

Crovia Trust – Open-source offline engine for verifiable AI data royalties

https://github.com/croviatrust/crovia-core
1•crovia•28m ago•1 comments

Lepton – a name for Valve compatibility layer for running Android games on Linux

https://www.pcguide.com/news/valve-compatibility-layer-for-running-android-games-on-linux-gets-of...
4•71bw•29m ago•0 comments

Show HN: Colimabar – A Colima macOS Menubar

https://github.com/tdi/colimabar
1•tdi•34m ago•0 comments

A private ambient listener for homes and offices

https://evanking.io/posts/summarizer/
4•simonpure•35m ago•0 comments

Tree planting search engine Ecosia launches AI search

https://blog.ecosia.org/ecosia-ai/
2•beboppoooo•36m ago•0 comments

Show HN: Launchpad for developers to ship and showcase their projects

https://smollaunch.com/
7•teemingdev•37m ago•0 comments

University of Michigan Press – eBook Collection (Open Access)

https://www.fulcrum.org/michigan?locale=en&user_access=oa
1•lioeters•39m ago•0 comments

High schoolers excel at Oxford quantum course using pictorial mathematics

https://arxiv.org/abs/2512.00141
3•mathgenius•40m ago•0 comments

Why We Keep Making the Same Software Mistakes

https://spectrum.ieee.org/avoidable-software-failures-cost-trillions
4•pseudolus•41m ago•0 comments