Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Rust

Name: Anonymous 2015-01-20 22:27

Name: Anonymous 2015-01-20 23:36

I've read the Rust guide like 5 times and I still don't get it. Systems programming is hard. I guess it's a trade off.

Name: Anonymous 2015-01-21 0:32

Noisy, unreadable code, obsessed with ownership, may give rise to whole new classes of errors that otherwise won't be there. Good that someone experimented with building a language around ownership, but for me it all demonstrates that the idea is not viable. I tried to read 10 tutorials already, each leaving me more confused than ever before.

Name: Anonymous 2015-01-21 0:38

>>2-3
mental midgets

Name: Anonymous 2015-01-21 0:39

Some serious voodoo science is going on here, with a good chance to become a next fad. Programming is difficult as it is, but apparently not difficult enough for someone's taste.

Name: Anonymous 2015-01-21 1:02

C shits all over rust.

Name: Anonymous 2015-01-21 1:05

"mut f" means you can assign to "f". "f: &mut" means you can mutate through "f", for example assigning to "f.buffer". You can't assign to "f", to do that use "mut f: &mut". This is exactly same as distinction of "const T * v" and "T * const v" in C. The former is written "v: &mut T", the later "mut v: &T". "T * v" is written "mut v: &mut T". This will not change.

Name: Anonymous 2015-01-21 3:08

>>2,3,5
Were these copy pasted from reddit? (no offense if not)

Name: Anonymous 2015-01-21 3:14

>>8
Whups, I meant, >>2,5

Name: Anonymous 2015-01-21 5:24

>>8,9
>>3,5,7 are kopipe but not from reddit

Name: Anonymous 2015-01-21 6:57

This thread is VIP QUALITY bro

Name: Anonymous 2015-01-21 7:33

rust-lang best lang

What I like:
- ownership system
- no forced GC (GC is shit.)
- fast
- good compile time error checking capability
- no memory related errors in non-unsafe blocks

It is almost perfect language. Only thing that's not perfect is the syntax and event that doens't suck too bad.

Name: Anonymous 2015-01-21 17:23

>>3
Just cause you don't understand something doesn't mean it's not viable. You don't understand the Universe, for instance, but it sure as hell is viable.

Name: Anonymous 2015-01-21 17:27

>>12
no higher-kinded polymorphism
almost perfect language

You're funny.

Name: Anonymous 2015-01-21 18:35

>>14
Do your own homework. It has that. Original implementation was in OCaml and it's quite obviously inspired by ML.

Name: Anonymous 2015-01-21 19:59

>>15
ML doesn't have HKP, dipshit.

Name: Anonymous 2015-01-21 21:48

yeah it never got that far. as soon as people realized Option and Result were monads the devs derailed the higher-kinds train and proclaimed "Rust is not HASKAL."

an admin even changed the subreddit title to "The Rust Programming Language Does Not Have Monads" when it became apparent the devs were afraid of monads despite having decided they were the best fit in some places without actually realizing they were monads.

Name: Anonymous 2015-01-21 21:54

>>17
Except that higher-kinded polymorphism is useful for all sorts of type constructors that aren't even monads.

Name: Anonymous 2015-01-21 22:08

>>18
it isn't about monads it's about HASKAL. HASKAL has monads so rust better not have them. higher-kinded what now? oh helllll no.

HKT might actually come along someday but only if we all promise to never ever use it for do notation or anything else you find in HASKAL.

Name: Anonymous 2015-01-22 2:16

Just look at this shit.

use std::cell::Cell;

fn a(k: i32,
x1: &Fn() -> i32,
x2: &Fn() -> i32,
x3: &Fn() -> i32,
x4: &Fn() -> i32,
x5: &Fn() -> i32) -> i32 {
let k = Cell::new(k);

let b: Cell<Option<&Fn() -> i32>> = Cell::new(None);
let tmp = |&:| {
k.set(k.get() - 1);
a(k.get(), &*b.get().unwrap(), x1, x2, x3, x4)
};
b.set(Some(&tmp));

if k.get() <= 0 { x4() + x5() } else { b.get().unwrap()() }
}

fn main() {
println!("%{}", a(10, &|| 1, &|| -1, &|| -1, &|| 1, &|| 0));
}

Name: Anonymous 2015-01-22 2:38

>>20
This is why you don't pander to Sepples programmers. These people need treatment, not a voice in language development.

Name: Anonymous 2015-01-22 2:46

>>21
Nope. The Rust version looks nothing like the old C++ version and the C++11 version on RC is just fine if you ignore the shit brace style: http://rosettacode.org/wiki/Man_or_boy_test#C.2B.2B

No, Rust invented new ways to make this shitty. Don't blame it on C++.

Name: Anonymous 2015-01-22 2:47

i32
Looks like Frozenvoid.

Name: Anonymous 2015-01-22 2:56

>>22
The syntax is clearly Sepples-inspired and I remember a core developer stating that they want the Sepples audience. I think it was even the reason why things like HKTs were rejected: To not scare away this crowd.

Name: Anonymous 2015-01-22 3:38

>>24
That has nothing to do with man-or-boy. If you could read you would know C++ does a fine job of the test and Rust wouldn't do such a poor job if it were more like C++. You're confusing syntax with semantics. You probably don't even know how the code in >>20 works.

FYI HKTs were not rejected, and I'll save you some time: nor were effects or dependent types.

Name: Anonymous 2015-01-22 4:05

>>25
If you could read
Right back at you, you're the only one talking about man-or-boy.

Name: Anonymous 2015-01-22 6:22

>>26
I like man-on-boy too. Lets share some videos.

Name: Anonymous 2015-01-22 7:26

>>26
Oh?
>>20 <- man or boy test implementation in Rust
>>21 <- “>>20 This is why you don't pander to Sepples programmers.”
>>22 <- don't argue with muh dubs.
>>24 <- arguing with mah dubs.
etc.

Name: Anonymous 2015-01-22 8:37

>>28
To bo honest.. you can't really argue with >>22's dubs. They are pretty wicked.

Name: Anonymous 2015-01-22 9:52

>>28
Who are you quoting?

Name: Anonymous 2015-01-22 11:12

>>30
shouldn't you be in the 4chan thread? no, really

Name: Anonymous 2015-01-22 16:35

Name: Anonymous 2015-01-22 17:36

>>32
That article is from 2003. Nowdays they have already turned the language into shit.

Name: Anonymous 2015-01-22 20:32

>>19
Made me laugh, thanks.

Name: Anonymous 2015-01-22 21:00

>>24
So they are making a language that is almost exactly like Sepples but it's not Sepples, and hope that the Sepples crowd abandons Sepples in favor of another Sepples with a slightly different syntax? Good luck with that.

Should've just added borrow analysis to C++ and called it a day. Nobody needs all this hype about a "new language" that is actually just Sepples in disguise.

Name: Anonymous 2015-01-23 3:11

>>35
Should've just added borrow analysis to C++ and called it a day.

So you're calling for yet more crap piled onto C++ which would be incompatible with most of the crap that already exists in C++? What do you propose to do about lifetime annotations?

Don't change these.
Name: Email:
Entire Thread Thread List