Zed on Linux is out! (zed.dev)
from ksp@jlai.lu to linux@lemmy.ml on 10 Jul 2024 18:00
https://jlai.lu/post/8476122

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

#linux

threaded - newest

markstos@lemmy.world on 10 Jul 2024 18:09 next collapse

Anyone care to compare this with Helix?

Bolt@lemmy.world on 10 Jul 2024 19:13 next collapse

Very first impressions since I literally just downloaded before writing this, and haven’t read the manual, I may change my mind with more experience.

  • It’s incredibly snappy, to my eyes as fast as Helix.
  • A lot of stuff that took me a while to figure out in VS Code was immediately obvious. How to toggle inlay hints for Rust? Parameter Icon > Inlay Hints (with the keyboard shortcut there for easy toggling).
  • Interactive is generally intuitive because it seems pretty permissive. Tab vs Enter to autocomplete? Either! ctrl-shift-Z vs ctrl-Y to redo? Same thing!
  • After being so used to Helix I often reach for keybinds that don’t exist. I might have to learn Vim keybinds because I’m definitely going to keep trying Zed.
  • Not sure how I feel about what seems to be an inline discord-like chat/voice-call feature.

Going to check out if there’s git integration, because I couldn’t easily find it.

pukeko@lemm.ee on 10 Jul 2024 19:26 next collapse

Git integration seems to be so embedded that it’s easy to miss. Open a git repository folder and you can switch branches and whatnot. But, like, in the command palette, there’s no Git > Pull or Git > Clone as in vscode. (I have barely scratched the surface so it might be there hiding in plain sight.)

toastal@lemmy.ml on 11 Jul 2024 02:34 collapse

What other VCSs are supported?

hemko@lemmy.dbzer0.com on 10 Jul 2024 19:28 collapse

Going to check out if there’s git integration, because I couldn’t easily find it.

Asking this because I’m noob, not elitist ass: Why a git integration in ide instead of using the cli? I’ve been working only on few projects where git is used, but the cli seems to be a ton easier to understand how to work with than the git integration in vscode which I discarded after few attempts to use

iiGxC@slrpnk.net on 10 Jul 2024 19:37 next collapse

I mainly use git with cli, the one thing that’s been super helpful in vscode is gitlens, which shows you who last updated the line you’re on, and lets you look at the commit

hemko@lemmy.dbzer0.com on 10 Jul 2024 19:40 collapse

Oh that sounds very sweet!

micka190@lemmy.world on 10 Jul 2024 19:42 next collapse

Depends on the features.

Git has some counterintuitive commands for some commands you may want to do when you want to quickly do something. Being able to click a button and have the IDE remember the syntax for you is nice.

Some IDEs have extra non-native Git features like have inlined “git blame” outputs as you edit (easily see a commit message per-line, see who changed what, etc.), better diff/merge tooling (JetBrain’s merge tool comes to mind), being able to revert parts of the file instead of the whole file, etc.

the git integration in vscode which I discarded after few attempts to use

I’m going to be honest, I don’t really like VS Code’s Git integration either. I find it clunky and opinionated with shitty opinions.

hemko@lemmy.dbzer0.com on 10 Jul 2024 19:53 collapse

Git has some counterintuitive commands

Yeah… ‘git merge main’ weirds me out because my brain likes to think the command is merging current branch TO main instead of other way around

Some IDEs have extra non-native Git features like have inlined “git blame” outputs as you edit (easily see a commit message per-line, see who changed what, etc.), better diff/merge tooling (JetBrain’s merge tool comes to mind), being able to revert parts of the file instead of the whole file, etc.

Okay this sounds very good, so they actually improve git cli feature wise in addition to implementing GUI for it.

Thanks for the reply!

Bolt@lemmy.world on 10 Jul 2024 19:48 next collapse

I’m probably more of a git noob than you, but I do usually use the cli. I figured if I’m going to give a gui editor an honest shake I should try to do things the inbuilt, gui, way. And more to the point, I do appreciate a good user interface with information at a glance or click instead of having to type out a command each time.

hemko@lemmy.dbzer0.com on 10 Jul 2024 20:01 collapse

I’m probably more of a git noob than you

Doubt =D

And more to the point, I do appreciate a good user interface with information at a glance or click instead of having to type out a command each time.

Agreed with good user interface, my criticism was specifically for the vscode default git plugin which I was not compatible with at all but it could be just a me-problem

flux@lemmy.ml on 11 Jul 2024 08:29 next collapse

A great git integration can work well in an editor. I use Magit in Emacs, which is probably as full-featured Git-client as there can be. Granted, for operations such as cherry-picking or rebasing on top of a branch or git reset I most often use the command line (but Magit for interactive rebase).

But editor support for version management can give other benefits as well, for example visually showing which lines are different from the latest version, easy access to file history, easy access to line-based history data (blame), jumping to versions based on that data, etc.

As I understand it vscode support for Git is so basic that it’s easy to understand why one would not see any benefits in it.

ParetoOptimalDev@lemmy.today on 11 Jul 2024 11:53 collapse

This video using emacs magit git porcelain might help you see why:

m.youtube.com/watch?v=qPfJoeQCIvA&feature=youtu.b…

Basically you can go quickly from the log to viewing diffs or any other action on commits or groups of commits and more.

I used to only use git from CLI for 10+ years but mostly only use magit now.

pukeko@lemm.ee on 10 Jul 2024 19:16 next collapse

Zed has a lot more features and is GUI-based. Helix is more focused and is CLI-based. I think a more direct comparison would be with VSCode(ium).

theshatterstone54@feddit.uk on 10 Jul 2024 20:37 collapse

Why Helix over (neo)Vim?

priapus@sh.itjust.works on 10 Jul 2024 21:34 next collapse

Better/simpler experience out of the box. With Helix you install the LSPs for languages you use and you’re set with a fully featured editor. Manual configuration is only needed for setting themes, keybinds, and small setting changes. It also feels much faster than a fully configured vim/neovim. Lastly its keybinds are inspired by Vim/Kakoune, but different from both.

markstos@lemmy.world on 12 Jul 2024 16:07 collapse

A better out of the box experience-- fewer plugins required. More discussion here: urbanists.social/@markstos/112586854536602496

theshatterstone54@feddit.uk on 12 Jul 2024 18:29 collapse

Cool, but is it possible to add vim bindings to Helix? I’m too used to them, I even use them in Emacs.

markstos@lemmy.world on 12 Jul 2024 18:44 collapse

A lot of the bindings are the same, because Helix was inspired in part by Vim.

Helix overall tries to make more consistent vocabulary and “nouns” and “verbs” in the keybindings, so there are some breaking changes.

Someone published a more “vim-like” set of keybindings for Helix: github.com/LGUG2Z/helix-vim

I started with that and then have slowly disabled a number of them as I come to appreciate the Helix defaults, and have realized that some of these vim-bindings are overriding other Helix bindings that I wanted.

tabular@lemmy.world on 10 Jul 2024 18:15 next collapse

What’s that?

coolmojo@lemmy.world on 10 Jul 2024 18:18 collapse

Integrated Development Environment (IDE) from the makers of Atom. It is written in rust.

electricprism@lemmy.ml on 10 Jul 2024 18:34 next collapse

New Editor, by Atom Devs, Rust

Buildout@lemmy.world on 11 Jul 2024 21:23 collapse

Editor, Atom, Rust

YourMomsTrashman@lemmy.world on 11 Jul 2024 23:08 collapse

EAR

gravitas_deficiency@sh.itjust.works on 10 Jul 2024 18:42 next collapse

Oh man I LOVED Atom. Giving this new one a test drive now :)

RayJW@sh.itjust.works on 10 Jul 2024 19:22 collapse

I think Zed is quite different from Atom. But Pulsar might be your thing. A direct fork of the last release of Atom being developed by ex Atom developers :)

gravitas_deficiency@sh.itjust.works on 10 Jul 2024 20:22 next collapse

I just mean that I liked the work that the devs did on Atom, which makes me want to try this one out too

RayJW@sh.itjust.works on 13 Jul 2024 20:50 collapse

Oh, in that case you might like either. I think both are great in their own way!

Daeraxa@lemmy.ml on 11 Jul 2024 09:31 collapse

Just to clarify, the Pulsar devs aren’t ex-Atom devs. Some of the team are from atom-community but none of the core Pulsar team were part of the official Atom team.

RayJW@sh.itjust.works on 13 Jul 2024 20:51 collapse

Oh, interesting. In that case I misunderstood that part, I thought there were core devs of Atom involved in Pulsar, thanks :)

Daeraxa@lemmy.ml on 14 Jul 2024 00:11 collapse

Watch this space for the full history, I’m literally putting the final touches on a blog post that will go into details of how Atom started then how it became Pulsar as a little celebration after we hit 3k stars.

tabular@lemmy.world on 10 Jul 2024 19:20 next collapse

Thanks. I briefly used Atom (on Win) but stopped as it was terribly slow to startup.

What is the software license for Zed? It’s Github page isn’t clear.

furzegulo@lemmy.dbzer0.com on 10 Jul 2024 20:36 collapse

The code for Zed itself is available under a copyleft license to ensure any improvements will benefit the entire community (GPL for the editor, AGPL for server-side components). GPUI, the UI framework that powers Zed, is distributed under the Apache 2 license, so that you can use it to build high-performance desktop applications and distribute them under any license you choose. zed.dev/blog/zed-is-now-open-source>

Virkkunen@fedia.io on 10 Jul 2024 19:46 collapse

Zed is not an IDE, it's a code editor. No, they aren't the same things, it's like saying a table and a kitchen are the same thing.

coolmojo@lemmy.world on 10 Jul 2024 20:26 next collapse

You are right, stand corrected.

eager_eagle@lemmy.world on 11 Jul 2024 07:03 collapse

This distinction is not as meaningful as it used to be before LSPs; there’s little a PyCharm IDE can do that you can’t do in VS Code editor for example.

mogoh@lemmy.ml on 10 Jul 2024 18:23 next collapse

Interesting project, how ever it will be hard to compete with existing editors and its plugin eco-systems.

GravitySpoiled@lemmy.ml on 10 Jul 2024 19:09 next collapse

I don’t think so. The guys who write the plugins are the cracks and the cracks will use zed.

priapus@sh.itjust.works on 10 Jul 2024 21:14 collapse

It supports LSPs, and has treesitter syntax highlighting and git integration which honestly makes it 90% of the way there already

linucs@lemmy.ml on 11 Jul 2024 07:05 collapse

Vim keybindings or death

aaro@lemmy.world on 11 Jul 2024 08:23 collapse

It has those as well

linucs@lemmy.ml on 11 Jul 2024 11:47 collapse

Great!

bionicjoey@lemmy.ca on 10 Jul 2024 18:28 next collapse

Installer is piping curl into shell

I thought we were past this as a society 😔

kazaika@lemmy.world on 10 Jul 2024 18:41 next collapse

I mean its already in the nix repos as well as homebrew which means its essentially taken care of

GravitySpoiled@lemmy.ml on 10 Jul 2024 19:08 next collapse

I’ve been using it with the nix package manager. It’s awesome how easy nix works

pukeko@lemm.ee on 10 Jul 2024 19:13 collapse

It appears to be a couple of versions behind … and have some issues with dynamically linked libraries that hinder LSPs. Neither of these is Zed’s fault. I’m sure the packaged version will be up to date momentarily (given the interest in Zed, sooner rather than later). Not sure how easy the LSP thing will be to fix, though there are some workarounds in the github issue.

priapus@sh.itjust.works on 10 Jul 2024 19:48 collapse

yeah the editor is being updated way too fast for nix to keep up. I’m sure it’ll be easier once it has its stable release. I see the have a nix flake in the repo, it would be great if they added a package to the outputs instead of just a devshell, nix users could easily build it from master or whichever tag they want.

There are solutions in this issue to the LSP issue. The editor would need to be built in an fhs-env, or they will need to find a way to make it uses binaries installed with nix instead of the ones it downloads itself. VSCode had a similar issue, so there is a version of the package that let’s you install extensions through nix, and another that uses an fhs-env that allows extensions to work out of the box.

krolden@lemmy.ml on 10 Jul 2024 20:46 collapse

So it should say hey check your distros package repos first.

atzanteol@sh.itjust.works on 11 Jul 2024 23:05 collapse

Yeah. Especially rather than saying “curl/bash” is the preferred way of installing.

gravitas_deficiency@sh.itjust.works on 10 Jul 2024 18:42 next collapse

There are various package manager vectors for installation listed in the docs

eager_eagle@lemmy.world on 10 Jul 2024 18:47 next collapse

zed.dev/docs/linux#installing-via-a-package-manag…

cerement@slrpnk.net on 10 Jul 2024 19:41 collapse

ooh, available for “x86_65” on Alpine

(and they’ve fixed that now)

executivechimp@discuss.tchncs.de on 10 Jul 2024 20:43 next collapse

x86_64++

SidewaysHighways@lemmy.world on 10 Jul 2024 20:52 collapse

Plus ultra!

eager_eagle@lemmy.world on 10 Jul 2024 20:59 next collapse

imagine the nightmare of writing a 65 bit instruction set

laughterlaughter@lemmy.world on 11 Jul 2024 10:23 next collapse

I don’t think it has to be a nightmare per se if you start from scratch.

Instead of 8-bit bytes, you have 5-bit “bytes” (fyves?) Hoozah! Done.

eager_eagle@lemmy.world on 11 Jul 2024 13:33 collapse

only if double precision can be called high fyves

laughterlaughter@lemmy.world on 15 Jul 2024 07:52 collapse

This is a mandatory rule now.

yogurtwrong@lemmy.world on 20 Jul 2024 08:59 collapse

Now imagine designing a 65 bit computer. The bus, registers, alu…

You’ll probably waste a lotta chips since most of them are designed for working with powers of 2

bitcrafter@programming.dev on 10 Jul 2024 23:19 collapse

Have you really not heard of it? It is a new architecture that is a bit better than x64_64.

mlg@lemmy.world on 12 Jul 2024 03:35 collapse

Finally. 65 bit processor.

<img alt="" src="https://lemmy.world/pictrs/image/81f92cb1-5b91-4916-b2e9-a6b0df1fc42a.jpeg">

Telorand@reddthat.com on 10 Jul 2024 18:47 next collapse

That was my first thought as well, but I will say that uBlue distros had a signing issue preventing updates recently, due to an oversight with how they rotated their image signing keys, and the easiest (maybe only?) solution was to pipe a curl command to sh. Even though uBlue is trustworthy, they still recommended inspecting the script, which was only a few lines of code.

In this case, though, I dunno why they don’t just package it as a flatpak or appimage or put it up on cargo.

Edit: nvm, they have some package manager options.

krolden@lemmy.ml on 10 Jul 2024 20:45 next collapse

Not until after you convince these projects to stop using discord

timestatic@feddit.org on 01 Aug 2024 12:38 collapse

As long as they just use it for their community and don’t fucking lock documentation behind discord I don’t really care. But this trend has been so annoying. Due to this I’m in so many servers I have to quit a server just to join a new one

TunaCowboy@lemmy.world on 10 Jul 2024 21:16 next collapse

It is worrisome that all the smug elitists are too incompetent to just leave off the pipe and review from stdout, or redirect to a file for further analysis.

Same people will turn around and full throat the aur screaming ‘btw’ to anyone who dares look in their direction.

skilltheamps@feddit.org on 11 Jul 2024 09:21 next collapse

By that logic you have to review the Zed source code as well. Either you trust Zed devs or you don’t - decide! If you suspect their install script does something fishy, they could do it just as well as part of the editor. If you run their editor you execute their code, if you run the install script you execute their code - it’s the same thing.

Aur is worse because there usually somebody else writes the PKGBUILD, and then you have to either decide whether to trust that person as well, or be confident enough for vetting their work yourself.

krolden@lemmy.ml on 11 Jul 2024 17:24 collapse

Eh using aur is a bit different since most of# them pull the projects git repo directly anyway. Yeah the project might have vulns but thats on you to inspect before building it as well as the pkgbuild itself

ReversalHatchery@beehaw.org on 11 Jul 2024 02:13 next collapse

Can’t we basically call this a remote access trojan?

skilltheamps@feddit.org on 11 Jul 2024 06:51 collapse

Security wise it doesn’t matter, you run the code they wrote in any case. So either trust them or don’t. Where it matters is making a mess on your computer and possibly leaving cruft behind when uninstalling. But packages are in the works, Arch even has it since before linux support was announced officially.

GravitySpoiled@lemmy.ml on 11 Jul 2024 07:35 next collapse

So did fedora and nix

ParetoOptimalDev@lemmy.today on 11 Jul 2024 11:38 collapse

This isn’t true because until the PR fixing it goes through it downloads other binaries without user consent.

skilltheamps@feddit.org on 11 Jul 2024 13:22 collapse

I think you slipped in the discussion intendations somewhere, this branch of the discussion tree is about the implications of piping curl into bash vs. installing packages

wfh@lemm.ee on 11 Jul 2024 07:59 next collapse

A curl piped into a shell or some unofficial packages from various distros.

At this point I don’t get why these projects are not Flatpak-first.

ParetoOptimalDev@lemmy.today on 11 Jul 2024 11:40 collapse

Flatpak is worse for debugging, development, and reproducibility.

Its good for user friendly sandboxing, portability, and convenience.

wfh@lemm.ee on 11 Jul 2024 11:57 next collapse

Is it really worse tho? A single build, against a single runtime, free from distro specificities, packaged by the devs themselves instead of offloading the work on distro maintainers?

ParetoOptimalDev@lemmy.today on 12 Jul 2024 05:24 next collapse

I’ll have to come up with some examples and write something more detailed I think to explore this.

Until NixOS I was very in favor of language specific package managers and things like flatpak.

crispy_kilt@feddit.de on 12 Jul 2024 11:06 collapse

It is. Security problem in core library? Good luck waiting for 27 randos releasing an update. Whereas the distro updates it even before the issue becomes public.

GravitySpoiled@lemmy.ml on 11 Jul 2024 18:56 collapse

Flatpaks are reproducible ranfdev.com/…/flatpak-builds-are-not-reproducible…

ParetoOptimalDev@lemmy.today on 12 Jul 2024 05:19 collapse

You see the conclusion of that article is that flatpaks are not repeoducible after presenting solutions to make it reproducible right?

carrabelloy@darknight-coffee-cannabis.club on 28 Jul 2024 06:02 collapse

@ParetoOptimalDev @GravitySpoiled Tusky 25.2

Device:

Fairphone FP4
Android-Version: 11
SDK-Version: 30

Account:

@carrabelloy
Version: 4.2.10

eveninghere@beehaw.org on 11 Jul 2024 12:37 next collapse

GPU-accelerated renderer.

There’s a reason why GUIs don’t render fonts in the GPU.

shy_mia@lemmy.blahaj.zone on 12 Jul 2024 07:03 collapse

Because it’s a pain, there’s not much more to it really…

eveninghere@beehaw.org on 12 Jul 2024 08:26 collapse

AFAIK it’s the copy cost for the memory. GPU makes sense only when the hardware allows this copy to go away. Generally, desktop PCs don’t have such specialized hardware.

shy_mia@lemmy.blahaj.zone on 12 Jul 2024 09:25 collapse

I don’t see why you’d have to copy all that much. Depending on the rendering architecture, once all the glyphs are there you’d only need to send the relevant text data to be rendered. I don’t see that being much of a problem even when using SDFs. It’s an extremely small amount of data by today’s standards and it can be updated on demand, but even if it couldn’t it would still be extremely fast to send over every frame. If games do it, so can text editors. Real time text rendering on the GPU is a fairly common practice nowadays, unfortunately not in most GUI applications…

eveninghere@beehaw.org on 12 Jul 2024 14:26 collapse

At this point I’m not expert enough to explain more details. You can check font renderers.

Below is what’s in my mind but it’s just a guess.

In typical PC architectures you have IO between the storage and the RAM, and then there’s the copying from the RAM to the VRAM, and editors maybe also want copying from the VRAM to RAM for decoration purposes etc.

shy_mia@lemmy.blahaj.zone on 12 Jul 2024 15:27 collapse

I am familiar with the current PC and GPU architectures.

IO is a non issue. Even a massive file can be trivially memory mapped and parsed without much hassle, and in the case of a text editor you’d have to deal with IO only when opening or saving said file, not during rendering.

As for the rendering side, again, the amount of memory you’d have to transfer between RAM and VRAM would be minimal. The issue is latency, not speed, but that can be mitigated though asynchonous transfer operations, so if done properly stutters are unlikely.

Rendering monospaced fonts (with decorators and control characters) at thousands of frames a second nowadays is computationally trivial, take a look at refterm for an example. I suspect non-monospaced fonts would require more effort, but it’s doable.

As I said at the beginning, it’s not impossible, just a pain. But so is font rendering in general honestly :/

eveninghere@beehaw.org on 12 Jul 2024 22:05 collapse

As I indicated, please check (articles and the documentations of) font renderers at this point.

PushButton@lemmy.world on 13 Jul 2024 07:42 collapse

It’s made in rust, therefore it must be safe!

MagisterSieran@discuss.tchncs.de on 10 Jul 2024 18:58 next collapse

There ought to be a rule that posts about software releases have to say what it is.

cerement@slrpnk.net on 10 Jul 2024 20:10 next collapse

Zed (a high-performance code editor announced in 2022), not to be confused with Xed (a small and lightweight text editor released in 2016)

EDIT: or Yed (a small and simple terminal editor core)

ksp@jlai.lu on 10 Jul 2024 21:24 collapse

My bad, it’s up now

cerement@slrpnk.net on 10 Jul 2024 19:23 next collapse

also seems to have some security issues

krolden@lemmy.ml on 10 Jul 2024 20:49 next collapse

Lmao fuck this project

priapus@sh.itjust.works on 10 Jul 2024 21:12 collapse

They are addressing this here: github.com/zed-industries/zed/pull/14034

krolden@lemmy.ml on 10 Jul 2024 21:58 collapse

Thats not the point. Why should you trust anything from this project after they would allow third party unsigned binaries from questionable sources

priapus@sh.itjust.works on 10 Jul 2024 22:24 collapse

Because people can make make mistakes…

Loads of important projects have had vulnerabilities that showed up through minor mistakes and oversights. I agree that this shouldn’t happen, but it did. I’d still prefer this project to a closed source editor/IDE and even VSCodes method of having a store full of plugins, many of which are closed source and unverified. The project is in alpha, mistakes and problems are expected. This was obviously an oversight, and after being pointed out, it is being addressed.

Can you elaborate on questionable sources? All the sources I saw were the official sources of the binaries they wanted to download.

lord_ryvan@ttrpg.network on 11 Jul 2024 07:19 collapse

Deliberately making your program download unsigned binaries from questionable sources is more of a bad design than an oopsie in my book

priapus@sh.itjust.works on 11 Jul 2024 13:34 collapse

Again, the binaries aren’t from questionable sources. From what I can tell they all come from the official source. The problem is them being unsigned, which is a simple oversight that can be made when something is being written by someone who is not security minded. It is alpha software and this is already actively being discussed.

1984@lemmy.today on 10 Jul 2024 19:29 next collapse

I can see the beginning of something truly great in this editor. It’s going to become better than VS code in a year.

It’s already great for some languages like Go and Rust.

Telorand@reddthat.com on 10 Jul 2024 21:29 next collapse

I hope that’s true, but it will be an uphill battle for them to get people to move. VS Code is already pretty good.

possiblylinux127@lemmy.zip on 10 Jul 2024 23:47 collapse

VScode is proprietary and slow. If you are using something like that you should use VScodium

Mihies@programming.dev on 11 Jul 2024 06:31 collapse

But aren’t both the same speedwise?

possiblylinux127@lemmy.zip on 11 Jul 2024 14:11 collapse

Yes but one is libre without telemetry

RacoonVegetable@reddthat.com on 10 Jul 2024 19:50 next collapse

Zed is now officially the best editor ever

EarthShipTechIntern@lemm.ee on 11 Jul 2024 07:01 collapse

Why?

RacoonVegetable@reddthat.com on 11 Jul 2024 14:32 collapse

Because I like it

TeryVeneno@lemmy.ml on 12 Jul 2024 16:56 collapse

What a lovely answer, made my day fr

RacoonVegetable@reddthat.com on 12 Jul 2024 20:14 collapse

<img alt="" src="https://reddthat.com/pictrs/image/5bcc4d87-0553-405b-88f1-9813e946dac6.jpeg">

EarthShipTechIntern@lemm.ee on 12 Jul 2024 22:39 collapse

Because it was all picture, I had to search around to upvote (using Boost, voting is hidden until you select the comment. Comment is picture? It takes you to the picture (without voting options)).

Worth it. Otter & cat pic brightened my day.

chemicalwonka@discuss.tchncs.de on 10 Jul 2024 21:04 next collapse

Always

boredsquirrel@slrpnk.net on 10 Jul 2024 21:10 next collapse

github.com/zed-industries/zed/issues/7054#issueco…

They auto download binaries, even proprietary ones, unsigned and without user interaction.

YEAH security!

savvywolf@pawb.social on 11 Jul 2024 01:17 next collapse

So they’re doing the equivalent of VSCode(ium)'s extensions, but installing them automatically and not giving you the option to use alternatives?

Blegh.

eager_eagle@lemmy.world on 11 Jul 2024 03:09 next collapse

Why are copilot and some other functions not extensions?

tl;dr: General purpose extensions are not even implemented yet

zed is very much an early stages editor; it’ll look very different a year from now

aaro@lemmy.world on 11 Jul 2024 08:21 collapse

I think they auto install some binaries like nodejs that are required for baseline functionality, but have a popup window for additional language LSPs

hswolf@lemmy.world on 11 Jul 2024 11:11 collapse

what if I wanted to use deno or bun? I don’t think that should be their decision to install “default” stuff that have alternatives

I’m all for their improvement tho

aaro@lemmy.world on 11 Jul 2024 12:13 collapse

I don’t see your point? Nodejs is installed in a custom directory and not added to PATH. It is used by Zed for providing npm support for extensions, and other things. I’m not a Zed developer so I don’t know exactly.

It doesn’t prevent you from using deno or bun in any way.

hswolf@lemmy.world on 12 Jul 2024 11:22 collapse

I see, that’s greatif it is only locally installed and used, messing with PATH could, probably, break stuff like nvm or others

PushButton@lemmy.world on 11 Jul 2024 11:09 collapse

Quoting the guy:

“that rewriting those in Rust will take an eternity, so not sure what is actionable here, hence closing.”

That’s Rust shining from all its glories here gentlemen…

The best language, if there is nothing changing.

That’s a thing to make a web server or a library that displays Fibonacci, that’s something else when there are humans with changing scopes…

boredsquirrel@slrpnk.net on 11 Jul 2024 11:17 next collapse

Its not Rusts fault, the devs are simply lazy and making insecure products, as they dont want to rewrite everything.

PushButton@lemmy.world on 11 Jul 2024 11:34 collapse

That’s what I am saying.

To quote you: “they don’t want to rewrite everything” …

Writing Rust often implies major refactoring and it takes so much time to write that your requests go: “pewf” closed due to the amount of effort it takes.

Anyway, been there, done that! Zig is probably the real future; it’s a joy to write, it compiles fast, clear to read, and safe.

It has shared libraries and a proper integration with existing C/CPP code base.

You should try it, that’s an amazing language with a real potential to replace the legacy.

AVincentInSpace@pawb.social on 12 Jul 2024 06:41 collapse

I dunno man… I’m not sure I’m so keen on a language that prides itself on not having macros

PushButton@lemmy.world on 12 Jul 2024 07:55 collapse

Comptime replaces macros/reflection.

It’s basically Zig code that runs at compile time in your code…

No other “weird” language to learn; it’s zig all the way. What you would have written in macro is written in zig comptime.

Even the build system is zig…

Same for generics, it’s comptime…

ParetoOptimalDev@lemmy.today on 11 Jul 2024 11:43 next collapse

They were exaggerating to avoid work. Look at the PR diff to determine whether your anti-Rust bias is true.

PushButton@lemmy.world on 11 Jul 2024 11:57 collapse

There are no patch, the issue has been closed as in rejected.

There are a few tasks that are open that are loosely related, but let’s not mix things up.

Moreover, I will take the words of the maintainers over a random potato on a forum.

No offense…

ParetoOptimalDev@lemmy.today on 11 Jul 2024 16:08 collapse

The issue was closed, but a draft PR was linked… potato:

github.com/zed-industries/zed/pull/14034

PushButton@lemmy.world on 12 Jul 2024 02:19 collapse

As I mentioned, a couple of tasks loosely related. The patch you are mentioning isn’t complete nor address the real problem.

It is an ugly hack at best.

Refrain from your urge to defend rust at all costs. You are sliding more and more toward the specifics of a project than the fact I stated about rust in general.

If you still not get my initial point I’ve made, read this.

That’s a long read explaining what I meant. My point was about Rust, not Zed or the developers of Zed in particular.

And for the Zed editor, I wish them the best luck, it seems like a great project that people enjoy.

Please feel free to comment and share your thoughts on the article above, my dear favorite nutritious veggie.

fxdave@lemmy.ml on 11 Jul 2024 12:27 collapse

I use rust only if we need performance, for small services. The industry does the same. People use node for backend but e.g. redis is in rust. It’s a good tool if you use it for the right stuff.

EDIT: redis is not in rust, but e.g. aws writes many services in rust

PushButton@lemmy.world on 11 Jul 2024 13:31 collapse

Wtf are you talking about? Redis is in C…

fxdave@lemmy.ml on 12 Jul 2024 07:54 collapse

yeah I’m a fucking idiot because I thought wrongly the redis’ language…

crispy_kilt@feddit.de on 12 Jul 2024 11:05 collapse

You’re not an idiot, you just misremembered. It happens

aramus@lemmy.world on 10 Jul 2024 21:23 next collapse

I still don’t understand why I should need GPU acceleration for my fucking TEXT EDITOR

sorrybookbroke@sh.itjust.works on 10 Jul 2024 21:41 next collapse

Sppeeed

FlorianSimon@sh.itjust.works on 10 Jul 2024 22:35 collapse

Think about battery life too 🎉

FlorianSimon@sh.itjust.works on 10 Jul 2024 22:35 next collapse

Probably because it’s more efficient. GPUs are designed to render things, which editors do. In a text editor, you’re effectively rendering fonts over a fixed background, which I assume is pretty efficient using the GPU.

We’re not talking about crazy 3D effects here.

Yay to battery savings!

booly@sh.itjust.works on 10 Jul 2024 22:48 collapse

Shouldn’t the DE/Window Manager be handling that? Seems like doing it on a window by window basis would be inefficient (and look inconsistent).

leopold@lemmy.kde.social on 10 Jul 2024 23:00 next collapse

The job of the window manager is to manage windows and very little else. Font rendering is done by the widget toolkit, usually via freetype/harfbuzz.

AProfessional@lemmy.world on 10 Jul 2024 23:00 collapse

That’s a totally unrelated part of the stack. These days you just have a compositor that combines the output of applications.

The model of out of process rendering in Xorg was done pre-2000s but GPUs became the norm and don’t work well this way.

ParetoOptimalDev@lemmy.today on 11 Jul 2024 11:46 collapse

The model of out of process rendering in Xorg was done pre-2000s but GPUs became the norm and don’t work well this way.

Thats where we get into explicit and implicit sync right?

AProfessional@lemmy.world on 11 Jul 2024 13:33 collapse

Also very unrelated, that’s about graphics apis like opengl.

www.khronos.org/opengl/wiki/Synchronization

electricprism@lemmy.ml on 11 Jul 2024 00:50 next collapse

Smooth scrolling? Maybe I’m wrong

naught@sh.itjust.works on 11 Jul 2024 01:01 next collapse

I mean, it should be clear. Smooth and fast and snappy. If you don’t want that, use neovim like me :)

ma1w4re@lemm.ee on 11 Jul 2024 03:43 collapse

But… Neovim is smooth, fast and snappy 😭

naught@sh.itjust.works on 11 Jul 2024 16:02 next collapse

Hold down j and lmk how smooth it is 😅

ma1w4re@lemm.ee on 12 Jul 2024 09:33 collapse

😭😭😭

shy_mia@lemmy.blahaj.zone on 12 Jul 2024 07:06 collapse

Terminals applications are, by definition, not smooth. You can’t have smooth scrolling, or anything else really, with a text grid.

ma1w4re@lemm.ee on 12 Jul 2024 09:32 collapse

Idk I’m so used to working in terminal I don’t really notice that. For my eyes, it’s smooth enough

ryannathans@aussie.zone on 11 Jul 2024 01:02 collapse

Same reason you need it for your terminal (see kitty terminal). It’s surprisingly slow to cpu render text, gpu rendering is more power efficient and far more responsive

fruitycoder@sh.itjust.works on 11 Jul 2024 01:19 next collapse

It was surprising how gpu accelerated rendering helped read logs better. Niche case, but better was better.

laughterlaughter@lemmy.world on 11 Jul 2024 10:25 collapse

Better in what sense?

fruitycoder@sh.itjust.works on 11 Jul 2024 20:50 collapse

More readable on my part. The speed at which logs could write to the screen and still be readable was faster for me compared to before.

laughterlaughter@lemmy.world on 15 Jul 2024 07:54 collapse

Interesting! I’d like to experience this at some point.

laughterlaughter@lemmy.world on 11 Jul 2024 10:26 next collapse

Surprisingly slow compared to GPU rendering. But… is it really “surprisingly slow”? If it was some 10mhz machine, then sure… I’d agree with you.

ryannathans@aussie.zone on 11 Jul 2024 10:45 collapse

Look at the benchmarks on kitty sw.kovidgoyal.net/kitty/performance/

Phoenix3875@lemmy.world on 11 Jul 2024 12:00 collapse

Maybe I’m missing something, but shouldn’t the benchmark be a good approximation to the real workload? I don’t see how the measurements reflect the performance difference in real life usages.

Why would I need 100MiB/s processing as opposed to 20MiB/s processing, when I can only read maybe several lines per second?

ryannathans@aussie.zone on 11 Jul 2024 12:08 collapse

Faster processing means more efficient processing which means less power draw.

github.com/kovidgoyal/kitty/issues/2701#issuecomm…

How about keypress latency? Over 3x faster than gnome terminal and 4x faster than alacritty

atzanteol@sh.itjust.works on 11 Jul 2024 23:13 collapse

Same reason you need it for your terminal

So I don’t.

possiblylinux127@lemmy.zip on 10 Jul 2024 23:46 next collapse

I never understood the need

Rin@lemm.ee on 11 Jul 2024 00:51 next collapse

Vscodium but not running in a browser.

toastal@lemmy.ml on 11 Jul 2024 02:24 next collapse

If it can’t run in a terminal, what is the point?

eager_eagle@lemmy.world on 11 Jul 2024 03:12 collapse

gpu accelerated editor with remote development > terminal editor

ma1w4re@lemm.ee on 11 Jul 2024 03:40 collapse

There are gpu accelerated terminal emulators… Not sure what you mean by remote development though.

eager_eagle@lemmy.world on 11 Jul 2024 07:06 collapse

remote development for connecting to a machine without a display server; basically covering the main use case for being constrained to a terminal.

Remote Tunnels in VS Code or JetBrains Gateway for example

I do use a GPU accelerated terminal, but it’s still very limited compared to a GUI; they serve different goals.

ma1w4re@lemm.ee on 11 Jul 2024 08:36 next collapse

Fair

toastal@lemmy.ml on 11 Jul 2024 14:40 collapse

I like to be just as comfortable coding remotely as I do locally. I have the same setup on my machine & on servers. TUIs are sometimes a better UI/UX since they tend to not come with so much bloat & compatibility with all window managers as well as working great for extremely lightweight, low-latency pairing like the experience provided by upterm. My terminal is also GPU-acceraletd too for performance.

possiblylinux127@lemmy.zip on 11 Jul 2024 04:46 collapse

VScodium is running in the browser. It is electron based.

Rin@lemm.ee on 11 Jul 2024 15:07 collapse

Zed is native

BB_C@programming.dev on 11 Jul 2024 04:02 collapse

It’s not you who needs it.
It’s for buzzword chasers and cost cutters.

Rust (=> fast and hip)
Shared (=> outsourced)
AI generated (=> robot devs)

Get it?

DieserTypMatthias@lemmy.ml on 11 Jul 2024 09:45 collapse

The Rust hype at least makes sense. The other two are just utter bullshit.

BB_C@programming.dev on 11 Jul 2024 10:21 collapse

The Rust hype at least makes sense.

In technical context, yes. I’m a Rustacean myself.
In business/marketing context, …

crispy_kilt@feddit.de on 12 Jul 2024 11:12 next collapse

It also makes sense in a business context, because Rust enables memory safety at native speed, and enables building more reliable software due to its strong type system.

Safety and reliability are business critical in many industries.

LunarLoony@lemmy.sdf.org on 14 Jul 2024 08:15 collapse

Rustacean

Is that why the mascot’s a crab??

gortbrown@lemmy.sdf.org on 11 Jul 2024 03:17 next collapse

I was so happy about this! Been using it on my work MacBook and have been excited to use it on my main laptop!

vrighter@discuss.tchncs.de on 11 Jul 2024 04:34 next collapse

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.

UnfairUtan@lemmy.world on 11 Jul 2024 05:33 next collapse

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.

Mihies@programming.dev on 11 Jul 2024 06:28 next collapse

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

eager_eagle@lemmy.world on 11 Jul 2024 06:53 collapse

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.

vrighter@discuss.tchncs.de on 11 Jul 2024 09:46 collapse

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.

upto60percentoff@kbin.run on 11 Jul 2024 10:29 next collapse

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.

vrighter@discuss.tchncs.de on 12 Jul 2024 03:11 collapse

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.

upto60percentoff@kbin.run on 12 Jul 2024 05:51 collapse

I think you might care about this a touch too much

ParetoOptimalDev@lemmy.today on 11 Jul 2024 12:01 next collapse

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 …blogspot.com/…/its-not-what-programming-language…

vrighter@discuss.tchncs.de on 12 Jul 2024 03:07 collapse

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.

ParetoOptimalDev@lemmy.today on 12 Jul 2024 05:15 collapse

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.

vrighter@discuss.tchncs.de on 12 Jul 2024 09:11 collapse

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

crispy_kilt@feddit.de on 12 Jul 2024 11:14 collapse

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

vrighter@discuss.tchncs.de on 12 Jul 2024 12:14 collapse

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.

DieserTypMatthias@lemmy.ml on 11 Jul 2024 09:43 collapse

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++.

ProtonBadger@lemmy.ca on 11 Jul 2024 06:47 next collapse

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

DieserTypMatthias@lemmy.ml on 11 Jul 2024 09:42 next collapse

Just go outside and touch some grass.

ParetoOptimalDev@lemmy.today on 11 Jul 2024 11:58 next collapse

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.

cy_narrator@discuss.tchncs.de on 12 Jul 2024 16:22 collapse

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

[deleted] on 11 Jul 2024 06:56 next collapse

.

peppy@lemmy.ml on 11 Jul 2024 12:11 next collapse

How’s Lapce?

thevoidzero@lemmy.world on 11 Jul 2024 12:53 next collapse

Not much documentation. I tried to use it, but it was really hard to figure out anything.

fin@sh.itjust.works on 12 Jul 2024 10:59 collapse

I tried to read the code but the underlying concept was too complex for me to understand

blackboxwarrior@lemmy.ml on 11 Jul 2024 13:09 next collapse

I am BEGGING for any editor other than VSCode to have decent remote development. I want to go open source but everything I’ve tried (remote-nvim, distant, tramp, vscodium, etc.) just doesn’t cut it.

crmsnbleyd@sopuli.xyz on 11 Jul 2024 13:29 next collapse

Tramp is awesome :)

Warsk@lemmy.ml on 11 Jul 2024 13:48 next collapse

Is VSCode not open source?

Cube6392@beehaw.org on 11 Jul 2024 14:23 next collapse

It has Microsoft BLObs baked in as part of the build process. VS Codium is the FLOSS distribution of VS code’s open source code. Liveshare doesn’t appear in the package repo Codium uses (because of the Microsoft BLObs it contains as an extension). For work I manually download the live share extension VSX and load it into vscodium

ILikeBoobies@lemmy.ca on 12 Jul 2024 04:07 collapse

Vscode is like Chrome

And

VS Codium is like Chromium

flux@lemmy.ml on 11 Jul 2024 14:02 next collapse

Apparently Lapce has remote development as its core feature. But I only (re?)learned of it today…

How didn’t tramp work out for you?

warmaster@lemmy.world on 11 Jul 2024 15:00 next collapse

What about gitpod?

finestnothing@lemmy.world on 11 Jul 2024 22:03 next collapse

Have you tried running doom emacs in tmux on the remote server and accessing it with ssh? Doom emacs is all the good of an emacs environment, all the good of vim keybinds, and they worked in a decent amount of optimizations so it only loads the necessary stuff on demand (mine has a startup time of just over 1 second, slower than vim but barely an inconvenience). Can write a quick script to ssh copy (or git pull) your current configs on the server so you only have to maintain one set of configs if you want

scp ~/.config/doom/config.el username@server:~/.config/doom/config.el

Run emacs in tmux if you want to keep the emacs session open across multiple ssh sessions

AVincentInSpace@pawb.social on 12 Jul 2024 06:40 collapse

holy mother of latency

potosi@lemmy.dbzer0.com on 12 Jul 2024 03:48 next collapse

What in hell is remote development? You mean openssh and vim, right?

Cube6392@beehaw.org on 12 Jul 2024 15:59 collapse

Pair programming over the net. The old school way is tmux and vim but to do that you and your partner need port 22 open and most enterprises are gonna be like “hell no you can’t let people connect to your company owned work laptop SSH into your machine”

gkpy@feddit.org on 12 Jul 2024 23:50 collapse

would wstunnel help? just run that between both machines and pick whatever works best, even if that is ssh

ErnieBernie10@lemmy.world on 12 Jul 2024 20:15 next collapse

What I do is use distrobox or any devpod and install it in the container and launch from cli. Works perfectly for me.

janabuggs@beehaw.org on 13 Jul 2024 18:58 collapse

IntelliJ products my dude! If you go on there education side you can find the packages for free to compile yourself. There’s tons of guides online to do it.

Simmy@lemmygrad.ml on 11 Jul 2024 14:40 next collapse

Great another editor. Now what we need is a good PS alternative so we can all move away from Windows.

sag@lemm.ee on 12 Jul 2024 02:53 collapse

PS?

sorter_plainview@lemmy.today on 12 Jul 2024 03:44 collapse

Most probably Photoshop, else PowerShell

sag@lemm.ee on 12 Jul 2024 08:29 collapse

Probably, Photoshop because …microsoft.com/…/announcing-powershell-7-1/

Simmy@lemmygrad.ml on 13 Jul 2024 04:13 collapse

Correct Photoshop.

crazyminner@lemmy.ml on 12 Jul 2024 03:24 next collapse

I tried saving to a file that required root and it didn’t give any prompt to enter the password. On VSCodium normally if you are trying to write to a file that requires sudo then it prompts you.

Is there a way to save to root files with Zed?

cy_narrator@discuss.tchncs.de on 12 Jul 2024 16:19 next collapse

Maby launch editor with sudo?

adamnejm@programming.dev on 12 Jul 2024 17:31 collapse

Found the Windows user. On Linux we actually have polkit that can elevate privileges with a GUI prompt.

cy_narrator@discuss.tchncs.de on 13 Jul 2024 13:34 collapse

On Windows you can just right click and run as administrator bro

e922857@feddit.nl on 12 Jul 2024 18:12 collapse

Use sudoedit

potosi@lemmy.dbzer0.com on 12 Jul 2024 03:41 next collapse

text editor

GPU-accelerated renderer

What the fuck?

Thcdenton@lemmy.world on 12 Jul 2024 04:28 next collapse

Sounds pretty cool. Sometimes ill do a quick series of edits in vim and it fuckin chugs. I’m definitly gonna try it

Cube6392@beehaw.org on 12 Jul 2024 15:57 collapse

Pretty common feature. Sublime, Lapce, VS Code, certain Emacs distributions, certain NeoVim GUIs… We live in a world where a lot of people have GPUs and CPUs aren’t getting faster so if you want to get more work done (ie, running LSPs, tree sitter, completion engines, snippet engines, debuggers etc) you need to offload some of that work somewhere

Thcdenton@lemmy.world on 12 Jul 2024 04:27 next collapse

Ohhh shiiit

AVincentInSpace@pawb.social on 12 Jul 2024 06:39 next collapse

I still do not understand why Zed makes such a big deal about being GPU accelerated when you’ll be hard pressed to find a single text editor nowadays that isn’t.

bilb@lem.monster on 13 Jul 2024 06:18 collapse

Yeah, I don’t see why I should care about that. Gimme some crazy graphical effects, particles and shaders!

jaxxed@lemmy.world on 12 Jul 2024 07:21 next collapse

Zed seems cool, but not much better than other options. I am still kind of thrown off by the immediate GH/CoPilot integration. Am I the an old man left in the caves of feeling that I don’t need the AI help?

crispy_kilt@feddit.de on 12 Jul 2024 11:02 collapse

They’ll probably dial it back once the hype settles

[deleted] on 13 Jul 2024 04:05 next collapse

.

Nomad@infosec.pub on 01 Aug 2024 13:50 collapse

Lots oft running npm wrappers for an allegedly Rust dritten Pierce of Software