Hi John, It might be worth checking out Squirrel: http://www.squirrel-lang.org/ as an embeddable games programming language. I've not used it myself, I always turn to Lua first (out of habit) but I've heard great things about it.
It would be interesting to see bindings for it for Rust. :) Cheers, Chris On 9 September 2013 at 15:09:20, John Mija ([email protected]) wrote: Which would be the best way (respect to performance) to embed a language like Go in Rust? (a) Since the Go compilers are written in C, it could be wrapped the functions for compiling and linking, and then to do a system call to run the binary. (b) To call directly to the binaries to compile, link, and a last call to run the final binary. (c) Create a VM but it takes a lot of memory and it is necessary to be an export in virtual machines to get a good performance, but the negative part is that it takes a lot of memory. Lua works of this way; it is basically a library written in C with an implementation based into a VM to be easily embedded. (d) Compile Go source to Rust. * * * Why to use Go like embedded language? Go would be a great language for the user interface code of an application like a game; the syntax is simple, with garbage-collection getting simpler code that is developed faster, and the concurrency model fits well to handle events asynchronously. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
