by kibwen · 11y ago · 0 comments
But as much work as it's been just to get to this point, the real struggle begins today. Months and years of brutal campaigning, compiler engineering, and careful language design lie ahead. If you've yet to take a look at Rust, please do, and report your findings so that we can better prioritize our efforts for the near future. If you like what you see, there's plenty of work to go around and a welcoming community should you decide to dig in and join us. And if you don't like what you see, that's fine too; Rust is not the language to end all languages! We're just here to make the world a little safer, however we can. Hopefully today is but the first page in that story. :)
If I could, make a little suggestion?
Focus on building a community around the language, the way Go did, which was masterfully executed:
Newsgroups, conferences, videos, tutorials, more videos, talks, speeches, more tutorials, books, articles, blogs, docs. All of that, churning non-stop.
It's tedious. It's just as much effort as the language itself. I realize that. But it's truly why I even bothered with Go, which is, IMO, arguably a not-as-exciting language as Rust, yet already has amazing library/community involvement and support.
(Also: these things already happen to a degree, and I hope they start happening even more now that 1.0 is out!)
I'd also like to think it will be a bit less difficult for Mozilla to accomplish this because, well, Mozilla's values inspire loyalty, even love in my case, I love Mozilla.
Thank you ever so much for the hard work done by yourself and the rest of the Rust developer community. It has been an absolute pleasure seeing the language evolve, and now that it's hit 1.0, I look forward to the incredible opportunities it makes possible.
It takes great courage to go against the grain in terms of the core language (e.g. abandoning GC, M:N scheduling, etc. as core parts of the language), but the end result promises some truly exciting times. Thank you again and thank you also to you and the others for commenting here on HN despite the heavy criticism at times and being ever so helpful for those of us on IRC. It's been a fantastic ride and I look forward to it getting even better.
So, what I like to say is this: If you look at Rust by mission statement, it hasn't changed at all. If you look at it by feature list, it's a completely different beast.
The focus of Rust has always been a safe, fast, concurrent systems language. It just took a while to figure out exactly how we wanted to accomplish that goal.
If Rust fulfills it's mission statement, it might become widely adopted. While that's generally good, it also makes changes to the language hard, see C++.
So, let's hope you got the things right that you can't change without breaking compatibility.
There was a really great blog post about writing a Scheme implementation, including a GC: http://fitzgeraldnick.com/weblog/60/
For what its worth Java had an even longer gestation period and it wasn't until Eric Schmidt declared that we had to have 1.0 in Bert Sutherland's desk by 1/1/95 or "else" did it actually get to that point.
I'm really excited to start trying it out in earnest.
This is a bit disconcerting though:
ls -lh
total 588K
-rwxrwxr-x 1 cmcmanis cmcmanis 8.4K May 15 13:02 hello_world
-rw-rw-r-- 1 cmcmanis cmcmanis 83 May 15 13:02 hello_world.c
-rwxrwxr-x 1 cmcmanis cmcmanis 565K May 15 13:01 main
-rw-rw-r-- 1 cmcmanis cmcmanis 42 May 15 13:01 main.rs
I'd love to write a safe embedded system in rust and that is going to mean much smaller footprint for a 'hello world' level of program :-) $ size hello
text data bss dec hex filename
1329045 25256 102376 1456677 163a25 hello
That's a stripped Go 1.4.2 hello world (1941480 bytes unstripped).(go here to address some other comments):
ls -s1h hello*
1.9M hellogo
4.0K hellogo.go
12K hellors
4.0K hellors.rs
rust-code: cat hellors.rs
fn main() {
println!("Hello, world!");
}
go-code: cat hellogo.go
package main
import "fmt"
func main() {
fmt.Println("Hello, world!");
}
Compilers: rustc --version
rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25)
go version
go version go1.4 linux/amd64
Flags for rust (inspired by[1], which may or may not be similar to what
cargo build --release does...): rustc -o hellors -C prefer-dynamic -C opt-level=1 hellors.rs
[ed: to add: If I strip the binaries, hellors ends up at 5.8k, hellogo at 1.3M. I built hellogo with just: "go build hellogo.go" -- I'm not sure if there are any flags that would make sense? ][1] https://github.com/rust-lang/cargo/blob/c874e37fbe195e86d6dc...
Would using naked println be similar to using putc in C?
Anyway, just tested, and stripped a version without fmt is 414k.
rust-story builds on 1.0, though, so I think I'll be able to forgive you. ;^)
Congrats on the release!
Before that, so many sigils in Rust scared me and kept me from learning it. Rust still has a bit many sigils nowadays, but it's definitely cleaner than before!
I had just started seriously learning rust a few months before they started moving owned pointers into `std`.
So I felt somewhat betrayed by the removal of the sigils. It seemed like all the hard work I had spent learning the various pointer types would end up being useless!
Of course that fear was ungrounded. I very quickly came to understand that what I had actually spent time learning was ownership; and _that knowledge_ is still perfectly relevant, even today in rust 1.0.
All that was really changing was the removal of some arcane syntax which had only served as a stumbling block in my quest to learn Rust.
I always joke about this being "programmer Stockholm syndrome": When you've mastered something that's actually not good at all, don't want that time and effort to have been for nothing, and become a champion for crap. It happens a lot and usually unintentionally - the champion feels genuine joy about the intricacies of what they're pushing and just wants to share it with others. You can see this happening a lot around poorly thought-through and/or overly complex technologies.
This is why Rust's progressive trimming and slimming over the last 1-2 years has been really impressive and gratifying to watch - it really takes a lot to reevaluate and let go. Critics will point out that Rust still is plenty complex, of course, and I think that's healthy skepticism too.
There was also just a sense of "OK, I get what these things do, but when should I us an @ vs an ~ vs a & in my API", and now I feel like it's much more clear what you use the different reference types for.
https://news.ycombinator.com/item?id=9541138 (two days ago on HN) and its website: https://github.com/servo/servo