this post was submitted on 10 Jul 2024
266 points (95.2% liked)

Linux

48942 readers
786 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
266
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 

Zed is a modern open-source code editor, built from the ground up in Rust with a GPU-accelerated renderer.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -2 points 6 months ago (5 children)

built from the ground up with rust. Why the fuck is that the first and usually only (non-)feature to mention in any project written in rust? Who the fuck cares?

I fucking hate the rust cult.

[–] [email protected] 24 points 6 months ago (2 children)

Because most things built with Rust are faster than their equivalent, especially electron-based apps.

So as a user, regardless of the cult following, i'm happy that this tech exists and is being adopted so fast.

[–] [email protected] 2 points 6 months ago* (last edited 6 months ago)

Because most things built with Rust are faster than their equivalent, especially electron-based apps.

And safer, since Electron is just Chromium, which is mainly written in C++.

[–] [email protected] 1 points 6 months ago (1 children)

It's primarily about safety, not speed. Any C or C++ program should match the speed but not the correctness.

[–] [email protected] 4 points 6 months ago (1 children)

no, it's primarily about speed and resources because the comparison is often not against a hypothetical C/C++ alternative, but against an existing one that is slower and more resource intensive.

[–] [email protected] 1 points 6 months ago (3 children)

So they should say that it is written with performance in mind. I don't care how you achieved that. rust, c++, assembly, whatever.

Mention that it has very good collaborative editing.

Mention features.

[–] [email protected] 2 points 6 months ago (1 children)

VS Code is written with performance in mind. Compared with other electron apps, it's very performant.

Compared with even a sloppily written native app though, it's not great.

[–] [email protected] 1 points 6 months ago (1 children)

so fucking say that. Designed to be fastest editor. Show benchmarks. Talk about your features. I still don't care what tools you used to achieve it. It being written in rust does not automatically make things fast. It may even slow things down, in some cases.

[–] [email protected] 3 points 6 months ago

I think you might care about this a touch too much

[–] [email protected] 2 points 6 months ago (1 children)

So they should say that it is written with performance in mind. I don't care how you achieved that. rust, c++, assembly, whatever.

I care because performant and secure C++ is much harder to achieve while rust "shepherds" you towards it.

See https://nibblestew.blogspot.com/2020/03/its-not-what-programming-languages-do.html

[–] [email protected] 1 points 6 months ago (1 children)

I don't care how easy it is for the developer. And modern c++ is slightly harder than rust, but not all that difficult to get right with smart pointers and iterators etc.

[–] [email protected] 3 points 6 months ago (1 children)

If you care about your software being stable and secure, you should care about how easy the programming language used makes and encourages that.

People aren't robots and make mistakes often.

[–] [email protected] 1 points 6 months ago

translating readable, maintainable code to an unmaintanable mess to solve a couple of issues thit might not be there in the first place, is not so much a winning proposition.

An os? sure. A text editor? not so much

[–] [email protected] 1 points 6 months ago (1 children)

Everone claims their software is fast. When stating that it is written in a native language it is actually believable.

[–] [email protected] 1 points 6 months ago

but it didn't do jack shit to help me believe that. Because they did not say that that was the goal. So there was no credibility to affect in the first place.

Also, your argument does not make sense anyway. As a native language, due to some extra copying needed and some runtime checks that cannot be elided, it is slower than c++. It can be almost as fast, really close, but ever so slightly slower.

Electron is written in c++. A native language. A native language faster than rust (we're talking about speed not safety here). And yet, it is the canonical example of "bloated and slow". If you were to rewrite electron in rust, it'd be safer, but also at least just as slow.

So if the editor really is faster, it's not because the code was written in rust. It's because the devs are writing better code. That's why just saying it's written in rust is useless.

[–] [email protected] 5 points 6 months ago

You seem upset. Blink twice if someone is forcing you to use it.

[–] [email protected] 3 points 6 months ago

In an era where every single good code editors are built on Electron, its good to know something isnt

[–] [email protected] 1 points 6 months ago

I care because I know the values of those programmers in a narrow scope and won't be as annoyed when I inevitably have to go debug the rust code instead of C.

However, that values statement was challenged by automatic binary downloads without user confirmation.

Luckily the fix is already in progress, but its concerning it was ever implemented.

[–] [email protected] 1 points 6 months ago

Just go outside and touch some grass.