HackerTrans
トップ新着トレンドコメント過去質問紹介求人

lhecker

no profile record

投稿

Microsoft Edit 2.0.0 – A compiler for syntax highlighting

github.com
6 ポイント·投稿者 lhecker·2 か月前·1 コメント

コメント

lhecker
·先月·議論
...huh, true. It's weird what kind of mistakes one can do sometimes. This one was almost comically on the nose.
lhecker
·先月·議論
Yup! echo is a CMD builtin and doesn't exist as a dedicated executable.
lhecker
·先月·議論
I apologize for asking, but did you also understood the "Shell conflicts" section as being the complete list of utilities? The project ships the majority of core utilities (~75%).
lhecker
·先月·議論
Any command not listed under the "Shell conflicts" section is included. In my testing `ln` works great.
lhecker
·先月·議論
It should work on Windows 10. If you're using PowerShell, you do need to have v7.4 or later installed, however.
lhecker
·先月·議論
We actually open-sourced DOS sort and published a port of the DOS find command. The suite then dispatches to the GNU/DOS variant based on heuristics. The installer allows you to pick what variant to use by default if the invocation is ambiguous.
lhecker
·先月·議論
> I would have liked to see head, tail, tr, uniq, and cut.

The project includes all of those. Or were you talking about the past?
lhecker
·先月·議論
As hex4def6 said, the idea was that DOS command conflicts are not a good idea, while overriding PowerShell builtins in interactive sessions (PSReadLine) is acceptable, if not a good idea. We open-sourced DOS sort and published a port of the DOS find command. The suite then dispatches to the GNU/DOS variant based on heuristics.
lhecker
·先月·議論
The intent was simply to give people coming from macOS and Linux more of the CLI tools they're familiar with. In other words, agents weren't the focus at all. But if it ends up helping them, that's a good added benefit of course.
lhecker
·3 年前·議論
Yeah, you're right, they're related to WinUI. But what I meant is that such features aren't inherently expensive, they're just made expensive due to the choice of UI framework.

Display scaling is very fast in GDI apps and has no impact on launch time, a tab bar is essentially just an array of buttons (minimal impact on launch time?) and transparency is a virtually cost-free feature coming from DWM. I wrote a WinUI lookalike using its underlying technology (Direct2D and DirectComposition) directly one time and that results in an application that starts up within ~10ms of CPU time on my laptop, quite unlike the 450ms I'm seeing for WinUI. That is including UIA, localization and auto-layout support.
lhecker
·3 年前·議論
Unfortunately, none of these are responsible for the startup delay. Since version 1.18 effectively ~90% of the startup duration is spent starting up WinUI and having it draw the tab bar and window frame. It still needs a second to start. If it still used GDI like Windows NT did, it would start in well under 100ms even on an extremely old CPU.

Fixing this situation is essentially impossible because it requires rewriting almost everything that modern Windows is built on. Someone else in this thread said you couldn't sell 4 quarters worth of work to fix this, but the reality is that it requires infinite quarters, because it requires throwing away the last 10 years of Windows shell and UI work and that will never happen. You could paper over it by applying performance spotfixes here and there, but it'll never go back to how it could be that way. At a minimum, you'd essentially have to throw away WinRT which has an almost viral negative impact on performance. Never before have high latency, but still synchronous cross process RPCs been that prevalent and everything's a heap allocated object, even if it's within the same binary. It's JuniorFootgunRT.