Rust is a systems programming language designed around speed and
safety. It sits roughly halfway between Go and Haskell. In
particular, it combines precise, safe control over memory with
high-level functional programming. Haskell programmers, for example, will
notice that Rust's and_then
works much like bind
in Haskell's Maybe
monad:
usestd::os::getenv;usestd::io::net::ip::Port;/// Look up our server port number in PORT.fnget_server_port()->Port{getenv("PORT").and_then(|s|from_str::<Port>(s.as_slice())).unwrap_or(8080)}
Anyway, I spent this morning trying to get Rust working on Ubuntu 10.04
Lucid, as part of a larger effort to deploy a Rust application on Heroku.
(More on that soon.) On Ubuntu 10.04, rustc
fails looking for
libstdc++.so.6
: