News for hackers. Stuff that matters.

zadjii

LSH feels like it's being massively undersold here. The `grammars/` directory of helix is something like 183MB. That would be a non-starter for a lot of use cases for edit (which is already only 167kB). tree-sitter might be more powerful, but this is more than good enough, and it is orders of magnitude smaller.

I'd love to read a longer blog post that details how y'all compared existing implementations and came to the conclusion that writing your own was the best path here. This kind of attention to craftmanship is something I feel like we're desperately missing these days in software.

Re:Terminal Latency on Windows (2024) on Tuesday November 11, 2025 @05:01PM (#45893488)
You're most welcome! Working on it to help serve the whole developer ecosystem has been the delight of my career :)
Re:The Terminal of the Future on Tuesday November 11, 2025 @04:58PM (#45893459)
Y'know, I spent a week investigating doing something similar with the Windows Terminal about 18 months ago: https://github.com/microsoft/terminal/issues/16495#issuecomm...

There's even more under the "Updates archive" expando in that post.

It was a pretty compelling prototype. But after I played with Polyglot Notebooks[1], I pretty much just abandoned that experiment. There's a _lot_ of UI that needs to be written to build a notebook-like experience. But the Polyglot notebooks took care of that by just converting the commandline backend to a jupyter kernel.

I've been writing more and more script-like experiments in those ever since. Just seems so much more natural to have a big-ol doc full of notes, that just so happens to also have play buttons to Do The Thing.

[1]: https://marketplace.visualstudio.com/items?itemName=ms-dotne...

Re:Terminal Latency on Windows (2024) on Tuesday November 11, 2025 @02:17PM (#45891543)
Notably this article was written based on Windows Terminal 1.18. That was before WT 1.22, which included this PR: [^1] which roughly doubled the terminal's throughput. That combined with a couple of other PRs in 1.22 made some scenarios up to _16x_ faster[^2]

[^1]: https://github.com/microsoft/terminal/pull/17510

[^2]: https://devblogs.microsoft.com/commandline/windows-terminal-...

Re:State of Terminal Emulators in 2025: The Errant Champions on Tuesday November 04, 2025 @10:34PM (#45818692)
It's shipped with Windows since Windows 11. Updates come via the Store (since that's a lot faster than OS updates), but it's definitely preinstalled these days
Re:State of Terminal Emulators in 2025: The Errant Champions on Monday November 03, 2025 @03:16PM (#45803855)
FWIW The definitive thread on "images in terminals" is probably found in these threads:

https://gitlab.freedesktop.org/terminal-wg/specifications/-/...

https://gitlab.freedesktop.org/terminal-wg/specifications/-/...

there's lengthy discussion from just about everyone at this point in those threads, about why images in terminals is Hard

Re:State of Terminal Emulators in 2025: The Errant Champions on Monday November 03, 2025 @02:33PM (#45803367)
No love for Windows Terminal? I know that linux has a much richer terminal ecosystem, but WT ranks a lot higher than a wide breadth of terminal emulators on linux now. Could anyone have imagined that 10 years ago?
Re:Email immutability matters more in a world with AI on Thursday October 02, 2025 @07:36PM (#45456867)
Low key: Loop is actually great. I think it's the first thing I've used that's captured the dream of what Google Wave wanted to be
Re:Using Microsoft's New CLI Text Editor on Ubuntu on Saturday June 21, 2025 @11:25AM (#44338272)
What complaints do you have with the Windows Terminal specifically? I can get having issues with CMD or PowerShell - they're very non-unix-y. But WT itself is probably one of the most feature-complete terminal emulators out there these days. I'd love to know what you think it's missing
Re:Edit is now open source on Tuesday May 20, 2025 @08:46AM (#44040962)
Yedit actually was written by a Microsoft employee :P

It had some problems however with handling unicode (iirc). Basically, shipping yedit would have required a huge re-write of its underlying text buffer. In the end the discussions we had with Malcom concluded that just writing a new one was probably easier and more maintainable in the long run.

Re:PowerToys Command Palette Utility on Tuesday April 01, 2025 @07:15AM (#43545398)
who would have guessed that we're all lurkers here too :P Hacker News isn't just for linux stans - Windows devs like to hang out here too
Re:The Windows Console gets support for Sixel images on Monday July 01, 2024 @02:23PM (#40848718)
That is _technically_ correct (the best kind). There's some plumbing between conhost and Terminal we need to clean up before we can add it to Terminal too. We've got a branch ready, we've just got to merge a whole stack of PRs first before we can get there.
Re:The Windows Console gets support for Sixel images on Monday July 01, 2024 @02:21PM (#40848691)
Has been for like, five years now ;)
Re:The Windows Console gets support for Sixel images on Monday July 01, 2024 @02:20PM (#40848683)
We shipped it (the Terminal) with the first versions of Windows 11. I don't think the "default terminal" feature defaulted to the new Terminal in the first win11 builds, but it should now. And you can always pick whichever terminal you want as the default terminal
Re:The Windows Console gets support for Sixel images on Monday July 01, 2024 @02:18PM (#40848658)
Conhost and Terminal share quite a lot of code in fact. The text buffer, the renderer, the VT sequence parser - all that's the same codebase. That allows bugfixes and improvements to the the Terminal to also flow back to the vintage console (for people who still use that)
This is a great write up, thanks for sharing. I had never heard of these before, and would usually be totally against a subscription based product like that. But the idea of totally bypassing their "drm" for 1/60th the cost? Much more intriguing
Re:Sudo for Windows on Friday February 09, 2024 @01:34PM (#39318496)
Thanks :)

I'd say waking up today to all this... negativity? was kinda a bummer. We've been working hard on something that people (myself included) have been asking for _for years_.

Like, obviously, it's not perfect out of the gate. That's fine! It was a haul enough to ship this in any form. Now that it's out there, we can make more and more improvements. One step at a time.

Sometimes, I just need a break from the internet I guess.

Re:Sudo for Windows on Friday February 09, 2024 @01:29PM (#39318415)
Happy to have the feedback! Most of those I've already fixed internally, there's just a 3-4 week delay between me checking in, and it flowing to Insiders.

For the other few things I missed: Very happy for the feedback! I've filed bugs and those'll be the first things I look at come Monday morning.

Re:Sudo for Windows on Thursday February 08, 2024 @10:34PM (#39311069)
There are security implications for running elevated processes connected to unelevated console/terminal windows. "New window" mode avoids those security concerns. A secure-by-default posture seemed prudent.
Re:Sudo for Windows on Thursday February 08, 2024 @10:26PM (#39311012)
I live by a one step at a time philosophy. It's better to make some incremental progress here, now, and open the door for future progress in this space too. Just like the Terminal - what we're putting out here in the first versions is just the first thing we feel comfortable with people using. We've got lots of ideas for more things to add, just, one step at a time :)
Re:Sudo for Windows on Thursday February 08, 2024 @10:20PM (#39310977)
We're working on backporting it to Windows 10. For updates, you can follow https://github.com/microsoft/sudo/issues/2
Re:Sudo for Windows on Thursday February 08, 2024 @09:03PM (#39310552)
To answer the original question: I've been at MSFT like, 8 years now? And this is probably the third serious attempt my team has made at Sudo for Windows. (I think I heard of a couple other attempts in my tenure as well). After the last attempt, my mantra had always been "this is impossible to actually ship".

It's a tricky feature to ship, cause it is ultimately something that can be used as an escalation of privilege vector. Like, that's the entire idea. And there are a lot of people who (very rightly) get the ick when you say "we want to add this thing which can be used as an EoP to the OS image".

So, it's kinda hard to believe that after four years of thinking it was impossible, we actually managed to get it out the door.

Re:Sudo for Windows on Thursday February 08, 2024 @06:00PM (#39308977)
Maybe for Windows 2025 we can work with the UAC folks to get something like that. I'm still shocked to this day that we managed to ship this at all. One step at a time :)
Re:Sudo for Windows on Thursday February 08, 2024 @03:30PM (#39307257)
Yea, that's a limitation of UAC at this point, and probably not one we can avoid. The "Show details" dropdown on the dialog does however show the commandline you requested, so at least that's one way of making sure it's the thing you ran
Re:Sudo for Windows on Thursday February 08, 2024 @03:14PM (#39307033)
Yep, that's basically the entire diagram. The information that's passed is basically just the commandline, env vars, and a handle to the console of the unelevated sudo's console. Once it's got a handle to the console, the elevated sudo can spawn the target app attached to the original console, rather than a new one. Simple as that!
Re:Sudo for Windows on Thursday February 08, 2024 @03:09PM (#39306982)
> This looks like one of those KPI fulfilling projects

It actually wasn't. This has been one of the top community requests for the Windows Command Line for years. Literally, for like, the entire 8 years I've been here, we've been talking about if there was a way to do Sudo for Windows.

This was done because it makes developers happy, plain and simple. If that's a KPI, then that's the one we're optimizing for.

Re:Sudo for Windows on Thursday February 08, 2024 @02:56PM (#39306809)
Thanks? But sudo * isn't a 88 line PowerShell script, it's a 1800 LOC Rust binary * isn't a NT kernel feature, it's a usermode executable * was made by (in my opinion) a perfectly decent engineer. That may be thinking too highly of myself though.
Re:Sudo for Windows on Thursday February 08, 2024 @02:48PM (#39306699)
Thanks! I think the team we're on has a very clear focus on making developers happy. Like, we're all ourselves, developers, so a lot of it is very self-serving. Anything we can do to make our own lives better is probably going to be a good thing for a lot of other developers too.
Re:Sudo for Windows on Thursday February 08, 2024 @02:22PM (#39306313)
gsudo is great! It's got a lot of features for power users, it's got a great community, and I can't recommend it highly enough. There's room here for us to be better together - Sudo for Windows can cover a number of in-box scenarios, with OS-side support for things like GPO, event logging, etc. But then for power users who need access to some of the wilder features of gsudo (running as TrustedInstaller?), that's always available too.

Older »