MENU

Fun & Interesting

Let's make an htop-like in your browser (with Rust)

fasterthanlime 87,060 2 years ago
Video Not Working? Fix It Now

Follow me on Mastodon: https://hachyderm.io/@fasterthanlime Support me on Patreon or GitHub: https://fasterthanli.me/donate You can find the code at: https://github.com/fasterthanlime/axact Contents 00:00 Adding tokio & axum 03:45 Pushing it to GitHub 04:19 Measuring CPU usage with sysinfo 11:05 Adding a JSON endpoint 14:03 Serving HTML 17:20 A dynamic page with Vanilla JS 21:50 Using preact and htm without a bundler 26:43 From text to styled div soup 31:41 Bridging sync & async Rust 36:02 Suddenly lock contention 38:33 Who doesn't love websockets 42:56 websocat and the load-bearing semi-colon 45:17 Consuming Websockets from JS 47:06 Using tokio's broadcast channel 50:39 Thanks for watching

Comment