logoalt Hacker News

ZeroCool2utoday at 2:15 PM7 repliesview on HN

An interesting side effect of moving to wgpu is that in theory with some additional work, this could allow you to run Zed in a web browser similarly to how some folks run VSCode as a remote interface to the backend running on a server.


Replies

nu11ptrtoday at 2:23 PM

From the PR, it sounds like the switch to WGPU is only for linux. The team was reluctant to do the same for macOS/Windows since they felt their native renderer on those platforms was better and less memory intensive.

show 2 replies
rafaelmntoday at 2:43 PM

Rendering in the browser has nothing to do with being able to do remote editing like you can in VSCode - you would just be able to edit files accessible to the browser.

Just like you can hook up local VS code native up to a random server via SSH, browser rendering is just a convenience for client distribution.

You would need a full client/server editor architecture that VS code has.

show 2 replies
nindalftoday at 2:40 PM

Quoting maddythewisp from that PR:

> There is significant work beyond the renderer that would need to happen to run Zed in a browser - notably background tasks and filesystem/input APIs would need web/wasm-compatible implementations.

arghwhattoday at 2:32 PM

Well, not really. It means you have a renderer that is closer to being portable to web, not an editor that will run in web "with some additional work". The renderer was already modular before this PR.

ethmarkstoday at 6:24 PM

A web port is apparently already on their roadmap: https://zed.dev/roadmap#:~:text=Zed%20on%20the%20Web

show 1 reply
usefulcattoday at 3:13 PM

If you're talking about remote editing (editing files which reside on a remote server), Zed already supports that?

show 1 reply
readitalreadytoday at 2:20 PM

Can this be done on a cheap AWS EC2 instance?

show 1 reply