5
Haxk20
13d

In the process of building android master. I noticed one word. RUST.
Hmmm i look at manifest if rust was downloaded. Indeed i find rust repo there. Oh jeeez google why ?

Comments
  • 4
    Why not?
  • 0
    @metamourge IDK i just dont think its needed. It compiles to C so why not the F write it in C in first place. Its google they have people that could do it
  • 1
    @Haxk20 People write in Rust because it is more of a hand-holding language, especially when it comes to multi-threading.
  • 2
    @Fast-Nop Hmmm. I guess im masochist when i love C.
  • 4
    @Haxk20 Me too, and I have hated these kinds of compilers already with Pascal.

    But with a large company like Google, I can see their point. You don't know each and every dev and how much he'll fuck up things, and race conditions are both difficult to test for and hard to debug.

    Given the exponential curve of bug fix cost vs. project phase, it makes sense to use a language that will slow down the devs, but that will also keep them from easily fucking up.
  • 11
    @Haxk20 rust doesn't compile to C, it compiles to LLVM IR which LLVM then transforms into machine code, the same way other LLVM compilers work (like clang). It's a language with lots of formal analysis based safety features and good language design which makes writing low level code less of a risk and usually less likely to fall apart due to some error, though unsafe Rust (which you need for the lowest levels of hardware manipulation) is basically equivalent to C.

    @Fast-Nop I really see no slowdown when using Rust, both in dev time and run time, it's literally just the same thing as C but with a lot of code analysis built in instead of performed by third party tools, modulo syntax and some features like traits and the (awesome) type system.
  • 4
    @Haxk20 Rust is C in modern, more elegant and overall better
Add Comment