[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Rust

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 82
Thread images: 6

What went wrong?
>>
Nothing
>>
>>59205624

>Two years since release and no serious real-world usage.

>Still impossible to compile to bare-bone ARM microcontrollers.

It's pretty much DOA.
>>
>let's prevent C rookie mistakes by enforcing autistic pointer lifetime limitations
>what's that? explicit pointer lifetimes are making your program needlessly complex???
>oh what's that? you know what you're doing and you don't need you be handheld by your compiler?
>FUCK YOU!!!
>>
SJWs tried to write a language and turned it into a safe space for computer illiterates.
>>
>>59205690

Some of the Rust Team members have no systems programming experience and are are Ruby on Rails and Ember.js contributors.

Literally web developers who think they can replace C/C++ and Haskell.
>>
>>59205613
Mozilla underestimated how hard their design would be to implement.
>>
Too high level for systems programming, too low level for application programming, not expressive enough to be a good functional programming language.
Basically, it's alright, not good/relevant enough to radically replace the fields it targets
>>
>>59205783
/thread
>>
Why is the community "controversial" ? I've heard there is some bullshit over there but what is it ? quick rundown?
>>
>>59206032
if you're not an LGBTQQIP2SAA+ ally, they don't want you contributing to their language or writing code in Rust, and they include this specifically in their code of conduct, which also applies to all languages written in rust.
>>
>>59206079
>which also applies to all languages written in rust
"For other projects adopting the Rust Code of Conduct, please contact the maintainers of those projects for enforcement. If you wish to use this code of conduct for your own project, consider explicitly mentioning your moderation policy or making a copy with your own moderation policy so as to avoid confusion."

I hate CoC's as much as the next guy, but the CoC isn't like the GPL
>>
>>59206150
>CoC
Lol sounds like the cocktail, the human penis
>>
>>59206178
Fuckitb phone corrector guck you goggle and ur piece of should os
>>
>>59205613

>>59205723
>>59206079
>SJWs
Not an argument.

In reality, it's only major use has been Servo, a half baked engine that hasn't even made nightlies yet.
>>
File: 1462682830333.png (208KB, 327x316px) Image search: [Google]
1462682830333.png
208KB, 327x316px
>want to do pointer shit
>YOU CAN'T BECAUSE IT'S TOO UNSAFE
>have to do tedious slow pointer shit instead
>>
>>59205613
everything
>>
>>59205613
Nothing actually.

NSA shills are trying hard to prevent Rust because it's against their interest. Rust makes it harder to produce unsafe programs.
>>
>>59205669
>he thinks two years is a long time after a stable release for industry adoption

It's actually getting adopted by more and more companies.
>>
File: Klabnik.jpg (391KB, 573x929px) Image search: [Google]
Klabnik.jpg
391KB, 573x929px
>>59206296
>NSA shills are trying hard to prevent Rust because it's against their interest.

Klabnik is that you?

Please go back to Ruby on Rails and never come back.
>>
>>59205783
Yeah, the community team and the other retarded actually-do-nothing teams members.
>>
>>59206296
This
>>
>>59206340
Yeah, sure.
>>
>>59206296
>>59206382
Spotted the Web devs
>>
>>59206214
>>SJWs
>Not an argument.
>Implying

>>59206296
Nice try at reverse psychology.
CIA wants SJWs in every corner.
>>
>>59206214
https://download.servo.org/nightly/linux/servo-latest.tar.gz
>>
>>59207269
Those aren't Firefox nightlies.
>>
>>59207302
It's a new rendering engine, that's an immense change and not going to be in Firefox any time soon. Servo's URL parsing library is in Firefox, though.

Regardless, I'm actually more excited about Servo + Browser.html than Servo + Firefox.
>>
>>59207472
Me too, it's really exciting to watch them do nothing and die.
>>
>>59208050
That's a strange thing to find exciting.
>>
>>59206340
> It's actually getting adopted by more and more companies.
Who and doing what?

It takes a while for languages to get adopted, but the real measure for even basic viability is whether they actually DOMINATE one or another niche.

If they don't the bigger languages will fuck them completely once one or another okay lib for the same niche is ready.
>>
>>59206296
/thread
>>
Is there any big projects (not from Mozilla or anything for Firefox) made in Rust?

Better yet, is there any big project made in Rust that couldn't be made (or optimized for their situation) in other languages?
>>
>>59209130
ripgrep is written in Rust, and is faster than essentially every other grep tool. It could have been written in other languages, but wasn't.

Diesel is a SQL ORM that takes special advantage of Rust's type system. It's immature right now, though. While using it for my personal projects I had to step outside the type checking a few times to do things the weren't yet supported by the library. Rust is also missing a specialization feature known as "lattice impls" that will allow Diesel to compile time check a wider variety of queries.

I use ripgrep every day, and have high hopes for Diesel to be the best SQL library there is once it develops a bit more.
>>
>>59209130
Dropbox.
>is there a language that's more-than-turing-complete?
what did he mean by this?
>>
>>59209346
Sure Rust offered something special to be used in those projects that other languages couldn't offer, that's what I'm asking.

Like he said >>59209266
>>
>>59209266
> have high hopes for Diesel to be the best SQL library there is once it develops a bit more
I don't have any hope before 5+ years. This isn't even as good as many of the early Scala SQL interfaces used to be about as many years ago.

Granted, it has a harder problem to solve - it can't even abstract some DB specific stuff through existing mature JDBC drivers... but that just means it'll probably take even longer to mature.
>>
>>59209130
> Better yet, is there any big project made in Rust that couldn't be made (or optimized for their situation) in other languages?
Haven't seen anything like that.

As much as I wish the newer, more functional languages success over the old crusty fossils, Rust just seems to not really make a good case at all as for why you'd want to use it.
>>
>>59209909
It doesn't need to. C and C++ make Rust's case for it.
>>
>>59209266
>ripgrep
Hobbyist project, not exactly large, and searchers written in C++ outperform it in benchmarks that aren't blatantly rigged

>Diesel is a SQL ORM
Those things are snake oil, anon

>>59209346
>Dropbox
Written in Go and they've posted dozens of blogs about how they moved to Go from Python
>>
>>59210000
>he doesn't know that dropbox moved to rust
lol
>>
>>59210017
They didn't move to Rust.
>>
>>59210000
>real existing highly useful programs are snake oil
huh... really makes you... how to day.... /ourthink/
>>
>>59210023
Whatever helps you sleep at night.
>>
>>59210000
>blatantly rigged
I've tested it myself on my own filesystem, on the type of queries I do all the time, and it is faster than at least GNU grep and Ag almost every time. The author did a fairly detailed write-up of his own benchmarks and the optimizations involved in each test: http://blog.burntsushi.net/ripgrep/

Do you have a link to some benchmarks where ripgrep performs poorly?
>>
>>59205783
this

Rust is a cumbersome language.
There are a few things that make it good for general application development, like patterns, the match statement, and ownership.
But overall, Rust leads to ridiculously verbose code for no real benefit 99% of the time.
It's object model is shit.
Let bindings are autisticly verbose.
To do anything meaningful you need unsafe blocks.
Rust uses macros for just about everything, and Rust macros are even more unreadable that C/C++ macros.
For not being faster than C++ it compiles 5 times as slow.
The only people who use Rust are brainlets who can't into C/C++.
It's not worth it, no one uses Rust outside of Mozilla.
>>
>>59210112
Hello NSA employee.
>>
>>59210149
Not an argument
>>
>>59210160
Not an argument.
>>
>>59210201
Not an argument
>>
>>59210221
Nodham Armament
>>
File: nodanargumend.jpg (9KB, 220x255px) Image search: [Google]
nodanargumend.jpg
9KB, 220x255px
>>59210250
nod an argumend
>>
>>59209997
C/C++ will never go away no matter how hard you wish for it.
>>
>>59210703
Rust is making them go away since it perfectly fills both their niches and then some while also being simpler and smaller than even C, with fuckall undefined behavior unlike C.
>>
>>59210772
Every language has undefined behavior.
>>
>>59211812
No.
>>
>>59210772
>making c/c++ go away
HAHHAHHAAHAHAH
Yeah no. In your dreams shill.
>>
>>59210772
>also being simpler and smaller than even C
No sane person could possibly believe Rust is simpler and smaller than C.
>>
>>59206296
This so much
>>
>>59212219
This, shills are pathetic.
C is the epitome of simplicity, in fact it sacrifices literally everything for this.
C++ is a whole other clusterfuck however.
>>
>>59205669
Rust is more widely used than Haskell
>>
>>59205783
You don't need system programming experience for most of the bugs. 99% of the language is in the standard library and the core is only touched by very experienced people
>>
>>59207173
>CIA wants SJWs in every corner.
Are you kidding the intelligence community is even more conservative than the army
>>
>>59208575
autism
>>
>>59210112
>To do anything meaningful you need unsafe blocks.
What the fuck are you talking about. If you don't do kernels or drivers you don't need unsafe block.
>>
>>59212509
So what are you doing instead and why are you using rust for it?
>>
File: 1448244690111.jpg (354KB, 603x900px) Image search: [Google]
1448244690111.jpg
354KB, 603x900px
>>59205669
>literally every copy of firefox contains rust code
>firefox codebase contains a copy of servo
>no real-world usage

???
>>
>>59212512
Literally everything else
>>
>>59212438
The head of Obama's CIA voted for a fucking communist party
https://en.wikipedia.org/wiki/John_O._Brennan
>>
>>59212578
>having to waste time and energy overengineering your data structures just to convince the borrow checker that you haven't over-stepped your bounds
>not just writing Lisp or Go with a fast-enough GC
>>
>>59212300
>C is the epitome of simplicity
nice meme, C was always just a necessary evil, now deprecated, but somehow a cult on /g/
>>
>>59212732
By the way go is amazing, I'm switching the whole PHP codebase of my company to Go.
>>
>>59209266
>best SQL library

diesel is a funny way to spell persistant
>>
>>59205783
Rust is the product of web devs trying out C and then saying "Why does it give me seg faults? How can be make it stop doing that?". So they made everything so deeply restricted that seg faults are impossible.

And then they have the gall to go up on stage and say that they've written a language has both safety and control. Yea buddy it turns out that's not difficult if you don't give a fuck about complexity.

The rest of the language is littered with syntactic sugar to make up for the owndership/borrowing bullshit.
>>
>>59213059
Diesel supports joins.
>>
>>59206284
Any language without pointers and strong typing is a joke for any """"""""""""""systems"""""""""""""" programming because pointers and data types are inherent to the operation of a computational device. Any language lacking strong pointer and typing support is not a """systems""" programming language; it's just a programming language for non-computer folk (i.e. data scientists, scientists, businessmen, educators, etc.) to compute their work. Which is fucking great and the only reason we really have computers, but these languages aren't realistic replacements for languages used to make computer systems.

Stop fucking telling me I can do everything I can do in C in your shitty language without real pointers. I can't, and you can't.
>>
>>59209997
>I can't use C because I'm an idiot, so therefor C is a bad language because it doesn't hold my hand while it walks me to daycare
pajeet spotted
>>
>>59213366
Rust has raw pointers and stronger typing than C.

Why do people keep posting critically in these threads when they know nothing about the language?
>>
>>59213398
>pajeet

whoa cool
memes

i love memes
>>
>>59213403
They think the language is too restrictive because they couldn't get their fizzbuzz to compile.
>>
>>59213841
What?
>>
>>59206296
/thread
Thread posts: 82
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.