Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
12bitfloat599833dHave you tried Rust? What's your opinion on the differences between the two
I've always wanted to take a look at Ada but it never really seemed like a general purpose programming language you would use for your average project
jeeper534533d@12bitfloat Ha, my feelings and experience with Rust mirror yours about Ada.
Ada has been quite good for off line projects that need low overhead. It’s compile time error checking is top notch. And if I was starting a new project I’d enforce even the semantic warning flags. Sort of a way to have the language enforce project rules for you.
12bitfloat599832d@jeeper What about dynamic memory management and stuff like that? Is it actually usable for let's say a static site generator?
On the topic of Rust: It's actually surprisingly general purpose for a systems language, so much so that I seriously prefer it over Python for quick scripting. It's kinda weird how versatile Rust is
jeeper534532d@12bitfloat I don’t think it has any sort of dynamic memory management built in, but if you were determined, you could define types that did that. I imagine Ada could be expanded upon with a sort of custom types repository service. Implement the type how you want it, then use it freely in procedures and functions as needed.
I really need to try rust, especially if you are picking it up over python for smaller tasks.
LinusCDE297232d@jeeper Sounds great. I also need to take a look at Ada.
If you're interested in rust, this might get you stated faster:
- "The Rust Book" - OpenSource, holy, great book. Everyone recommends it
- "Rust by example" - Awesome as well. Gives you mainly examples
- "Rustlings" - Small snippets with problems to learn it. Havent used it yet, but everyone likes it
Extensions for IntelliJ/CLion, Atom, VSCode and more.
I personally prefer VSCode with the newer (still kinda experimental but really great) extension "rust-analyzer". Some cargo related ones cant hurt too
- rustup.rs: Installer and manager of rust. Use this to install rust.
- cargo: Like "make" in C or npm in Node but even more (docs, tests, ...).
- crates.io: Source of all packages (called crates). (I personally prefer lib.rs over it which is basically a skin).
- docs.rs: All the docs. Proves how great the ecosystem is.
I hope this helps. Maybe do some adventofcode.com to get started. ;)