Although you use Rust as main language, there are reasons to use a second language i.e. for scripting; the AAA games usually are built in C++ but it's very common the usage of Lua for scripting

El 05/03/14 04:40, Liigo Zhuang escribió:
If I select Rust as my main language, I don't think I have any reason to
write new code in Go. Go away!

2014年3月5日 上午3:44于 "John Mija" <jon...@proinbox.com
<mailto:jon...@proinbox.com>>写道:

    Every time there is a new language, developers have to start to
    developing from scratch the same algorithms.
    The alternative has been to use C libraries already built since is
    much easier to interface with other languages and a lot of languages
    will let you call C functions directly.

    But C language is unsafe and there is a penalty performance at binding.
    Besides, it is harder to debug incorrect C code.

    So, why don't use a simple language but safe like Go?
    The Go compilers create a single intermediate file representing the
    "binary assembly" of the compiled package, ready as input for the
    linker: http://golang.org/cmd/gc/

    I'm supposed that a linker could be built to link that intermediate
    file together to a Rust program.

    The main advantage is that you would use a simpler language to build
    algorithms and code of lower level (asm), wich could be linked from
    other languages.
    Rust is a language more complex to replace to C like "universal
    language".

    Note: I love both languages; Go for web apps and Rust for everything
    else (mobile and desktop apps, and servers).
    _________________________________________________
    Rust-dev mailing list
    Rust-dev@mozilla.org <mailto:Rust-dev@mozilla.org>
    https://mail.mozilla.org/__listinfo/rust-dev
    <https://mail.mozilla.org/listinfo/rust-dev>

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to