just started learning Rust :rustlang: ! It's pretty awesome - very unique compared to the other languages I know. Here's an example of something cool about rust - if you don't use the return keyword, they implicitly assume the final value of the expression is what you want to return, so you can make code that looks pretty and works well. Here's an example of a super simple function that returns the number passed in plus one -
WinSCP is actually pretty OP, its helping me a lot with trying to run my c u s t o m Neural Net Rust library on the RasPi, It'll probably be really helpful once I collect data after my hardware arrives
Today, I learned about references and borrowing in :rust: Rust - And I never want to touch a garbage collector again. Rust uses a cool concept called "ownership" that lets you make safe, efficient code with no GC and no manual allocation of memory - in the code snippet attached it can "transfer" ownership (I think) to the new function, and then back to the main function. :partyparrot:
I also added a custom URL to my scrapbook!
I'm gonna try to get @scrappy to react with as many emojis as possible, for no particular reason.
woot I got billboarding 2d assets working in my custom 3d renderer written in Rust 🎉
I have to say, for a bit there it had me stumped 😂
excuse the grainyness, I really gotta implement mipmapping (and anisotropic filtering)