4 ms·
Well, the obvious one is your deployment options: You need to either compile binaries for the target platform, or ask the user to compile from source. As far as
by Hemospectrum 12y ago
Well, the obvious one is your deployment options: You need to either compile binaries for the target platform, or ask the user to compile from source. As far as I know, you can't yet compile Rust to Javascript.
Support for GUI toolkits will probably require some glue code. I've heard that Windows is a particular source of headaches, but I'm not clear as to why. SDL seems to work everywhere; remember that Rust is designed for seamless C interop in both directions.
- simias 12y agoYour first point perplexes me, Rust is a systems programming language like C, Pascal, FORTRAN, C++ and the like. Building ahead-of-time platform specific binaries is business as usual and not anything really notable about Rust itself. It's also actually a feature if you want to do things like bare-metal runtimeless code.
- kyllo 12y agoAs far as I know, you can't yet compile Rust to Javascript. I don't see why not--Rust uses LLVM as a backend, and LLVM bytecode can compile to Javascript with emscripten. Although, I don't really see why you would want to, either.
- vmind 12y agoRust relies on a newer version of LLVM than Emscripten is based on (as Emscripten-fastcomp is based on the PNaCl fork of LLVM, which is lagging behind). Once the PNaCl fork is updated and Emscipten rebases, or they rebase onto LLVM proper, then it should be doable fairly easily.
- kyllo 12y agoI see. Thanks for clarifying!