Sell me on RUST. Is it good? Certainly can't be worse than C++, but can it beat Go?

Sell me on RUST. Is it good? Certainly can't be worse than C++, but can it beat Go?

C purists need not reply.
>printf(some_char_ptr) exposes your machine to 14 different vulnerabilities

Attached: Rust_programming_language_black_logo.svg.png (1200x1200, 56K)

Other urls found in this thread:

play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=c792e1280f1eb7eeaba3698e7c8d20f7
doc.rust-lang.org/rust-by-example/scope/lifetime/explicit.html
doc.rust-lang.org/rust-by-example/scope/lifetime/elision.html
grisha.org/blog/2017/04/27/simplistic-go-web-app/
arewewebyet.org
twitter.com/SFWRedditVideos

This is clearly b8. There is no way that you are asking this seriously

Why would I be? C++ is a nonstop stream of cancer
> [[nodiscard]] constexpr auto noexcept

C is fine, I guess, but horribly insecure.
>mfw format string vulnerability in sudo
>https: www.sudo ws/alerts/sudo_debug.html
>not even the biggest GNU neckbeards can write secure C code

And I just kinda like go because of the go keyword.

Now tell me if RUST is worth looking into pls.

Any software engineer/dev who is not shit would realise that every language has methods/structures etc that can lead to vulnerabilities. Jumping on the C/C++ hate train because "ugh insecure code" doesn't make you look smart. Every language can be insecure if a retard is programming it. Even Rust and Python have their shitty problems. If some retard is programming there will always be vulnerabilities no matter what language.

Also funny how Firefox is written in Rust and is riddled with use after free and memory corruption bugs. So much so that Firefox exploits aren't even exciting anymore to many people. Chrome on the other hand it written in c and c++ and is one of the most if not the most secure browser.

Don't be disingenuous, Firefox only has a small amount of Rust code right now, namely the CSS engine.

My point stands though, any language can be insecure as you want it to be. Few software Devs in any language have even the slightest idea about secure practices.

Back to your original question is, if you are looking into it as a hobbyist then sure, look into it. It's an alright language and it has quite a big community (from what I remember, haven't touched it in a year or so). But for a career? I wouldn't

Also to answer the other part of your question. Performance Rust>GO but actual programming GO is way quicker to just throw stuff together

IMO the best parts of Rust have nothing to do with safety/security. Algebraic data types, pattern matching, traits, modules, Cargo, etc.

does it come with any good GUI frameworks? Electron frontends with Go are hard to beat.

Why do you keep spreading the same misinformation over and over again? The Firefox browser is a polygot project, it has components written in C++, ASM, C, JS and Rust. The leaks are from the C++ codebases.

Whereas the new webrenderer is written in Rust, and it's has improved Firefox's performance since Quantum.

It's like writing C++, except with modern language features, sane syntax, a modern standard library that uses its modern language features and a compiler that discourages you from writing code that is likely to lead to bugs and incomprehensible memory management.

Breddy good shit.

>My point stands though
No, actually, you're point is invalid.

I tried to learn rust, but it frickin' started out with trying to teach me how to do a bunch of unit tests? wtf!

Attached: 1542041235360.jpg (480x333, 16K)

Quantum actually made worse Firefox performance.

Proof? I have statistics that it did otherwise. Pre-quantum firefox was dogshit in my experience too.

>The leaks are from the C++ codebases.
cuz all the competent C++ programmers work for the Googs

No it didn't

... and still leaks memory, crashes unexpectedly. Great job.

How? Excluding the Rust Firefox issue, what else have I said which is wrong? I can write perfectly secure C code and I can write the most insecure pile of shit rust code. These bullshit "secure languages" have been peddled by hipster programmers for ages and I would like to see one that is actually valued by anyone outside the rust community. Oh wait, are you waiting for Rust to "take off"? You will be waiting a while...

The only time I've ever seen chrome's crash recovery is after I force-shutdowned my computer. The fuck you doing on your toaster?

Agreed. It's a language that's mostly pleasant to write and read.

werks_on_my jpg;

>If some retard is programming there will always be vulnerabilities no matter what language.

Well, then apparently every single programmer who works on C programs is a fucking retard because every single C program there is is full of errors that are ridiculously difficult, if not impossible to do in other languages.

GUIs are probably what Rust does the worst at the moment. The problem is that pretty much every existing toolkit is written for C++ or some other object oriented language and getting Rust to work nicely with that kind of structure is hard.

It seems it's not too difficult to use a web front end with Rust either if you want something like that.

Image reply

learn your syntax senpai

I honestly believe it beats Go in everything

Firefox crashes more since they decided to add a new language to the polyglot mess you referring to.
They are scared to migrate it to Rust because if they do probably in 4 years no one will be able to maintain it because their employees will be no longer productive, demand higher pay because they are the only ones that can program in rust or just simply leave the project.

Go is easy to beat. Because FFI cost is around ~40 times.
>Electron
Grow a pair and take the Gtk/Qt pill.

Before Quantum Firefox was more usable than Chrome, faster and less memory usage.
After Quantum, same memory usage as Chromium but still slower.
And some people I talked to share the same thought.

>_>>
most vexxing parse: the post

>Firefox crashes more since they decided to add a new language to the polyglot mess you referring to.
Another misinformation. If not let's see your proof why adding a language would make a program crash more.

I hope you get paid for your relentless fear mongering.

This is the opposite of reality. Before Quantum, Firefox was well known to be slower than Chrome. Quantum is what brought it up to speed with Chrome.

>pleasant to write and read
fn print_refs(x: &'a i32, y: &'b i32) {
println!("x is {} and y is {}", x, y);
}

>Before Quantum Firefox was more usable than Chrome, faster and less memory usage.
Factually wrong, there are public independent benchmarks that disprove your false information. Even phoronix results say how firefox improved after quantum.

sad but true. Firefox still sucks

Attached: chrome_vs_ffox_12.9.2008.png (570x431, 5K)

Does lifetime annotation scare you?

>accuses pepefags of believing in stupid conspiracies
>actually believes more ridiculous conspiracies

cognitive dissonance: the post

You don't even need those lifetimes there.

FAKE NEWS
play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=c792e1280f1eb7eeaba3698e7c8d20f7

Is asking for the source of your claim called conspiracy these days?

>polyglot mess
Which browser is not polygot?

lynx

...

>Firefox only has a small amount of Rust code right now
Firefox has 1.3 million lines of Rust

I asked for browsers, not pretentious CLI garbage.

doc.rust-lang.org/rust-by-example/scope/lifetime/explicit.html

netscape 2

Im a Firefox user because it provides me with the tools i need, before they update the meme core with all this supposed top notch performance it crashed less you just in denial like the Gnome folks, eventually i will just stop using shit software its clear by you wording that you are a F2S activists

doc.rust-lang.org/rust-by-example/scope/lifetime/elision.html
>Some lifetime patterns are overwhelmingly common and so the borrow checker will implicitly add them to save typing and to improve readability. This process of implicit addition is called elision. Elision exists in Rust solely because these patterns are common.
Go away, liar.

Listen, I really tried to use Firefox. I was forcing myself to use it, but it was still a worse experience/performance than Chrome.

Out of 50 million lines in total. It's all relative.

The fact that shitty devs can make insecure shit in every language doesn't mean that there aren't languages that are a security nightmare when compared to other languages.

>deprecated garbage from the previous century
try again.

I wasn't talking about firefox vs chrome, I was talking about pre quantum ff vs ff now. Try reading the posts you reply to.

Can someone please remind me what language LLVM is implemented in? (Cough cough c++ cough). If c++ is so bad I guess Rust has built it's foundations on a shit language

>i will just stop using shit
You seem to be under the impression that I give a single fuck what you want to use or not.

in the end it's all ASM

I argued pre quantum ff was better than chrome, and post quantum ff was worse than chrome.
You can deduce it with little logic knowledge.

If you have to keep shifting goalposts to justify your position, it's not a very good one famalam

Attached: download.jpg (300x168, 8K)

Can someone please remind me what language C++ is implemented in? (Cough cough ASM cough). If ASM is so bad I guess C++ has built it's foundations on a shit language

Most C++ compilers are written in C++ and are self hosting.

Can someone please remind me what language ASM is implemented in? (Cough cough electronic transistors cough). If electronic transistors are so bad I guess ASM has built it's foundations on a shit technology

C++ has readability issues but you can eliminate most of that with macros and typedefs. It's how I usually manage it. IMO the Rust borrow checker is too restrictive and reason correctly about some actual safe code sometimes, and this means you have to wrap it in unsafe which defeats the whole point. You're better off sticking to C++ and using modern principles like RAII and smart pointers. In fact, if you just naively write an application completely using std:: types and containers your application will be just as safe as any Rust program.

So yes, Rust's only true advantage is readability. But there are ways to mitigate that as well. Actually cargo is also excellent. I wish C++ has something similar with modules some day. But cargo is not enough for me to do Rust fulltime because 1. Lack of good jobs and 2. C++ has a way better ecosystem of libraries

Go ahead, enjoy LARPing as a Lynx faggot if you want Jow Forums gold

> pre quantum ff was better than chrome
Hasn't been true for the longest time

*can't reason correctly

Still can't do shit without being compiled to ASM. What a useless pile of shit.

Gratz, that's the most retarded post on Jow Forums today.

You deserve a break (of the neck)

you seem under the impression that i care about a meme language in my browser

Go to hell, dumb phoneposter. It's all about 0s and 1s.

>Lynx isn't polygot

Attached: Screenshot from 2018-11-25 03-14-31.png (2026x448, 46K)

Rust is compiled to asm too

Struck a nerve, didn't I?

>unsafe which defeats the whole point
But that's wrong, even if the only way to work around the BC in a specific case is to use unsafe (which isn't that common) then you haven't undermined the rest of your code or anything. It's all about minimizing the amount of code you have to audit. No unsafe code is best but 1% unsafe code is a lot better than 100% unsafe code.

that's like saying that a random C programing is polyglot because it uses make files lol

>there are people ITT who'll actually take this bait

>macros and typedefs
this causes readability issues too (for other people)

name a language that isn't ultimately translated to ASM, go ahead. I'm thrilled to hear about how your processor knows what to do.

>name a language that isn't ultimately translated to ASM
Yea Just like Rust.

>Literally every major C and C++ bug was written by experienced developers
>Lmao just get git gud. I have never made a programming error in my life
Oh and the Firefox memory bugs are from the parts written in C++ you fucking retard.

>You're better off sticking to C++ and using modern principles like RAII and smart pointers. In fact, if you just naively write an application completely using std:: types and containers your application will be just as safe as any Rust program.
I'd like to hear your justification for this.

Rust compiles to WASM too :^)

>every language translates to ASM
>JUST LIKE RUST
>RUST BTFO
what did he mean by this?

>lang X translates to ASM
>t-this means X btfo!! XDD
And these are the "language experts" on Jow Forums

Attached: 1542442490297.png (1092x1050, 120K)

Just have a well documented part of your header that comments on why you're aliasing some ungodly template instantiation to the simpler name and use an intuitive name.

That's was his point you. Do cniles not understand sarcasm?

and WASM compiles to ASM. What's your point

>2019
>still writing headers
LMAO

How the fuck are you supposed to metaprogram in c++ without headers?

something something but C++20

Does anyone pay you to lie and spread misinfo about Firefox and Rust?

It doesn't have cuda support. Actually the dev community is pretty shit and relying on them to fill in gaps in functional coverage is a bad idea. For example, the officialish rust crate for opencl (rust-opencl) is abandonware. So a new implementation had to settle with being called ocl because the first abortion is still on crates.io

CUDA is a vendor lock-in non free DRM.
I'd just wait for Red Hat and IBM to come up with a royalty free, free and open source compute stack.

Not him but the standard library has been completely rewritten with RAII in mind and all heap allocated memory is managed with smart pointers, and anything that needs to be reference counted is. Couple this with the core guidelines rules on threads (how to use a mutex with RAII and custom scopes, etc) and it is much harder to shoot yourself in the foot. You can even use a static core guidelines checker IIRC which will scream at you much like rustc.

>ungodly template instantiation
rate my container printer
template
std::ostream& operator

don't forget ;^)
>Single Responsibility Rule
>Rule of 3/5/0

Not that user but isn't RUST a research project of integrated type systems? It's incompatible with the Turing complete data structure rules, why would you try to use it for industrial machines?

Rust isn't an acronym OP. Stop capitalizing it

Nice shitpost but I know it stands for something with Safety in the name

Go definitely beats rust for web backend but rust is catching up
grisha.org/blog/2017/04/27/simplistic-go-web-app/
arewewebyet.org

> too restrictive
It's designed to keep smartasses like you from thinking they know better than the compiler and introduce obscure bugs.

Attached: 1489348495573.jpg (536x598, 82K)