6 ms·
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 sp
by lbruder 4y 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.
- anfractuosity 4y agoI 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.
- quietbritishjim 4y agoNotepad 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.
- benrow 4y agoMaybe 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.
- no_time 4y ago>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.
- m000 4y agoComparing 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.
- bombcar 4y agoMicrosoft lost the OS war and is defending Office as best they can, which includes cross-platform tooling.
- osigurdson 4y agoThey lost the server OS war, but desktop Linux seems like it will never overtake Windows and macOS.
- blueflow 4y agoThey lost every OS market except for the Desktop. Where it is at 75% to 80%, trending downwards. Give it another decade.
- osigurdson 4y agoIs the market share largely being taken by macOS or something else? Chromebooks perhaps?
- bombcar 4y agomacOS 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.
- osigurdson 4y agoI don’t know. I bought office for my Mac 4 years ago and used it maybe twice. Google docs might not be quite as good but good enough for most things. I also hate looking at the ribbon (but that is just personal preference).
- bombcar 4y ago
- MonkeyClub 4y ago> 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 :)
- AndrewDucker 4y agoAlmost certainly writing direct to memory, as per http://kylehalladay.com/blog/2020/05/20/Rendering-With-Notepad.html http://kylehalladay.com/blog/2020/05/20/Rendering-With-Notep...
- bluedino 4y agoSome hacker just needs to wire the output up to Visual Studio Code