18
toriyuno
76d

Thinking of learning a new language. What do you guys think about rust?

Comments
  • 13
    Sure does ruin a nice car :)

    All seriousness Rust is one of the best modern languages to be learning, without a doubt. If I had to be learning something new that’s what I’d be doing
  • 3
    Go for it. You'll love it!
  • 3
    @FrodoSwaggins what do you like about it?
  • 1
  • 2
    Rust is also on my to learn list since it can also be used for webassembly
  • 3
    @shexohex never stop talking about it :p
  • 7
    @asgs
    Ha! Go.
    Sorry, I'll show myself out.
  • 3
    It's awesome. Traits are great and lifetimes/borrowing rules make it much easier to understand the intentions of the author when a reference is held in a struct.
  • 4
    @toriyuno its like c++ if c++ were designed by a modern compiler engineer.

    It has a ton of memory safety stuff that doesn’t affect the performance or otherwise add any overhead to the generated code, all static at compile time, and can generate unsafe code and therefore be used for os kernels.

    Lots of cool concepts
  • 3
    how’s the job demand for Rust compared to Go or python?
  • 3
    rust compiler:
    you can’t do it this way
    ....
    n times later
    I can now compile it to you

    great language with memory safety unless you use unsafe c++ code
  • 2
    @toriyuno not nearly as good, but really it would be easy to convince someone to let you write some small service using it
  • 2
    @toriyuno python is high demand and worth knowing but it’s an orthogonal skill. but rust is catching on (I think) and also worth learning for the early opportunities.
  • 4
    @toriyuno golang is more about networking stuff,
    python is more about interface and scripting,
    rust is about lower level
    I’ve been attending c++ conference last year and there was rust already so if you’re c++ dev it can be helpful
  • 4
    @FrodoSwaggins how is python orthogonal? early opportunities? It's been the #1 most loved language on SO for 4 years in a row. That's a long time, and kind off how the job market doesn't reflect that.
  • 4
    @toriyuno I wouldn’t pay attention to anything that compares python to c++ even superficially like “most loved” it’s a fundamentally nonsense apples-to-oranges comparison. C/c++ and to a pretty substantial extent rust are static systems languages, and python is a duck typed scripting language. One is a hammer and one is a nail. The types of problems that they attempt to solve and do solve are more or less orthogonal, so that’s why I say they’re orthogonal skills.
  • 4
    @FrodoSwaggins wow. Never thought of it that way. So that's what you mean by system development. Makes sense. Thank you.

    Now to just think of a project
  • 2
    @asgs "Go for it. You'll love it!"
    I see what you did there. No pun intended 😂
  • 3
    @Devnergy no, I realized the (unintended) pun later :-)
  • 2
    What Rust seriously lacks is an ISO standard. Right now, it's some floating sand dune.

    Back then, Pascal was comparable to C, but did not have a (useful) ISO standard, and that was a big reason why Pascal failed.

    Also, Rust is backed by Mozilla, but Mozilla itself has made so many bad decisions that their main product Firefox is becoming irrelevant, and that doesn't bode well for Rust.

    Rust might be able to replace C++, though it doesn't look probable. It won't replace C however. Technically, it could, but it lacks C's simplicity just as C++ does, and where C is being used now (e.g. embedded), Rust is likely to be regarded as just another puzzle language.

    Also, Rust's current backend LLVM is a concern. The compiler crash I filed as bug years ago still has nobody assigned to even look at it, so that's nothing I'd want to rely on.
  • 1
    @Fast-Nop
    Why does Rust actually need an ISO-Standard?
    If it gets standardized, the same thing will happen as with C.
    A fuckton of implementations will spawn, each with their own language-extensions, but all projects will focus on one or two implementations, and building on top of their language-extensions, making it impossible yo compile the code with any other implementation, making multiple implementations irrelevant.
  • 2
    @metamourge how would you want to compile a project from 10 years ago? In C, you just tell the compiler which exact C standard has to be used, and that wouldn't work without ISO standards.

    For things that aren't possible in Rust, people use the unsafe escape hatch anyway to interface C code, and that in turn allows also for interfacing with assembly if need be.

    Look at Pascal that didn't have a useful ISO standard - what that got you was many implementations, too, and they were incompatible.

    If you want to avoid that situation, you'll need a proprietary language, but Oracle has made clear why that is to be avoided.
  • 2
    @Fast-Nop you know so much @_@
Your Job Suck?
Get a Better Job
Add Comment