frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Parsing Protobuf Like Never Before

https://mcyoung.xyz/2025/07/16/hyperpb/
49•ibobev•2d ago

Comments

UncleEntity•1d ago
> In other words, a UPB parser is actually configuration for an interpreter VM, which executes Protobuf messages as its bytecode.

This is kind of confusing, the VM is runtime crafted to parse a single protobuf message type and only this message type? The Second Futamura Projection, I suppose...

Or the VM is designed specifically around generic protobuf messages and it can parse any random message but only if it's a protobuf message?

I've been working on the design of a similar system but for general binary parsing (think bison/yacc for binary data) and hadn't even considered doing data over specialized VM vs. bytecode+data over general VM. Honestly, since it's designed around 'maximum laziness' (it just parses/verifies and creates metadata over the input so you only pay for decoding bytes you actually use) and I/O overhead is way greater than the VM dispatching trying this out is probably one of those "premature optimization is the root of all evil" cases but intriguing none the less.

mdhb•1d ago
I’d really love to see more work bringing the best parts of protobuf to a standardised serialization format like CBOR.

I’d make the same argument for gRPC-web to something like WHATWG streams and or WebTransport.

There is a lot of really cool and important learnings in both but it’s also so tied up in weird tooling and assumptions. Let’s rebase on IETF and W3C standards

youngtaff•1d ago
Would be good to see support for encoding / decoding CBOR exposed as a broswer API - they currently use CBOR internally for WebAuthn so I’d hope it’s bnot too hard
irq-1•1d ago
https://github.com/bufbuild/hyperpb-go
skybrian•1d ago
This is excellent: an in-depth description showing how the Go internals make writing fast interpreters difficult, by someone who is far more determined than I ever was to make it fast anyway.

I’ve assumed that writing fast interpreters wasn’t a use case the Go team cared much about, but if it makes protobuf parsing faster, maybe it will get some attention, and some of these low-level tricks will no longer be necessary?

alexozer•1d ago
So am I identifying the bottlenecks that motivate this design correctly?

1. Go FFI is slow

2. Per-proto generated code specialization is slow, because of icache pressure

I know there's more to the optimization story here, but I guess these are the primary motivations for the VM over just better code generation or implementing a parser in non-Go?

jeffrallen•1d ago
> hyperpb is a brand new library, written in the most cursed Go imaginable

This made me LOL.

dumah•21h ago
Fantastic post.

Please do one on your analysis and optimization workflow and tooling!

China Kicks Off Controversial Mega-Dam Project in Tibet

https://www.bloomberg.com/news/articles/2025-07-19/china-kicks-off-controversial-mega-dam-project-in-tibet
1•mefengl•2m ago•0 comments

I built a boilerplate to help you create Figma/Miro-like apps

https://old.reddit.com/r/SideProject/comments/1m3vc3x/i_built_a_boilerplate_to_create_figmalike/
1•hirosichen•4m ago•1 comments

Anthropic: Subprocessors

https://trust.anthropic.com
1•tosh•4m ago•0 comments

Movfuscator – The single instruction C compiler

https://github.com/xoreaxeaxeax/movfuscator
1•TheHideout•7m ago•0 comments

Eddy Current Separator

https://en.wikipedia.org/wiki/Eddy_current_separator
1•thunderbong•11m ago•0 comments

Hetzner Servers Benchmarks

https://softuts.com/hetzner-servers-benchmarks/
1•XCSme•14m ago•0 comments

Solar module prices on a clear downward trend

https://www.pv-magazine.com/2025/07/17/solar-module-prices-on-a-clear-downward-trend/
1•rustoo•15m ago•0 comments

China proves that open models are more effective than all the GPUs in the world

https://www.theregister.com/2025/07/19/openai_us_china/
2•rntn•16m ago•0 comments

PostgreSQL Schema Management via Source Files

https://github.com/dont-rely-on-nulls/sourcegres
2•b-man•16m ago•0 comments

Argon2: RFC 9106 compliant password hashing library in vlang

https://github.com/fleximus/argon2
1•fork-bomber•21m ago•0 comments

Rust SCA/SAST API for binary analysis with SBoM generation

https://github.com/Atelier-Logos/platform.atelierlogos.studio
1•jdbohrman•23m ago•0 comments

China Became the Biggest Shipbuilder

https://www.construction-physics.com/p/how-china-became-the-worlds-biggest
1•hunglee2•24m ago•0 comments

NASA's X-59 Quiet Supersonic Aircraft Begins Taxi Tests

https://www.nasa.gov/image-article/nasas-x-59-quiet-supersonic-aircraft-begins-taxi-tests/
2•rbanffy•27m ago•0 comments

How do you retain what you read from nonfiction books?

1•lachiejones•27m ago•1 comments

Agile Change Guide – short summaries of 100+ agile topics by me and GPT

https://github.com/SixArm/agile-change-guide
1•jph•28m ago•0 comments

Show HN: A Repo That Takes a screenshot of ideabrowser's idea of the day daily

https://github.com/Kuberwastaken/awesome-idea-of-the-day-archive
1•kuberwastaken•33m ago•0 comments

OpenAI achieved gold medal-level performance on the 2025 IMO

https://twitter.com/polynoamial/status/1946478249187377206
10•tosh•37m ago•1 comments

OLEDs of 4 Gbps light the way to faster longer-distance wireless communication

https://spie.org/news/oleds-light-the-way-to-faster-longer-distance-wireless-communication
1•hhs•39m ago•1 comments

Human Trajectory Prediction Based on Pose and Initial Velocity Information

https://www.mdpi.com/2079-9292/14/13/2636
1•PaulHoule•44m ago•0 comments

Show HN: A browser-based emoji to favicon generator

https://emo2fav.netlify.app/
1•sardor_ubaydiy•44m ago•2 comments

The Big LLM Architecture Comparison

https://magazine.sebastianraschka.com/p/the-big-llm-architecture-comparison
1•Quizzical4230•47m ago•0 comments

Wishes Upon My Demise

https://vale.rocks/posts/regarding-my-death
2•OuterVale•48m ago•0 comments

The secret to resolutions? Enjoy the pursuit, not the outcome

https://news.cornell.edu/stories/2025/07/secret-resolutions-enjoy-pursuit-not-outcome
1•hhs•51m ago•1 comments

How the Etch a Sketch Etched Itself into Pop Culture

https://www.smithsonianmag.com/innovation/how-the-etch-a-sketch-etched-itself-into-pop-culture-180986970/
1•bookofjoe•53m ago•0 comments

There will be no rapture to prevent us from pain

https://substack.com/inbox/post/168703882
1•totogale•54m ago•0 comments

Unfollowing hyperpartisan influencers durably reduces out-party animosity

https://osf.io/preprints/psyarxiv/acbwg_v1
1•detaro•54m ago•0 comments

METR's AI Coding RCT

https://thezvi.substack.com/p/on-metrs-ai-coding-rct
1•nsoonhui•55m ago•0 comments

OpenAI achieved IMO gold with experimental reasoning model

https://old.reddit.com/r/singularity/comments/1m3qutl/openai_achieved_imo_gold_with_experimental/
4•ogogmad•55m ago•2 comments

Fedora SIG changes Python packaging strategy

https://lwn.net/SubscriberLink/1029354/8e707178c74ae2f8/
1•thunderbong•56m ago•0 comments

Show HN: I wanted better book recommendations – so I made Lorekeep

https://www.lorekeep.io/
1•delta234•58m ago•0 comments