Edit is now open source

86 ingve 31 5/19/2025, 4:27:42 PM devblogs.microsoft.com ↗

Comments (31)

computatrum · 1h ago
It not only written in Rust, but they avoid basically any dependencies to third-party crates (beside the obligatory windows-sys/libc), optimizing probably for binary size. To achieve this, they seem to re-implement considerable parts of the rust ecosystem (own TUI library implementation, own unicode handling, own arena implementation, ...).
01HNNWZ0MV43FF · 20m ago
I'd say the windows crate is even technically first-party since the OS vendor publishes it
arghwhat · 1h ago
Yay for finally having a default text editor that works over ssh. Managing windows servers over ssh is a bit of a pain without.

They could just have packaged nano, but oh well.

red_admiral · 17m ago
I was about to say, I use nano regularly, both locally and over ssh (to machines which have it installed, which is pretty much all of them). This looks nice and I love old-style console UIs, I fondly remember EDIT.COM and NC.EXE, and still use `mc` regularly with one pane pointing at a sshfs.

Ages ago I had to maintain a .BAT file, editing in EDIT.COM, that threw stuff at EDLIN.COM (roughly MS version of `ed`). Those where the ... not-so-good old days.

These days, with windows versions of `nano` and `busybox` you have some power tools without a full linux install.

yjftsjthsd-h · 19m ago
Ah, that makes sense then; I was really confused at first because I couldn't figure out why Windows would want a built-in text-mode editor. I suppose if folks are seriously using SSH to access Windows machines ... then I have other questions about why not RDP, but if that's a real thing people are doing then adding a built-in editor for them makes sense.
90s_dev · 43m ago
bpshaver · 31m ago
lysace · 56m ago
Calling it now: 2025 will be the year of Windows on the server. /s
dijit · 8m ago
Aside from Windows being... "windows" (IE; graphical) and the whole "we will do our own paradigm for nearly everything including file paths (UUNC included) and encoding... Windows is actually pretty stellar if you're writing high performance software.

You can go really far with IOCP and it's so nice to write compared to the contemporary kqueue (BSD) or epoll. I will admit to not trying IO_Uring myself though.

Also the Windows system probes predate any kind of bpf and are easier to use than dtrace.

This is the maximum amount of love I will ever send in Windows' direction though. Everything else is ball-busting.

90s_dev · 1h ago
Interesting how we always go in circles.

edit.cmd was one of the first programs I ever used.

Now it's back rewritten as a Windows 10+ program in Rust?

Yet it looks and works just the same as 30 years ago!

trinix912 · 1h ago
I wonder what prevented them from porting the ms-dos EDIT.COM to 64bit Windows back then. There's still EDLIN.COM in the 32bit version.
tadfisher · 1h ago
They canceled the 64-bit port of NTVDM (virtual DOS machine), which is what handles all those INT 21h syscalls from DOS applications. Without that, there's honestly not much to port, and it's easier to just make a new NT-native CLI app.
90s_dev · 41m ago
Did they cancel it because dosbox exists? If so, that's smart.
dbuxton · 43m ago
I can't wait for the Rust port of QBasic Gorillas
red_admiral · 15m ago
This is a denial-of-service attack on my productivity :)

I fondly remember the times of editing the explosion radius to "tactical nuclear banana".

tored · 1h ago
Oh nice! Can't wait to replace nano. Plugin support in lua?
90s_dev · 1h ago
I hope someone adds typed Lua support and sends a PR!
Ericson2314 · 26m ago
Will the old one from DOS be replaced entirely with this?
andrewstuart · 1h ago
Edit for DOS was my favorite editor.

All the keys worked as you expect. You could select text with shift. It had find and a replace. That’s a lot more than most editors give you without config fiddling and arcane key commands.

Those simple things get almost everything I need for operating system maintenance.

Edit was the pure distilled essence of an editor.

It was a work of art really.

sedatk · 1h ago
It was okay when it came out because the alternative was EDLIN (DOS version of ed). But IIRC, it had a 64KB file size limitation which was a problem.
GuinansEyebrows · 59m ago
cute. extremely NIH in a field with many existing options, but very cute :)
mixmastamyk · 1h ago
What happened to shipping yedit? From the yori project, which I recommend to everyone on windows. Why wait when it has been available for years?

(Someone mentioned ssh, which leads me to believe this one is using ansi instead of the console API.)

QuiCasseRien · 1h ago
> Open Source, writen and build at Microsoft.

Oh yeah, i will get some C# or C++ code !

> Rust

Fucked. Why Why Why ?

lblume · 1h ago
I can see why people don't like to write Rust. It is more tedious, harder because of the ownership model, and has a very steep learning curve.

What I don't get is what people have against programs written in Rust from the bottom up. They are safer to use, introduce far fewer vulnerabilities, and you can even locally reason about the code much better than in typical 'unsafe' languages like C++.

eikenberry · 1h ago
It seems like your first paragraph answers the question in the second. If it is harder to use and learn then that reduces the value of free software released using it as that software is then harder to modify, fix, contribute to, etc. The tradeoff for Rust being hard should be more security and fewer bugs. The additional cost here, and the one that the OP is probably annoyed with, is that it moves away from the languages/platforms that MS has traditionally used and that developers who work on that platform expect.
koakuma-chan · 45m ago
Is Rust harder than C++?
90s_dev · 1h ago
> and you can even locally reason about the code much better than in typical 'unsafe' languages like C++.

Do you have an example of this? I'm just a TypeScript guy who never had a fair chance to use C++ or Rust for long, so I'd be curious how what you say is true.

teddyh · 1h ago
The non-stable ABI, forcing all-statically linked binaries, is also a thing.
tadfisher · 59m ago
Which has next to zero impact on Windows applications, which ship their own DLLs anyway (besides stuff like DirectX).
free_bip · 1h ago
What's wrong with a terminal app being written in Rust?
sedatk · 1h ago
> Why Why Why?

Less memory overhead and no runtime dependencies?