- cross-posted to:
- linux@programming.dev
- rust@lemmy.ml
- programming@programming.dev
- foss
- cross-posted to:
- linux@programming.dev
- rust@lemmy.ml
- programming@programming.dev
- foss
Zed is a modern open-source code editor, built from the ground up in Rust with a GPU-accelerated renderer.
- bionicjoey ( @bionicjoey@lemmy.ca ) 122•2 months ago
Installer is piping curl into shell
I thought we were past this as a society 😔
- krolden ( @krolden@lemmy.ml ) 63•2 months ago
Not until after you convince these projects to stop using discord
- timestatic ( @timestatic@feddit.org ) 1•1 month ago
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
- WFH ( @wfh@lemm.ee ) English12•2 months ago
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 ( @ParetoOptimalDev@lemmy.today ) 3•2 months ago
Flatpak is worse for debugging, development, and reproducibility.
Its good for user friendly sandboxing, portability, and convenience.
- WFH ( @wfh@lemm.ee ) English11•2 months ago
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?
- crispy_kilt ( @crispy_kilt@feddit.de ) 3•2 months ago
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.
- ParetoOptimalDev ( @ParetoOptimalDev@lemmy.today ) 1•2 months ago
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.
- GravitySpoiled ( @GravitySpoiled@lemmy.ml ) English3•2 months ago
Flatpaks are reproducible https://ranfdev.com/blog/flatpak-builds-are-not-reproducible/
- ParetoOptimalDev ( @ParetoOptimalDev@lemmy.today ) 3•2 months ago
You see the conclusion of that article is that flatpaks are not repeoducible after presenting solutions to make it reproducible right?
@ParetoOptimalDev @GravitySpoiled Tusky 25.2
Device:
Fairphone FP4
Android-Version: 11
SDK-Version: 30Account:
@carrabelloy
Version: 4.2.10
- ReversalHatchery ( @ReversalHatchery@beehaw.org ) English8•2 months ago
Can’t we basically call this a remote access trojan?
- skilltheamps ( @skilltheamps@feddit.org ) 11•2 months ago
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.
- ParetoOptimalDev ( @ParetoOptimalDev@lemmy.today ) 4•2 months ago
This isn’t true because until the PR fixing it goes through it downloads other binaries without user consent.
- skilltheamps ( @skilltheamps@feddit.org ) 7•2 months ago
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
- GravitySpoiled ( @GravitySpoiled@lemmy.ml ) English3•2 months ago
So did fedora and nix
- Telorand ( @Telorand@reddthat.com ) 5•2 months ago
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 oncargo
.Edit: nvm, they have some package manager options.
- eveninghere ( @eveninghere@beehaw.org ) 4•2 months ago
GPU-accelerated renderer.
There’s a reason why GUIs don’t render fonts in the GPU.
- Mia ( @shy_mia@lemmy.blahaj.zone ) 2•2 months ago
Because it’s a pain, there’s not much more to it really…
- eveninghere ( @eveninghere@beehaw.org ) 1•2 months ago
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.
- Mia ( @shy_mia@lemmy.blahaj.zone ) 2•2 months ago
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 ( @eveninghere@beehaw.org ) 1•2 months ago
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.
- Mia ( @shy_mia@lemmy.blahaj.zone ) 2•2 months ago
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 ( @eveninghere@beehaw.org ) 1•2 months ago
As I indicated, please check (articles and the documentations of) font renderers at this point.
- boredsquirrel ( @boredsquirrel@slrpnk.net ) 92•2 months ago
https://github.com/zed-industries/zed/issues/7054#issuecomment-1916315391
They auto download binaries, even proprietary ones, unsigned and without user interaction.
YEAH security!
- SavvyWolf ( @savvywolf@pawb.social ) English25•2 months ago
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.
- Magister Sieran ( @MagisterSieran@discuss.tchncs.de ) 81•2 months ago
There ought to be a rule that posts about software releases have to say what it is.
- cerement ( @cerement@slrpnk.net ) 43•2 months ago
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)
My bad, it’s up now
- cerement ( @cerement@slrpnk.net ) 37•2 months ago
also seems to have some security issues …
- krolden ( @krolden@lemmy.ml ) 6•2 months ago
Lmao fuck this project
- blackboxwarrior ( @blackboxwarrior@lemmy.ml ) 19•2 months ago
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.
- potosi ( @potosi@lemmy.dbzer0.com ) 9•2 months ago
What in hell is remote development? You mean
openssh
andvim
, right?- The Cuuuuube ( @Cube6392@beehaw.org ) English1•2 months ago
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 ( @gkpy@feddit.org ) 1•2 months ago
would wstunnel help? just run that between both machines and pick whatever works best, even if that is ssh
- flux ( @flux@lemmy.ml ) English8•2 months ago
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? - Drew ( @crmsnbleyd@sopuli.xyz ) 4•2 months ago
Tramp is awesome :)
- Warsk ( @Warsk@lemmy.ml ) 4•2 months ago
Is VSCode not open source?
- ILikeBoobies ( @ILikeBoobies@lemmy.ca ) 10•2 months ago
Vscode is like Chrome
And
VS Codium is like Chromium
- The Cuuuuube ( @Cube6392@beehaw.org ) English10•2 months ago
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
- janabuggs ( @janabuggs@beehaw.org ) 1•2 months ago
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.
- 1984 ( @1984@lemmy.today ) 17•2 months ago
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.
- Possibly linux ( @possiblylinux127@lemmy.zip ) English9•2 months ago
VScode is proprietary and slow. If you are using something like that you should use VScodium
- Mihies ( @Mihies@programming.dev ) 6•2 months ago
But aren’t both the same speedwise?
- Possibly linux ( @possiblylinux127@lemmy.zip ) English2•2 months ago
Yes but one is libre without telemetry
- Telorand ( @Telorand@reddthat.com ) 5•2 months ago
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.
- vrighter ( @vrighter@discuss.tchncs.de ) 15•2 months ago
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.
- ProtonBadger ( @ProtonBadger@lemmy.ca ) 18•2 months ago
You seem upset. Blink twice if someone is forcing you to use it.
- Matúš Maštena ( @DieserTypMatthias@lemmy.ml ) 4•2 months ago
Just go outside and touch some grass.
- cy_narrator ( @cy_narrator@discuss.tchncs.de ) 3•2 months ago
In an era where every single good code editors are built on Electron, its good to know something isnt
- ParetoOptimalDev ( @ParetoOptimalDev@lemmy.today ) 2•2 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.
- mogoh ( @mogoh@lemmy.ml ) 14•2 months ago
Interesting project, how ever it will be hard to compete with existing editors and its plugin eco-systems.
- GravitySpoiled ( @GravitySpoiled@lemmy.ml ) English7•2 months ago
I don’t think so. The guys who write the plugins are the cracks and the cracks will use zed.
- AVincentInSpace ( @AVincentInSpace@pawb.social ) English11•2 months ago
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! ( @bilb@lem.monster ) English3•2 months ago
Yeah, I don’t see why I should care about that. Gimme some crazy graphical effects, particles and shaders!
- peppy ( @peppy@lemmy.ml ) 9•2 months ago
How’s Lapce?
- gortbrown ( @gortbrown@lemmy.sdf.org ) 7•2 months ago
I was so happy about this! Been using it on my work MacBook and have been excited to use it on my main laptop!
- Possibly linux ( @possiblylinux127@lemmy.zip ) English6•2 months ago
I never understood the need
- Rin ( @Rin@lemm.ee ) 13•2 months ago
Vscodium but not running in a browser.
- toastal ( @toastal@lemmy.ml ) 4•2 months ago
If it can’t run in a terminal, what is the point?
- Possibly linux ( @possiblylinux127@lemmy.zip ) English2•2 months ago
VScodium is running in the browser. It is electron based.
- Rin ( @Rin@lemm.ee ) 4•2 months ago
Zed is native
- BB_C ( @BB_C@programming.dev ) 4•2 months ago
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?
- Matúš Maštena ( @DieserTypMatthias@lemmy.ml ) 7•2 months ago
The Rust hype at least makes sense. The other two are just utter bullshit.
- BB_C ( @BB_C@programming.dev ) 1•2 months ago
The Rust hype at least makes sense.
In technical context, yes. I’m a Rustacean myself.
In business/marketing context, …- ElectricMachman ( @LunarLoony@lemmy.sdf.org ) English1•2 months ago
Rustacean
Is that why the mascot’s a crab??
- crispy_kilt ( @crispy_kilt@feddit.de ) 1•2 months ago
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.
- Nora ( @crazyminner@lemmy.ml ) 4•2 months ago
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?
- e922857 ( @e922857@feddit.nl ) 2•2 months ago
Use sudoedit
- cy_narrator ( @cy_narrator@discuss.tchncs.de ) 1•2 months ago
Maby launch editor with sudo?
- Name ( @adamnejm@programming.dev ) 5•2 months ago
Found the Windows user. On Linux we actually have polkit that can elevate privileges with a GUI prompt.
- cy_narrator ( @cy_narrator@discuss.tchncs.de ) 1•2 months ago
On Windows you can just right click and run as administrator bro
- RacoonVegetable ( @RacoonVegetable@reddthat.com ) 4•2 months ago
Zed is now officially the best editor ever
- EarthShipTechIntern ( @EarthShipTechIntern@lemm.ee ) 5•2 months ago
Why?
- RacoonVegetable ( @RacoonVegetable@reddthat.com ) 5•2 months ago
Because I like it
- TeryVeneno ( @TeryVeneno@lemmy.ml ) 3•2 months ago
What a lovely answer, made my day fr
- RacoonVegetable ( @RacoonVegetable@reddthat.com ) 3•2 months ago
- EarthShipTechIntern ( @EarthShipTechIntern@lemm.ee ) 2•2 months ago
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.
- potosi ( @potosi@lemmy.dbzer0.com ) 2•2 months ago
text editor
GPU-accelerated renderer
What the fuck?
- The Cuuuuube ( @Cube6392@beehaw.org ) English3•2 months ago
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