Search:

Type: Posts; User: iopq

Search: Search took 0.01 seconds.

  1. Replies
    167
    Views
    41,864

    this can be done because Rust has a loop() so it...

    this can be done because Rust has a loop() so it knows you can only escape via break

    Java does the same thing in case of for(;;) and while(true) but not in other cases like while(1 == 1) so it's a...
  2. Replies
    167
    Views
    41,864

    Apparently not. You can write: let x; x =...

    Apparently not. You can write:


    let x;
    x = 1;
    print!("{}", x);


    the compiler knows that it wasn't used before it was initialized and it will compile and print 1
    if you write
  3. Replies
    167
    Views
    41,864

    Of course not, but it doesn't have a standard...

    Of course not, but it doesn't have a standard HTTP library yet, just some attempts by community members.

    On another note, Rust compiler is pretty smart:


    fn main() { ...
  4. Replies
    167
    Views
    41,864

    It's also not the goal according to the...

    It's also not the goal according to the developers of the language. The goal is to have a language with the same performance of C++ and better safety than Java while still not having GC. For example,...
  5. Replies
    167
    Views
    41,864

    to the contrary, most variables are something...

    to the contrary, most variables are something like



    ui_inputSpinBox1 = findChild<QSpinBox*>("inputSpinBox1");

    and then later


    ui_outputWidget->setText(QString::number(value +...
  6. Replies
    167
    Views
    41,864

    Yeah, once I discovered languages that don't have...

    Yeah, once I discovered languages that don't have null I pretty much stopped being impressed by languages that didn't solve this problem. That's why I didn't like Dart: it's not doing enough to...
  7. Replies
    167
    Views
    41,864

    it doesn't both of those examples expand to...

    it doesn't

    both of those examples expand to simple codes when compiled, just a few repeated instructions in the binary
  8. Replies
    167
    Views
    41,864

    As you know, nobody writes assembly by typing in...

    As you know, nobody writes assembly by typing in machine code directly
    Each assembly language is a macro language

    in other words, most assembly languages have the capability of writing

    ...
  9. Replies
    167
    Views
    41,864

    that's what I meant, the assembly language of the...

    that's what I meant, the assembly language of the Mill is C++



    I like x64 myself, but if what the Mill promises is true, you can actually have mobile devices as powerful as desktop computers...
  10. Replies
    167
    Views
    41,864

    Well, yes, it's the maturity of the borrow...

    Well, yes, it's the maturity of the borrow checker. But the borrow checker has to be mature because of the interaction of all the features in the language like borrowed slices and so forth.

    By...
  11. Replies
    167
    Views
    41,864

    I wouldn't call Rust a small language. First of...

    I wouldn't call Rust a small language. First of all, it has a lot of syntax like for, if, etc. in Smalltalk this is implemented with method calls and then inlined by the JIT (hopefully). Then you...
  12. Replies
    167
    Views
    41,864

    I think it has the potential to replace C for...

    I think it has the potential to replace C for libraries like OpenSSL because of added safety. At the same time it can replace C++ for performance-critical programs like browsers and media players...
  13. Replies
    167
    Views
    41,864

    I also got linked here from the Rust subreddit,...

    I also got linked here from the Rust subreddit, and I don't understand the hostility. As I understand it, Rust offers something C/C++ can never offer:

    Absolute safety without sacrificing speed....
Results 1 to 13 of 13