Why I Switched from Rust to Go on the Back End
levelup.gitconnected.com
levelup.gitconnected.com
I actually think those are fair reasons to switch to something more straightforward for a solo dev, but none of these are true showstoppers and the story for each will get better in time. Good feedback on the Rust in general.
Can someone explain that part to me like I'm an idiot?
I don't get it. Compiling the project is slower on a container because...?
Why the author is doing this I do not know.
Rust does cross compilation fairly easily out the box. If the author needs an x86 Docker image they can compile an x86 static binary without Docker then copy the binary in to the container. It’s a trivially simple workflow and you end up with tiny Docker containers.
FROM scratch
COPY target/my/binary /bin/binary
ENTRYPOINT [/bin/binary]It's development, just cache target/ or COPY binary.
Leave Rust for use cases where no form of automatic memory management is desired.
Go and Rust can create one server binary.
Node dependencies can have thousands of files.
Javascript runs both at client webbrowser and Node serverside.
Go and Rust runs only serverside (if not transpiled to Javascript or WASM).
Like with any programming language, it depends are your required dependencies available for that programming language, with licenses that you would like.
It also has memory leak and corruption detection in debug builds, and it's surprisingly accurate. For leak detection it's 100% accurate because of the level it runs at. You can even build with these checks for production if you're willing to take the performance hit.