Rust

Will this programming language change the world by making systems programming accessible to the masses?

Rust will never be taken seriously simply because it's made by Mozilla

It's happening, I'm getting paid to write Rust right now, and I'm not working for Mozilla.

I'd say in 1/2 years it will have taken off for real.

maybe
/thread

Meme language that is not even half as elegant or useful as its fanboys make it sound.

Serious question: why is it so fucking ugly?

It won't change the world, but it might make my job slightly more pleasant. Only time will tell.

Because they took syntax ideas from C++.

redoxOS looks promising OP

bastard child of c++ and ml ... mixed with the most retarded coding style

better than golang desu

Waaahh, the syntax for generics is slightly hairy, waaaahhhhh.

Come up with a better unambiguous syntax for an Algol like language and I'll send you dragon dildos.

Unironically Java or C#
dildos pls

I don't think that is what are complaining about.

But C is accessible to the masses.

systems programming is a niche that doesn't have to be accessible to the masses

I think knowledge of heap/stack and memory management is necessary to understand Rust. If you've used C shit makes sense and is quite elegant. Without proper knowledge "masses" will constantly be confused about thing like strings or won't understand why they need to things in a certain way.

Just browse github for C ini parser or check out enlightenment or libexif and see what happens when C meets the masses.
And given how bad flex and bison are, C most likely shouldn't even meet experienced programmers.

Also , but of course that doesn't mean that RAD languages should be slow.

>flex and bison are bad
Is there anything that does their job better?

I would even put up with that pile of overcomplicated garbage if it only compiled much faster. But I'm *not* getting myself into another c++, that drained all my love for programming away

>C most likely shouldn't even meet experienced programmers.
What are you talking about?
Just pick up K&R and work on it seriously, it's not hard to learn C.

>literally every non-trivial library has 6 gorillion instances of 'unsafe'
utterly useless language
In any case, C++14 and 17 already stole its thunder

>still no portable networking library in the standard
reee I want it now

Rust gets funds from mozilla and other sources, it's backed by mozilla, not made by it. Also, mozilla stood up for open source more than any other companies. The irrational hatred towards mozilla is entirely sponsored by Microsoft and Google.

Rust will not flourish because of a different reason. It takes away the fun in programming. Perhaps if there was a language that is based on Rust and is not pedantic over security it would beat C/C++ quite easily.

In fact, people are fed up with C/C++ so much that if there is any new systems language that does not have GC and easy to program with, most people will jump ship.

In terms of proper encoding support and usage, ANTLR or Lemon.
In terms of algorithms, any marpa parser.
In terms of ROI, any handwritten recursive descending parser.

>it's not hard to learn C.
It isn't. It is tedious to use it and moronic when for almost any task there is a better tool. The complete language environment is abysmal to a degree where JS can compete in terms of quality.
And what's worse, people who learn C first have to unlearn the ad hoc ways of utter garbage like void pointers and textual replacements or learn the fact that preallocated, dynamic arrays almost always beat linked lists on modern computers because for some reason most C material teaches linked lists.

C++ is meant for windows

The C++ spec is not tied to any one OS.

>lemon
I kinda forgot this existed, might give it a try next time I need a parser.

C is a good first language precisely because it's tedious. Certainly much better than learning bad habits with Python, at least.

stdlib is

This 2bh

In what way is the C++ standard library meant for Windows?

>something is good because it's tedious for no good reason
You know, that argument only works if that tedium came with an advantage like proper code.
Instead, every C programmer is a sloppy waste of food.

>Certainly much better than learning bad habits with Python, at least.
>Comparing shit to piss.
Ok.

What's a good first language then?

>good first language
That's not a good measure, since a good first language isn't neccessarily something you'd actually want to program in.
A good first language is anything that teaches quickly about variables (not even necessarily static typing or manual memory management) and basic flow control up to functions and then can be discarded for a industry standard, feature rich programming language.
There just shouldn't be retarded things like header/implementation, shitty set up procedures and bizarre conventions in the way.
So stuff like Logo, Pascal, Lua, Kotlin (because it can be reasonable subsetted), Quorum etc goes with a reasonable instructur.

Java and C# generics are a joke, no wonder their syntax is simpler.

Everything else is typical in Algol family languages.

Short answer: No.

Kek. The only thing sponsored by Google is Mozilla itself. I bet Chrome development cost Google a fraction of the money they paid them.

>Algol family languages
That alone is not such a virtue. Well, according to the scientists that created Quorum.

This is a function that takes two strings and returns the longer one. And it's ugly as fuck.
fn longest y.len() {
x
} else {
y
}
}

what the fuck is even 'a

Lifetime, it tells the compiler that the input parameters have the same lifetime as the output

IIRC it's meant for static lifetime

why can't the compiler figure that out on its own?

did you just assume its lifetime?

Why would one do that?

do something like
strings.sort().nth(1)

It can, this is a retarded example that could be written without the 'a's.
You have to specify it when there's more than 1 lifetime

Not the same

>this is a retarded example that could be written without the 'a's.
This is the lifetime tutorial straight from the official Rust Book.

C# generics are decent but Java is nothing more than a fucking typecast macro

Those two statements are not mutually exclusive

fn longest(a: T, b: T) -> T {
if a.as_ref().len() > b.as_ref().len() {
a
}
else {
b
}
}

fn main() {
println!("{}", longest("you", "faggot"));
}


> rustc op.rs
> ./op
faggot

>Algol like language
>typical in Algol family languages

>saying Algol when you mean C
Algol family languages do not have any of this retarded crap. Algol 60, Algol 68, PL/I, Pascal, Ada, and Eiffel do not have any syntax (or semantics) as disgusting as C, C++, or Rust.

>Well, according to the scientists that created Quorum.
The Quorum people were talking about C syntax, not Algol family language syntax.

>

>slightly hairy
Thats a big fucking understatement

>masses

That is a goal of GuixSD, by using and easily learned language like Scheme in order to configure and administrate their own systems down to fine details, plus be able to install packages without needing root access so the masses can now use Guix pkg mgr to install whatever they want at work or school instead of having to fill out paperwork and req T. Pajeet sysadmin to install proprietary software for them as he holds admin passwords.

Data is also never destroyed in these systems, taking snapshots that can be rolled back so the average joe has no fear of losing all data anymore if he fucks up some config option.

Rust will just be some abstracted away lower level thing that no reg user will ever know about just like they don't know about C either.

Point taken, typical in C-like syntax languages, still, the point still stands.

It's not any uglier than C, C++, C#, Java or whatever else.

what's wrong with C?

anyway, since Sup Forums supports Rust I will avoid it. I learned my lesson

Everything, also Sup Forums likes C and hates Rust, so you're getting it backwards.

There are only two people in the planet who actually use this decrecated silly meme would-be language. The problem is, they both keep posting these pointless threads on Sup Forums.