What is its purpose?

What is its purpose?

Other urls found in this thread:

developers.slashdot.org/story/17/07/16/1715256/techcrunch-urges-developers-replace-c-code-with-rust
doc.rust-lang.org/1.8.0/book/inline-assembly.html
techcrunch.com/2017/07/16/death-to-c/
twitter.com/AnonBabble

Replace C(++)

(spoiler: it won't)

Pajeet safe fast language.

Get rig of C/C++ build hell (unless you stick with good old makefile ofc) and eliminate mistakes of retard chads in your team just by choosing different language.

Promote accepting bigg CoCs for everyone

Someone made a language designed for autistic people.
The amount of pedantry that the borrow checker enforces is hilarious.

>he got stuck in the fighting the borrow checker phase
Brainlet.

Nah. I just find specifying that a member of a struct will probably live on as long as the struct a bit silly.

To be shilled on messageboards far and wide

The acronym CoC triggers me, i'd appreciate an acronym that does not have phallic connotations

to troll, plain and simple.
Otherwise, how do you explain this:

developers.slashdot.org/story/17/07/16/1715256/techcrunch-urges-developers-replace-c-code-with-rust

>let's replace a language that's causing us immeasurable damage with one that is just as capable and can prevent an entire class of errors
What is there to explain?

>just as capable
It actually isn't.
Or it wouldn't be able to eliminate any class of error.

C has not caused damage, morons have
Rust is not nearly as capable as C, its not even on the same planet anymore.

If they wanted something to replace C while maintaining its strengths but none of its weaknesses, Ada/spark would be the best choice. (Check out the 2012 standard, its awesome).

Rust is plain and simple: garbage.

The genocide of the white racev

Where is your proof that it is just as capable?

Where is your proof that it can absolutely prevent memory errors

This language has been around for a couple years, why are shills implying it can beat something that's been around for 40.

Introducing: DIC, the Delight-Inducing Conduct rules.

>hurr this language is old therefore it's more capable

seriously? and you browse a tech board?

>>just as capable
>It actually isn't.
>Rust is not nearly as capable as C, its not even on the same planet anymore.
>Where is your proof that it is just as capable?

Rust is definitely at least just as capable as C because it does let you write unsafe code if you so desire.
It doesn't "prevent" an entire class of errors but it's a big step towards minimizing them.

I think the point is that C survived 40 years of vetting while Rust is largely unproven

it's a language designed by autists for autists that has a syntax uglier than perl and a learning curve steeper than C++ & C combined

Neither of these are proofs

>Neither of these are proofs
Rust supports inline assembly and is therefore just as capable as C
doc.rust-lang.org/1.8.0/book/inline-assembly.html

>Rust supports not doing rust and therefore rust is as capable

hahahaha my sides -> orbit

Stupid questions receive stupid answers.
If you want someone to properly argue whether or not Rust can do everything C can then maybe you should try giving an example of a thing that Rust can't do.

Sane syntax for systems programming.

The Safe Space of programming languages

>it's a language designed by autists for autists
That's Idris

how is rust thread safe? are all types atomic or something?

Global runtime lock

unless there's some more itricate trick than going into unsafe, it doesn't allow to share objects mutably into multiple closures.

Are you now trying to argue that unsafe is not a part of Rust?

>thread safe
It guarantees that nothing is accessing a variable while it's being mutated, that's it.
You can still fuck other shit up.

I'm telling you that going into unsafe didn't convince rustc to allow it.
You may want to check your reading skills, since they are obviously lacking.

yeah im reading docs and theres nothing special about it, you still have to use mutexes, futures or message queus, just like in c/c++

>You may want to check your reading skills
That's a matter of perspective. The way I see it is that you asked for an "intricate trick" that doesn't involve unsafe, not one on top of unsafe.

Either way if you're using unsafe then you should be sharing pointers, not references.

Well it failed horribly at that, the syntax is uglier than APL or ATS.

*a more intricate trick* where does that say it should be without?
You should really check with a literate person

Why would I want to pass around pointers? I was mostly in unsafe because the entirety of x11 seems to be unsafe for some odd reason

techcrunch.com/2017/07/16/death-to-c/
techcrunch.com/2017/07/16/death-to-c/

>where does that say it should be without
Where does it say that it should be with?

>Why would I want to pass around pointers
Because you're trying to do something that's unsafe.
You tried to use safe constructs in an unsafe way and now you're complaining that it doesn't work.
Unsafe doesn't magically remove all restrictions, it just gives you low level tools to work with.

Call me when you can write safe code in rust (a la framac).

Where can I get a Rust crankset?

>Unsafe doesn't magically remove all restrictions, it just gives you low level tools to work with.
But that's retarded.
It literally says "unsafe", not "pointerized"

Why would I want to break compatibility with existing frameworks because I need to go into unsafe to convince the borrow checker it's being stupid?

>convince the borrow checker it's being stupid
You are obviously trying to do something stupid.
Having multiple mutable references is unsafe.
If you really want them then you can take a reference, cast it to a pointer, and dereference it as a mut reference.

Better than C though.

No need for unsafe just use RefCell

Rust is Java for Ctards

Analogies are comparisons for Sophists.

I want to learn Rust coming from C++ and Python
Is it worth it?

It's anyone's guess whether it'll actually take off.

>you still have to use mutexes, futures or message queus

No shit.

What Rust does is doesn't let you NOT use those. It prevents data races

Puts academia circlejerk type system to low level or high performance programming