@polycarbohydrate on Personal Site
I created my personal website using the Rust Programming Langauge. Traditionally websites use HTML, CSS, and/or Javascript. I decided down a more questionable route…
I am using the egui Rust crate for the GUI library. The GUI framework is eframe. In order to bundle all of the Rust code into something a browser can render, I use trunk, which compiles my code and assets into a WebAssembly binary (.wasm).
When the site first launches, there is a loading screen which is HTML and CSS. Javascript loads the WASM.
Everything you see is rendered using textured triangles. There is no HTML, CSS, JS, or DOM. WebGL and WebGPU do the rendering. Every movement of the mouse causes the entire frame to be redrawn. This is not the most optimal way for a personal static site, but allows me to create fast interactive portions of my site in the future.
The majority of my time was spent in compilation and reading documentation. Compiling takes over 5 minutes for me (for a full rebuild).
I hope you enjoy!
- 3 devlogs
- 12h
- 11.29x multiplier
- 164 Stardust