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

Pages: 1-4041-

Rust

Name: Anonymous 2012-11-02 21:55

Rust is the best programming language.

Prove me wrong.

Name: Anonymous 2012-11-02 22:12

That's not how you spell Ruby...

Name: Anonymous 2012-11-02 22:28

>>1
You dont know anything about Rust

prove me wrong

Name: Anonymous 2012-11-03 0:04

it's called "rust" for a reason

use javascript

Name: Anonymous 2012-11-03 0:16

Rust is, what, 2 years old? Learn D. It's been around for 11 years.

Name: Anonymous 2012-11-03 0:19

>>5
I don't want to use a language that was the language of the future for 11 fucking years!
Hello? It failed!

Name: Anonymous 2012-11-03 0:27

>>6
It just means the compiler is mature and ready to be used for non-toy applications. Rust is just more Mozilla worse-is-better crapware.

Name: Anonymous 2012-11-03 0:40

>>6
Also a C ABI compatible compiled language really can't fail. The main reasons that popularity in a language is good is that:
- it brings more libraries (irrelevant because such a language can just use C libraries)
- it increases the install base of the runtime or interpreter (irrelevant; it can run anywhere gcc can (see gdc))

Name: Anonymous 2012-11-03 1:01

>>8
The same is true of Lisp. D has failed as a language because nobody cares about it.

Name: Anonymous 2012-11-03 1:43

>>1
bad bits: stdlib hwnd-naming, not simple type-system, ruby-esque clojures, work-in-progress
good bits: not invented around 70s at Bell labs?

Name: Anonymous 2012-11-03 3:03

The Nyaruko programming language is the best language. Thread over.

Name: Anonymous 2012-11-03 5:35

>>11
neko programming language
ft4u dubi dubi

Name: Anonymous 2012-11-03 6:57

Name: Anonymous 2012-11-03 8:22

Name: Anonymous 2012-11-03 8:46

>>4
Wat

Name: Anonymous 2012-11-03 12:43

2 years and the last revision doesn't seem to build.

Name: Anonymous 2012-11-03 13:00

>>7
worse-is-better
Doesn't characterize Rust.

>>10
The type system is really good. I like ML's better but there is a tradeoff in this space. The closures aren't especially ruby-esque in any sense other than syntax.

>>16
WFM. If you really want to build it, try the release tarball. It eats about an hour of CPU time to build on a modern Intel so supply -j8 (or however many CPU threads you have) to make.

Name: Anonymous 2012-11-03 14:14

>>17

There doesn't need to be a trade off.

Name: Anonymous 2012-11-03 17:48

>>18
That's easy to assert, but it hasn't been done yet.

Name: Anonymous 2012-11-03 17:53

>>19
I'm doing it right now. It really isn't that hard.

Name: Anonymous 2012-11-03 19:11

>>20
Want to back that one up maybe?

Name: Anonymous 2012-11-03 19:19

>>21
No. It's top secret. But seriously, just try it and you'll figure it out after a couple weeks.

Name: Anonymous 2012-11-03 19:23

>>16
TIL you can't compile shit. Good day faggot.

Name: Anonymous 2012-11-03 19:27

>>23
back to le imagereddits

Name: Anonymous 2012-11-03 19:29

>>24
Gladly. I refuse to converse with ignorant fools who cannot follow simple rules on how to compile a piece of software.

Name: Anonymous 2012-11-03 19:38

>>25
THEN WHY THE FUCK DID YOU MAKE THIS POST YOU IDIOTIC POMPOUS LOGICALLY INCONSISTENT LITTLE BITCH?

Name: Anonymous 2012-11-03 21:27

>>22
I think you're missing the part where Rust's type system is married to its memory model. You can't get ML's type system in Rust, and you don't have Rust's memory model in any 'ML that I'm aware of.

Name: Anonymous 2012-11-03 21:40

It eats about an hour of CPU time to build on a modern Intel so supply -j8 (or however many CPU threads you have) to make.

Good grief, I'm not looking forward to this language's creations finding itself in my ports tree. Building updates to things relying on boost is bad enough as it is.

Name: Anonymous 2012-11-03 21:52

>>27

Could you explain rust's memory model in this context?

Name: >>29 2012-11-03 21:55

Nevermind, I found the section with matching jargon.

http://dl.rust-lang.org/doc/0.4/tutorial.html#the-rust-memory-model

Name: Anonymous 2012-11-03 21:59

>>28
Remain calm! It takes so long because the build process is not streamlined (it's built 3 times during compilation for bootstrapping and other reasons.)

There's talk of fixing the build time soon. I think someone said they had a build down to 8-12 minutes, which I believe is total CPU time. Not bad at all.

Name: >>30 2012-11-03 22:03

The only thing I'm seeing that isn't in ocaml is the syntax for owned and shared pointers, which is an abomination that ought to stay contained within C++. I see what you mean though. That complicates things a little bit. Although I don't see how it can't be solved with making all reference types implement a virtual destructor.

Name: >>32 2012-11-03 22:27

and on that note, you should all read this.

http://caml.inria.fr/pub/docs/manual-ocaml/index.html

Name: Anonymous 2012-11-03 23:51

>>32
There's a lot of stuff you're missing then. But I'll give you this, if it weren't for the concurrency and C ABI there would be no need to go the Rust route, with the possible exception that it is familiar to C++ people (yet manages to get things right), and has better objects in a sense than OCaml does. Note, you can't produce a C-library in OCaml but the expectation is that you will be able to in Rust (no GC, no runtime at all.)

On a related note: JoCaml is an interesting language, but I don't envision it addressing my needs.

Name: Anonymous 2012-11-04 0:00

https://github.com/mozilla/rust/issues/2643
I like things getting in my way.

Name: Anonymous 2012-11-04 0:31

>>34

Note, you can't produce a C-library in OCaml but the expectation is that you will be able to in Rust (no GC, no runtime at all.)

That's nice. But I hope it doesn't require too many constructs in the language that encourage premature optimization. The compiler should determine if the program depends on a GC or not and this should be possible for any high level language, including ocaml. But whether or not that is provided is a matter of what implementations are out there.

Name: Anonymous 2012-11-04 1:02

I hope it doesn't require too many constructs in the language that encourage premature optimization
I try not to worry about problems until they become evident. Actually, it is a small problem in OCaml (eg. favouring arrays over lists for speed.)

In Rust's case you'll write allocations conservatively anyway. Being over-conservative is certainly not encouraged any more than using stack allocations exclusively is in C. However, I think I read something by one of the devs saying that allocations in the the core library are effectively considered bugs. The idea is you still have a library to depend on when you eschew the runtime. Say what you will, Rust has an impressive amount of forethought put into it and they're not afraid to experiment.

and this should be possible for any high level language, including ocaml
Not without changes to the memory model, in OCaml and probably most others too. Sure that's possible, but it in no way resembles the state of things. Not yet for Rust either, but they talk about it like they have every intention of doing it. I don't know if they intend to do it automatically, and I want to have a compiler flag to enforce it.

Name: Anonymous 2012-11-04 1:28

Don't know where to post this, so...

:= is a superior assignment operator. It removes the hackish need for "==" to mean equality like we're all used to from math. Plus this also allows the potential to make ``backwards assignment'' like so:

"i'm a faggot" =: you

Name: Anonymous 2012-11-04 1:45

>>37

Sorry, I didn't mean to say anything negative about rust, and I'm excited about it. I guess the first responses where about the lack of global type inference. But honestly it's a lot of work and it's debatable if that is even a good feature to have in a language.

However, I think I read something by one of the devs saying that allocations in the the core library are effectively considered bugs.

I wish I worked there.

Not without changes to the memory model

It's possible if a large set of hard optimizations are used to determine the relative life times of objects. Ideally, they should all function with no hints provided in the language. In order for to optimizations to really be effective, the life time calculation would need to be aware of the entire program at once. It might be possible to make this scale, but it would be hard. I don't know of any projects going for something like this (other than rust), but if it could exist without hints it could be applied to all high level garbage collected languages.

>>38
<-

Name: Anonymous 2012-11-04 3:59

Stupid name, ``Rust'' lel

Name: Anonymous 2012-11-04 8:17

>>38
Turn the other way around and make == do assignments.

Name: Anonymous 2012-11-04 8:41

fn lel(x:int) {
  while x {
    upboat(x);
    x <- x - 1;
  }
}

Name: Anonymous 2012-11-04 10:11

<- is a bit annoying to type. more annoying than = anyway

Name: Anonymous 2012-11-04 11:39

>>43
On your keyboard, maybe, but not on mine. Programming language syntax shouldn't be based on how easy it is to type on a QWERTY layout.

Name: Anonymous 2012-11-04 12:53

>>44
Why not, Reddit hipster?

Name: Anonymous 2012-11-04 13:19

>>43
As an R user, iktf bro

Name: Anonymous 2012-11-04 13:31

>>45
Xarn uses Belgian AZERTY.

Name: Anonymous 2012-11-04 14:19

>>39
Yeah, Rust definitely lacks in the type inference area. A big part of that is you can't use tags outside of explicit unions.

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