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

(redixhumayun.github.io)

71 points | by ingve 5 days ago ago

7 comments

  • arianvanp 10 hours ago 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?

    • harshreality 3 hours ago 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.

    • wonger_ 9 hours ago 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

      • slopinthebag 9 hours ago 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.

        • wonger_ 8 hours ago ago

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

  • sofiamateo57 5 hours ago 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.

  • up2isomorphism 2 hours ago 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?