- cross-posted to:
- linux@programming.dev
- foss
- cross-posted to:
- linux@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•9 months agoInstaller is piping curl into shell
I thought we were past this as a society 😔
krolden ( @krolden@lemmy.ml ) 64•9 months agoNot until after you convince these projects to stop using discord
timestatic ( @timestatic@feddit.org ) 1•8 months agoAs 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•9 months agoA 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 ) 4•9 months agoFlatpak is worse for debugging, development, and reproducibility.
Its good for user friendly sandboxing, portability, and convenience.
WFH ( @wfh@lemm.ee ) English11•9 months agoIs 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•9 months agoIt 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•9 months agoI’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.
ReversalHatchery ( @ReversalHatchery@beehaw.org ) English8•9 months agoCan’t we basically call this a remote access trojan?
skilltheamps ( @skilltheamps@feddit.org ) 11•9 months agoSecurity 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•9 months agoThis isn’t true because until the PR fixing it goes through it downloads other binaries without user consent.
skilltheamps ( @skilltheamps@feddit.org ) 7•9 months agoI 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
Telorand ( @Telorand@reddthat.com ) 5•9 months agoThat 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•9 months agoGPU-accelerated renderer.
There’s a reason why GUIs don’t render fonts in the GPU.
Mia ( @shy_mia@lemmy.blahaj.zone ) 2•9 months agoBecause it’s a pain, there’s not much more to it really…
eveninghere ( @eveninghere@beehaw.org ) 1•9 months agoAFAIK 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•9 months agoI 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•9 months agoAt 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•9 months agoI 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•9 months agoAs I indicated, please check (articles and the documentations of) font renderers at this point.
boredsquirrel ( @boredsquirrel@slrpnk.net ) 92•9 months agohttps://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•9 months agoSo 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•9 months agoThere ought to be a rule that posts about software releases have to say what it is.
cerement ( @cerement@slrpnk.net ) 43•9 months agoZed (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•9 months agoalso seems to have some security issues …
krolden ( @krolden@lemmy.ml ) 6•9 months agoLmao fuck this project
blackboxwarrior ( @blackboxwarrior@lemmy.ml ) 19•9 months agoI 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•9 months agoWhat in hell is remote development? You mean
openssh
andvim
, right? The Cuuuuube ( @Cube6392@beehaw.org ) English1•9 months agoPair 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•9 months agowould wstunnel help? just run that between both machines and pick whatever works best, even if that is ssh
flux ( @flux@lemmy.ml ) English8•9 months agoApparently 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•9 months agoTramp is awesome :)
Warsk ( @Warsk@lemmy.ml ) 4•9 months agoIs VSCode not open source?
ILikeBoobies ( @ILikeBoobies@lemmy.ca ) 10•9 months agoVscode is like Chrome
And
VS Codium is like Chromium
The Cuuuuube ( @Cube6392@beehaw.org ) English10•9 months agoIt 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•9 months agoIntelliJ 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•9 months agoI 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•9 months agoVScode is proprietary and slow. If you are using something like that you should use VScodium
Mihies ( @Mihies@programming.dev ) 6•9 months agoBut aren’t both the same speedwise?
Possibly linux ( @possiblylinux127@lemmy.zip ) English2•9 months agoYes but one is libre without telemetry
Telorand ( @Telorand@reddthat.com ) 5•9 months agoI 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•9 months agobuilt 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•9 months agoYou seem upset. Blink twice if someone is forcing you to use it.
Matt ( @DieserTypMatthias@lemmy.ml ) 4•9 months agoJust go outside and touch some grass.
cy_narrator ( @cy_narrator@discuss.tchncs.de ) 3•9 months agoIn an era where every single good code editors are built on Electron, its good to know something isnt
ParetoOptimalDev ( @ParetoOptimalDev@lemmy.today ) 2•9 months agoI 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•9 months agoInteresting project, how ever it will be hard to compete with existing editors and its plugin eco-systems.
AVincentInSpace ( @AVincentInSpace@pawb.social ) English11•9 months agoI 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•9 months agoYeah, I don’t see why I should care about that. Gimme some crazy graphical effects, particles and shaders!
peppy ( @peppy@lemmy.ml ) 9•9 months agoHow’s Lapce?
gortbrown ( @gortbrown@lemmy.sdf.org ) 7•9 months agoI 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•9 months agoI never understood the need
Rin ( @Rin@lemm.ee ) 13•9 months agoVscodium but not running in a browser.
toastal ( @toastal@lemmy.ml ) 4•9 months agoIf it can’t run in a terminal, what is the point?
Possibly linux ( @possiblylinux127@lemmy.zip ) English2•9 months agoVScodium is running in the browser. It is electron based.
Rin ( @Rin@lemm.ee ) 4•9 months agoZed is native
BB_C ( @BB_C@programming.dev ) 4•9 months agoIt’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?
Matt ( @DieserTypMatthias@lemmy.ml ) 7•9 months agoThe Rust hype at least makes sense. The other two are just utter bullshit.
BB_C ( @BB_C@programming.dev ) 1•9 months agoThe Rust hype at least makes sense.
In technical context, yes. I’m a Rustacean myself.
In business/marketing context, … crispy_kilt ( @crispy_kilt@feddit.de ) 1•9 months agoIt 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.
ElectricMachman ( @LunarLoony@lemmy.sdf.org ) English1•9 months agoRustacean
Is that why the mascot’s a crab??
Nora ( @crazyminner@lemmy.ml ) 4•9 months agoI 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•9 months agoUse sudoedit
cy_narrator ( @cy_narrator@discuss.tchncs.de ) 1•9 months agoMaby launch editor with sudo?
Name ( @adamnejm@programming.dev ) 5•9 months agoFound 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•9 months agoOn Windows you can just right click and run as administrator bro
RacoonVegetable ( @RacoonVegetable@reddthat.com ) 4•9 months agoZed is now officially the best editor ever
EarthShipTechIntern ( @EarthShipTechIntern@lemm.ee ) 5•9 months agoWhy?
RacoonVegetable ( @RacoonVegetable@reddthat.com ) 5•9 months agoBecause I like it
TeryVeneno ( @TeryVeneno@lemmy.ml ) 3•9 months agoWhat a lovely answer, made my day fr
RacoonVegetable ( @RacoonVegetable@reddthat.com ) 3•9 months ago EarthShipTechIntern ( @EarthShipTechIntern@lemm.ee ) 2•9 months agoBecause 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•9 months agotext editor
GPU-accelerated renderer
What the fuck?
The Cuuuuube ( @Cube6392@beehaw.org ) English3•9 months agoPretty 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