News for hackers. Stuff that matters.
Re:Fish (shell) porting to Rust from C++ by ZephyrBlu on Monday January 30, 2023 @08:50PM (#34589800)
What tends to drive change? Growth and young people.

New developers and young people are not choosing C++ as a language these days. Rust is 'hot' and has much more mindshare even if it's not being used in large enterprises much yet.

What are the demographics of the developers you talk to? That may clear up your confusion.

Re:Fish (shell) porting to Rust from C++ by johnny22 on Monday January 30, 2023 @10:00PM (#34590307)
Isn't it being used in large enterprises now? Or do you mean specific projects in large enterprises. IIRC rust is being used in the bluetooth stack for Android, and to power services like https://discord.com/blog/why-discord-is-switching-from-go-to..., plus various parts in Meta and at Microsoft. It's likely gonna be in chromium https://security.googleblog.com/2023/01/supporting-use-of-ru... and perhaps even in the Linux kernel someday.

It's also part of fuchsia which is shipping in all those nest devices. I wonder when folks will decide it's really "made it".

Re:Fish (shell) porting to Rust from C++ by ZephyrBlu on Monday January 30, 2023 @10:06PM (#34590343)
"much" being the operative word. I know it's being used in large orgs, but it's not super widespread. Definitely not as widespread as C++.
Re:Fish (shell) porting to Rust from C++ by johnny22 on Tuesday January 31, 2023 @11:44PM (#34606477)
of course it's not as widespread as C++. I definitely wouldn't think that.
Re:Fish (shell) porting to Rust from C++ by sk0g on Monday January 30, 2023 @10:31PM (#34590518)
As a young (enough) programmer, I'm keenly learning C++. Not because I love the language though, but because I am interested in game development, specifically in Unreal Engine for now.
Re:Fish (shell) porting to Rust from C++ by maxloh on Tuesday January 31, 2023 @01:42AM (#34592014)
I agree to you. There whole C++ thing is too unnecessarily complex.

In order to just compile a single Hello world program, you need to install the standead library, a linker and a compiler, each with their own version.

There is too many ways that compilation could fall, and fixing them requires extensive knowledge about different aspects, like how linker works, how is C++ standardized, etc.

The error message you got is really unhelpful. Missing a virtual keyword in a destructor, and you got a few hundred lines of error message and none of them mentioned "virtual". Segment fault is hard to trace because you do not have any error message at all.

Rust is just a lot simpler because it remove/abstract away lots of complexity. Just install Rust with rustup and it will just work. Error message is pretty helpful too.