Live data from Hacker News

Fun facts about Rust's growing popularity

jonathanturner.org

81–90 of 136 posts

Re: Fun facts about Rust's growing popularity

#81

Well, a fun fact: there is nothing funny about that list :). It should have been called "Some facts about Rust's growing popularity". Now, my predicament: I love Rust's type system and tooling, but it's really hard to justify to myself the pain of writing correct Rust code (borrowing, lifetimes, etc.) when I know I can get almost the same effect by using a GC language + immutable messages. And I don't need that last…

> And I don't need that last drop of performance either.

If Nim could mature a bit it would be really nice. There is OCaml but it is a bit goofy to work with if you prefer more imperative style coding. There is Go but no generics.

Re: Fun facts about Rust's growing popularity

#82

Well, a fun fact: there is nothing funny about that list :). It should have been called "Some facts about Rust's growing popularity". Now, my predicament: I love Rust's type system and tooling, but it's really hard to justify to myself the pain of writing correct Rust code (borrowing, lifetimes, etc.) when I know I can get almost the same effect by using a GC language + immutable messages. And I don't need that last…

> So if you just want a native language with a good type system and a growing ecosystem, where do you go? Still Rust or something else?

Nim[1] is a good alternative to Rust if you don't mind a GC, and I argue that even for use cases where a GC might be problematic it's still a good choice thanks to the Nim GC's soft real-time capabilities.

1 - https://nim-lang.org

Re: Fun facts about Rust's growing popularity

#84
post #2

> Now over 20% of Rust devs use it at work. This one jumped out at me. I'd be curious how this compares to other languages. (I know nothing about rust besides that I see it on hn all the time, impressive list though!)

I would look more carefully at this figure. As an example, over 20% of Nim devs use Nim at work as well[1], but of course the number of respondents is far smaller so it merits a closer look.

1 - https://nim-lang.org/blog/2017/10/01/community-survey-result...

Re: Fun facts about Rust's growing popularity

#85
post #70

Earlier quoted context omitted.

>Rusts solution is a more general solution to the "general resource problem" It's true. Ever since I got familiar with the ownership concept, I've taken to writing C# IDisposables with disposable member variables like this: public MyObject(){ this.myResource = new DisposableResource(); this.ownsMyResource = true; } public MyObject(DisposableResource resourceToUseThatIDontOwn){ this.myResource = resourceToUseThatIDont…

I agree and I appreciate what they are trying to do. But just as a counter-argument, look how a simple lock looks like in Rust [1]: fn main() { let counter = Arc::new(Mutex::new(0)); let mut handles = vec![]; for _ in 0..10 { let counter = counter.clone(); let handle = thread::spawn(move || { let mut num = counter.lock().unwrap(); *num += 1; }); handles.push(handle); } //... } [1] https://doc.rust-lang.org/book/secon…

You can simulate something like that using lambdas in C#.

Something like

    withLock(counter, (num) => {
       return num + 1;
    });
or in alternative,

    withLock(counter, (ref num) => {
       num++;
    });

If C# allowed for trailing lambdas it could look better.

Re: Fun facts about Rust's growing popularity

#86
post #49

Earlier quoted context omitted.

> [...] but it's really hard to justify to myself the pain of writing correct Rust code (borrowing, lifetimes, etc.) when I know I can get almost the same effect by using a GC language + immutable messages. > And I don't need that last drop of performance either. You probably write more highlevel code? Rust is --as the name implies-- most suited for close-to-the-metal code. This is often where that "last drop of perf…

> Rust is --as the name implies-- most suited for close-to-the-metal code. There are a lot of projects that really could be written in a high-level language, but they were started when C was still preferable due to the immaturity of higher-level solutions. I think it is sad that people, looking at these aging and unaudited C codebases, are thinking about rewriting them in Rust, when rewriting them in e.g. Python migh…

Most of the FOSS software originated with the UNIX culture, where C thrives and the original FSF Manifesto suggested using only C to increase portability between POSIX systems.

So the historical accident was UNIX/POSIX taking over the majority of OS architectures.

Re: Fun facts about Rust's growing popularity

#87
post #66

Earlier quoted context omitted.

Please please please can we stop with the Rustacean/Gopher/etc crap? You don't need a cutesy label to identify that you use a tool. I enjoy Doctor Who (though it's been getting worse for the last 5 or so years) but I do NOT want to be called a Whovian. What's the first image that pops into your head when I say "Trekkie"? It's probably not someone with good health and hygiene, is it?

Check your hangups at the door man. I love being a gopher and a rustacean. I like being cute and having a cute name for myself and fellow community members. It's attitudes like this that created the massive gender divide in CS and it needs to end.

I'm sorry, what?

I apologize if it comes off as sexist, because that's not my intent. Cutesy labels trip my cultometer. Hard. It's a creepy indoctrination technique, and I'm incredibly uncomfortable with it, especially after having grown up in a very gaslit home.

Re: Fun facts about Rust's growing popularity

#88
post #4

Best fact: Rust users are apparently called Rustaceans. I did not know this, and have never seen this wonderful term before.

Please please please can we stop with the Rustacean/Gopher/etc crap? You don't need a cutesy label to identify that you use a tool. I enjoy Doctor Who (though it's been getting worse for the last 5 or so years) but I do NOT want to be called a Whovian. What's the first image that pops into your head when I say "Trekkie"? It's probably not someone with good health and hygiene, is it?

It's a common marketing tool nowadays. Many popular vloggers and DJ's who have made a name for themselves through social media do it too. They also use other shibboleths to foster an 'in-group' vs 'out-group' feeling, like hand signals, or just specific phrases used for signing off, or referring to themselves or other groups. I guess it appeals to some fundamental desire to 'belong'.

Personally I think it's quite creepy and dystopian. Then again, is it worse than wearing t-shirts with the name of a software project on them outside of conferences about that specific software? That's kind of cringy/cultish too, when you look at it from the outside, but it doesn't feel that bad when large parts of your life revolve around that particular software.

Re: Fun facts about Rust's growing popularity

#89
post #88

Earlier quoted context omitted.

Please please please can we stop with the Rustacean/Gopher/etc crap? You don't need a cutesy label to identify that you use a tool. I enjoy Doctor Who (though it's been getting worse for the last 5 or so years) but I do NOT want to be called a Whovian. What's the first image that pops into your head when I say "Trekkie"? It's probably not someone with good health and hygiene, is it?

It's a common marketing tool nowadays. Many popular vloggers and DJ's who have made a name for themselves through social media do it too. They also use other shibboleths to foster an 'in-group' vs 'out-group' feeling, like hand signals, or just specific phrases used for signing off, or referring to themselves or other groups. I guess it appeals to some fundamental desire to 'belong'. Personally I think it's quite cre…

I don't like shirts or stickers for much the same reason.

Re: Fun facts about Rust's growing popularity

#90

Earlier quoted context omitted.

Please please please can we stop with the Rustacean/Gopher/etc crap? You don't need a cutesy label to identify that you use a tool. I enjoy Doctor Who (though it's been getting worse for the last 5 or so years) but I do NOT want to be called a Whovian. What's the first image that pops into your head when I say "Trekkie"? It's probably not someone with good health and hygiene, is it?

People like to label shit and themselves. No reason to fight it.

I can think of a few reasons to fight indoctrination, but you do you.
Post reply on HN