Home Blog CV Projects Patterns Notes Book Colophon Search

Trying Out the Servo Browser Engine

28 Sep, 2016

I've been following the development of the Rust language a little bit this year. If I'm honest I've found the official book quite hard work, but David Raznick tipped me off to an O'Reilly book on Rust currently in development. Since I subscribe to Safari, I've been able to read it already.

The two most exciting features of Rust are:

The language was invented by Mozilla for a new browser engine they are writing called Servo, so I thought I'd give it a go.

Here are the steps on a recent OS X:

brew install rust
brew install automake pkg-config python cmake
pip install virtualenv
brew install openssl
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
git clone https://github.com/servo/servo
cd servo
./mach build -r
./mach run -r --browserhtml

This all takes a long time to build, but it did so flawlessly for me.

Here's the result of visiting jimmyg.org:

Servo

As you can see there is quite a lot working here including JavaScript and CSS. The things that seem pretty broken are CSS floats and clear: both. Overall though I'm really excited to see the progress.

Copyright James Gardner 1996-2020 All Rights Reserved. Admin.