Enter Mozilla – Mozilla has always created innovative stuff. Firefox was built in C++ on a technology called XPCOM (Cross Platform Component Object Model). This took Microsoft’s very successful COM technology and created a cross-platform version from scratch. A couple of independent cool products were even developed on top of it (Python IDE Komodo from ActiveState). But, it was a very complicated piece of software.
Fast forward to today and Mozilla is building a new prototype browser using a new language of its own making, known as Rust. Rust is very unique. It brings memory management to the front and in the process also takes care of concurrent programming. It’s able to detect a slew of issues at compile time that traditionally were discovered only at runtime. It is said – tongue in cheek – that if your program compiles it is correct. The problem is that getting a Rust program to compile is a non-trivial adventure. I played with Rust a little bit and it requires a lot of persistence. Right now, version 1.3 is out. There is an enthusiastic community around Rust and a lot of things are done right. They put a lot of emphasis on documentation. There is support for projects and packaging is not an afterthought (Python’s Achilles’ heel). Rust has great integration with C and other languages, so you can leverage many existing libraries.
I believe Rust is going to be a major player where critical, secure and performance-sensitive code is required. Give it a try, but don’t count on it for serious production code just yet.