News for hackers. Stuff that matters.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by tim-- on Tuesday June 24, 2025 @09:06PM (#44372736)
It's for people that want to use the Windows Terminal to edit files. The old `edit` command has been unsupported on Windows since 2006, so there was no Microsoft-provided editor that could be used in the command line since then.

It's impressive to see how fast this editor is. https://github.com/microsoft/edit/pull/408

> By writing SIMD routines specific to newline seeking, we can bump that up [to 125GB/s]

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by _verandaguy on Tuesday June 24, 2025 @09:14PM (#44372789)
Is... this a meaningful benchmark?

Who's editing files big enough to benefit from 120GBps throughput in any meaningful way on the regular using an interactive editor rather than just pushing it through a script/tool/throwing it into ETL depending on the size and nature of the data?

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by magicalhippo on Tuesday June 24, 2025 @10:27PM (#44373143)
At work we have to modify some 500 MB XML's every now and then, as the source messes them up in non-repeating ways occasionally.

Typically we just hand edit them. Actually been pleasantly surprised at how well VS Code handles it, very snappy.

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by pprnm on Wednesday June 25, 2025 @07:10AM (#44375916)
I use the CudaText for big files. It is like open source Sublime.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by tiagod on Tuesday June 24, 2025 @10:14PM (#44373088)
I have to scroll through huge files quite frequently, and that's the reason I have Sublime Text installed, as it deals with them very well.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by orthoxerox on Wednesday June 25, 2025 @03:17AM (#44374461)
I have FAR installed for the same reason.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by EasyMark on Thursday June 26, 2025 @12:43AM (#44384250)
less works pretty well if you don't need to edit the files.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by WD-42 on Tuesday June 24, 2025 @09:21PM (#44372820)
Who cares? It’s fun. Programming can be fun.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by anyfoo on Tuesday June 24, 2025 @09:22PM (#44372829)
To turn this around, you can have fun and ask if something is meaningful or not outside the fun at the same time. If it is, great. If it's not, no harm.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by _verandaguy on Tuesday June 24, 2025 @09:48PM (#44372966)
I'm not saying that doing this can't be fun, or even good to learn off of, but when it's touted as a feature or a spec, I do have to ask if it's a legitimate point.

If you build the world's widest bike, that's cool, and I'm happy you had fun doing it, but it's probably not the most useful optimization goal for a bike.

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by WD-42 on Tuesday June 24, 2025 @11:51PM (#44373496)
Not a great analogy. This editor is really fast. Speed is important, to a point. But having more of it isn't going to hurt anything. It is super fun to write fast code though.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by legends2k on Wednesday June 25, 2025 @12:05PM (#44378833)
I don't think a sentence in a big report page is counted as touting.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by tim-- on Tuesday June 24, 2025 @09:30PM (#44372879)
As a specific benchmark, no. But that wasn't the point of linking to the PR. Although the command looks like a basic editor, it is surprisingly featureful.

Fuzzy search, regular expression find & replace.

I wonder how much work is going to continue going into the new command? Will it get syntax highlighting (someone has already forked it and added Python syntax highlighting: https://github.com/gurneesh9/scriptly) and language server support? :)

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by _verandaguy on Tuesday June 24, 2025 @09:52PM (#44372981)
Right, these are more useful features, IMO, than the ability to rip through 125GB of data every second. I can live without that, but syntax highlighting's a critical feature, and for some languages LSP support is a really big nice-to-have. I think both of those are, in this day and age, really legitimate first-class/built-in features. So are fuzzy searching and PCRE find&replace.

Add on a well-built plugin API, and this will be nominally competitive with the likes of vim and emacs.

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by anyfoo on Tuesday June 24, 2025 @09:21PM (#44372819)
Not on the regular, but there are definitely times I load positively gigantic files in emacs for various reasons. In those times, emacs asks me if I want to enable "literal" mode. Don't think I'd do it in EDIT, though.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by tomrod on Tuesday June 24, 2025 @09:17PM (#44372802)
Challenge. Accepted.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by 0points on Wednesday June 25, 2025 @05:30AM (#44375280)
For a text editor, yes, absolutely.

As developers, we rotinely need to work with large data sets, may it be gigabytes of logs, csv data, sql dump or what have you.

Not being able to open and edit those files means you cant do your job.

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by Geezus_42 on Wednesday June 25, 2025 @07:32AM (#44376056)
But are you really trying to do that on a Windows Server? I feel like there are better tools for the job.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by delfinom on Wednesday June 25, 2025 @08:56AM (#44376777)
"Better tools for the job" isn't always "the tool currently bringing in the $$$$$$$$$$$$$$$". So you live with it.

Sure, maybe by switching to linux you can squeeze out an extra CPU core's worth of performance after you fire your entire staff and replace them with Linux experienced developers, and then rewrite everything to work on Linux.

Or, live with it and make money money money money.

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by trelane on Wednesday June 25, 2025 @11:49AM (#44378655)
> make money money money money.

Subject, of course, to Microsoft allowing you to continue to use their software.

Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by _verandaguy on Wednesday June 25, 2025 @09:47AM (#44377304)
I work exclusively outside of the windows ecosystem, so my usual go to would be to pipe this through some filtering tools in the CLI long before I crack them open with an editor.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by trelane on Wednesday June 25, 2025 @11:48AM (#44378645)
You could make an argument for emacs, but probably not using emacs as a pure text editor.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by cerved on Wednesday June 25, 2025 @01:08AM (#44373783)
Probably more like need to use it. Basically nano for windows
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by axpvms on Wednesday June 25, 2025 @07:41AM (#44376123)
That's pretty handy. I was having to use bash -c "vi myfile.txt" which was a bit annoying.
Re:Microsoft Releases Classic MS-DOS Editor for Linux Writte... by jcotton42 on Wednesday June 25, 2025 @01:43PM (#44379942)
If you were doing that to invoke WSL, note that these days you can do `wsl command arg arg arg...`