News for hackers. Stuff that matters.
Re:Zed, a collaborative code editor, is now open source by packetlost on Wednesday January 24, 2024 @12:25PM (#39119950)
I hope this leads to Zed being ported to other platforms (Linux, please!)
Re:Zed, a collaborative code editor, is now open source by misternugget on Wednesday January 24, 2024 @12:30PM (#39120029)
Hey! Engineer at Zed here. Linux port is on our roadmap. Hopefully we'll get it done this year!
Re:Zed, a collaborative code editor, is now open source by cpuguy83 on Wednesday January 24, 2024 @02:21PM (#39121517)
Since you are here I'll hijack the thread :) What about remote support ala vscode-server over SSH.
Re:Zed, a collaborative code editor, is now open source by spearman on Wednesday January 24, 2024 @04:32PM (#39122886)
Re:Zed, a collaborative code editor, is now open source by c-c-c-c-c on Wednesday January 24, 2024 @02:56PM (#39121883)
Please not ala vscode-server over SSH.

Do it proper like emacs tramp so it will connect to any platforms/architectures.

Re:Zed, a collaborative code editor, is now open source by Shish2k on Wednesday January 24, 2024 @03:13PM (#39122064)
“Please don’t do it like a 4x4 truck, do it proper, like a bicycle” — there is some overlap between those things, but for people who are actually making full use of the former, the latter is not a useful suggestion
Re:Zed, a collaborative code editor, is now open source by klyrs on Wednesday January 24, 2024 @03:31PM (#39122274)
I'd suggest that the people who make "full use" of vsc-over-ssh are satisfied with vscode, so it would be unwise to target the full featureset.

More generally, targeting another project's complete featureset is often a great way to get mired down in the wrong details. Unless you can afford to do a proper cleanroom -- then, you'll be able to at least match the performance and useful abstractions used in the original.

Re:Zed, a collaborative code editor, is now open source by rand_flip_bit on Wednesday January 24, 2024 @04:30PM (#39122867)
> I'd suggest that the people who make "full use" of vsc-over-ssh are satisfied with vscode, so it would be unwise to target the full featureset.

Remote SSH + Dev Containers and their seamless integration (even stacking one on the other) are the only features that keep me using VS Code. I would love to see the full implementation of these in an editor as fast and light weight as Zed.

Re:Zed, a collaborative code editor, is now open source by angra_mainyu on Thursday January 25, 2024 @12:56PM (#39132378)
How exactly are these features present in your workflow? I honestly struggle to think of when I'd ever use this.

Fwiw, I do a lot of infrastructure-as-code, full stack, and systems programming.

I usually have a split screen (editor | terminal) or two terminals on the side, and exec into a container, or use devenv.sh.

If I _really_ need to modify files in the container as I dev and a "make" doesn't cut it, I usually just run podman with a -v mount. Similarly for remote machines w/ sshfs, though I try not to.

Re:Zed, a collaborative code editor, is now open source by MrJohz on Thursday January 25, 2024 @04:55PM (#39135925)
Devcontainers are amazing for getting a consistent environment set up on multiple computers on multiple operating systems. I was in this situation recently with a new colleague who was using a very locked-down Windows computer, and it was really convenient for the "you must install" list to be Docker and VSCode only. It's definitely not ideal - it adds overhead on Windows and Mac, there's occasional networking issues, and I don't have all the creature comforts of my usual shell - but it's very convenient for what it is.

Similarly, editing code in-place over SSH rather than rsyncing back and forwards is very useful for certain types of embedded development. I worked for a while on sensor systems where a lot of the logic was handled by a Python webserver that couldn't really run without access to the sensor data it was using. Developing entirely locally was therefore difficult, but developing on the machine was also painful because it didn't have the right tools. So we'd work locally, and then copy the Python files over every so often and restart the server. At the time, I don't think VSCode's remote stuff was working as well, but I believe now it's a lot better and could have handled that situation well - edit everything in-place, run it immediately, but still have the power of you local development machine available to you.

Re:Zed, a collaborative code editor, is now open source by scottlamb on Wednesday January 24, 2024 @08:07PM (#39124897)
> I'd suggest that the people who make "full use" of vsc-over-ssh are satisfied with vscode, so it would be unwise to target the full featureset.

Wha...? This is a killer feature. I'll put up with a lot of crap to use it. That doesn't mean I wouldn't switch to something nicer in other ways if it also offered this killer feature.

It's hard for me to understand why there are IDEs under active development not trying to offer this feature. It is so much better an experience to have the network split into the proper place: between the UI and the heavy computation. Having the UI too far away undoes whatever responsiveness work has been done and more. Having the heavy computation too near means it's hard to develop and test the far environment, take advantage of its compute, etc.

Re:Zed, a collaborative code editor, is now open source by cultofmetatron on Thursday January 25, 2024 @02:40AM (#39127197)
> the people who make "full use" of vsc-over-ssh are satisfied with vscode,

almost all my coding these days is over vsc-ssh. if zed supported sshing into a remote host and into a docker container as seamlessly as I can in vscode, Id switch immediately. The performance of the ui in zed is so much better. I'm a bit sad I can't switch with its current feature set.

Re:Zed, a collaborative code editor, is now open source by c-c-c-c-c on Thursday January 25, 2024 @03:51AM (#39127551)
The former is bad design, it has no gradual fallback and works in a terrifying way. It pulls binaries from MS servers and runs a headless vscode instance on the remote machine. You are dead in the water if you target a machine/architecture it doesnt support.

You want to target FreeBSD? Linux on POWER or RISC-V? An old (ARMV6-TDMI) Raspberry Pi? Sorry, no remote work for you.

They are not an apple and pears comparison...

Re:Zed, a collaborative code editor, is now open source by agubelu on Thursday January 25, 2024 @10:32AM (#39130572)
I'd very much prefer something that works seamlessly in 95% of the use cases and makes me do some work or look for an alternative for the remaining 5%, than something that makes me do work in 100% of the cases.
Re:Zed, a collaborative code editor, is now open source by tomjakubowski on Thursday January 25, 2024 @12:06PM (#39131839)
Bikes likewise have advantages that 4x4s lack. If you mean to imply everyone ought to be satisfied with the 4x4, and not ask for a bicycle: no. We can have both.
Re:Zed, a collaborative code editor, is now open source by oblio on Thursday January 25, 2024 @08:48AM (#39129509)
What's the architectural difference between the two?
Re:Zed, a collaborative code editor, is now open source by madeofpalk on Wednesday January 24, 2024 @03:26PM (#39122219)
I'm really keen for Windows support, but only if it means WSL. I hope their architecture allows for it.
Re:Zed, a collaborative code editor, is now open source by yoyohello13 on Wednesday January 24, 2024 @05:32PM (#39123495)
When they get linux support you could probably run it in WSL, since WSL supports GUI apps now.
Re:Zed, a collaborative code editor, is now open source by madeofpalk on Thursday January 25, 2024 @04:58AM (#39127889)
I don't think I would like that. I haven't been impressed with the experience of running GUI apps within WSL. Weird window controls/resizing, compositing, and font rendering issues would be a hard blocker from using this as probably the second most important app on my computer.
Re:Zed, a collaborative code editor, is now open source by awill on Wednesday January 24, 2024 @02:47PM (#39121788)
Excellent. A big reason I use Sublime is because it's cross platform (Mac at work, Linux at home).
Re:Zed, a collaborative code editor, is now open source by shortrounddev2 on Wednesday January 24, 2024 @12:42PM (#39120209)
What about Windows?
Re:Zed, a collaborative code editor, is now open source by misternugget on Wednesday January 24, 2024 @01:13PM (#39120677)
I think that is on the roadmap too, but possibly further down.
Re:Zed, a collaborative code editor, is now open source by archon810 on Wednesday January 24, 2024 @07:23PM (#39124562)
Is there some place I can subscribe to the Windows release notification?
Re:Zed, a collaborative code editor, is now open source by JellyBeanThief on Wednesday January 24, 2024 @08:49PM (#39125267)
Re:Zed, a collaborative code editor, is now open source by c0balt on Thursday January 25, 2024 @12:40AM (#39126543)
Maybe the tracking issue for Windows support: https://github.com/zed-industries/zed/issues/5394
Re:Zed, a collaborative code editor, is now open source by shortrounddev2 on Thursday January 25, 2024 @10:09AM (#39130309)
You know Windows is the most common development platform? If it were me I'd prioritize it
Re:Zed, a collaborative code editor, is now open source by olingern on Thursday January 25, 2024 @11:57AM (#39131728)
I think linux + osx combined is probably developer majority. I'm assuming most Windows development is .NET or Unity based. Over the past nine years, I've worked primarily with Node, Ruby, and a smidgen of Java and no employer has issued Windows machine. It's in sharp contrast with the start of my career where I was in VB6 and C# where I only worked with Windows environments. Could be confirmation bias, though.
Re:Zed, a collaborative code editor, is now open source by shortrounddev2 on Thursday January 25, 2024 @02:24PM (#39133872)
Windows is a great platform for developing any language or platform, not just .Net. Personally I think it blows macOS and its dated tools out of the water in any category

https://survey.stackoverflow.co/2023/#section-most-popular-t...

Stackoverflow found that Linux and macOS is the slight majority for professional use and the minority for personal use with developers (with the caveat that the total professional use of all categories is >100%)

Re:Zed, a collaborative code editor, is now open source by alemanek on Friday January 26, 2024 @11:24AM (#39144421)
Just curious what tools are you missing on MacOS or Linux that are found on Windows?

I have been on MacOS the last 8 years or so but before that was all Windows and Linux. I prefer MacOS now but curious what I am missing. My colleagues that are using Windows machines all use WSL with dev containers so really just using Linux under the hood.

My experience is that pretty much everything is cross platform these days. I don’t do .Net or game dev though. Just Go, Java and some NodeJS these days.

Re:Zed, a collaborative code editor, is now open source by Rapzid on Friday January 26, 2024 @01:11PM (#39145787)
> so really just using Linux under the hood

Yeah, but with Windows GUI along with fractional scaling, device, and etc support haha. I've developed on both bare Linux and for years in Linux VMs. Saying Windows+WSL is "really just linux under the hood" does this setup a massive disservice. It makes me smile every time I type WSL into the terminal lol.

Re:Zed, a collaborative code editor, is now open source by alemanek on Friday January 26, 2024 @01:39PM (#39146216)
Yeah Linux desktop environments are a bit of a mess but OP specifically called out MacOS as well. Once you add Rectangle it is a solid DE in my opinion. Also it is Unix/linux compatible so kind of the same beast with good GUI/hardware and *nix terminal.

Was just curious what Windows only tools I am missing out on.

Re:Zed, a collaborative code editor, is now open source by Rapzid on Friday January 26, 2024 @03:52PM (#39148146)
Fair. But I will say that OSX is superficially similar to Linux to many people.
Re:Zed, a collaborative code editor, is now open source by Rapzid on Friday January 26, 2024 @01:07PM (#39145734)
I agree. Long time Linux engineer who prefers Windows to OSX as a desktop OS. Currently use a Windows workstation with WSL and VSCode as a daily driver. I feel this currently gets me the best of both worlds(Windows/Linux).
Re:Zed, a collaborative code editor, is now open source by mrgoldenbrown on Friday January 26, 2024 @08:53AM (#39142579)
The Zed team disagrees. Here is what they say in the github discussion on the issue: (https://github.com/zed-industries/zed/issues/5394)

"We will let you know when windows support is under development. The Zed team isn't taking feedback on when we start on windows support, nor why we didn't start with windows.

The amount of people on each platform isn't relevant, as it starts with the base assumption that more people = better to the Zed team. Growth driven development unlikely to lead to a resilient, high quality product long term."

Re:Zed, a collaborative code editor, is now open source by Rapzid on Friday January 26, 2024 @01:22PM (#39145965)
Haha, well they will get lots of feedback they don't want to take.

A company like Jetbrains can do this to an extent due to existing products fueling long term R&D efforts before they bare fruit. Interested to see how this outlook holds up as the runway burns and investor pressure increases from that cool 12.5m they raised last year.

Re:Zed, a collaborative code editor, is now open source by 9935c101ab17a66 on Monday February 05, 2024 @02:49AM (#39258402)
From what I can find, the used OS of software developers is 61% windows, 46% Mac so this argument has no weight on the considerations the team should make Å— it’s essentially a toss up.

Even if it weren’t a toss up and significantly more devs used windows, deciding to target windows based solely on OS market share is one of the worst things a small dev team with finite resources could do. It’s just not a compelling argument at all.

Re:Zed, a collaborative code editor, is now open source by PoignardAzur on Saturday January 27, 2024 @12:27PM (#39157585)
Gotta respect that they know what they want.
Re:Zed, a collaborative code editor, is now open source by Shorel on Friday January 26, 2024 @04:26PM (#39148665)
Even when I am forced to use Windows, I develop on Ubuntu inside a Virtual Machine.

About 80% of the developers at my company do the same. Only a few are happy with just Windows.

So, I would prefer if they prioritize Linux and leave Windows as the last one.

Re:Zed, a collaborative code editor, is now open source by 9935c101ab17a66 on Monday February 05, 2024 @02:43AM (#39258370)
It is, but barely (windows is @ 61%, macOS is at 46% based on the numbers I found). And even if we ignore that, number of potential users is far from the only factor you’d consider when choosing the first platform to target for a new project. And then, ignoring that as well, just because an OS has more potential users in total, that doesn’t mean it has more potential users of your editor.

There’s lots of reasons to not choose windows as a first release platform, and it being ‘the most common development platform’ isn’t a compelling one, especially for a small team with finite resources.

Re:Zed, a collaborative code editor, is now open source by kvark on Wednesday January 24, 2024 @01:18PM (#39120724)
How are you planning to tackle the GPU API differences?
Re:Zed, a collaborative code editor, is now open source by 1propionyl on Wednesday January 24, 2024 @01:48PM (#39121132)
(Not OP)

These days that's a lot less of a concern than it used to be. It is a lot of up-front work to facade e.g. Metal, Vulkan (and even D3D12) but it's much much much easier than back in OpenGL vs D3D9/10 days.

Most of the general concepts are more or less the same across them all these days. The "shapes" of the APIs are very similar.

A texture is a texture is a texture. Same for a vertex/index/uniform buffer, vertex/fragment/compute shaders (notably not geometry, but you can just use compute), etc.

Re:Zed, a collaborative code editor, is now open source by 6gvONxR4sf7o on Wednesday January 24, 2024 @02:15PM (#39121446)
I'm not in the graphics world at all, but I read this lively discussion last week (post [0], discussion [1]) that made me think the situation was pretty messy. Is it maybe not as bad as that makes it appear?

[0] https://www.carette.xyz/posts/we_are_doomed/

[1] https://news.ycombinator.com/item?id=38994780

Re:Zed, a collaborative code editor, is now open source by raphlinus on Wednesday January 24, 2024 @02:24PM (#39121554)
I'd recommend wgpu. It should be a fairly easy migration from Metal, as Apple has been actively involved in the design, and there are similar concerns for developer experience (unlike, say, Vulkan).

Unfortunately, graphics is in many ways the easy part. Really excellent integration with system menus, preferences, keyboard, input method editing, all have more variation across platforms and a still-evolving story of solid Rust abstractions. Lately, we've decided to try joining forces with the winit project to see if we can get those problems solved well.

Re:Zed, a collaborative code editor, is now open source by LoganDark on Wednesday January 24, 2024 @01:43PM (#39121065)
Is there any way to make it compatible with macOS 10.14? Your minimum macOS requirement is literally just one release away from what I have!
Re:Zed, a collaborative code editor, is now open source by hav on Wednesday January 24, 2024 @01:47PM (#39121120)
I'm running it just fine on 10.14.
Re:Zed, a collaborative code editor, is now open source by LoganDark on Wednesday January 24, 2024 @03:39PM (#39122358)
During the closed beta, the requirements said the minimum was 10.15, and I tried to download it and run it anyway and it wouldn't run.

Did you have to build it from source?

Re:Zed, a collaborative code editor, is now open source by hav on Thursday January 25, 2024 @07:54AM (#39129060)
I have to apologise and backtrack here. I was under the impression that "Sonoma" was in fact 10.14 but it's just 14. 10.14 was "Mojave".
Re:Zed, a collaborative code editor, is now open source by gtirloni on Wednesday January 24, 2024 @06:50PM (#39124263)
What kind of help do you need to make this happen?
Re:Zed, a collaborative code editor, is now open source by mdaniel on Wednesday January 24, 2024 @07:43PM (#39124732)
I was curious myself what the hurdle is and so I checked out the latest tag and followed along with https://github.com/zed-industries/zed/blob/v0.119.18/.github... and it went ok except for building https://github.com/zed-industries/zed/tree/v0.119.18/crates/... which puked because https://github.com/zed-industries/zed/blob/v0.119.18/crates/... is the only one

so, my strong suspicion is that porting gpui is the long pole, since it is apparently just going to do its own gui toolkit

Re:Zed, a collaborative code editor, is now open source by rmrf100 on Wednesday January 24, 2024 @10:12PM (#39125837)
Great! waiting for it!
Re:Zed, a collaborative code editor, is now open source by bryango on Wednesday January 24, 2024 @10:23PM (#39125882)
Hey! Thank you for this cool editor! However, has it been written with cross-platform support in mind? Otherwise, porting from mac to linux could be rather painful and time-consuming... Will there be an ETA for us linux users? I saw it on the roadmap [0] but without an ETA.

[0] https://zed.dev/roadmap

Re:Zed, a collaborative code editor, is now open source by jhasse on Friday January 26, 2024 @08:59AM (#39142621)
> However, has it been written with cross-platform support in mind?

Nope, it's using Apple's proprietary Metal API.

Re:Zed, a collaborative code editor, is now open source by WillAdams on Wednesday January 24, 2024 @11:15PM (#39126130)
Will you be using GNUstep for the port?
Re:Zed, a collaborative code editor, is now open source by Klonoar on Thursday January 25, 2024 @01:52AM (#39126943)
Nobody wants to use GNUStep in 2024.

Their UI framework is also rendering via the GPU, so it's more likely they'd wrap it in a GTK/Qt/whatever window and then just render accordingly. You don't need GNUStep for it since there's little "mac"-isms you need to cover.

Re:Zed, a collaborative code editor, is now open source by starkparker on Wednesday January 24, 2024 @03:56PM (#39122532)
As much as I hope for that, I also hope this leads to Zed compatibility with other collaborative editing/CRDT clients, like SubEthaEdit and Etherpad.
Re:Zed, a collaborative code editor, is now open source by ufo on Wednesday January 24, 2024 @01:30PM (#39120888)
Speaking of Linux, are there any other editors we can use today? I tried to look for one recently but couldn't find anything. (edit: I mean collaborative editors)
Re:Zed, a collaborative code editor, is now open source by starkparker on Wednesday January 24, 2024 @04:03PM (#39122613)
Gobby is mostly dead but still works. Win/Linux; macOS builds have gotten harder now that it's been about 3 years since the last release: https://gobby.github.io/

EDIT: It's apparently on Macports as of quite recently, though the port health for recent macOS releases looks bad.

Re:Zed, a collaborative code editor, is now open source by SCdF on Wednesday January 24, 2024 @02:06PM (#39121362)
Collaborative editors I presume you mean? Because 99% of popular editors have linux builds.

Anyway, the VSCode plugin ecosystem is probably your best bet there: https://code.visualstudio.com/learn/collaboration/live-share

Re:Zed, a collaborative code editor, is now open source by ufo on Wednesday January 24, 2024 @03:08PM (#39122001)
Precisely, I'm looking for collaborative editors. Thanks for the suggestion, I hadn't seen this one.

Unfortunately, it seems that this plugin only shares the editor window and does not keep a local copy of the files. I was wishing for something that would let both sides run & compile the code during the editing session, without having to stop for git push. https://github.com/MicrosoftDocs/live-share/issues/3524

Re:Zed, a collaborative code editor, is now open source by jasonjmcghee on Friday January 26, 2024 @12:20PM (#39145087)
Jetbrains allows both users to execute / debug but it’s all on the host machine.

What you’re talking about sounds like you should do an rsync script that watches file changes, but seems like a good way to constantly be breaking the other persons workflow.

git solves these problems- feels like the right tool. But maybe I’m missing something about your workflow

Re:Zed, a collaborative code editor, is now open source by CodeCompost on Wednesday January 24, 2024 @01:36PM (#39120978)
You're joking, right?
Re:Zed, a collaborative code editor, is now open source by ufo on Wednesday January 24, 2024 @02:47PM (#39121794)
Looking for collaborative editors in particular. Two people editing at once, on different computers. Each person has their own copy of the file, on disk.
Re:Zed, a collaborative code editor, is now open source by stevage on Wednesday January 24, 2024 @03:19PM (#39122136)
I'm curious about your use case?
Re:Zed, a collaborative code editor, is now open source by ufo on Wednesday January 24, 2024 @04:25PM (#39122832)
Authoring Latex documents. I want a non-browser alternative to Overleaf. When the paper is close to done, me and my colleague are on voice call, editing the same file. But we both want to be able to compile it to PDF, to be able to see the figures.
Re:Zed, a collaborative code editor, is now open source by fredoliveira on Wednesday January 24, 2024 @03:52PM (#39122482)
This is a pretty common use case. Remote pair programming, interviews, etc, all rely on this same basic idea.
Re:Zed, a collaborative code editor, is now open source by OccamsMirror on Wednesday January 24, 2024 @10:26PM (#39125901)
Both VSCode and Intellij can perform this function.
Re:Zed, a collaborative code editor, is now open source by iruoy on Wednesday January 24, 2024 @01:43PM (#39121075)
All JetBrains IDEs work on Linux and all electron apps of course. Lapce seems like Zed and is already available on Linux. So is Sublime Text.

There's a whole list here: https://wiki.archlinux.org/title/List_of_applications/Docume...

Re:Zed, a collaborative code editor, is now open source by politelemon on Wednesday January 24, 2024 @01:43PM (#39121074)
nano, pico, vim, VS Code, Brackets, Notepadqq, Gedit, Kate, Leafpad, Geany
Re:Zed, a collaborative code editor, is now open source by cstrahan on Wednesday January 24, 2024 @02:02PM (#39121314)
Helix is another interesting option:

https://helix-editor.com/

Re:Zed, a collaborative code editor, is now open source by level87 on Thursday January 25, 2024 @03:49AM (#39127544)
I love helix, everything just works
Re:Zed, a collaborative code editor, is now open source by ufo on Wednesday January 24, 2024 @03:15PM (#39122087)
I was particularly looking for collaborative editing; two people editing the same file at once and each has a local copy of the file so they can run the code. Perhaps one could use a normal editor for this if there were some underlying command-line tool and/or plugin to do the actual file synchronization. Do you know of any?
Re:Zed, a collaborative code editor, is now open source by ants_everywhere on Wednesday January 24, 2024 @07:48PM (#39124763)
GNU Screen does this https://www.gnu.org/software/screen/manual/html_node/Multius...

See also the list of ways of doing collaborative editing in emacs: https://www.emacswiki.org/emacs/CollaborativeEditing

Re:Zed, a collaborative code editor, is now open source by greyw on Wednesday January 24, 2024 @02:32PM (#39121647)
emacs.
Re:Zed, a collaborative code editor, is now open source by msephton on Wednesday January 24, 2024 @08:38PM (#39125154)
It's Mac but SubEthaEdit is collaborative.