Zero-Copy Pages in Rust: Or How I Learned to Stop Worrying and Love Lifetimes

Posted by ingve 5 days ago

Counter71Comment7OpenOriginal

Comments

Comment by arianvanp 10 hours ago

Just a heads up: I know it's cool to generate ASCII art with Claude code these Days but for some reason checks the output? Non of the diagrams in the article look correct to me. They all have spacing issues?

Comment by harshreality 3 hours ago

Were they generated by D2? I tested naive generation without extra hints/layout settings, and its ascii charts leave a lot to be desired (including worse artifacts than that, like creating too-narrow charts and text overwriting other text that's too close). SVG output might have been much better.

Comment by wonger_ 9 hours ago

You're probably seeing an Android bug. The default Android monospace font borks the spacing of box-drawing characters. It's been like that for several years. EDIT the same thing might happen on some niche Linux distros

Comment by slopinthebag 9 hours ago

No I see it on a non-android device too. But it's not as egregious as most vibe-coded ascii diagrams to be fair.

Comment by wonger_ 9 hours ago

Ah my bad! Didn't scroll down far enough. Shame. Maybe the fi ligature messed up their spacing.

Comment by sofiamateo57 5 hours ago

Lifetime annotations on page references get unwieldy fast once you introduce concurrent readers. Curious whether you considered using Arc with a custom drop instead of fighting the borrow checker there.

Comment by 2 hours ago

Comment by up2isomorphism 2 hours ago

It is kinda trite to use something like “stop worrying and love xxx” now.

Also the whole post looks too long, maybe from some sort of AI?