Search:

Type: Posts; User: Neo1

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    167
    Views
    41,775

    It seems i've been peddling misinformation - the...

    It seems i've been peddling misinformation - the ref-counting smart_ptr equivalent has been removed from the Rust language.



    Screw it, i'll bite.

    If i initially failed to argue _why_ some of...
  2. Replies
    167
    Views
    41,775

    The Rust Foreign Function Interface Guide...

    The Rust Foreign Function Interface Guide

    The Rust FFI no longer uses stack-switching when calling external C functions. As far as the C interface itself, it is still under development like the...
  3. Replies
    167
    Views
    41,775

    But by virtue of being interpreted or just very...

    But by virtue of being interpreted or just very high-level they cannot compete with C in the areas that have made C as popular as it is. Rust is one of a number of new languages (see Nimrod for...
  4. Replies
    167
    Views
    41,775

    It is absolutely unique to C++ in the sense that...

    It is absolutely unique to C++ in the sense that no other language contains its own predecessor as a subset (at least none that i know of?). I did not say everyone who writes C code and passes it off...
  5. Replies
    167
    Views
    41,775

    I just don't see how this in any way works as an...

    I just don't see how this in any way works as an argument against stronger type safety always being an advantage? If you want to do type unsafe things, then the only way you're gonna be able to do it...
  6. Replies
    167
    Views
    41,775

    I'd challenge the statement that this is commonly...

    I'd challenge the statement that this is commonly done in games, this seems like a horrible design to me. Nonetheless, if someone really wants to do this they can, by jumping through hoops,...
  7. Replies
    167
    Views
    41,775

    Rust has pattern matching and recursion. It also...

    Rust has pattern matching and recursion. It also has regular conditionals and for/while loops. Nobody is forced to stick to immutable variables either, it is just the default type of variable.


    ...
  8. Replies
    167
    Views
    41,775

    I'm not familiar with Erlang, but a quick Google...

    I'm not familiar with Erlang, but a quick Google tells me Erlang uses single-assignment; so that would be a tentative yes.



    I never claimed that type safety is an ultimate tool that solves...
  9. Replies
    167
    Views
    41,775

    No, no it doesn't. The narrow views that you...

    No, no it doesn't. The narrow views that you claim i have of C++ seems to be matched to an equal extent by the narrow views you have of Rust. The only thing that _needs_ to be mutable is the state of...
  10. Replies
    167
    Views
    41,775

    I most certainly did. Immutability by default is...

    I most certainly did. Immutability by default is _plainly_ better than the opposite, compile-time memory management is _plainly_ better than dereferencing dangling pointers at runtime, the increased...
  11. Replies
    167
    Views
    41,775

    Fine, what are these features that you perceive...

    Fine, what are these features that you perceive to be problems?
  12. Replies
    167
    Views
    41,775

    Weeeeelll, it has not completely replaced C, but...

    Weeeeelll, it has not completely replaced C, but it has certainly been taking big bites out of C's marketshare for some time now. Would you not say? Are we not constantly having discussions on this...
  13. Replies
    167
    Views
    41,775

    In that sense Rust is closer to C++ than it is to...

    In that sense Rust is closer to C++ than it is to C and is already quite large. I think the claim that it can or will replace C stems from the fact that it has the potential to match C in terms of...
  14. Replies
    167
    Views
    41,775

    So is Rust. As with C, all you really need is a...

    So is Rust. As with C, all you really need is a stack. Anything else is optional. You could rewrite the Linux kernel in Rust if you really wanted (and waited until the language is finished, and had a...
  15. Replies
    167
    Views
    41,775

    The difference then boils down to whether or not...

    The difference then boils down to whether or not there is any reasons to replace either C or C++. I can think of a thousand good reasons, but apparently none of them are good enough to warrant the...
  16. Replies
    167
    Views
    41,775

    I'm not the author of Rust, the Mozilla...

    I'm not the author of Rust, the Mozilla foundation is. I didn't plan on spending the entire thread justifying the creation of Rust i must say, but then i didn't plan on finding such a generally...
  17. Replies
    167
    Views
    41,775

    Phantomotap: I disagree that marking...

    Phantomotap:

    I disagree that marking potentially unsafe code as 'unsafe' is the same as making the programmer jump through hoops. It informs the compiler that it should not issue errors or...
  18. Replies
    167
    Views
    41,775

    In every way? Have you not been following the...

    In every way? Have you not been following the thread?

    Say you allocate some memory and assign a Rust unique_ptr to maintain ownership of this memory. There is no way for the programmer to...
  19. Replies
    167
    Views
    41,775

    I'm well aware C++ does not use garbage...

    I'm well aware C++ does not use garbage collection. The point is that Rust gives you many of the advantages of garbage collection, without imposing many of the disadvantages of having a GC, of which...
  20. Replies
    167
    Views
    41,775

    No, a borrowed reference to a value can never...

    No, a borrowed reference to a value can never live longer than the value itself, this is enforced at compile time. At runtime, everything just lines up because if it didn't, then the program wouldn't...
  21. Replies
    167
    Views
    41,775

    No, but i _did_ expect a reasonable awareness of...

    No, but i _did_ expect a reasonable awareness of the weaknesses of C/C++. I don't think that is what i got.



    Improving existing languages is fine by me, Elysia suggested that it is strictly a...
  22. Replies
    167
    Views
    41,775

    Yet somehow the same is not possible with the...

    Yet somehow the same is not possible with the Rust smart pointers?



    How so? If it is handled at compile-time then it wouldn't need to be checked at runtime.



    Having a standard ABI doesn't...
  23. Replies
    167
    Views
    41,775

    True, the way Rust manages memory is with...

    True, the way Rust manages memory is with reference counted smart pointers, like C++. So if C++ with smart pointers is fast enough for some task, then Rust will be too (Once the compiler is more...
  24. Replies
    167
    Views
    41,775

    Let's talk about Rust!

    Surprised anyone hasn't brought up this exciting new language on CBoard yet!

    The Rust Programming Language

    While it is still very much at the pre-alpha stage, it is being hyped as the new C...
  25. Replies
    29
    Views
    6,259

    Errr, i don't know man. I'd consider Haskell a...

    Errr, i don't know man. I'd consider Haskell a proof to the contrary :D
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4