- 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 agoInstaller is piping curl into shell
I thought we were past this as a society 😔
krolden ( @krolden@lemmy.ml ) 63•2 months agoNot until after you convince these projects to stop using discord
timestatic ( @timestatic@feddit.org ) 1•1 month 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•2 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 ) 3•2 months agoFlatpak is worse for debugging, development, and reproducibility.
Its good for user friendly sandboxing, portability, and convenience.
WFH ( @wfh@lemm.ee ) English11•2 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•2 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•2 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.
GravitySpoiled ( @GravitySpoiled@lemmy.ml ) English3•2 months agoFlatpaks are reproducible https://ranfdev.com/blog/flatpak-builds-are-not-reproducible/
ParetoOptimalDev ( @ParetoOptimalDev@lemmy.today ) 3•2 months agoYou see the conclusion of that article is that flatpaks are not repeoducible after presenting solutions to make it reproducible right?
carrabelloy ( @carrabelloy@darknight-coffee-cannabis.club ) 1•2 months ago@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 agoCan’t we basically call this a remote access trojan?
skilltheamps ( @skilltheamps@feddit.org ) 11•2 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•2 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•2 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
GravitySpoiled ( @GravitySpoiled@lemmy.ml ) English3•2 months agoSo did fedora and nix
Telorand ( @Telorand@reddthat.com ) 5•2 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•2 months agoGPU-accelerated renderer.
There’s a reason why GUIs don’t render fonts in the GPU.
Mia ( @shy_mia@lemmy.blahaj.zone ) 2•2 months agoBecause it’s a pain, there’s not much more to it really…
eveninghere ( @eveninghere@beehaw.org ) 1•2 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•2 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•2 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•2 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•2 months agoAs I indicated, please check (articles and the documentations of) font renderers at this point.
boredsquirrel ( @boredsquirrel@slrpnk.net ) 92•2 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•2 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•2 months agoThere ought to be a rule that posts about software releases have to say what it is.
cerement ( @cerement@slrpnk.net ) 43•2 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•2 months agoalso seems to have some security issues …
krolden ( @krolden@lemmy.ml ) 6•2 months agoLmao fuck this project
blackboxwarrior ( @blackboxwarrior@lemmy.ml ) 19•2 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•2 months agoWhat in hell is remote development? You mean
openssh
andvim
, right? The Cuuuuube ( @Cube6392@beehaw.org ) English1•2 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•2 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•2 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•2 months agoTramp is awesome :)
Warsk ( @Warsk@lemmy.ml ) 4•2 months agoIs VSCode not open source?
ILikeBoobies ( @ILikeBoobies@lemmy.ca ) 10•2 months agoVscode is like Chrome
And
VS Codium is like Chromium
The Cuuuuube ( @Cube6392@beehaw.org ) English10•2 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•2 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•2 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•2 months agoVScode is proprietary and slow. If you are using something like that you should use VScodium
Mihies ( @Mihies@programming.dev ) 6•2 months agoBut aren’t both the same speedwise?
Possibly linux ( @possiblylinux127@lemmy.zip ) English2•2 months agoYes but one is libre without telemetry
Telorand ( @Telorand@reddthat.com ) 5•2 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•2 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•2 months agoYou seem upset. Blink twice if someone is forcing you to use it.
Matúš Maštena ( @DieserTypMatthias@lemmy.ml ) 4•2 months agoJust go outside and touch some grass.
cy_narrator ( @cy_narrator@discuss.tchncs.de ) 3•2 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•2 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•2 months agoInteresting project, how ever it will be hard to compete with existing editors and its plugin eco-systems.
GravitySpoiled ( @GravitySpoiled@lemmy.ml ) English7•2 months agoI 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 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•2 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•2 months agoHow’s Lapce?
gortbrown ( @gortbrown@lemmy.sdf.org ) 7•2 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•2 months agoI never understood the need
Rin ( @Rin@lemm.ee ) 13•2 months agoVscodium but not running in a browser.
toastal ( @toastal@lemmy.ml ) 4•2 months agoIf it can’t run in a terminal, what is the point?
Possibly linux ( @possiblylinux127@lemmy.zip ) English2•2 months agoVScodium is running in the browser. It is electron based.
Rin ( @Rin@lemm.ee ) 4•2 months agoZed is native
BB_C ( @BB_C@programming.dev ) 4•2 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?
Matúš Maštena ( @DieserTypMatthias@lemmy.ml ) 7•2 months agoThe Rust hype at least makes sense. The other two are just utter bullshit.
BB_C ( @BB_C@programming.dev ) 1•2 months agoThe 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 agoRustacean
Is that why the mascot’s a crab??
crispy_kilt ( @crispy_kilt@feddit.de ) 1•2 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.
Nora ( @crazyminner@lemmy.ml ) 4•2 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•2 months agoUse sudoedit
cy_narrator ( @cy_narrator@discuss.tchncs.de ) 1•2 months agoMaby launch editor with sudo?
Name ( @adamnejm@programming.dev ) 5•2 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•2 months agoOn Windows you can just right click and run as administrator bro
RacoonVegetable ( @RacoonVegetable@reddthat.com ) 4•2 months agoZed is now officially the best editor ever
EarthShipTechIntern ( @EarthShipTechIntern@lemm.ee ) 5•2 months agoWhy?
RacoonVegetable ( @RacoonVegetable@reddthat.com ) 5•2 months agoBecause I like it
TeryVeneno ( @TeryVeneno@lemmy.ml ) 3•2 months agoWhat a lovely answer, made my day fr
RacoonVegetable ( @RacoonVegetable@reddthat.com ) 3•2 months ago EarthShipTechIntern ( @EarthShipTechIntern@lemm.ee ) 2•2 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•2 months agotext editor
GPU-accelerated renderer
What the fuck?
The Cuuuuube ( @Cube6392@beehaw.org ) English3•2 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