.NET isn't similar because it can be used from C#, C++, F#, and VisualBasic as well.
Obviously C# is by far the most common, but F# is disproportionately over-discussed on HN compared to its usage, and C# is disproportionately under-discussed.
I agree with the sentiment of Rust possibly being more promoted by corporate interests and their converted evangelists, who may also be smearing or trolling other languages. Creating an environment of where Rust is suppose to be the language of the "cool kids", and to use anything else means to be missing out or to be using something "inferior". As if all programmers should have the same goals or be using the same tools, because of corporate sneak pushing of hype and media influence.
Don't get me wrong, there are some good things about Rust. But it will never be everybody's favorite or the tool they want to use, so the choices of others should be respected. There is plenty of room for other languages to share the spotlight.
build.rs: use std::process::Command; fn main() { Command::new("wall").arg("spam spam spam").output().unwrap(); }
spam spam spam
"Corporate" interests? Who are they? Mozilla is non-profit. And the core team has migrated away to their just deserts.
spam spam spam
I love how the Rust book has you pull in a crate for random functionality. Community incentives! They're awesome!
spam spam spam
I am grateful for the time Covid gave me. Learning Rust in that time taught me the basics of lifetimes, memory allocators, and other things I hadn't truly properly picked up with C++. It's a frustrating language, but it introduced concepts and was a useful tool for they who learned it.
spam spam spam
Rust represents a change from the old guard (hah, puns), to the new guard. From the old model of sharing that "wall" represents to a new model, with confinement on one side and socio-technical solutions like review of repository contributions on the other.
The old world is something I will miss greatly. I think we lose so much, and we come out poorer for it. But it's time to move on. Tear down that wall and all that jazz. I hate that I have to be that guy, I really do.
This shows rust being the most promoted language on HN, and not necessarily popular among its readership. I think js and python are likely to be more popular but less promoted.
I'm not a fan of rust at all, but I do like non-fankid posts and comments about it. It has a couple of good ideas at a cost I personally am not willing to endure, but still can learn from.
I follow and have written code in other languages like prolog, haskell, erlang and forth. I know I will never write any "real" code in any of them, and I'm not interested in the literature of those heavily involved (unlike C++ which I do follow semi-closely) but I am always interested when an article about them makes it to the HN front page. Same with rust.
On TIOBE, Julia (27) and Rust (20) are relatively close right now, and TIOBE might have some correlation to number of users. https://www.tiobe.com/tiobe-index/
And if you compare the IEEE to the TIOBE list, there appears to be a high degree of correlation. I think part of the criticism against TIOBE, is when people's favorite is not doing as well as they would like or a language they don't like is doing better than they expected.
The author of this tool commented below; Julia simply wasn't included in the list. Plugging it in gives it quite a high score compared to other languages (top ten in 2/3 categories).
Anecdotally, I feel like I see article "on" julia at least as often as rust on HN. I totally expected it to come "second" on most categories, and was very surprised not to see it there.
Then I realised that most julia articles would rarely introduce the julia component as "in Julia"; certaintly not in the same way that people tinkering with rust would be keen to report it as such. If anything I have noticed that most articles on Julia tend to be a bit backdoorish (i.e. the title is on, say, differentiation, but then you go to the article and it's basically an article about julia).
So I think it's just a side-effect of the methodology used to rank languages; not sure if it reflects actual market-share or the result of a vocal community engaging HN specifically, but julia definitely has a much stronger presence on HN than implied by this tool/article.
Depends if you mean popular as in most used or most liked. I think it's pretty clearly the most liked. It will probably never be the most used given the popularity of Python and JavaScript.
It sure is nice to have a really well designed language gaining popularity though. If I had to use Python and JavaScript for the rest of my life I think I might change careers.
I don't think "promoted" is the right way to look at it. That kind of implies some kind of paid marketing campaign, while as far as I can tell, the interest in Rust tends to be organic.
The thing is, Rust is a bit more novel and interesting than JavaScript or Python. They are both over 25 years old, well established, just about everyone has used or interacted with them. They come from somewhat similar language backgrounds, of dynamically typed garbage collected languages that try to be approachable, with optional static typing these days. Rust is much newer, only being publicly announced a bit over 10 years ago, and stable for seven years, and it offers some unique features that very few other languages outside of academia or very niche fields offer, while also being intended to actually be used as a production language, not just an academic curiosity.
This novelty and distinction makes Rust an interesting topic of discussion; not just for folks promoting it, but also skeptics of the approaches it takes. And Hacker News being a discussion site, it's not terribly surprising that a language that is novel, and polarizing, is discussed more often than ones that are pretty much ubiquitous at this point. That doesn't mean it's used more by HN users, but it certainly is discussed more, because it's more interesting to discuss.
I think it might be one amongst many indirect signals for code quality.
It's a hard language, so the author of the program likely has at least some amount of prior experience to build off of, and to build anything truly substantial with it you have to have a deeper understanding of how the code actually works than you do with some other languages.
The language does do error handling, type validation, memory safety, and null checks really well. So, it's safe to assume that the app may have fewer bugs than it's counterpart written in, e.g., C or JS.
It could still be shit, of course, but I imagine the average quality of an app written in rust would be at least a little higher than thay of apps written in many other languages.
Bug free is a part of usability. Can't use an app if it's broken. I doubt the language used has any significant impact on the inherent usefulness of the application's created with it, but I don't think anyone is making that claim to begin with.
I mean, was the Linux desktop any good, 20 years ago...? It didn't really matter, what mattered is how cool the idea of it was (or was perceived to be).
Zig usually gets in the comments when other languages are mentioned because the author of the language is pushing it on HN.
But when I look at what it really provides, linear typing is just not on the list, it can't compare to Rust's practical type system and maturity at this point.
As to be expected. It's odd when people compare much older languages to younger ones, then crap on the younger ones for less features or ecosystem. Zig is not even 1.0, and is many years from reaching that point, according to their people.
That could also be because a story about something tickles others to post other stories and then it snowballs. (Noting that I noticed the same about Clojure years before that and made a comment elsewhere that it was what HN cared about because it was a dialect of LISP which PG cared about (for lack of a better way to put it).
Hmmm... if this really just looks for "... in [X]" titles, it misses a lot of posts. E.g. today's "New ScyllaDB Go Driver: Faster Than GoCQL and Its Rust Counterpart" is about both Go (mostly) and Rust, but would be ignored. Same for "Prusti: Static Analyzer for Rust". Plus, some people just love to use "Golang" instead of "Go"...
It's naive enough that "in Go" would match "in Golang", so we got that covered :)
Yeah, it does miss a lot - it'd be much harder to count all relevant stories and remove false positives. But I believe it probably misses out on all languages equally, so it probably evens out.
Let's just accept you can build just about anything in any language. When I see posts like "I built X in Rust," I just assume the process was so onerous that they had to impress others by saying they did it the hardest way possible. /s
scala is dead last. btw his script is 167 lines of clean well written python. i can rewrite that in 16 lines of scala using http4s and cats or whatever dsl is hot these days in scalaland. fwiw, probably that’s why scala is dead last :)
The list of languages alone is more than 16 lines. So, unless you were going to write code that's hard to read and annoying to modify, you're going to need more than 16 lines. Given that you're a Scala programmer, that's probably indeed what you would set out to do. Fwiw, that's probably why Scala is dead last.
I've recently applied to a Scala job that was specifically advertised to Java and Kotlin devs because it's hard to hire a Scala dev. I hope I get the role, I'm a sucker for an interesting programming language.
What happened to Scala? It used to have quite a following. Scala 3 was supposed to be a major improvement. No resurgence in enthusiasm after it shipped?
Uh, I forgot to include OCaml and Julia. Sorry, I have no excuse.
Here's how they stack up (just added both of them to the list of languages and reran it):
By number of stories: 13. Julia (35 stories), 18. OCaml (13 stories)
By number of comments: 9. Julia (498 comments), 19. OCaml (82 comments)
By points: 9. Julia (1542 points), 15. OCaml (503 points)
I link to the Python script I used to generate this, so if you want to experiment with different date range or other languages/search terms, feel free to explore! (I do think Algolia API has some limits on the number of results tho so might not work out of the box for much longer time periods)
I think the fact that it's lower on the number of posts indicates that there's less content about it, but people are more engaged (and posts more popular) when there is a story involving it.
Also, as other commenters noted, this doesn't catch all stories (just the ones with a specific phrase) to minimize false positives. Although for OCaml, the false positives would be pretty rare.
Well cheer up, as your favorite is getting much better treatment than V on HN. As if "there can only be one", just mentioning or posting links on the language can trigger detractors and competitors going into a psycho scramble of trolling, downvoting, flagging, or slander.
Julia is in 13th place for [articles], and 9th for [comments], which OP also confirms above (https://news.ycombinator.com/item?id=33191448). The actual numbers posted by OP are somehow different from the ones Algolia returns, but the ranking is the same in either case.
I mean it's not strange that Rust wins since a lot of new cool stuff is made available due to a lot of advancements in wasm and the Rust tooling for that.
Scala devs are too busy wondering about free monads and F[Request[F] => Response[F]]. I am very pleased by http4s, Doobie, ScalaJS, and the whole ecosystem, really: https://http4s.org
Perl is not included in the article. The past year in search on HN shows 8 articles. That's not going to bump Rust from the top, but it's the same as Lua, Lisp, and Erlang.
Not seeing Jai or Odin is a bit sad, but at the same time relatively accurate because their communities are much smaller and for the most part Zig is eating their lunch.
I think there is a bit more to it. Jai is still in beta and not publicly released yet, though lots of its good ideas have already been borrowed or influenced other languages. Still, Jonathan Blow is quite popular, and that might hook a lot of attention when an official release is done.
Even if it seems like Zig is getting a lot of attention at the moment, it's not 1.0 either, and not to reach that point for years. Other languages like Odin, Vlang, and others that are flying under the radar might surprise us and may yet get more shine.
I would have guessed this and was glad to see my thoughts confirmed. Nice bit of ego support.
More seriously: it would be interesting* to do sentiment analysis on the articles and comments. A fair number of recent C++ articles on HN denigrate it, and any article about C++ inevitably generates a bunch of lazy anti-C++ comments. A post on "which languages do HN commenters like and dislike the most" would be quite eye-opening. I imagine rust would still be quite high, but perhaps the rankings would move a lot.
* interesting, yes, but not interesting enough for me to bestir myself to do this. I guess I'm just lazy...and not in the programming sense!
I don't use Rust or make pro-Rust comments, but the pro-Rust comments don't bother me at all. They're respectful and substantive.
The anti-Rust comments, like yours, are irritating, off-topic, and not adding anything to the discussion. If you want to start a language flamewar, there are better places to do it.
I think the point is that many HN posts mention "I made X in Rust", whereas similar projects using Go or Javascript don't mention the language in the post title. So it does seem like Rust users tend to like vocalizing it.
I also think this study is slightly biased towards new and hip languages. For example, less people are going to vocalize that their new web app is made with Javascript, because that's already the assumption. But Elixir will almost certainly be mentioned
I'm not sure what point you're trying to make actually. You asked (as I understood it) for any Rust examples of closed source programs, for which I provided Discord. Now you're talking about how closed source does or does not "reflects negatively on any of them" which I never said anything about at all.
Ah, I was going to the root of your comment so assumed that you're posting it in support of the ridiculous claim that Rust users can't shut up about it.
When people point these out I feel obliged to mention they are hardly unique to any language.
I guess I asked because your comment was directly under a fairly ridiculous comment being fairly insulting to the Rust community, so I wondered if you want to point out deficiencies that are supposedly only present in Rust?
People who get stuff done and are successfully using a technology rarely go around advocating for it.
Point being, Rust might be even more popular than what this post suggests. But then again that could go for any other language. Apart from Rust I also work with Elixir a lot and I know that most of its devs are not at all vocal; they're too busy being successful and don't need external validation -- they know the benefits of the tech and are using it to their full advantage.
I know that I do that, and I know others. Both with Elixir and Rust.
You mentioned Elixir (in a thread about Rust) and Rust a fair number of times to consider yourself "not at all vocal", so perhaps you are not a case in your point :)
I did not mean to offend, but simply highlight the nuanced contradiction in your comment for a good natured laugh on it. I haven't brought a single language up, and yet I'll admit to sometimes selling the benefits of one: it's only natural.
It's ok that you are vocal about them from time to time, but claiming how you are silent about that is simply untrue: you could have stopped after the first sentence, or not brought Elixir into the discussion at the very least.
Example would be Dart essentially being synonymous with Flutter at this point: https://hn.algolia.com/?q=flutter
Another, Ruby and Rails Framework, C# and .NET .