News: 1721041928

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Fresh programmer's editor on Linux lies Zed ahead

(2024/07/15)


Zed – sorry, US readers, that's its name, not "Zee" – is a new coding tool. Until very recently it was Mac-only, but not any more.

Zed Industries has just [1]released version 0.143.6 of its new source code editor for developers, with a fresh feature that its users have been requesting pretty much since it appeared: it now [2]runs on Linux as well as macOS.

Zed is one of the newer code editors around: it was first released in 2023, and went open source at the start of this year. The Register sister site Dev Class [3]checked it out back then and that story is worth a read to find out about the program.

[4]

The program is no first-timer's effort, though: founder Nathan Sobo was also one of the creators of the [5]Atom editor , which was one of Github's flagship products. Although it's a local desktop app, Atom was built using web technologies, notably Javascript, and in order to create a local standalone editor, the team built the Electron framework, originally [6]called Atom Shell , and the same team also built the [7]Tree-sitter code-parsing framework. Electron is now used by hundreds of widely-used apps, including the [8]world's most popular editor, VS Code .

[9]

[10]

But in 2018, [11]Microsoft bought Github . At the time, new CEO Nat Friedman pledged in a [12]Reddit Ask Me Anthing :

Atom is a fantastic editor with a healthy community, adoring fans, excellent design, and a promising foray into real-time collaboration. At Microsoft, we already use every editor from Atom to VS Code to Sublime to Vim, and we want developers to use any editor they prefer with GitHub.

So we will continue to develop and support both Atom and VS Code going forward.

Even so, four years later, [13]Github stopped developing Atom . The same day, Sobo [14]announced Zed on Twitter/X .

[15]

The Zed editor is not exactly minimal but it's fairly Spartan… and quite snappy with it. - Click to enlarge

Zed is a high-tech and high-performance program for a text editor. It's implemented in Rust, and it calls directly to your computer's GPU in order to render text as fast as possible. On macOS it uses Apple's Metal GPU API, which [16]debuted in iOS 8 and came to [17]OS X 10.11 "El Capitan" the following year. This is one of the things that made the Linux port tricky: there's no standardized equivalent to Metal on Linux. Back in May, the company [18]blogged about the difficulties of a Linux version, crediting contributor Dzmitry "Kvark" Malyashu:

Less than two weeks after Zed going open source, flying through the cloud of pull requests and issues that's been stirred up by all the excitement comes @kvark (Dzmitry Malyshau) with a by [19]now legendary PR that makes Zed render on Linux. In less than four thousand lines of code. Sure, it didn't render all of Zed yet, but: wow.

As the project's [20]first blog post described , internally Zed uses data structures called CRDTs which simplify collaborative editing. CRDT is short for [21]Conflict-free Replicated Data Type , and while they aren't brand new – the Reg [22]first mentioned them in 2018 – they are a pivotal part of the [23]Local First web development initiative, a subject to which the Reg FOSS desk plans to return in the future.

[24]

Zed on Linux looks very much the same as on macOS, but with a hamburger menu. - Click to enlarge

Zed is still in its early days, but Zed Industries has a [25]public roadmap for the directions it's planning to go, as well as a [26]FAQ page , which tackles thorny questions such as how the company plans to make money when the editor is free (in brief: subscription-based collaboration features). For now, the editor only supports two platforms: macOS and Linux. There's an open [27]Github issue entitled Platform Support with as-yet-incomplete entries for "Windows" and "Web support." Although it does support [28]extensions , there aren't many yet.

There are some [29]extremely positive reviews out there. For what it's worth, this article was written entirely in the Zed editor, and we can attest that it certainly is fast, and compared to our usual [30]Markdown editor Panwriter it is positively svelte. At launch it used 73MB of RAM, which isn't much for 2024.

[31]The AI everything show continues at AWS: Generate SQL from text, vector search, and more

[32]Lorenz ransomware crew bungles blackmail blueprint by leaking two years of contacts

[33]Automating Excel tasks to come to Windows and Mac

[34]Microsoft arms Azure VMs with Ampere Altra chips

If you use all the features of a modern full-fat editor such as VS Code – or even an old-fashioned full-fat editor such as Emacs – then this may not be the weapon you are looking for. Saying that, though, it's already highly functional, and this jaded old vulture would take it over either of those – or Vim – in a heartbeat.

Downloads are on the project's [35]Github page , for both macOS and Linux in both x86-64 and Arm64 formats, as well as from Zed Industries's [36]downloads page . We tried it on macOS 12 and Ubuntu 24.04 and it worked flawlessly on both. ®

Get our [37]Tech Resources



[1] https://github.com/zed-industries/zed/releases/tag/v0.143.6

[2] https://zed.dev/blog/zed-on-linux

[3] https://devclass.com/2024/01/25/rust-based-zed-editor-now-open-source-with-built-in-support-for-openai-and-github-copilot/

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZpVHmsofSX3nUL8j0EPhlAAAAQ8&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[5] https://github.blog/2022-06-08-sunsetting-atom/

[6] https://www.electronjs.org/blog/electron

[7] https://tree-sitter.github.io/tree-sitter/

[8] https://www.theregister.com/2020/10/13/visual_studio_code_1_50/

[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZpVHmsofSX3nUL8j0EPhlAAAAQ8&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[10] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZpVHmsofSX3nUL8j0EPhlAAAAQ8&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[11] https://www.theregister.com/2018/06/04/microsoft_buys_github/

[12] https://www.reddit.com/r/AMA/comments/8pc8mf/comment/e0a2b2e/

[13] https://www.theregister.com/2022/06/08/github_atom_dropped/

[14] https://x.com/nathansobo/status/1534565356131393537

[15] https://regmedia.co.uk/2024/07/12/zed-on-mac.jpg

[16] https://www.theregister.com/2021/05/18/apple_phil_schiller_epic_trial/

[17] https://www.theregister.com/2015/06/08/wwdc_heres_the_key_points_of_apples_rambling_twoandahalfhour_keynote/

[18] https://zed.dev/blog/zed-decoded-linux-when

[19] https://github.com/zed-industries/zed/pull/7343

[20] https://zed.dev/blog/crdts

[21] https://crdt.tech/

[22] https://www.theregister.com/2018/05/08/storage_roundup_week_ending_8_may/

[23] https://localfirstweb.dev/

[24] https://regmedia.co.uk/2024/07/12/zed-on-lin.jpg

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

[26] https://zed.dev/faq

[27] https://github.com/zed-industries/zed/issues/5391

[28] https://github.com/zed-industries/extensions

[29] https://dishpitdev.com/p/zed-a-review

[30] https://www.theregister.com/2022/08/24/panwriter/

[31] https://www.theregister.com/2023/11/30/ai_saturation_continues_at_aws/

[32] https://www.theregister.com/2023/10/05/lorenz_ransomware_group_leaks_details/

[33] https://www.theregister.com/2022/09/13/microsoft_excel_automate_tasks_windows_mac/

[34] https://www.theregister.com/2022/04/05/microsoft_ampere_azure_vm/

[35] https://github.com/zed-industries/zed

[36] https://zed.dev/download

[37] https://whitepapers.theregister.com/



Where are we?

John Brown (no body)

Where are we in terms of programming efficiency when a text editor has to bang the GPU directly to speed up text rendering and tout that as a feature?

Re: Where are we?

b0llchit

We are in that age where hardware has a hard time keeping up with the progressively slower software.

See for example [1]computer latency to get the idea.

[1] https://danluu.com/input-lag/

Re: Where are we?

Gene Cash

I have never had a problem with an editor rendering text slowly, even WordPerfect on a multiuser Z-80 system.

I don't see this as a "feature" and it's just developer flex. As they say, it's already caused problems porting it.

There's nothing wrong with flexing

JoeCool

It's not creating problems, it's creating opportunities!

Re: Where are we?

Dan 55

It doesn't have to, but programming efficiency in Rust is measured by reimplementing things in Rust.

Who's Zed?

Anonymous Coward

"Zed's dead, baby. Zed's dead."

(Sorry, someone had to say it…!)

Re: Who's Zed?

b0llchit

Blame the Men In Black.

Re: Who's Zed?

m4r35n357

Just wondering, was the Peter Greenaway film "A Zed and Two Noughts" ever a success on the other side?

Re: Who's Zed?

spacecadet66

First I've heard of it, anyway. I went and looked it up on Wikipedia and as I read I could actually feel my day getting a little weirder.

Re: Who's Zed?

m4r35n357

Followed your example (there was no Wikipedia when I saw the film!). Probably the weirdest thing I noticed was an acting credit for Jim Davidson!

Translation

m4r35n357

The shit stack from hell has grown another head.

“Zed – sorry, US readers,”

Rich 2

You never apologise to the non-US readers for americanising the Reg.

Re: “Zed – sorry, US readers,”

Liam Proven

Not my call, I'm afraid.

In the eyes of some ...

Adair

the USA is 'the World'—everything else is just collateral damage.

Competing claim

Chris Gray 1

You see my tag on this article. I am the Chris Gray who created the Draco programming language and utilities, first for the 8080 CPU on CP/M and later for the 68000 CPU on AmigaOS. I have done a few other programming languages and compilers. My current project (active for almost 25 years) is called Zed. It is somewhat Draco-like in syntax, but it is designed to be memory safe and yet efficient. Based on the timeline you see that this predates Rust by quite a bit.

The current version of the compiler only runs on Linux so far, but I expect running it under Windows WSL should be fine - I've run Zed-created X86-64 binaries there.

Currently, main execution is under the system's internal bytecode engine, but over the last several months, I've got X86-64 native code generation going, creating Linux Elf object files. I still use "gcc" as the "linker". The "zedc" binary (99.9% Zed code) needs to have the bytecode engine integrated into it, since much of the language and libraries use compile-time execution to do their work.

I hereby lay public claim to the name "Zed" for a programming language, compiler, tools, etc.

When will it be released? Who knows - I'm currently fiddling with my file disassembler - the idea is to provide tools needed for others to readily create code generators for other architectures - ARM64 and RISC-V being the initial thoughts. Any volunteers?

Note: since Zed is a safe programming language, my desire is that *all* of the system be written in itself, thus avoiding lots of questions about a safe language written in an unsafe one.

Re: Competing claim

Liam Proven

[Author here]

> I hereby lay public claim to the name "Zed" for a programming language, compiler, tools, etc.

Well...

1. you're a bit late as it was announced a couple years ago.

2. the Reg comments is not the place to do it.

3. Stretching from a compiler to a text editor frankly seems like a bit of a reach. Nobody confuses Apple's eMacs...

https://everymac.com/systems/apple/emac/index-emac.html

... with Emacs the editor.

https://www.gnu.org/software/emacs/

In this instance not only are there other products called Zed...

https://rockitrocker.com/product/zed/

... there's even a company called Zed Industries:

https://zedindustries.com/

Sign into Github CoPilot

Anonymous Coward

Are those steps in the screenshot part of the set-up or can you skip the Copilot part?

Re: Sign into Github CoPilot

Liam Proven

[Author here]

> can you skip the Copilot part

Yes, you can, and I did. I tried and failed to totally disable it, though.

I am very happy that I do not need Git any more, but I would have much preferred to see Git integration than this "AI" nonsense, but this is not my project and TBH I am not a target user.

Re: Sign into Github CoPilot

Anonymous Coward

Thanks AC

Other editors

Primus Secundus Tertius

Notepad++ works fine for me. Especially when so-called Plain Text may be any of ASCII, UTF-8, UTF-16LE, UTF-16BE, EBCDIC, or other.

Experience is what causes a person to make new mistakes instead of old ones.