frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

NPM crossed 1T monthly downloads in September

https://jonchurch.com/npm-global-trend/
1•jonchurch_•14s ago•1 comments

Reward Hacking, Benchmarks, Frontier Hazard Tracker

https://grayswan.ai/hazards/reward-hacking
1•gmays•43s ago•0 comments

Show HN: PiPiTi. Pi coding agent in your PowerPoint task-pane

https://codefloe.com/yeikoff/pipiti
1•iglesiastj•3m ago•0 comments

Zig gets improved float parser/formatter

https://codeberg.org/ziglang/zig/pulls/37793
2•Retro_Dev•3m ago•0 comments

Approximate counting with a floating-point counter

https://arxiv.org/abs/0904.3062
1•fanf2•3m ago•0 comments

Session Types in Programming Languages

https://simonjf.com/2016/05/28/session-type-implementations.html
1•Bluestein•4m ago•0 comments

Ask HN: How to make my GrokBot to chat to wife's Muse (Instict etc.)?

1•OxfordCommand•4m ago•0 comments

US emergency oil stockpile plunges to lows not seen since 1982

https://www.cnn.com/2026/12/02/economy/oil-reserves-trump-iran-war
3•everybodyknows•7m ago•0 comments

Amber Eye: a Slay the Spire engine approaching top-level play

https://8e9f.github.io/amber_eye/
5•gcmeplz•7m ago•0 comments

Differentiable Exact Learning

https://arxiv.org/abs/2611.21486
1•E-Reverance•8m ago•0 comments

The Async Component Model

https://bytecodealliance.org/articles/async-component-model
1•emschwartz•8m ago•0 comments

Health benefits provider hit by cyberattack affecting 1.7M

https://www.insurancebusinessmag.com/ca/news/cyber/bcs-largest-health-benefits-provider-hit-by-cy...
3•standeven•8m ago•0 comments

Sudoku Christmas calendar day #2

https://sudokui.app/
1•edullero•9m ago•0 comments

Apple's FileMaker Pro Gaining Support for AI Coding Agents

https://www.macrumors.com/2026/12/02/filemaker-pro-ai-coding-agents/
1•tosh•9m ago•0 comments

Ask HN: What are some of your favorite AI unlocks?

1•_doctor_love•10m ago•0 comments

A Counterexample to the Invariant Subspace Problem on ℓ²

https://www.alphaxiv.org/abs/2612.invariant-subspace-problem-counterexample
1•linolevan•10m ago•0 comments

Taxing Animal Burps

https://opinion.inquirer.net/178735/taxing-animal-burps
1•1970-01-01•10m ago•0 comments

The Human Use of Human Beings

https://en.wikipedia.org/wiki/The_Human_Use_of_Human_Beings
1•mrkn1•11m ago•0 comments

Artists are quitting Instagram and Facebook over fears AI will steal their work

https://www.cnn.com/2026/11/26/tech/artists-meta-ai-slop-instagram-facebook
5•stalfosknight•12m ago•0 comments

The Bull Case

https://olliegreen.info/posts/20/the-bull-case/
1•Oarch•13m ago•0 comments

ML bingo, log numbers, integers, hadamard transforms, integer training?

https://github.com/kgrama/logllama
1•gramgor•16m ago•1 comments

Why we probably live in a quantum multiverse

https://www.yahoo.com/news/science/articles/why-probably-live-quantum-multiverse-100000787.html
2•CharlesW•17m ago•0 comments

Jeff Dean's Discovery Loop raises a $1.2B seed to automate research

https://thenextweb.com/news/discovery-loop-1-2b-seed-jeff-dean-automate-research
3•myth_drannon•18m ago•0 comments

How to stop Hisense smart TVs from spying on you

https://www.techspot.com/news/114709-here-how-stop-hisense-tvs-spying-you.html
3•billybuckwheat•18m ago•0 comments

From Crutch to Cage: The Bitter Lesson of Agent Harnesses

https://microsoft.github.io/FreeHand/
1•dcss_gardener•19m ago•0 comments

Binance serves North Korean hackers court order via 23,444 tiny Bitcoin payments

https://www.coindesk.com/markets/2026/12/02/binance-serves-north-korean-hackers-a-court-order-via...
2•Anon84•21m ago•0 comments

OverTheWire War Games

https://overthewire.org/wargames/
1•fosco•21m ago•0 comments

AI Adoption Is an Org Design Problem

https://cottageindustry.ai/p/ai-adoption-is-an-org-design-problem
2•kevinmannix•23m ago•0 comments

Show HN: AdventForMe – an online advent calendar your friends fill

https://adventforme.com/
1•averycollins26•23m ago•0 comments

DHH on the Future of Web Frameworks

https://twitter.com/dhh/status/2128158222552809729
1•tosh•24m ago•1 comments
Open in hackernews

Packed Data Support in Haskell

https://arthi-chaud.github.io/posts/packed/
77•matt_d•1y ago

Comments

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

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

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