Skip to content
loading...

re: Rust, inspire me please! VIEW POST

FULL DISCUSSION
 

Welcome to the best programming language, pal :)

  1. Don't beat yourself up over not learning C/C++. Just because Rust has some nice abstractions doesn't mean you have to feel like you're missing out. Manual memory management is something unsafe Rust can do as well, so really no reason to beat yourself up. Just know that memory is a stream of bytes. Once you understand that you understand the core of manual memory management.
  2. Game development? Check out arewegameyet.com.
  3. Let me know if I can help you with DSL. For some reason I've always loved parsers, even though I'm not really good with them either. For something simple, a for loop with variables keeping track of the state (escaped? quoted? et.c) should do. Or if you wanna go fancier you could use an iterator peek/next in order to make the code more beautiful. Check out enigo's parser for an example.
  4. I've never really had an issue with RLS. Or, I have, but I haven't noticed it until it fixed itself (by updating nightly or something). I guess I'm used to typing->compiling->fixing rather than using a tool for it. In case RLS should malfunction for you, just remember the command cargo check. It's faster than building, but it doesn't produce a binary.
  5. I like Rust because of a lot of reasons. Mostly because I don't have to worry about memory leaks, segfaults, or thread unsafety, while still keeping my program fast. I have never really liked C for some reason, but I used to use Go. Back then I thought it was perfect. But it was never low level enough for me. Sure, you can make C FFI bindings. But it all felt like a hack. In Rust, all this feels natural somehow. I'd be surprised if I find a LLVM binding library for Go, while I'd be surprised if I didn't find one for Rust. Also, Go mutexes are a pain in the ass. As soon as I learned about race conditions, I hated every goroutine I ever saw.
 

Hey thanks for the lovely response I will definitely check the links provided, I also looked at github.com/Geal/nom but I haven't really tried much I'm still getting familiar with the language

 

Wow, nom looks cool. Wouldn't use it personally, but if you like it, definitely go for it!

code of conduct - report abuse