4 ms·
Rust for web dev instead of Go? I want to believe. What’s the killer app?
by jahewson 3y ago
Rust for web dev instead of Go? I want to believe. What’s the killer app?
- unshavedyak 3y ago> Rust for web dev instead of Go? I want to believe. What’s the killer app? No killer app here. We just prefer Rust itself. Go is very capable and a great choice. For me personally i found Go to spread logic out far too much. Some features of Rust, Iterators for example, massively simplified how i think about data flow. That was my #1 issue with Go. This has side root-causes in Go of course, like no generics to allow for Iterators, etc - but these days Go has generics so it's likely improving. Features around Enums are also huge for me. I left Go ages ago and it's improved a lot sense then. I still prefer Rust, though. As i said no judgement on any lang, including Go. This is merely my experience and preferences.
- tracker1 3y agoI would say for me, the killer app would be just about anything you might reach for Electron with, but want a much smaller install footprint. Tauri in and of itself is pretty cool, kind of a lighter alternative to electron using native platform browser engine. In general, I would probably reach for Rust if I needed to do anything wither Web-Assembly (wasm) as the path to working is much nicer than other languages imo. Along those lines, Yew is pretty nice as a rust-like framework. I've also played with Rocket, and found it very nice and effective for api driven web-apps. Haven't done any templating engines in/with Rocket, however.
- rizky05 3y ago[dead]
- yodelshady 3y agoTauri might be cool in theory, but Hello World consumers TWO POINT EIGHT GIGABYTES of hard disk on my machine. Arguing "Rust has no dev speed penalty" in that context is just... no. You are damaging your own cause there, because all advocacy becomes laughable.
- tracker1 3y agoSo, you built the application, created the installer... and your install on another machine is 2.8GB? I find that hard to believe. From another response, their Windows installer is under 7mb, and much of that is MSI boilerplate. https://github.com/lencx/ChatGPT/releases/tag/v1.1.0 https://github.com/lencx/ChatGPT/releases/tag/v1.1.0
- CryZe 3y ago> but Hello World consumers TWO POINT EIGHT GIGABYTES of hard disk on my machine. While yes, that's really bad, it's just temporary build files. The actual executable should be fairly tiny.
- lencx 3y agoTauri is indeed very cool, and also very small (the installation package is typically under 5MB). I used it to build a wrapper application for the ChatGPT official website, extending the site with many interesting features through script injection. However, the compatibility of the system webview across different platforms is a frustrating matter. https://github.com/lencx/ChatGPT https://github.com/lencx/ChatGPT
- boredumb 3y agoI use Tide with great success
- swlkr 3y agoDioxus liveview or if you don't want websockets, dioxus fullstack, you can use warp or salvo but axum is good. Rust embed is also great, I cross compile everything into a single dynamically linked binary and scp to my vps, deployment is a breeze.
- eyegor 3y agoYew is pretty well loved, but I haven't had a chance to do much beyond toy projects with it. https://yew.rs/ https://yew.rs/ https://github.com/yewstack/yew https://github.com/yewstack/yew
- nextaccountic 3y agoOn the backend it's probably axum and tokio https://github.com/tokio-rs/axum https://github.com/tokio-rs/axum https://tokio.rs/tokio/tutorial https://tokio.rs/tokio/tutorial
- adamnemecek 3y agoThere are front end Rust frameworks that work via wasm.