Thread: So, what do we think of Rust?

  1. #1
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665

    So, what do we think of Rust?

    I know last time this got brought up, the person who did got all butt flustered by the skepticism here.

    But I started reading up on it and it seems cool. Someone even made an API to link Rust modules into Node.js so that's cool. But v8 programming doesn't seem that daunting to me anymore.

  2. #2

  3. #3
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Quote Originally Posted by Yarin View Post
    Hmm... That's an interesting perspective...

    But there's move semantics, kind of!

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by MutantJohn View Post
    I know last time this got brought up, the person who did got all butt flustered by the skepticism here.
    Has anything in the language changed that warrants looking back at it again? No? Well, then... Same opinion as before.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5

  6. #6
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Awesome nominal, love all of firth's stuff

  7. #7
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Quote Originally Posted by Mario F. View Post
    Has anything in the language changed that warrants looking back at it again? No? Well, then... Same opinion as before.
    I think the thread is gone. What was your opinion?

    To me, it seems pretty cool. It's like C++ lite. I wouldn't use it instead of C++ but I would use it instead of Python or Node, for example, if I could.

  8. #8
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by MutantJohn View Post
    I think the thread is gone.
    http://cboard.cprogramming.com/gener...bout-rust.html

  9. #9
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Hey, thanks! I'm reading through it now.

  10. #10
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    So, I read through the thread and I gotta say, it's absolutely freaky to read stuff that one has written over 1 year ago XD
    I'm so cringeworthy lol.

    But I only make this topic because my fellow programmers were talking about it at work and let's be honest, I'm a radically better programmer than I was when that thread first came out. So, I looked into Rust again and now that I've finally been using smart pointers and reading up on move semantics, Rust seemed a lot cooler to me. I figured it had been long enough that Rust is probably a little different than it was then.

    But re-reading through the thread, I think I agree with the overall sentiment. I would never use Rust instead of C++. That's just not going to happen. But I would use Rust instead of other languages. Rust is great in the sense that it does a lot for the programmer but I could see how many of the features could be annoying.

    Personally, I want Rust and Node.js to be integrated together. Rust is made by Mozilla. I'm confident that Rust was created not just to make programming FireFox easier but I'm hoping for some sort of JavaScript integration. There's a program thing called Rust lets Rust be used as a Node.js module. It only works on OS X right now (or so the author claims, I haven't tried the code yet).

    Node.js is fun. It's like the Arch Linux of web development. It comes with no packages so you have to install them all manually (so you get a very customized module library of only what you want/need). The single-threaded approach is great too. Offloading the "heaviest" of work is a smart idea (waiting on hard drive/database fetches, network responses) to separate threads is a great idea and I enjoy working with the event model. I like the idea of code yelling, "Hey, I'm done" and then some other being like, "Sweet, bro, let me run this code now!"

    But Node lacks any sort of low-level access. Rust makes up for that in a huge way. Honestly, Node's thread support is poo poo. Rust's is on par with C++'s it seems. I could sit down, code up a threadpool in Rust and attach it to my Node.js web server and easily make the thread pool accessible from the entire web server. I can do super cool stuff like that, assuming the Neon stuff gets expanded upon.

    After having used Apache for a little bit, the Express.js interface seems attractive at the same time. Just like Arch Linux, it's really easy to get in there and change things quickly. I think they're both good, mind you, but I enjoy Node.js right now and Rust would be an amazing tool to use in tandem with it.

    It's stupid to assert that Rust will kill C++. But Rust has the potential to be pretty amazingly useful. I dig it.

  11. #11
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by MutantJohn View Post
    I dig it.
    Who's your daddy‽

  12. #12
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by MutantJohn View Post
    It's stupid to assert that Rust will kill C++. But Rust has the potential to be pretty amazingly useful.
    I'm not so sure. It's trying to get into a market without showcasing anything of interest. Mozilla doesn't seem interested in moving even SpiderMonkey to Rust. Why should we care about the language?
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  13. #13
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    What's happening to Rust feels a lot like what's happened to pascal. If you ignore that pascal was actually used somewhere once, pascal is also involved in nothing interesting now despite being a beautiful language. Rust may find a niche. For example, and this is off the top of my head with no classroom experience at all, it could be used to teach programming. Maybe.

    Now I gotta get outta here before people discover that I'm sicking rusters on teachers and away from programmers on the Internet!

    Something about discussing programming languages makes me really hate adjectives.

  14. #14
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Quote Originally Posted by Mario F. View Post
    I'm not so sure. It's trying to get into a market without showcasing anything of interest. Mozilla doesn't seem interested in moving even SpiderMonkey to Rust. Why should we care about the language?
    That's a good question. I don't know. I've said whatI think is cool and that's enough for me.

    Quote Originally Posted by Yarin View Post
    Who's your daddy‽
    Lol.

    Quote Originally Posted by whiteflags View Post
    What's happening to Rust feels a lot like what's happened to pascal. If you ignore that pascal was actually used somewhere once, pascal is also involved in nothing interesting now despite being a beautiful language. Rust may find a niche. For example, and this is off the top of my head with no classroom experience at all, it could be used to teach programming. Maybe.

    Now I gotta get outta here before people discover that I'm sicking rusters on teachers and away from programmers on the Internet!

    Something about discussing programming languages makes me really hate adjectives.
    This is funny. I've heard of Pascal but never even once looked at what it might look like.

  15. #15
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by MutantJohn View Post
    That's a good question. I don't know. I've said what I think is cool and that's enough for me.
    Why do you feel node.js rust bindings would be cool?

    1. Rust has yet to establish itself in the market. Consequently it has very little in terms of libraries in the wild. Rust bindings would mean having to write your own libraries from scratch to do anything useful for your node.js code.

    2. Node.js is built on Google's V8 engine, which is a C++ codebase. Considering the comparative scopes of C++ and Rust languages, don't you think C++ bindings would be much more useful?

    3. node.js exposes itself to native code through an addon interface. Not through language bindings. node-gyp is a set of tools that currently allows you to compile native code to node.js addons. Exactly what you need. Although node-gyp currently only supports C++ sources, you can always ask them if they have plans for other languages.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Let's talk about Rust!
    By Neo1 in forum General Discussions
    Replies: 167
    Last Post: 06-26-2014, 07:17 AM