Need advice about which tool to choose?Ask the StackShare community!
R Language vs Rust: What are the differences?
What is R Language? A language and environment for statistical computing and graphics. R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible.
What is Rust? A safe, concurrent, practical language. Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.
R Language and Rust can be categorized as "Languages" tools.
"Data analysis " is the top reason why over 65 developers like R Language, while over 93 developers mention "Guaranteed memory safety" as the leading cause for choosing Rust.
Rust is an open source tool with 42.4K GitHub stars and 6.47K GitHub forks. Here's a link to Rust's open source repository on GitHub.
According to the StackShare community, R Language has a broader approval, being mentioned in 357 company stacks & 804 developers stacks; compared to Rust, which is listed in 159 company stacks and 861 developer stacks.
So, I've been working with all 3 languages JavaScript, Python and Rust, I know that all of these languages are important in their own domain but, I haven't took any of it to the point where i could say I'm a pro at any of these languages. I learned JS and Python out of my own excitement, I learned rust for some IoT based projects. just confused which one i should invest my time in first... that does have Job and freelance potential in market as well...
I am an undergraduate in computer science. (3rd Year)
I would start focusing on Javascript because even working with Rust and Python, you're always going to encounter some Javascript for front-ends at least. It has: - more freelancing opportunities (starting to work short after a virus/crisis, that's gonna help) - can also do back-end if needed (I would personally avoid specializing in this since there's better languages for the back-end part) - hard to avoid. it's everywhere and not going away (well not yet)
Then, later, for back-end programming languages, Rust seems like your best bet. Its pros: - it's satisfying to work with (after the learning curve) - it's got potential to grow big in the next year (also with better paying jobs) - it's super versatile (you can do high-perf system stuff, graphics, ffi, as well as your classic api server) It comes with a few cons though: - it's harder to learn (expect to put in years) - the freelancing options are virtually non-existent (and I would expect them to stay limited, as rust is better for long-term software than prototypes)
I suggest you to go with JavaScript. From my perspective JavaScript is the language you should invest your time in. The community of javascript and lots of framework helps developer to build what they want to build in no time whether it a desktop, web, mobile based application or even you can use javascript as a backend as well. There are lot of frameworks you can start learning i suggest you to go with (react,vue) library both are easy to learn than angular which is a complete framework.
And if you want to go with python as a secondary tool then i suggest you to learn a python framework (Flask,Django).
I chose Golang as a language to write Tango because it's super easy to get started with. I also considered Rust, but learning curve of it is much higher than in Golang. I felt like I would need to spend an endless amount of time to even get the hello world app working in Rust. While easy to learn, Golang still shows good performance, multithreading out of the box and fun to implement.
I also could choose PHP and create a phar-based tool, but I was not sure that it would be a good choice as I want to scale to be able to process Gbs of access log data
Pros of R Language
- Data analysis83
- Graphics and data visualization62
- Free53
- Great community45
- Flexible statistical analysis toolkit38
- Easy packages setup27
- Access to powerful, cutting-edge analytics27
- Interactive18
- R Studio IDE13
- Hacky9
- Shiny apps7
- Preferred Medium6
- Shiny interactive plots6
- Automated data reports5
- Cutting-edge machine learning straight from researchers4
- Machine Learning3
- Graphical visualization2
- Flexible Syntax1
Pros of Rust
- Guaranteed memory safety139
- Fast126
- Open source84
- Minimal runtime75
- Pattern matching70
- Type inference61
- Algebraic data types56
- Concurrent55
- Efficient C bindings46
- Practical43
- Best advances in languages in 20 years37
- Safe, fast, easy + friendly community30
- Fix for C/C++30
- Stablity24
- Zero-cost abstractions23
- Closures23
- Extensive compiler checks20
- Great community19
- No NULL type17
- Async/await15
- Completely cross platform: Windows, Linux, Android15
- No Garbage Collection14
- Great documentations13
- High-performance13
- High performance12
- Super fast12
- Generics11
- Fearless concurrency11
- Guaranteed thread data race safety11
- Safety no runtime crashes11
- Compiler can generate Webassembly10
- Helpful compiler10
- Prevents data races9
- Easy Deployment9
- Macros9
- Painless dependency management8
- RLS provides great IDE support8
- Real multithreading7
- Good package management5
- Support on Other Languages5
Sign up to add or upvote prosMake informed product decisions
Cons of R Language
- Very messy syntax6
- Tables must fit in RAM4
- Arrays indices start with 13
- Messy syntax for string concatenation2
- No push command for vectors/lists2
- Messy character encoding1
- Poor syntax for classes0
- Messy syntax for array/vector combination0
Cons of Rust
- Hard to learn26
- Ownership learning curve23
- Unfriendly, verbose syntax11
- Variable shadowing4
- High size of builded executable4
- Many type operations make it difficult to follow4
- No jobs3