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?

Calibre, AI, and one size not fitting all

https://neilzone.co.uk/2025/12/calibre-ai-and-one-size-not-fitting-all/
1•edward•4m ago•0 comments

Ten years ago in Hacker News frontpage

https://news.ycombinator.com/front?day=2015-12-08
1•kevin061•5m ago•0 comments

Australian Age Assurance Technology Trial– Final Report

https://www.infrastructure.gov.au/department/media/publications/age-assurance-technology-trial-fi...
1•Erikun•5m ago•0 comments

Show HN: Chromaflow – flow editor for parametric color palettes

https://chromaflow-editor.vercel.app/
1•pedroscosta•7m ago•0 comments

Everything Is Context: Agentic File System Abstraction for Context Engineering

https://arxiv.org/abs/2512.05470
1•robmao•7m ago•1 comments

Go Proposal: Secret Mode

https://antonz.org/accepted/runtime-secret/
2•enz•7m ago•0 comments

Running Rust, Go, Python, and JavaScript AI Agents Inside the JVM Using WASM

https://blog.mozilla.ai/polyglot-ai-agents-webassembly-meets-the-java-virtual-machine-jvm/
1•mzlaai•7m ago•0 comments

Howard Marks Says AI Is 'Terrifying' for Jobs, Queries Debt Cost

https://www.bloomberg.com/news/articles/2025-12-09/howard-marks-says-ai-is-terrifying-for-jobs-qu...
1•petethomas•7m ago•0 comments

SpaceX to Pursue 2026 IPO Raising Far Above $30B

https://www.bloomberg.com/news/articles/2025-12-09/spacex-said-to-pursue-2026-ipo-raising-far-abo...
1•mfiguiere•8m ago•0 comments

Chatting with Glue

https://a9.io/glue-comic/
1•duck•8m ago•0 comments

CppCon 2025: Building Secure C++ Applications: A Practical End-to-End Approach [video]

https://www.youtube.com/watch?v=GtYD-AIXBHk
1•pjmlp•9m ago•0 comments

Join the on-call roster, it'll change your life

https://serce.me/posts/2025-12-09-join-oncall-it-will-change-your-life
2•SerCe•10m ago•0 comments

I misused LLMs to diagnose myself and ended up bedridden for a week

https://blog.shortround.space/blog/how-i-misused-llms-to-diagnose-myself-and-ended-up-bedridden-f...
4•shortrounddev2•10m ago•0 comments

Zillow has removed extreme weather risk data

https://www.cnn.com/2025/12/02/climate/zillow-climate-data-extreme-weather-first-street-redfin
3•kevin061•11m ago•1 comments

OpenAI economist quits, alleging that they are verging into AI Advocacy

https://www.wired.com/story/openai-economic-research-team-ai-jobs/
4•gsf_emergency_6•11m ago•0 comments

Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code

https://arxiv.org/abs/2512.03262
2•flail•12m ago•0 comments

A standard language for machine-readable code comments

https://github.com/pomponchik/metacode
1•levzettelin•13m ago•1 comments

Japan's exhaust filter experts attract carbon capture companies' attention

https://asia.nikkei.com/business/technology/japan-s-exhaust-filter-expertise-attracts-carbon-capt...
2•gsf_emergency_6•14m ago•1 comments

Dynamic Island and Quake Terminal app, QuakeNotch 2.1 is released

https://www.patreon.com/posts/quakenotch-2-1-145469207
1•rohanrhu•15m ago•0 comments

React2Shell CVE 10.0 Vulnerability

https://react2shell.com/
1•jnovacho•15m ago•1 comments

Neural cellular automata: Applications to biology and beyond classical AI

https://www.sciencedirect.com/science/article/pii/S1571064525001757?dgcid=coauthor
1•lifty•21m ago•0 comments

Consolidated / Fidium Fiber ISP seems down in Maine (state-wide)

https://community.designtaxi.com/topic/20787-is-consolidated-fidium-fiber-down-december-9-2025/
1•gregsadetsky•23m ago•0 comments

Lets Encrypt Certificate Lifetimes go from 90 days to 45 days

https://letsencrypt.org/2025/12/02/from-90-to-45
3•nvader•27m ago•1 comments

Context Engineering in Manus

https://rlancemartin.github.io/2025/10/15/manus/
2•speckx•27m ago•0 comments

Are Two Heads Better Than One?

https://eieio.games/blog/two-heads-arent-better-than-one/
1•eieio•27m ago•0 comments

Static Sites, Stupid Simple

https://statue.dev/blog/static-sites-stupid-simple/
1•brantf•29m ago•0 comments

Trying out the queue for AI Workloads

https://leblancfg.com/trying-absurd-postgres-workflows.html
1•ingve•29m ago•0 comments

Cockpit audio of Alaska Airlines pilot who tried to crash plane mid-flight

https://nypost.com/2025/12/09/us-news/wild-new-cockpit-audio-reveals-moment-alaska-airlines-pilot...
1•appreciatorBus•30m ago•0 comments

Linux Foundation Announces the Formation of the Agentic AI Foundation

https://aaif.io/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation-aaif-...
3•bretpiatt•30m ago•2 comments

U.S. F-18 fighter jets enter Venezuelan airspace for 40 minutes

https://www.miamiherald.com/news/nation-world/world/americas/venezuela/article313550838.html
4•belter•32m ago•0 comments