Jump in the discussion.

No email address required.

I was actually thinking of trying to learn Rust after seeing about the lisps. Isn't this kind of the same problem haskell has where the moment you need to actually do something a thousand roadblocks pop up because you're doing something 'impure' or 'unsafe'?

Jump in the discussion.

No email address required.

looks like you're trying to have your code access or modify a resource. Here's a book on monads

Jump in the discussion.

No email address required.

The core thesis of rust is everything that's not "unsafe" is guaranteed to be safe up until the boundary of interracting with something that is unsafe, and for most people that's pretty close to everything.

For instance, if what you're doing with memory can reasonably be represented by something on the stack, or something on the stack pointing to something on a heap somewhere it's okay. As soon as you start needing to do things where the lifetime does not fit into that particular hole it basically reverts back to C but this time with way, way, way more friction. There are plenty of libraries for "common" cases, but doing something like, idk, calling malloc to make an arena and just indexing into it is unnecessarily awful in rust, and relying on a library to cast a pointer comfortably is r-slurred.

Inside the boundaries that rust likes it feels like a cross between C and a functional language though, which is nice. For many of these irritating scenarios libraries exist that are generally pretty top tier such that you can interface with them and ignore the gritty details, and in that scenario you're golden.

For everything else good luck.

I do think game dev is a particularly bad fit for rust. Honestly though, it's imo the absolute perfect language if what you were doing involved a garbage collector and off the shelf datastructures. Which is the entirety (just about) of modern dev, and represents a thousand times speedup so I'm all in favour of it.

Jump in the discussion.

No email address required.

That degree finally paying off

Jump in the discussion.

No email address required.

ye babe

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.