zed.dev

nixfreak , to Linux in Zed editor: Linux when?

I built it on Linux , Arch … takes forever because of rust and the 1000’s of depends. Works though.

azvasKvklenko , to Linux in Zed editor: Linux when?

I feel like they’ve got couple of things wrong or they base of outdated information.

The packaging, yeah it’s still a mess if you absolutely have to put it in a native system package, but building something like Flatpak would generally be better. Or just build binaries against some common runtime like Ubuntu LTS and other distros will figure out, there’s really not much more here. It really sounds like someone wrote it in 2000’s about all distros being completely different and it’s expected to fall apart if you attempt to run it on say Fedora. They’re really not that different today. Also, universal package formats exist.

They completely skip XDG desktop portals that can provide at least huge chunk of functionality they need. There’s really no need to talk to GTK or QT directly. simply require portals and use its function for choosing file or directory. That’s it, you’ve got native file picker that also works in sandboxes.

Vincent OP ,

They're showing the native file picker which using XDG desktop portals.

I'm also fairly sure that the "(but of course there are competing standards)" line referred to Flatpak vs. Snap (vs. AppImage).

GottaHaveFaith , to Linux in Zed editor: Linux when?

Compiled it yesterday on endeavourOS, it's just 3 or 4 commands so give it a try if you're interested. Still have to use it for coding but I set it as default for some source files and it does immediately open on click, with syntax highlight (I was searching for something like this)

syd , to Linux in Zed editor: Linux when?
@syd@lemy.lol avatar

If Zed goes wrong, can we just fork it? If yes, I’d like to use it.

Vincent OP ,

It's open source, so theoretically, yes.

syd ,
@syd@lemy.lol avatar

The CLA stuff made me suspicious but probably you’re right.

Vincent OP ,

If they're using a CLA, that would only be used if you want them to merge your code into their codebase. If you're running a fork, that shouldn't be a problem.

iiGxC , to Linux in Zed editor: Linux when?

Does zed have helix keybindings?

atomic , to Linux in Zed Decoded: Linux when? - Zed Blog

FWIW I've been able to compile Zed for Wayland only by removing any X11 references in the code and I've been using it for about two months or so.

aida , to Linux in Zed editor: Linux when?

vscodium is enough.

Aatube , (edited )
@Aatube@kbin.melroy.org avatar

vscodium doesn't run at 120 FPS and isn't native (as in Electron), which are Zed's goals

Edit: it doesn't seem like native widgets are a development focus of Zed, though

taladar ,

So it doesn't run at a wastefully high FPS for a text editor? Is that supposed to be a selling point for Zed that it renders many, many more frames than a text editor needs?

aBundleOfFerrets ,

Letters appearing when you type them improves user experience dramatically

taladar ,

Agreed, anything below 5 FPS is probably a bit slow for a text editor.

floofloof ,

Yeah I find it impossible to program at 60fps.

Aatube ,
@Aatube@kbin.melroy.org avatar

The selling point is performance and speed... frames don't get rendered above your refresh rate.

EasternLettuce ,

Why on earth would you need a text editor to run at 120 fps

Aatube ,
@Aatube@kbin.melroy.org avatar

Especially when you have a bunch of extensions and a large-enough file, you want it to parse, highlight, and suggest fast.

devfuuu ,

Gotta type first. Everyone knows thats the bottleneck for productivity.

Zak ,
@Zak@lemmy.world avatar

Can we do Emacs vs. Vi next?

mrashley , to Linux in Zed editor: Linux when?

Is Zed a text editor?

geneva_convenience ,

It is a lifestyle.

palordrolap ,

So, it's trying to replace Emacs?

floofloof ,

Emacs is more of a religion.

exu ,
@exu@feditown.com avatar

I don't think Zed has an email client and window manager built-in.

aksdb ,

... yet.

GissaMittJobb ,

A vibe

coolmojo ,

You are thinking of Xed

floofloof ,

Thank goodness these things aren't confusingly named.

Zak ,
@Zak@lemmy.world avatar

Yes, a code-oriented one meant to be very fast and responsive. It's pre-alpha on Linux but compiles without any fuss for me. I haven't spent much time with it, but the only bug I've seen so far is an uncommanded theme change when switching between files.

devfuuu ,

Some random one that appeared out of nowhere for mac only, seems the be from some company and because of that people are hyping the shit out of it.

Many places that never mentioned the other more known and editors like helix now suddenly are mentioning this one. It smells as a huge ad/marketing campaign. Not sure what the plans are for monetisation and the business plan.

taanegl , to Linux in Zed editor: Linux when?
@taanegl@beehaw.org avatar

I've been waiting for this. Been using Kate on Windows and Linux, which is great, but running Zed is just so lightweight. It's like a truly open source Sublime Text.

kate ,
@kate@lemmy.uhhoh.com avatar

been using WHAT??

palordrolap ,

A wild username reference appears!

There's an editor called Kate. It's probably not named after you, but if you're young enough and the person who named you was into tech, you might be named after it.

kate ,
@kate@lemmy.uhhoh.com avatar

I named myself but im into tech does that count

palordrolap ,

named myself

Programmer error: I totally missed a bunch of edge cases there. Cases 32 to 35 for sure

Buuut I'm guessing you didn't name yourself after the editor.

kate ,
@kate@lemmy.uhhoh.com avatar

GOOD article

BaalInvoker , to Linux in Zed Decoded: Linux when? - Zed Blog

I miss the point why they don't invested into Flatpak. I mean, with Flatpak they could've focus on make Zed works on the Flatpak platform and, as a consequence, it will be fine in every distro. The only thing that they should've be taking care is X11 and Wayland, but every other aspect to worry such as distro choice, QT/GTK, Gnome/KDE, etc would be vanished away

independantiste ,
@independantiste@sh.itjust.works avatar

They have not made a final decision on packaging it, in fact it's not even distributed at the moment, you need to compile it yourself. From what I've seen they will very likely package it as flatpak when it's out of alpha/beta

boredsquirrel ,

Or just install with cargo, have it run unrestricted and still work everywhere. I dont think rust apps need to be flatpakked

unknowing8343 , to Linux in Zed Decoded: Linux when? - Zed Blog

Somehow all these OSS projects that start with only a Mac client seem so suspicious to me...

I wonder if they will enforce a login to use the software?

swooosh ,
  • which one as well? it's the first project I know of that starts on mac
  • how do you get to that? That would be funny.
unknowing8343 ,

I was kinda referencing warp, a supposedly new terminal that was also written in Rust, had AI stuff, started on Mac, and finally got a Linux version, which lasted 30 seconds on my computer once I saw there is no option to use it unless you make an account. Yes. For a LOCAL terminal. Nuts.

simple ,
@simple@lemm.ee avatar

It's open source, and they already said they were Mac only because they used Metal for rendering. It's not suspicious for devs to use what they're most familiar with.

KindaABigDyl ,
@KindaABigDyl@programming.dev avatar

because they used Metal for rendering

That in itself is a suspicious choice tbh

simple ,
@simple@lemm.ee avatar

What's suspicious about it...?

independantiste ,
@independantiste@sh.itjust.works avatar

No idea, especially since MacOS has limited OpenGL support and no Vulkan support, Metal is basically the only graphics API on Mac

Max_P ,
@Max_P@lemmy.max-p.me avatar

Yeah, even Asahi has better OpenGL support than real macOS. They make damn sure you have to use Metal to get the most out of it, just like eventually you get caught up in DirectX on Windows whether you want it or not. You can use Vulkan and OpenGL, but the OS really wants to work with Metal/DirectX buffers in the end.

I appreciate that the devs care enough to make it really good from the start, because that sets the benchmark. Now the Linux version has to have a similar enough polish to it.

In comparison, Atom and VSCode both worked fine on Linux just about day one thanks to Electron, but it was also widely disliked for the poor performance. It's a part of what Zed competes on, performance compared to VSCode.

KindaABigDyl ,
@KindaABigDyl@programming.dev avatar

The other guy mentioned:

they already said they were Mac only because they used Metal for rendering

And you say:

Metal is basically the only graphics API on Mac

So they're on Mac bc they need Metal, but they picked Metal bc they're on a Mac? It's circular and friggin weird man

Not to mention there are cross-platform wrappers that will pick from all three depending on system - some that are very prolific among Rust devs (Zed is coded in Rust) like wgpu, for instance. They could've used wgpu and supported all 3 from the get-go and it would be easier than doing Metal anyway!

And so picking just Mac and/or Metal first is suspicious.

aksdb ,

I don't see where your problem comes from. It's really simple: they wanted to target Mac, likely because that's their preferred platform. So obviously they use the best fitting APIs for that purpose. Why would they develop a Linux or Windows application, if what they want is Mac? Nothing suspicious about that.

EasternLettuce ,

Using metal over Vulcan is a terrible choice for oss projects in my mind. Closed ecosystems extend all the way to the rendering pipeline

8Bitz0 ,

Until you actually try to use Vulkan on macOS. Since there’s no native support, you end up needing MoltenVK.

EasternLettuce ,

That’s on apple, if they want devs they should support industry standard frameworks

aksdb ,

But... they have devs. A lot of software is written for OSX. Zed being one of them. You may not like it, but it works for Apple.

YIj54yALOJxEsY20eU ,

Not the best point to make while you are questioning why they are building Zed. Bot maybe?

EasternLettuce ,

You mean the brand new editor with <1% of the market, that zed?

leopold ,

Is there any particular problem with MoltenVK? As I see it, it's by far the best solution for cross platform software on macOS in need of graphical hardware acceleration.

8Bitz0 ,

There’s nothing wrong with the software itself. It works great for what it does. On the other hand, it’s a compatibility layer, which always increases friction between things a little. I think the best use for this is running legacy software.

There aren’t many alternatives. Maybe in the future, we’ll see graphics API abstraction libraries like wgpu get used more. This gives developers a single API which can use DirectX on Windows, Vulkan on Linux, or Metal on macOS. This could allow support for entirely new graphics APIs without developers using it having to do anything.

Of course, that’s my opinion. People can build their software how they like.

drwho ,
@drwho@beehaw.org avatar

They start with Mac clients because those devs use Macs.

trevor ,

While I generally agree with your skeptical attitude toward this, I think the fact that they were targeting Apple's Metal graphics API to built the most performant possible IDE makes sense. You can't just snap your fingers and have a Linux graphical stack start working with your software.

I think the reason they targeted macOS first is probably because many of the dev team uses Macs.

As a Linux user, I'll happily wait for software like this to get ported to native Linux APIs so we get performant text editors instead of more Electron crap.

LeFantome ,

As a die-hard Linux user, I understand that most of their devs probably used Macs. Sadly, they are likely not an outlier which means many ( most ) of their target customers are Mac users too.

Overall, I applaud their focus and platform native approach. Let’s hope we get a decent Linux editor out of it at some point.

swooosh , (edited ) to Linux in Zed Decoded: Linux when? - Zed Blog

That is really cool. I wish I'd read more of such posts on "how do we get there, how did we get here".

Most important answer:

After deciding to support Ubuntu and X11 and Wayland

I hope it'll work in distrobox such that you can run it on every platform

boredsquirrel ,

Distrobox is not a good solution. But when there is an APT package, packagers can easily use their binary and create RPMs etc.

swooosh ,

Why?

I'd use it for analysis and prose. I think it'll be ok in distrobox.

boredsquirrel ,

It is a separate Distro. I used it for running VLC already and for sure it works, but it isnt really a good solution.

swooosh ,

Ok. So far I only use it for cli tools like pdlaftex, typst, R, and others. So far it works great. I assume the same for gui apps. Theming will be off but that's not a real issue as long as the app works.

Aatube ,
@Aatube@kbin.melroy.org avatar

That was a hypothetical illustrating the amount of choices one had to make to port to Linux. So far their decision is to just release a tarball.

Helix , to Open Source in Zed - A code editor written in rust by Atom's Developer.

I'd love to have a vscodium alternative written in a faster and more efficient language. Most editors and IDEs don't quite fit my workflow, while vscodium does.

sag OP ,
@sag@lemm.ee avatar

Yep, I also want a good alternative to codium which run fastly on Potato. That's why I am trying different Editor now days like Lite-Xl and other more.

Lemongrab ,

Does kate from KDE suffice?

sag OP ,
@sag@lemm.ee avatar

Didn't try it yet. But, isn't it just like Gedit?

Lemongrab ,

Closer to Geany or Sublime. I haven't used gedit before though. Kate has language server back end integration, add-on support, integrated terminal, and other features. Geany might be a good option, though I know nothing of its speed. Kate seemed fine but again no idea.

sag OP ,
@sag@lemm.ee avatar

Just tried Kate. It's so great. Have all features which I want Thanks for suggestion

Lemongrab ,

Np, glad it was useful.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • kbinchat
  • All magazines