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?

Washington Must Break Its Promise on Social Security

https://www.bloomberg.com/opinion/articles/2025-12-01/congress-must-save-social-security-from-ins...
1•toomuchtodo•1m ago•1 comments

Metaverse Solutions

https://www.accenture.com/us-en/services/metaverse
1•Klaster_1•2m ago•0 comments

Google, Nvidia, and OpenAI – Stratechery by Ben Thompson

https://stratechery.com/2025/google-nvidia-and-openai/
1•tambourine_man•2m ago•0 comments

I Went All-In on AI. The MIT Study Is Right

https://leadershiplighthouse.substack.com/p/i-went-all-in-on-ai-the-mit-study
2•gmays•3m ago•0 comments

Hasktorch: LibTorch Haskell bindings for deep learning using FFI

https://www.stackbuilders.com/insights/hasktorch-libtorch-haskell-bindings-for-deep-learning-usin...
1•StackBuilders•3m ago•0 comments

Formal Proof: LLM Hallucinations Are Structural, Not Statistical (Coq Verified)

https://philpapers.org/rec/SCHTIC-17
1•ICBTheory•4m ago•0 comments

Unfinished infrastructure, wasted funds: Colombia's 'white elephants' exposed

https://www.france24.com/en/tv-shows/the-observers/20251106-colombia-white-elephants-unfinished-i...
1•PaulHoule•5m ago•0 comments

We cut multi-turn AI agent cost/latency by ~80–90% with one small change

https://www.oneshotcodegen.com/blog
3•weebhek•6m ago•1 comments

PG_AI_Query: AI-powered SQL generation and query analysis for PostgreSQL

https://www.postgresql.org/about/news/pg_ai_query-ai-powered-sql-generation-query-analysis-for-po...
1•thunderbong•6m ago•0 comments

Vibe coding is not the same as AI-Assisted engineering

https://medium.com/@addyosmani/vibe-coding-is-not-the-same-as-ai-assisted-engineering-3f81088d5b98
3•speckx•6m ago•0 comments

How do you manage user feedback and early adopter input?

1•VladCovaci•9m ago•1 comments

Kling O1, the first unified multi-modal video foundation model

https://www.klingo1.com/
2•chengzeyi•10m ago•0 comments

AWS and Google build a fix for multi-cloud barriers they said didn't exist

https://www.theregister.com/2025/12/01/aws_google_cloud_interconnect/
1•raw_anon_1111•11m ago•0 comments

Chatbot with Lazy Mode (LLMParty)

https://llmparty.pixeletes.com/experiments/chatbot
1•victornomad•12m ago•1 comments

YouTube Transcript

https://videotranscript.app
1•leolula•14m ago•0 comments

Deep Metric Learning: A (Long) Survey

https://hav4ik.github.io/articles/deep-metric-learning-survey/
2•rzk•14m ago•0 comments

China's AJX-002 Xluuv and the Geopolitics of Undersea Power

https://www.spacewar.com/reports/Ghosts_of_the_Deep_Chinas_AJX_002_XLUUV_and_the_Geopolitics_of_U...
1•everybodyknows•15m ago•0 comments

In the Middle

https://meetinthemiddle.site/
1•volpiv•17m ago•1 comments

I turned ChatGPT/Claude web sessions into a local REST API

1•star-173•18m ago•1 comments

What History's Fallen Societies Have in Common

https://www.theatlantic.com/books/2025/12/goliaths-curse-luke-kemp-book-review/685041/
2•robtherobber•19m ago•0 comments

WordPress plugin quirk resulted in UK Gov OBR Budget leak [pdf]

https://obr.uk/docs/dlm_uploads/01122025-Investigation-into-November-2025-EFO-publication-error.pdf
17•robtaylor•20m ago•3 comments

Who the Hell Is Using Facebook Dating?

https://www.wired.com/story/who-the-hell-is-actually-using-facebook-dating/
2•01-_-•20m ago•0 comments

Shopify Outage

https://shopstatus.shopifyapps.com/
2•ramon156•21m ago•0 comments

Show HN: LogCost – map logging cost to specific log lines

https://github.com/ubermorgenland/LogCost
1•random_round•21m ago•0 comments

Are We Trusting ChatGPT-5 with Our Mental Health

https://comuniq.xyz/post?t=567
1•01-_-•21m ago•0 comments

The Next Frontier in AI Isn't More Data

https://spectrum.ieee.org/reinforcement-learning-environments
1•Brajeshwar•21m ago•0 comments

DeepSeek-v3.2: Pushing the Frontier of Open Large Language Models

https://cas-bridge.xethub.hf.co/xet-bridge-us/692cfec93b25b81d09307b94/2d0aa38511b9df084d12a00fe0...
2•mzl•23m ago•0 comments

Shopify Admin Down

https://shopstatus.shopifyapps.com/4a166c-52/incidents
2•gsck•23m ago•0 comments

India orders smartphone makers to preload state-owned cyber safety app

https://www.reuters.com/sustainability/boards-policy-regulation/india-orders-mobile-phones-preloa...
6•Brajeshwar•23m ago•0 comments

Is AI Eating the World?

https://pdub.click/2512019
2•7777777phil•26m ago•2 comments