[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]

2017 Will be the year of 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: 126
Thread images: 13

File: Rust General.jpg (35KB, 1680x1260px) Image search: [Google]
Rust General.jpg
35KB, 1680x1260px
Also Rust general.

Anyone writing some optimal statistical analysis software to measure the likelihood of terrorist attacks?
>>
File: 1478396744311.jpg (24KB, 308x450px) Image search: [Google]
1478396744311.jpg
24KB, 308x450px
just use R, rust is a meme language which is made by the epitome of cuck software manufacturers mozilla.
>>
>>58202646
Step 1: "how many Muslims live here?"
>>
>>58202675
>interpreted
dropped
>>
>>58202777

kek is never wrong. probably using that variable within a hawkes process somewhere

checked.
>>
>>58202646
anyone else being that "asshole who's pushing rust" at work?
i just got a crates.io clone up on our intranet
>>
>>58202845
i meme it within my social group. got at least one to try it out
>>
>>58202845
how do you find the quality of the crates to be?

considering rust for a big project and i wanna be lazy and use as many libraries as possible
>>
>>58202892
>i wanna be lazy and use as many libraries as possible

Sounds like NodeJS is the perfect solution for you.

Buy my NodeJS book:
"How to accomplish very little with a lot and look like you're working."
>>
>>58202892
i love the crate system, it's super easy to use.
the crates index (server that hosts it) just stores the source code that cargo downloads, and lets your computer compile the libraries
>>
>>58202920
it was just a joke.

i was only pretending to be retarded!
>>
>>58202845
>using a debunked meme at work
>things that definitely happened
>>
>>58202646
I'm writing a symbolic computation library to be used as the backend for a machine learning framework, using arrayfire to support cuda, opencl and cpus all at once. It's breddy gud.
>>
>>58202892
Some are shit (basically ignore anything that's version=0.1.0, typically it's literally just a pass-test and no actual code), some are just C bindings, but those that fit neither category actually have surprisingly good quality in my experience, compared to python or C.
>>
>>58203584
do you have a repo?
>>
>>58203136
>meme
>growing usage every month
>>
>>58203717
Not yet, shit's too early. I'm doing this entirely in the odd offtime I get. Right now I have working partial derivatives for dot product and addition between arbitrary, up to 4D, tensors (and of course the forward, and utility ops like summing over the entire tensor, creating a constant tensor that's "like" another tensor as an op, and transpose), a system that allows running optimization passes over the graph when that's implemented (far future), and an architecture that makes it fairly easy to add new ops.

I have to write tests and benchmarks, then add the core ops (sub, div, sum across axis, mean, exp, pow, elemwise mul, and conv, should take less than an hour to get them all in but tests will take longer), then I can publish.
>>
>>58203857
Most of those are a single function, like Node.js, since that's the culture all of Rust's users are coming from. All 300 of them.
>>
>>58203948
hopefully lots of that shit consolidates later into a few bigger packages so it doesn't turn into the shitshow that node/npm is
>>
>>58203948
> Most of those are a single function, like Node.js
[citation needed]
>>
If the 2017 roadmap for Rust pans out, I think it will be the year Rust starts seeing real mainstream traction.

Rust should have a lower learning curve
Rust should have a pleasant edit-compile-debug cycle
Rust should provide a solid, but basic IDE experience
Rust should provide easy access to high quality crates
Rust should be well-equipped for writing robust, high-scale servers
Rust should have 1.0-level crates for essential tasks
Rust should integrate easily into large build systems
Rust's community should provide mentoring at all levels

https://github.com/aturon/rfcs/blob/roadmap-2017/text/0000-roadmap-2017.md
>>
>>58206870
>> tfw nothing about async libs
>> tfw futures and tokio aren't out yet
Personally I'm looking forward to `tokio` and `futures` being released and then becoming a standard for async. Having an async standard at least partially would be a game changer.
>>
>>58206922
That should fall under "writing robust, high-scale servers"

I'm having such a hard time wraping my head around futures + tokio. Looking forward to the 0.1 release with updated docs
>>
>>58206958
The futures and tokio libs are still very much confusing to me as well. I really itch for https://github.com/rust-lang/rfcs/pull/1522 to be resolved so we can just write `impl Error/Iterator/Future` everywhere.
>>
>>58202845
I do. However it's not feasible at my work as we target embedded linux. Adding rust stdlib to firmwares would be unnecessarily big probably.
>>
File: Happy_Feelsmas.png (18KB, 385x427px) Image search: [Google]
Happy_Feelsmas.png
18KB, 385x427px
>>58202845
>> tfw when I realized i'm part of a tech cult
Yup, that's me.
>>
>>58206870
>To that end, it's worth making some explicit non-goals, to set expectations and short-circuit discussions:
>No major new language features, except in service of one of the goals. Cases that have a very strong impact on the "areas of support" may be considered case-by-case.
So no HKT then, oh well.
>>
>>58207183
Not necessarily, there's some discussions going on about this
https://github.com/withoutboats/rfcs/blob/associated_hkts/0000-friends_in_high_kindednesses.m Of course there is some push back for various reasons
>>
>>58206993
>what is libcore
>>
I like the idea of Rust but there's no way I could ever handle that syntax. Not to mention modern Mozilla is something I worry about, they're becoming notorious for ruining their own projects.
>>
>>58207908
The syntax is pretty much lifted straight from C++ except without the unparsability. It's pretty clear that rust is handled by a team completely separate from the rest of mozilla projects on account of the fact it's actually good as is (mozilla is not really known for ruining their projects, it's known for semi-recently having gutted themselves of all competent people to replace them with sjw feminazis).
>>
>>58207908
This. What were they thinking? Did they just make everything backwards and weird so it would look "unique?"
>>
>>58208061
The Rust team also got replaced with SJW feminazis.
>>
>>58208180
[citation needed]
all I see are that the public relations team is the same as usual.
>>
>>58208082
Rust is based in ML. However it would be a lot more constructive if you gave specific samples on what syntax you find weird.

Stating something is weird without specific complaints simply means: "it doesn't look like my favorite PL"
>>
>>58207908
>>58208082
>>58208275
http://wiki.c2.com/?BlubParadox
>>
I will keep shilling for Go
fuck you rustards, your lang sucks and the whole thing is a mess
also lol @ praising mozilla devs... they have the most buggy and insecure browser out there
>>
>>58202646
Maybe 2020
>>
>>58209095
Go is a one trick pony.
>>
>>58209287
and that trick is "be shit"
>>
>>58209375
This.
Let met refrain: it's a crippled one trick pony.
>>
Best lib for graphics programming in Rust?
>>
>>58209408
>rust
>libs
Choose one
>>
What's the best online free resource for someone to learn Rust? I tried the official Rust Book, but I never felt like it explained stuff properly. I want to learn the actual language, not just abstractions, I really want to get into Rust.
>>
>>58209655
http://rustbyexample.com/
>>
>>58209408
Rust has no libraries and a garbage collected lang is inappropriate for graphics programming anyway. Use C++
>>
>>58209655

Rust by Example then the official Rust Book.
>>
>>58209767

You need to try harder my friend. Wasn't even baited.
>>
>>58209408
Gfx-rs
Sdl-2
>>
>>58202646
>2017
>using a cuck SJW language
shiggy
>>
>>58209924
try harder
>>
File: CzzpcCyUsAESKnr.jpg (102KB, 660x966px) Image search: [Google]
CzzpcCyUsAESKnr.jpg
102KB, 660x966px
>>58202845
I usually try and get you fuckers fired. Rust is cancer and so are you. Stay in your containment >>>/lgbt/

Real men use C++
>>
>>58209897
I'll look into those. I assume the sdl one is just straight up C bindings?
>>
>>58209978
Pretty much

http://www.viva64.com/en/b/0324/

C++ is not going anywhere. Rust is for fucking SJW cock suckers.
>>
>>58209408
Gfx or glium.
>>
>>58209984
Yup, it's pretty nice. There are some tutorials on using it as well. Such as a blog series on making an arcade game.
>>
>>58210001
>>58209978
Man you guys are going all out, I'd at least use better bait.
>>
>>58203948
>single function
>libc bindings and winapi bindings
>hundreds and thousands of functions respectively
>>
kike thread.
>>
I've been writing a bunch of X11 and terminal oriented stuff in Rust in the past year.
>>
>>58202646
How do you explain Rust being slower than Go in real world usage?
>>
>>58211382
Well how do you explain Rust being faster than Go in real world usage?
>>
>>58207908
I hear a lot of people say this, but I haven't heard any actual cases of the syntax being that much different than from C (execpt lifetimes of course). I already drank the kool-aid, so could you elaborate on what you don't like about the syntax?
>>
>>58211751
>let instead of auto
>fn foo() -> bar instead of bar foo()
>if true {} instead of if (true);
>match instead of switch
>stupid punctuation everywhere
>no ternary operator
>no C-style for loop
I don't see how anyone can learn this garbage.
>>
>>58211751
It looks closer to C++ than C to me, except even more verbose and the symbol choices are even weirder. Some things just seem different for no reason too, like the keyword "match". I haven't seen a real non contrived Rust program in a while though so I can't remember anything more specific. For what it's worth I don't think the C++ syntax is great either, straight C is more or less alright by me.
>>
>>58211809
An attempt to justify some of those design decissions.

>let instead of auto
let signifies the start of a variable decleration, not a type; having auto, imo, would be stranger to read. If you want to annotate a type: let x: i32 = 3;
>fn foo() -> bar instead of bar foo()
I think this might have been to directly address the most vexxing prase. Or just lifted straight from ML.
>if true {} instead of if (true);
You can use parens around the condition, but the compiler will warn. Also braces were probably required to prevent the goto bug in Apple's crypto
>match instead of switch
I think this was because this is more for pattern matching, than just a glorified if/else. People may have been confused if coming from C and they expected switch to behave like C's switch.
>stupid punctuation everywhere
Only out-of-place punctuation I can think of is ! in macros like println!("hello world")
>no ternary operator
This does bother me too, but the common suggestion is writing if some_cond { foo } else { bar }. Definitely not as clean as ternary though
>no C-style for loop
Would be nice if rangees actually covered all cases, but if you just want to iterate ints you can get pretty far with just for i in (0..10).step_by(2) { ... }
>>
File: 91DyYr-MJ7L._SL1500_.jpg (382KB, 1106x1500px) Image search: [Google]
91DyYr-MJ7L._SL1500_.jpg
382KB, 1106x1500px
>>58209978
>>58210001
>>58210391

>C++ instead of Rust
>Rust instead of D

LOL
>>
>>58202675
>>58202777
>>58208180
I need actual context, I haven't looked into the Rust community yet. What's with the SJWs?
>>
>>58212672
https://www.rust-lang.org/en-US/conduct.html

the fact that this even exists
>>
>>58212707

> We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.


HAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
>>
File: 1479897150581.jpg (108KB, 1080x349px) Image search: [Google]
1479897150581.jpg
108KB, 1080x349px
Enjoy your retard syntax
>>
>>58212707
>We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.
What the fuck? Why are they mentioning about genders and race I don't get it.
>>
>>58212784
>Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
???
>>
>>58212816
>we care about making the community a safe space for you.
Okay, now it's just ridiculous.
>>
>>58212770
is this perl
>>
File: d3.gif (3KB, 162x309px) Image search: [Google]
d3.gif
3KB, 162x309px
>>58202646
I think I'll go with D lang if I ever need anything in the future.
>>
>>58212983
could be perl6. kek
>>
>>58212707
It's just PR bullshit, it's basically a must these days, sadly.

I don't see why anyone would actually care about the orientation of a community as long as the ecosystem is good.
>>
>>58213293

This.
>>
https://dave.cheney.net/2015/07/02/why-go-and-rust-are-not-competitors
>>
File: winner.png (318KB, 361x563px) Image search: [Google]
winner.png
318KB, 361x563px
>>58212784
like i said, in 2017, this will no longer be applicable
>>
>>58202646
Nah I'm straight.
>>
>>58211809
>I want Rust to make the same poor decisions authors of C made 50 years ago
There is a reason they made a new language and not C++++.
>let instead of auto
Because types are written after identifiers, not before. Rust has no need to follow C-style.
>fn foo() -> bar instead of bar foo()
The same reason.
>if true {} instead of if (true);
How is this even a problem, this is how it should be in the first place.
>match instead of switch
Because it's not a switch, it's a different operation called "match".
>stupid punctuation everywhere
I can't think of anything unusual except for ! for macros. & and * for references is exactly the same as in C, :: for namespaces and <> for generics are taken directly from C++, -> and => are self-explanatory.
>no ternary operator
Because regular if is already an expression.
>no C-style for loop
Because it's too verbose, error-prone, you almost never need it and you can always emulate it, see Python.
>>
>>58213353
The liberals are going to the block. Even if you don't personally want to swing the axe, you'll be pretty inconvenienced when the entire Rust team (and probably half the community) is disappeared overnight. Don't touch the hot potato and you won't get burned.
>>
>>58209408
Depends what you mean by graphics programming. If you mean muh gaems, maybe piston or maybe there are ogre bindings. For vulkan, there's vulkano, and for OGL there's glium.
>>
>>58202646
>general
But why? /g/ is already inundated with around 30 general threads. They're fucking awful.
>>
>>58212301
>the goto bug in Apple's crypto
Surely among other issues like to eradicate the non-determinism problem of if/else/else if.
>>
>>58216580
It looks like an old-style general, not a new-fangled cancer-styled one like all the new kids are doing these days.
>>
the main reason i fail to take rust seriously is because they seem to mostly shill it on 4chan instead of actually making things that are worth a shit with their language.
>>
>>58216728
package main

import "fmt"

func main() {
ch := make(chan struct{}, 1)
go func() {
for i := 0; i < 3; i++ {
fmt.Println("this")
}
ch <- struct{}{}
}()
<-ch
}
>>
>>58216728
clearly they're after our neetbucks and tendies
>>
>>58217007
Oops, this doesn't compile. It appears you did not put the significant whitespace where it should be!
>>
>>58212770
what
the
FUCK
>>
>>58217667
it compiles and runs just fine
it's a Go program, btw
hope you like it
>>
>40 posters
>half of them shilling, the other half laughing at the shills
>>
>>58218704
There can't be more than 2 shills here. The rest of us know Rust is a même.
>>
>>58209978
>Real men use C++
no, real men use C.
>>
>>58220094
no, real men use rust.
>>
>>58217851
Not without go fmt (tm)! Go fmt: go fuck my truelove! Do it now my bull~
>>
>>58220217

Anon.......those aren't men
>>
>>58212770

Disgusting
>>
>>58220217
If somebody was a real man then they wouldn't be using Rust because, like buzzfeed, Rust is inclusive of everybody but straight men. Rust is the buzzfeed of programming languages. Even non-fairy-queer gays probably hate Rust.
>>
>>58209978
>claims to be a real man
>posts Chinese cartoon

>also suggesting C++ instead of C
>>
>>58220989
>C is the best language for large projects that rely on concurrency

yep, you're an expert
>>
>>58221070
>Has trouble reading and maintaining C code
>says it's the languages fault
Your IQ is just too low buddy
>>
>>58221157
blub paradox
>>
>>58212707
Instant red flag.
>>
Best IDE for Rust?
>>
>>58221924
use your favorite editor and install AnacondaRUST with racer. boom.

code completion, syntax highlighting, linting, etc...
>>
File: emacs-rust-code-autocomplete.png (353KB, 1544x1396px) Image search: [Google]
emacs-rust-code-autocomplete.png
353KB, 1544x1396px
>>58221924
Emacs works fine for me, it has things like cargo integration, syntax highlight, context-aware auto-complete, on-fly error highlighting and jump-to-define, it's pretty much functioning IDE. Than again there are plugins for traditional IDEs like Idea, VS and Eclipse.
>>
>>58220094
Real men use LLVM IR.
>>
File: 3676756423.jpg (58KB, 480x1084px) Image search: [Google]
3676756423.jpg
58KB, 480x1084px
>>58203857
>A macro to generate structures which behave like bitflags
>>
>>58202646
How do I goroutines in rust?
>>
File: bench-pipelined.png (87KB, 1556x924px) Image search: [Google]
bench-pipelined.png
87KB, 1556x924px
>>58223800
Coroutines is a stale meme, you use tokio-rs instead.
>>
>>58223856
how can a compiled language like Go be barely faster than a scripting language running in a fucking web browser?
>>
>>58223871
1. Critical parts of Node.js are written in C.
2. Node.js uses V8 JIT.
3. The benchmark itself is IO-bound, so it measures not the performance of language/compiler, but the effectiveness of IO multiplexing method used by the server:
https://aturon.github.io/blog/2016/08/11/futures/
>This microbenchmark tests a “hello world” HTTP server by throwing a huge number of concurrent and pipelined requests at it. Since the “work” that the server is doing to process the requests is trivial, the performance is largely a reflection of the basic overhead of the server framework
>>
>>58223871>>58202675
>>58202777
>>58202934
>>58208180
>>58209095
>>58209287
>>58209471
>>58209767
>>58209924
>>58209978
>>58211382
>>58211552
>>58212554
>>58212770
>>58212784
>>58212816
>>58213300
>>58212983
>>58217809
>>58218704
>>58219975
>>58223871

Why is there always some form of hate and shilling on all these pl threads? If you like a pl just talk about it, if you hate the pl don't visit this thread.

I mean is that hard to just be nice to each other? Oh wait... right i'm on 4chan
>>
>>58223976
Thanks for the double (You)
>>
>>58223976
No one likes Rust except homosexuals on the mozilla team.
>>
>>58223987
Whoops
>>
>>58223976
> Why is there always some form of hate and shilling on all these pl threads
Because this the where the fun is? Go circlejack to reddit.
>>
>>58223976
>hurr muh hugbox
kill yourself redditnigger.
>>
File: hustle.jpg (122KB, 960x960px) Image search: [Google]
hustle.jpg
122KB, 960x960px
>>58223976
some people can't code, so they attempt (but fail to) preserve their ego by insulting
>>
>>58223976
To let OP know that his shitty language isn't welcome
>>
>>58220229
that's not how it works, you retard
go fmt formats the code for you, BUT the compiler doesn't force you to use any formatting, at all
>>
>>58223976
looks like you (You)'d me for keking about the mess of perl6. If theres any language to laugh at it has to be perl6.
Thread posts: 126
Thread images: 13


[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.