News for hackers. Stuff that matters.
Re:Starship.rs: minimal, fast prompt for any shell by weebull on Friday January 26, 2024 @05:14AM (#39140894)
Am I the only one who is getting tired of "It's X in rust" type projects? It's making me dislike the community.

Rust is not a user feature, it's an implementation detail.

<cue people telling me I should consider Rust a feature>

Re:Starship.rs: minimal, fast prompt for any shell by PurpleRamen on Friday January 26, 2024 @08:13AM (#39142252)
> Rust is not a user feature, it's an implementation detail.

Rust is the new C. It communicates that something is fast, but also secure, and new or a modern reimplementation of something old. So, in that sense, is it a user feature because it has established itself in a way that tells the user some important details.

Re:Starship.rs: minimal, fast prompt for any shell by farresito on Friday January 26, 2024 @06:23AM (#39141407)
> Rust is not a user feature, it's an implementation detail

Sure, but keep in mind that in the case of open source software plenty of people will choose software written in their favorite language so that they can potentially contribute to it. Or simply because they feel more connected to something that is written in their favorite language. So I don't think it's completely irrelevant.

Re:Starship.rs: minimal, fast prompt for any shell by jpambrun on Friday January 26, 2024 @07:53AM (#39142072)
I like that go and rust binaries are statically linked. This means that I can build an environment I like using these and bring them almost everywhere, wsl, Mac, Ubuntu, red hat, etc. For me, this is the feature of rust/go.
Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @07:58AM (#39142120)
It's not only though I don't understand why is this getting you "tired".

Rust has memory safety built in (unless one goes VERY out of their way to nullify it) which to many, myself included, is a selling point. F.ex. I wouldn't be interested in the userland tools rewrite if they weren't in Rust.

> Rust is not a user feature, it's an implementation detail.

It is that, yes, but not only that. Again, memory safety. And as another poster pointed out -- statically linked binaries. That helps a lot with certain deployments.

Also consider that HN might not be the place for you if mentioning implementation details are ticking you off. That's more or less how this forum started in the first place: people discussing implementation details.

Re:Starship.rs: minimal, fast prompt for any shell by gnur on Friday January 26, 2024 @06:44AM (#39141565)
It might not be a feature, but it is a selling point. It conveys that it was written relatively recently, is more likely to support modern features in the shell, runs reasonably fast and is reasonably portable.

If it was written in JS or python I'd already start worrying about what package manager to install it with in which environment, installing it globally is an anti pattern but symlinking it to .local/bin might complicate it.

So IMHO, the language something is written in is not just an implementation detail, it informs me in how well it will perform.

Re:Starship.rs: minimal, fast prompt for any shell by weebull on Saturday January 27, 2024 @08:14AM (#39155272)
It's a prompt. Writing anything for that purpose is code gardening, but hey it's in rust so I'm supposed to be excited?

That, in essence is the problem "X in rust" normally means "I've written something of low value IN RUST. Gimmee upvotes". Come back when the project is interesting regardless of the language.

Re:Starship.rs: minimal, fast prompt for any shell by eviks on Friday January 26, 2024 @05:20AM (#39140954)
<cue at least one complaint of this kind under almost any Rust-related project>
Re:Starship.rs: minimal, fast prompt for any shell by usrbinbash on Friday January 26, 2024 @06:18AM (#39141368)
The fact that this happens should be food for thought for part of the rust community. Because the way I see it, if they keep this up, a few years from now, they could, other than some obscure linux kernel modules almost noone uses and a good grep-alternative, be well along what I lovingly call the "Haskell Route".
Re:Starship.rs: minimal, fast prompt for any shell by sebzim4500 on Friday January 26, 2024 @06:30AM (#39141455)
What exactly should the takeaway be? Stop making things in Rust because people on HN will complain?
Re:Starship.rs: minimal, fast prompt for any shell by imp0cat on Friday January 26, 2024 @08:59AM (#39142624)
No, don't stop.

But it's an interesting observation, don't you think? Why is it that just by adding "... in Rust" you can almost guarantee that people will roll their eyes and think "oh, not another one".

Other languages do not carry such stigma, why does Rust have such reputation?

Re:Starship.rs: minimal, fast prompt for any shell by toastedwedge on Friday January 26, 2024 @11:55AM (#39144813)
Completely guessing, but the thought comes to mind that Rust was (still is? I don't keep up these days) portrayed as The C Killer. So to specify "written in Rust" was to imply "I wrote something low-level without C/C++" or "I rewrote Popular C Tool in Rust" in the name of memory safety.

This is all wild speculation on my part, so please take it with a large grain of salt. I welcome alternative explanations or experiences.

Re:Starship.rs: minimal, fast prompt for any shell by weebull on Saturday January 27, 2024 @07:40AM (#39155052)
> Completely guessing, but the thought comes to mind that Rust was (still is? I don't keep up these days) portrayed as The C Killer. So to specify "written in Rust" was to imply "I wrote something low-level without C/C++" or "I rewrote Popular C Tool in Rust" in the name of memory safety.

As the OP, this is a big part of it. Rust might be a great language, but people announcing they rewrote grep (for example) in rust doesn't mean they've done anything special. The rust language team did something special. The person making the announcement just took somebody else's idea and reimplemented it for very little reason.

Great! You learnt enough to reinvent the wheel. Now do something useful.

Re:Starship.rs: minimal, fast prompt for any shell by sebzim4500 on Friday January 26, 2024 @09:52AM (#39143242)
I don't know, but it certainly says more about the people rolling their eyes than it does about the people actually building things.
Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @06:44AM (#39141568)
Who is "they"? Do you imagine all Rust devs as a hive mind?
Re:Starship.rs: minimal, fast prompt for any shell by usrbinbash on Friday January 26, 2024 @06:57AM (#39141646)
> for part of the rust community.

part is the important term here.

Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @07:54AM (#39142079)
I still don't see your original point. Sounds like you have an axe to grind. I don't see anything negative in saying "written in Rust" or "written in OCaml" or "written in Haskell" or anything else.

Using a particular language signals a certain subset of qualities and broadcasting those helps people filter what they are interested in.

Re:Starship.rs: minimal, fast prompt for any shell by imp0cat on Friday January 26, 2024 @09:00AM (#39142634)
It's only the Rust bit that seems to be problematic. I guess there is too much drama around that language?
Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @09:06AM (#39142695)
I never saw any drama. People have broadcasted that they rewrite stuff in Rust, yes, and that seems to have triggered an exaggerated annoyance response in many.
Re:Starship.rs: minimal, fast prompt for any shell by imp0cat on Friday January 26, 2024 @11:10AM (#39144250)
Yes, but why? Why does Rust (or, more precisely, the "rewrite in Rust" meme) such negative connotation?
Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @11:22AM (#39144402)
I honestly have no clue and will only speculate. The people criticizing the "rewrite it in Rust" or "written in Rust" monikers always came across as grumpy curmudgeons to me. I never saw an actual good technical criticism.

Also they might have made the mistake of judging a very big and heterogenous community by a few zealot loudmouths (and every community has those).

Informed and objective people shouldn't judge like that but I think it reinforces a preconceived notion that they already have.

The human brain can betray us like that. If you already dislike something, practically every criticism towards it, no matter how small, makes you immediately go: "A-ha! This thing is bad! I knew it!"

Re:Starship.rs: minimal, fast prompt for any shell by usrbinbash on Friday January 26, 2024 @05:22PM (#39149503)
> Sounds like you have an axe to grind.

Why? I just point out that what happened to Haskell can happen to Rust, and for much the same reasons.

Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @07:06PM (#39150680)
What reasons might those be? I am not familiar with Haskell's history.

Are you saying that Haskell never got wide adoption because its advocates were too loud?

Even if you claim that I'll not believe it. Haskell is legitimately difficult for many annoying reasons, not least of which are the endless compiler variants.

Re:Starship.rs: minimal, fast prompt for any shell by a_random_canuck on Friday January 26, 2024 @09:47PM (#39151919)
I would say it’s because the Haskell community is too arrogant and pretentious.

I love the language and worked with it professionally for over a year, but I can’t stand everything around the developer experience and community.

Rust is a breath of fresh air.

Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Friday January 26, 2024 @10:18PM (#39152121)
> I would say it’s because the Haskell community is too arrogant and pretentious.

That by itself is only a cause. What's the effect, what's the symptom of this attitude, what are the practical observable results? Gatekeeping? Rude forum responses? (I know OCaml partially suffered from that and they can be fairly elitistic; when you ask something fairly normal nowadays like "what's the preferred package manager?" or "how do you build a project?" is sometimes met with smartass responses like "what's a project?")

> I love the language and worked with it professionally for over a year, but I can’t stand everything around the developer experience and community.

Sums up my experience with several development communities, yep. I can relate.

> Rust is a breath of fresh air.

I feel the same, the community is extremely pragmatic. I've met a few a-holes but they were a very, very rare exception. 99% of everyone I interacted with was just like me: they were looking how to get the job done AND write idiomatic and efficient code.

Re:Starship.rs: minimal, fast prompt for any shell by tome on Saturday January 27, 2024 @03:25AM (#39153736)
It's strange, because many, many times I've heard newcomers say that the Haskell community is the most friendly and welcoming that they have interacted with. By this point I don't have any better hypothesis than that different people prefer different sorts of community. I also think it's unfortunate if someone stops using a language they love because of the community. Ideally a programming language would have multiple communities so everyone can find one that works for them. Perhaps niche language are too niche for that possibility, though.
Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Tuesday January 30, 2024 @06:17AM (#39188752)
> I also think it's unfortunate if someone stops using a language they love because of the community.

This really depends. I don't care about some abstract notion of a community BUT if I can't get basic stuff done because documentation is not good and the official forum responses are not helpful then yes, I absolutely will abandon the language.

To this day, languages differ a lot. I.e. in Elixir and Rust I can just add dependencies to a file (Rust even allows you to add the dep via a CLI command) and then reference it in your code a minute later, issue a command and your project is compiled and runs and you see the result.

Now ask me how much time I spent fiddling with OCaml's `dune` and `esy` which are a project manager and a dependency manager respectively. Took me an entire weekend to get one simple code to compile with a singular CLI command, and then run it. And community was not helpful: "check the docs", which I did 15 times probably over the course of that same weekend.

To go back to your point, friendly / welcoming community is just a bonus. The community has to be helpful above everything else. Some people are noobs. Some people like myself are senior BUT are unwilling to start over and are just looking for "how to do X and Y without spending a full day?". Some people are trying to make a presentation to advocate for the technology on an internal meeting. Examples abound.

I am not an experienced moderator (nor I ever want to be) but I've witnessed significant differences in how various programming language (or just a framework) communities act, and how helpful they are. It absolutely isn't identical or even close. Some are downright off-putting.

Finally, I make no claims about Haskell in any way except only one thing: when I saw its huge combinatorial explosion of different compilers, I gave up on the spot. Give me 2-3 options and leave the rest to the enthusiasts.

Re:Starship.rs: minimal, fast prompt for any shell by tome on Tuesday January 30, 2024 @10:59AM (#39191638)
Totally agreed with you there. I hope Haskell's community is generally friendly and welcoming, but I guess it isn't always that way.

In case you're interested into how Haskell handles some of the specifics you brought up:

> in Elixir and Rust I can just add dependencies to a file (Rust even allows you to add the dep via a CLI command) and then reference it in your code a minute later, issue a command and your project is compiled and runs and you see the result

This is also true of Haskell using Cabal. Cabal has some rough edges. Perhaps it's not as ergonomic as the Elixir or Rust equivalents (I've never used them) but you can at least do that.

> when I saw its huge combinatorial explosion of different compilers, I gave up on the spot. Give me 2-3 options and leave the rest to the enthusiasts.

This issue has been resolved with the introduction of the GHC2021 language edition. Just use that. No need for any other language extensions as a non-expert, except maybe in very special cases.

(By the way, there was never a combinatorial explosion of compilers. Almost all language extensions simply remove restrictions. But I understand how people could interpret it that way, and GHC2021 is a very simple way of resolving the misunderstanding.)

Re:Starship.rs: minimal, fast prompt for any shell by pdimitar on Tuesday January 30, 2024 @01:13PM (#39193556)
Thanks for pointing those out. I see that my info is outdated.
Re:Starship.rs: minimal, fast prompt for any shell by Twirrim on Friday January 26, 2024 @08:52AM (#39142571)
Almost every single project that makes it to the front page of HN tells you as part of the opening sentences what language it's in. For a good while it was "<thing>, (re)written in Go". There's nothing special or unique in the rust community about this, it's just what people in tech do.

The type of complaining you're doing is also nothing new, because exactly the same occurs under those posts when it's the language de jour. A few years ago when it was all about Go, you could look in the HN comments and see people complaining exactly the same way about Go and the Go community.

Re:Starship.rs: minimal, fast prompt for any shell by timeon on Friday January 26, 2024 @05:30AM (#39141023)
Stating the technology makes you dislike the community. >.> Why are you on HN?
Re:Starship.rs: minimal, fast prompt for any shell by rowanG077 on Friday January 26, 2024 @06:27AM (#39141427)
Well memory safety is a user feature. So "X but in Rust" has merit if X is written in C or C++.
Re:Starship.rs: minimal, fast prompt for any shell by theshrike79 on Friday January 26, 2024 @05:54AM (#39141205)
It's a marketing tactic, there is a non-insignificant people who will check out a project just because of Rust.
Re:Starship.rs: minimal, fast prompt for any shell by itishappy on Friday January 26, 2024 @10:48AM (#39143990)
cntrl-f "rust" -> 2 results

I think you might just be prejudiced. Do you have the same reaction to, say, SQLite?

https://www.sqlite.org/index.html

> SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.

Re:Starship.rs: minimal, fast prompt for any shell by darthrupert on Friday January 26, 2024 @12:29PM (#39145213)
I started thinking like that, but the general high quality and innovatio. of the various things rewritten in Rust has made me reconsider.

I think it has become a significant user feature.

Re:Starship.rs: minimal, fast prompt for any shell by Zababa on Friday January 26, 2024 @04:22PM (#39148605)
"X in Rust" to me mean that I won't have to fiddle with it when installing it and it'll work out of the box. This isn't unique to Rust, Go does this very well too. It'll also be reasonably fast, not just because of the language, but because the community likes performance. For example, a few years ago I tried the tldr command. It was in Node.js and unbearably slow. There was a Rust implementation, tealdeer, that was way faster.
Re:Starship.rs: minimal, fast prompt for any shell by KolenCh on Friday January 26, 2024 @04:52PM (#39149074)
Am I the only one who is getting tired of comments complaining about people put “written in Rust” in the title? Lately every post having “written in Rust” has a comment like this.

If you don’t care, ignore it. Why should it bother you so much?

Re:Starship.rs: minimal, fast prompt for any shell by a_random_canuck on Friday January 26, 2024 @09:50PM (#39151942)
Speak for yourself. It makes me love the community.

Rust’s memory safety definitely makes it a user feature.