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

Comments

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

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

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

Building an AI-powered health app (think Noom meets symptom tracking)

https://docs.google.com/document/d/11dZJUkC0fuowUCurUv8yHaJofKv3UeF9EBjL6ToUnK8/edit?usp=sharing
1•DietAppAi•22s ago•0 comments

Wirecutter buys 450 lb box of Amazon returns

https://www.nytimes.com/wirecutter/reviews/mystery-amazon-pallet-unboxing/
1•0xWTF•2m ago•1 comments

LLM chat interfaces will kill curiosity

https://harsehaj.substack.com/p/llms-curiosity-loss-frictionless-learning
1•harsehaj•11m ago•0 comments

Companies Predict 2026 Will Be the Worst College Grad Job Market in Five Years

https://www.wsj.com/lifestyle/careers/2026-graduates-job-market-7928bcd7
1•sarimkx•14m ago•1 comments

From early‑stage shortcuts to a ledger of record

https://www.parafin.com/blog/from-early-stage-shortcuts-to-a-ledger-of-record-our-journey-to-reli...
1•mattmarcus•15m ago•0 comments

Can weed help you drink less? Scientists study how well 'California sober' works

https://www.npr.org/sections/shots-health-news/2025/11/19/nx-s1-5604813/marijuana-drinking-califo...
2•Stratoscope•17m ago•0 comments

Did smartphones make us look down? Could AR glasses help us look up again?

1•Tech_Social•19m ago•0 comments

Mexico Is Now the United States' Top Buyer

https://www.nytimes.com/2025/11/19/world/americas/us-mexico-trade.html
1•mooreds•27m ago•0 comments

Chernobyl: Debunking the Myths of the HBO Series

https://blog.osm-ai.net/investigation/2023/01/05/hbo-chernobyl-myth.html
2•osm3000•30m ago•0 comments

Show HN: Sora Watermark Remover –Pixel-Accurate Cleanup for Sora / Sora 2 Videos

https://www.unsorawatermark.com/?i=d1d5k
1•lu794377•31m ago•0 comments

The growing problem with China's unreliable numbers

https://www.ft.com/content/5b9e7440-51d9-44fa-972c-5f00faf91e62
1•jnord•34m ago•2 comments

Jailbreaking AI Models to Phish Elderly Victims

https://simonlermen.substack.com/p/can-ai-models-be-jailbroken-to-phish
8•DalasNoin•35m ago•1 comments

Summers to step down from teaching at Harvard

https://www.thecrimson.com/article/2025/11/20/summers-leaves-teaching-at-harvard/
8•HR01•36m ago•0 comments

What determines the severity and outcomes of cyberwarfare between countries?

https://techxplore.com/news/2025-11-factors-severity-outcomes-cyberwarfare-countries.html
1•PaulHoule•39m ago•0 comments

Show HN: GraphQL Schema Generator for Golang

https://github.com/pablor21/gqlschemagen
1•pablor21•40m ago•0 comments

Workday to Acquire Pipedream

https://newsroom.workday.com/2025-11-19-Workday-Signs-Definitive-Agreement-to-Acquire-Pipedream
8•gaws•40m ago•7 comments

The wildest LLM backdoor I've seen yet

https://old.reddit.com/r/LocalLLaMA/comments/1p1grbb/the_wildest_llm_backdoor_ive_seen_yet/
3•haxiomic•43m ago•0 comments

The "Meh-Trics" Reloaded: Why I Was 100% Wrong About Metrics (& Also 100% Right)

https://www.honeycomb.io/blog/the-meh-trics-reloaded
2•gpi•44m ago•0 comments

Verifying your Matrix devices is becoming mandatory

https://element.io/blog/verifying-your-devices-is-becoming-mandatory-2/
17•LorenDB•46m ago•7 comments

Money for nothing: The story of the biggest counterfeiter in US history

https://news.sky.com/story/money-for-nothing-the-story-of-the-biggest-counterfeiter-in-us-history...
1•thunderbong•51m ago•0 comments

Big Tech's Soaring Profits Have an Ugly Underside: OpenAI's Losses

https://www.wsj.com/tech/ai/big-techs-soaring-profits-have-an-ugly-underside-openais-losses-fe7e3184
3•mgh2•57m ago•1 comments

Grok 4.1 Fast and Agent Tools API

https://x.ai/news/grok-4-1-fast
1•meetpateltech•57m ago•0 comments

CIA report boasted about tricking Congress in JFK probe, whistleblower says

https://www.axios.com/2025/11/19/whistleblower-secret-cia-report-jfk-assassination
3•cwwc•58m ago•0 comments

Show HN: The Open Rate Sheet – A Glassdoor for digital art commissions

https://openratesheet.netlify.app/
3•Roccan•59m ago•0 comments

The Greatest: On the Wonderful Mystery of Janet Malcolm

https://www.metropolitanreview.org/p/the-greatest
1•jger15•1h ago•0 comments

U.S. Revises Endangered Species Act Regulations

https://www.doi.gov/pressreleases/administration-revises-endangered-species-act-regulations-stren...
1•geox•1h ago•0 comments

`dlopen()` Metadata for ELF Files

https://uapi-group.org/specifications/specs/elf_dlopen_metadata/
1•JoshTriplett•1h ago•1 comments

Linux Career Opportunities in 2025: Skills in High Demand

https://www.linuxcareers.com/resources/blog/2025/11/linux-career-opportunities-in-2025-skills-in-...
8•dxs•1h ago•3 comments

Elon Musk announces 500MW xAI data center in Saudi Arabia

https://www.nbcnews.com/tech/tech-news/elon-musk-announces-massive-xai-data-center-saudi-arabia-x...
3•mgh2•1h ago•0 comments

An Homage to 90s –/Public_HTML Hosting

https://public.monster/
2•gpi•1h ago•0 comments