Rust Lang

http://www.rust-lang.org

Variables

let x = 1; let mut y = 2; y = y + x;

other stuff

println("something");
println("x={}",x);
curl -s https://static.rust-lang.org/rustup.sh | sudo sh

[sudo] password for antonyh: 
rustup: gpg available. signatures will be verified
rustup: downloading manifest for 'beta'
rustup: downloading toolchain for 'beta'
######################################################################## 100.0%
gpg: Signature made Sun 26 Apr 2015 02:28:38 BST using RSA key ID 7B3B09DC
gpg: Good signature from "Rust Language (Tag and Release Signing Key) <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 108F 6620 5EAE B0AA A8DD  5E1C 85AB 96E6 FA1B E5FE
     Subkey fingerprint: C134 66B7 E169 A085 1886  3216 5CB4 A934 7B3B 09DC
rustup: extracting installer
rustup: installing toolchain for 'beta'
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rust-docs'

    Rust is ready to roll.

term

https://github.com/gchp/rustbox

https://crates.io/crates/rustbox

http://apribadi.github.io/rust-termbox/

use std;
use termbox;

import tb = termbox;

fn main() {
    tb::init();
    tb::print(1, 1, tb::bold, tb::white, tb::black, "Hello, world!");
    tb::present();
    std::timer::sleep(std::uv_global_loop::get(), 1000);
    tb::shutdown();
}