So i wanna either learn Rust or C++/C/C# What's the benefit of Rust over C languages, also i only have experience with Python, is it gonna be hard to learn Rust?
What is Rust used for and can it replace C?Any tips i should know or any books i should read to begin with Rust?
Rust is for mentally ill trannies who can't into C++
John Gray
>caring about the users of a product over the utility it provides
Connor Lewis
I dont give a shit about your hate over anything i just wanna know what i first posted. Any non brainlet can provide?
Brayden Price
Take it to /sqt/ or /dpt/ then, this shit doesn't need a new thread, ya freakin' attention seeking jabroni.
Brayden Ramirez
Disclaimer: I'm bad at rust
Rust can completely replace C or C++, that's one of its goals. The benefit is safety. The compiler brings type-safety that isn't present in C, as well as memory-safety, and some concurrency guarantees. Rust is really hard to learn, especially lifetimes and references. But it's worth it to do so, since it really is a nice model. Start with the rust book, it's basically the standard resource for learning the language. doc.rust-lang.org/stable/book/
Liam Martinez
Serious answer for once because I'm bored of shitposting for the day Rust is mainly designed to replace C++, and tries to be a better C replacement than C++ ever was. It removes most of the C/C++ footguns around concurrency and shared mutable state, and greatly limits the number of ways you can introduce accidental data corruption, which is currently the main cause of security problems in production code. C# does some of the same things, but the .NET runtime has a lot of overhead (for garbage collection and online compilation) that's unacceptable in some niches (libraries, games, kernels...). Python is even worse about that part but at least C# is pretty fast. C, C++, and Rust are all much faster though. They're usually within 5% speed of each other on comparable programs.
Henry Butler
Definitely learn C first. There's plenty of learning material on it, pretty much every important algorithm written in the 20th century has a C implementation for you to study. And you can get real experience looking at open source C projects. Rust is too new to justify a noobie learning it. If you want to learn rust, learn C first.
Yeah everyone keeps saying its hard but a fast look at the begginers guide on getting started, i think i can just straight learn Rust from scratch since i know a good amount of python and pretty much every programming language works in the same way in some parts like they all have variables/funcrions etc. like fn main() { println!("Hello, world!"); } this wouldnt make any sense for a starter into programming i think but since i know python it looks pretty much the samedef main(): print('Hello world!")
main()
Jackson Evans
> >Yeah everyone keeps saying its hard but a fast look at the begginers guide on getting started, i think i can just straight learn Rust from scratch since i know a good amount of python and pretty much every programming language works in the same way in some parts like they all have variables/funcrions etc. like >fn main() { > println!("Hello, world!"); >} >this wouldnt make any sense for a starter into programming i think but since i know python it looks pretty much the same >def main(): >print('Hello world!") lol guys look at me, I am a retard
Connor Hill
update, what is this python v2? the syntax look more like python than anything else even the strings and variables like wtf
yeah look at me caring for your user opinion fucking brainlet, bet you cant open the text editor and have opinion on syndax examples
Jayden Cruz
A lot of people do switch directly to Rust from Python/Ruby/JS, and you can definitely learn Rust from the tutorials with no other experience. But if you're going to do that you shouldn't talk about it on Jow Forums because everyone here expects you to do something manly like cutting yourself with power tools, which is pretty much what you're in for with C++.
Charles Cruz
The benefit of never finding a job and living as an sjw neet
Hunter Morgan
If you are not in rush to learn C++, Rust is far easier to comprehend when it comes to resource scoping model and type system. It could teach you a lot. C++ is mess and is harder to find proper resources to learn it. You have exceptions and exception-safety, new features not adopted into standard library which can create scenarios and crappy dependency management and build tool on top which is not desirable when you are still learning the programming itself.
>hello world in a language looks similar thus it's easy to learn the language
Jaxon Powell
>What a useless language. In R, it is just "Hello, World!";
Jaxon Hill
it was an example moron, the strings and everything else is pretty much like python/ruby now kys
James Sanchez
rust is c with kiddie wheels. you won't fall that easily, but you won't fit in some places.
Cooper Cox
> much harder to find resources > learncpp.com is mostly all you need
Kayden Myers
>So i wanna either learn Rust or C++/C/C# Learn C >What's the benefit of Rust over C languages, None >also i only have experience with Python, Good, python is a nice skill to have >is it gonna be hard to learn Rust? Rust is shit, don't punish yourself with rust, learn C >What is Rust used for Spamming forums, bug trackers and mailing lists with "rewrite it in rust" >and can it replace C? No >Any tips i should know or any books i should read to begin with Rust? Fuck rust and read K&R
David Rogers
So the syntax for strings is the same as pretty much every other programming language that ever existed, going back to assembly, wow.
Nathan Morgan
I like c#, it looks good
Ian Nelson
I would use C# if it was compiled language and didn't need vm.
What is your plan with programming language? To knew one? Go with Rust it's fine To create a desktop/mobile projects? C++/Java For ICs? C has no substitutions.
Xavier Cox
>Rust is far easier to comprehend when it comes to resource scoping model and type system. It could teach you a lot. I hate the "far easier to comprehend" argument. People who are new to programming needs to learn programming. All of it. It takes time and that is okay. It is a useful tool, but it is not for everyone.
>C++ is mess and is harder to find proper resources to learn it. You can't learn everything from a single resource, sure. But that doesn't mean it is hard to learn. >You have exceptions and exception-safety, Not the first thing I would explain, but not something that is really hard to learn. >new features not adopted into standard library which can create scenarios and crappy dependency management Solved problem, just use a build system. >and build tool on top which is not desirable when you are still learning the programming itself. Learning the build tool is definitely underrated, but it is a secondary thing to learn. Something like making a Qt application that runs several threads and talks to another application is hard, but it doesn't take a semester to learn. I know because I teach this and a lot more in a single course to people who can't even look up documentation, let alone compile code without visual studio when we begin.
In general, the "awesome" repositories for various languages are not bad, for anyone that doesn't know them. Just google github + language + awesome
Jayden Garcia
Related to OPs question, I would like to know if you have any insight what to use if you want to give your Rust applications an attractive, NON-BUGGY user interface (mainly on Windows).
Xavier Diaz
Rust sucks so bad that every big company that ever used it wants to get rid of it ASAP.
Matthew Kelly
Make a static or dynamic library in Rust and use it from a program in C# written with WPF or something like that.
James Peterson
you should use C# because it's the first class language of all the windows frameworks, possibly Qt if you also want other platforms, or rust bindings to Qt if you absolutely want to use rust even though it'll be 10x more difficult than Qt Quick for no benefit
Aiden Adams
It depends. Do you need a job and are learning a new language to make yourself more employable? Learn C or C++. Do you just want to learn about systems programming and aren't looking to expand your resume? Learn Rust.
Easton Jones
Java is faster than C#
Matthew Ross
Well Erlang has better data race safety than Go, but we aren't fucking talking about Go or Erlang or Java now are we OP asked about C# which is why I mentioned C#
Easton Rivera
As of their CoC I'd strongly recommend learning C instead of Rust
Owen Stewart
daily reminder Rust is only 3% slower than C
Anthony Torres
But let's help OP tho, I suggest he sticks with Java until 2019 net core release, even after that it'll be at least 2 -3 more years until people will start to develop as many libraries as there are for Java
Anthony Lopez
fpbp
Tyler Sullivan
What are these libraries that are missing that everyone keeps clamoring about? What do you actually need? There's game engines, networking, gui, 3d graphics, 2d graphics, math libraries, etc
Isaiah Baker
Proof?
Juan Perry
There's no jobs for Rust programmers. And even if you manage to find one, it will pay you shit. RUst's for stupid hipster faggots and communist ANTIFA, anti-white types.
Learn C first. C is really important if only for historical reasons, all that software that is still in wide use out there and that is still being produced. Dig deep enough in most software and you find... guess what? yep C. SBCL is the only software I know of that gets bootstrapped using lisp itself. I know of no hardware that doesn't have some sort of C compiler written for it, heck hardware manufacturers are expected to provide you with a C compiler if they want to have any cut of the market. BSD is written in C, damn! that code base is a thing of beauty, I think learning C is worth the while just for reading it. C is the only language I shill hard besides LISP, the rest I pick up on a `right tool for the right job' basis. Live long enough and you'll need to modify some C program. So user do yourself a favor and in the tradition of all real hard ass neck beards learn yourself some C.