The Solar System, With Rust & WASM

This is an ongoing project to build a simple model of the solar system. I will use a HTML canvas as a background and try and do all the processing using a web assembly module.

Your browser does not support the canvas tag
Sim
Nav
Create
Display

The controls were retrofitted to give this first iteration some more interactivity.

It’s nice just to watch the simulation, after some time you notice the planets stealing each others energy as they pass close by. The orbits change quite significantly.

Motivation

I’ve been trying to learn Rust for a few years now, I’ve done a couple of example projects (the wasm-game-of-life) and a desktop alarm/timer app, but nothing substantial.

I’ve also wanted to create my own website where I could showcase my projects. This is the first project on that journey. I have a lot of work ahead to make the site look good. So I’m trying to keep the scope of this project fairly limited.

Tasks

Follow along with this project

I am documenting my progress in a series of posts starting here

Created: 28/08/2022
Last Updated: 16/07/2025