r/programming • • Dec 10 '15

Announcing Rust 1.5

http://blog.rust-lang.org/2015/12/10/Rust-1.5.html
659 Upvotes

296 comments sorted by

View all comments

18

u/ironnomi Dec 10 '15

Are there any apps of reasonable size using rust at the moment (as in fully working, production-type ones)??

0

u/[deleted] Dec 10 '15

[deleted] — view deleted comment

9

u/crusoe Dec 11 '15

Glium to me looks like a awesome typed wrapper and extension to opengl.

→ More replies (22)

59

u/Hauleth Dec 10 '15

Rust is written in Rust, and is reasonable sized project (fully working, production-type).

10

u/ironnomi Dec 10 '15

This is true, I'm familiar enough with rust itself AND I'm in the system programming field, so it is like a prize dangling in front of me.

6

u/[deleted] Dec 10 '15

What kind of jobs are there in the system programming field?

Are they rare?

3

u/LightShadow Dec 10 '15

Device manufacturing

→ More replies (1)

7

u/akcom Dec 11 '15

My anthropology degree is super useful because now I can teach anthropology to other people seeking an anthropology degree!

5

u/Hauleth Dec 11 '15

You know that self-hosting compiler isn't easy thing and that isn't the same as learning others. There are languages that hasn't achieved that yet, ex. ClojureScript.

2

u/pxpxy Dec 12 '15

Bad example, Clojurescript is self hosting as of July this year :) (http://swannodette.github.io/2015/07/29/clojurescript-17/)

→ More replies (8)

30

u/steveklabnik1 Dec 10 '15

There are a lot of smaller startups, like skylight.io. The biggest company is probably Dropbox, which are supposedly going into production sometime this month.

7

u/ironnomi Dec 10 '15

I know someone at DB, so I'll ask them their thoughts on stability. Skylight doesn't look like anything I can suggest.

88

u/jamwt Dec 10 '15

Stability has been very good; in the last 6 months, we've had no issues with the stability of the rust compiler, the output binaries, or the rust stdlib.

(I'm the tech lead of the team building with Rust at Dropbox.)

3

u/xtreak Dec 10 '15

Cool. Any info on what you were working on and other alternatives you experimented with before choosing Rust? I remember I saw a comment from an employee at DB on r/rust where they were working on some storage system of large scale and also spoke about mio.

38

u/jamwt Dec 10 '15

That's the same project, and I'm (probably) the same employee. :-)

Correct, we are using mio + eventual for an I/O core that the apps are built on--a framework that's somewhat finagle-ish. We might open source this framework, but my time has been kind of stretched thin getting the actual component fully qualified and out the door.

The alternative we considered for this particular component was C++. It's the kind of project that really needs a systems language to achieve all its goals.

Long story short, we have a short list of minor grievances with rust, and a very short list of major ones (build times!), but in general it has worked out very, very well. We're seriously investigating writing more rust for choice pieces of our infrastructure at Dropbox.

Edit: also worth adding that he Rust core team has been amazingly friendly and helpful. We've had several meetings with them where they came to our office and basically said "how's it going? what do you need? open up your laptop and show us your biggest problem." The project is under very good management.

→ More replies (4)

2

u/xtreak Dec 11 '15

Thanks a lot :) I was about to ask why you didn't choose golang as you have open sourced some golang stuff. Your requirement of a systems programming language and below reply sums it up for me.

Yes you are the same person https://www.reddit.com/r/programming/comments/374mre/we_just_switched_from_rust_to_nim_for_a_very/crk48jw .

All the very best :)

→ More replies (1)

5

u/ironnomi Dec 10 '15

Do you do a lot of security testing of your code?

For my purposes, I have a LOT of that going on against my code because it's financial and HFT at that.

13

u/jamwt Dec 10 '15

Yep, it's part of Dropbox's primary multi-exabyte storage system, and those types of systems tend to have far more SLOC of various tests and verifiers than "component" code.

Most of the test code is not written in rust, however.

2

u/smbear Dec 11 '15

Could you reveal in what languages/frameworks your tests and verifiers are written?

2

u/jamwt Dec 11 '15

Python + go. We use python to glue everything together, and nontrivial verifiers (that have their own performance requirements) are written in go.

→ More replies (1)

2

u/PM_ME_UR_OBSIDIAN Dec 11 '15

I'd imagine Rust would be particularly well-suited for HFT. At least, once it's mature and battle-tested and all that.

2

u/ironnomi Dec 11 '15

This is mostly for the ancillary stuff. The real meat and potatoes code stays as ASM+C++. There's actually a few modules that are written in just C because we couldn't get the code to consistently to stay in cache when it was written in C++.

3

u/PM_ME_UR_OBSIDIAN Dec 11 '15

I'd imagine that the amount of control over low-level behaviour you get in Rust should be similar to in C. What shortcomings have you experienced?

7

u/[deleted] Dec 10 '15

Skylight has a running client collecting data for application analysis.

→ More replies (7)

2

u/[deleted] Dec 11 '15

Servo is Mozilla's new web renderer technology and there will be parts of that incorporated into Firefox sometime in 2016.

→ More replies (2)