Hacker News new | ask | show | jobs
by lbruder 1343 days ago
If this is "just" sending keystrokes to notepad.exe, as in "ctrl-a, del, lots of keystrokes until one frame is done", then I'm actually more impressed by the speed keystrokes and redrawing are handled in the good ol' Win32 EDIT field.
4 comments

>I'm actually more impressed by the speed keystrokes and redrawing are handled in the good ol' Win32 EDIT field.

I wonder what went wrong. I can't see today's MS ever living up to what the NT and desktop team delivered ~20 years ago.

Its baffling to think that the same company is responsible for Teams.

Microsoft lost the OS war and is defending Office as best they can, which includes cross-platform tooling.
2nd behind Android if we're counting mobile OS's. But still ahead of computer/laptop/desktop OS's.

https://gs.statcounter.com/os-market-share

Microsoft has 75% market share on desktop OS, and is doing a lot to keep it that way (including the windows subsystem for linux and VScode remote that make it easy to develop linux code on Windows)
They lost the server OS war, but desktop Linux seems like it will never overtake Windows and macOS.
They lost every OS market except for the Desktop. Where it is at 75% to 80%, trending downwards. Give it another decade.
Is the market share largely being taken by macOS or something else? Chromebooks perhaps?
In the corporate world, there seems to be a shift towards thin clients running whatever OS works best (homegrown Linux, ChromeOS, macOS) and beefy Citrix servers, as well as another shift to SaaS/on-prem/on-own-cloud web applications.

Guess we're in a revival of the 70s/80s mainframes with dumb terminals again.

macOS is the important one - if Microsoft support for office on Mac wasn’t as good as it is, they could be in existential danger.

Already Google Apps has made a strong play, and Microsoft is doing quite a good job defending. Teams is only a part of it.

And there’s also mobile, which they lost entirely. That could be a risk, too, and they know it.

Did they lose the OS war? last I checked Windows has higher marketshare than macOS.
Over the long run, mobile is king, and windows isn’t there. If Apple or Android figure out how to take advantage of their situation on this, they could overtake windows in 40-50 years.
> they could overtake windows in 40-50 years.

Is that also your overall estimate on how long the mobile paradigm will overtake the desktop one? I would guesstimate that to a decade, or a decade and a half at most, with the degeneration of written language following closely.

I say they did, in that they have to treat other OSes as "real" - if they had dominated as they did in the 90s and early 2000s they would have just made Office for Windows and left everyone else on some Web version.
Comparing a windows-only minimum viable visual text editor with a cross-platform videoconferencing software which integrates with a ton of other productivity software. Sounds legit.

I get it, Teams may not work perfectly on every setup. But the same goes with practically all enterprise-level videoconferencing solutions.

> Its baffling to think that the same company is responsible for Teams.

In an absolutely symmetric comparison, the Germans first gave us Goethe, and then..

Same company, but different teams I guess :)

Almost certainly writing direct to memory, as per http://kylehalladay.com/blog/2020/05/20/Rendering-With-Notep...
I thought it might be using the windows equivalent of PTRACE_POKETEXT, to poke data into notepad's memory.

I've altered the contents of the gedit text editor within a linux VM, via PTRACE_ATTACH and PTRACE_PEEKTEXT/PTRACE_POKETEXT, to find and modify the text.

Notepad opens files using memory mapping, so an alternative might be to open the same file also using memory mapping, and then you have shared memory directly with notepad.

Except, that would mean notepad updates the display as the file changes, and I didn't think it did that. So I think I've got something wrong.

Maybe the edit buffer is a different area of memory to the mapped file. This would make sense as editing a file doesn't update it on disk until you choose to Save.
Some hacker just needs to wire the output up to Visual Studio Code