As part of my research I found an excuse to use Rust. `polsim` is a commandn line utility for simulating the polarization of a laser beam as it interacts with a sequence of optical elements. In this post I'll describe `polsim` itself and my experience using Rust to write it rather than Python.