Live data from Hacker News

Announcing Rust 1.0 Alpha

blog.rust-lang.org

61–70 of 255 posts

Re: Announcing Rust 1.0 Alpha

#61

How can you have an alpha without generics?

You can read up here: http://doc.rust-lang.org/book/generics.html, as well about "output" generics here: https://github.com/rust-lang/rfcs/blob/master/text/0195-asso..., and explore usage in collections here: http://doc.rust-lang.org/nightly/std/collections/.

Re: Announcing Rust 1.0 Alpha

#62

Earlier quoted context omitted.

It's been my experience that the standard library is _never_ the place for the best lib to do $WHATEVER_PARTICULAR_TASK, but different folks have different preferences. We'll see how it all shakes out!

I think Python and Go are two examples where the standard library has very much proven invaluable. Without it, it's difficult to be confident in the portability of components, and it quite frankly makes the language less attractive for use. Like the other poster mentioned, I'm happy for the RUST folks to take a "wait-and-see" approach, but at some point, I believe "blessed" components are going to be expected and str…

> I think Python and Go are two examples where the standard library has very much proven invaluable.

C#. The amount of time I've wasted in Java programming teams while arguing over things like which of three quirky XML parsing implmentations[1] was the One To Use while the .net team powered off and built useful functionality...

[1] This was a few years ago, obviously.

Re: Announcing Rust 1.0 Alpha

#64

Wow. Anyone remembers Rust pre-0.1? When it had typestate, ML syntax, garbage collection, etc.? So nice to see how the language slowly evolved and was molded to fit as best as possible the problem they were trying to solve.

Yeah, looking through the early commits is really eye-opening.

Re: Announcing Rust 1.0 Alpha

#65
post #27
post #7

Congrats to everyone involved (and there sure are a lot of you)! The TL;DR of the alpha is basically this: 1. The concept of a six-week release cycle begins today, with the first beta coming in March. 2. Breaking changes will basically cease, with the exception of a list of libraries that are still unstable and features that may be tweaked ( https://github.com/rust-lang/rust/wiki/Anticipated-breaking-... ). 3. Given…

Finally! I hadn't used Rust for two weeks, and when I downloaded the nightly last night, code from two weeks ago was breaking. Feature stability will help.

Oh, and what's the matching version of Cargo? Is Cargo still changing so rapidly that it needs to be downloaded nightly?

Re: Announcing Rust 1.0 Alpha

#66
Coincidentally, I used Rust for a little board game solver this week and have been delighted by its performance and typechecker feedback!

My Scala v1 was was very concise but took ~3 seconds to simulate a whole game. The naive Rust rewrite did it in 0.7 seconds and my current version churns them out at 0.015s each!!

http://github.com/iamdanfox/qwirkler if you're curious.. This language is really fun!

Re: Announcing Rust 1.0 Alpha

#67
post #21

Earlier quoted context omitted.

For what it's worth, while a lot of people complain about the Ruby standard library, when I want to reach for an HTTP library that is properly threadsafe, properly supports encodings (and in general is properly integrated with whatever version of the language the user happens to be using), Net::HTTP is a godsend. People who complain about the ossification are often talking about the aesthetics of the API (since API t…

Yeah, while that's kinda true, it's also incredibly hard to patch bugs. Contributing to Net::HTTP means dealing with a whole lot of stuff that you don't have to when contributing to a random project, and (as I'm sure you know, hahah) it's easy to use my custom patched random gem with Bundler, whereas I have to wait a year to get my Net::HTTP fix.

Yes, but the cost is that those gems have to worry about supporting a lot of different versions of Ruby. Writing a fix for Net::HTTP only involves making it work on master ;)

Re: Announcing Rust 1.0 Alpha

#69
The one thing that would put rust over the top right now is something along the lines of gofmt - something simple, with zero configuration, that can be run on commit or even save.

Re: Announcing Rust 1.0 Alpha

#70
post #33

Earlier quoted context omitted.

Yes, this is a big deal. I tried looking into Rust a couple of months ago, but the speed of change meant that blog posts and tutorials from just weeks before were sometimes completely broken. Getting to 1.0 means that the ecosystem has a chance to grow properly which means "lesser" coders such as myself have a chance to learn and get involved.

Tutorials should at a minimum be dated and if possible include the version of rust used when making the tutorial.

And most are dated and versioned, but a changing API still meant that the corpus was not expanding and knowledge was being lost. Tutorials got out of date so quickly it was hard to get a foothold when trying to learn.

The evolution is important and I don't want to seem like I'm saying it shouldn't have been done the way it was, it was very well managed from what I saw from keeping an eye on the project. I am just happy that it will now be stable letting the ecosystem grow and feed off itself.

Post reply on HN