Ex-Microsoft engineer rebuilds Notepad in 2.5KB using nothing but stuff Windows already had
https://www.windowslatest.com/2026/07/04/ex-microsoft-engineer-rebuilds-notepad-in-2-5kb-using-nothing-but-stuff-windows-already-had/
384 points · 47 comments · view on lemmy.world
47 Comments
Feddinat0r@feddit.org · 59 pts · 46d
But does it have copilot?
pastermil@sh.itjust.works · 26 pts · 46d
I have my own copilot. It's called domestic partner.
Bananskal@nord.pub · 14 pts · 46d
So you do pair programming or..?
pastermil@sh.itjust.works · 3 pts · 46d
Well, not me, but some people do.
FippleStone@aussie.zone · 8 pts · 46d
Jesus is my copilot
Hupf@feddit.org · 12 pts · 45d
Copilot take the wheel!
chunes@lemmy.world · 49 pts · 46d
Really fucking pathetic how someone has to explain to microsoft and modern 'developers' that the operating system already comes with UI elements
pHr34kY@lemmy.world · 38 pts · 46d
People who programmed in the 80s and 90s are all pro golfers. Modern coders could learn from them.
DokPsy@lemmy.world · 14 pts · 46d
Before I even clicked on the article I knew it was going to be Dave Plummer. This kind of thing is exactly what he'd do
JackbyDev@programming.dev · 4 pts · 45d
https://codegolf.stackexchange.com/
bw42@lemmy.world · 37 pts · 46d
I just uninstalled the UWP Notepad and use the old one. But I guess some people need hobbies.
Jiral@lemmy.world · 28 pts · 46d
What's wrong with having hobbies?
Valmond@lemmy.dbzer0.com · 30 pts · 46d
It's illegal.
bw42@lemmy.world · 2 pts · 45d
Nothing wrong with having hobbies. They give us lots of interesting things.
DokPsy@lemmy.world · 12 pts · 46d
The programmer from the article is Dave Plummer. This is one of his hobbies. Check his YouTube channel Dave's Garage for more of them
Appoxo@lemmy.dbzer0.com · 1 pts · 46d
You can do that??
Guess I have to find out how to do it in a reliable way for our prepped client systems!!
kshade@lemmy.world · 1 pts · 45d
Only way I've found is to have a script that uninstalls certain apps using Powershell on logon. We are rolling out Notepad3 instead, it's better than UWP or classic, which they patched to nag you about the UWP version.
flambonkscious@sh.itjust.works · 1 pts · 45d
Wow, I didn't know there's been developments beyond notepad2-mod - thanks!
bw42@lemmy.world · 1 pts · 45d
Yeah, my work computer I uninstalled the UWP Notepad by right clicking it in start menu and choosing uninstall. Then when I open Notepad from search or run it opens the old Notepad instead.
Appoxo@lemmy.dbzer0.com · 1 pts · 45d
I am aware of Remove-AppXPackage being a thing but I kind of expected the notepad thing to be an integral part of itm
Probably the usual of replacig the frontend and usi g a skin on top of the old EXE by using it as a backend.
FlashMobOfOne@lemmy.world · 28 pts · 46d
Monetizing notepad pissed me off so much.
That's like making people pay for save functionality in a video game.
VitoRobles@lemmy.today · 18 pts · 46d
I mean there was that time the CEO of EA suggested charging a dollar to reload in a FPS game.
AngryCommieKender@lemmy.world · 16 pts · 46d
https://www.penny-arcade.com/comic/2026/07/03/returnal-3
The latest Penny Arcade seems relevant.
explodicle@sh.itjust.works · 12 pts · 46d
WOW that comic looks different in 2026
AngryCommieKender@lemmy.world · 4 pts · 46d
Yeah, there seem to have been 3-4 distinct styles so far. They're just doing their thing. I still read even though I have no clue what they are on about more than half the time.
Buddahriffic@lemmy.world · 4 pts · 45d
Yeah, can't say I'm a fan of the ugly cartoons style.
Sanguine@lemmy.dbzer0.com · 23 pts · 46d
Plummers YouTube channel is excellent btw
DokPsy@lemmy.world · 6 pts · 46d
I always take a seat at Dave's garage
ChaoticNeutralCzech@feddit.org · 11 pts · 46d
GIMP could learn from this. In folders with many items, its Open (as Layers)/Save as... dialog is super slow (and the loading cannot be skipped even if you know the filename; this may get fixed soon though). The DE has one already, dammit!
lowleveldata@programming.dev · -22 pts · 46d
Who cares about file size? It would be more impressive to optimize it for better performance / less memory usage
ch00f@lemmy.world · 26 pts · 46d
I suspect a 2.5kb application would probably load quickly and use little memory.Edit: I'm an illiterate dumdum. Don't upvote.
lowleveldata@programming.dev · 22 pts · 46d
It says this right in the article. Is reading the article too much to ask?
tal@lemmy.today · 26 pts · 46d
They don't say the scenario where that's happening, though. Unless your editor supports large file editing, a mode where it doesn't load the whole file into memory, unless it has filesize restrictions that make it just fail, if you throw a large enough file at it, it's invariably going to use a bunch of memory.
On my system, after it (slowly) finishes opening that file,
vim's using 511MB RSS. I know thatvimhas some sort of large file editing support, though not how to use it.On emacs, large file editing support is from the
vlfpackage.Emacs is using 75.3 MB RSS after opening that.
ChaoticNeutralCzech@feddit.org · 12 pts · 46d
They do, in the linked GitHub issue:
https://github.com/PlummersSoftwareLLC/TinyRetroPad/issues/21
Apparently, that's just sitting idle.
By not optimizing for file size with Crinkler, the executable grows by a factor of 4 and RAM usage shrinks by a factor of 300. This build will probably be made available to people who value 500 MB RAM per running instance more than the 9 kiB of disk space saved (I assume that's anyone wanting to use it in practice).
ch00f@lemmy.world · 12 pts · 46d
Yes apparently. Apologies.
CameronDev@programming.dev · 11 pts · 46d
Size on disk doesn't correlate to memory usage or load time. You can get a very small on disk size by compression, or downloading the main executable at runtime.
Feyd@programming.dev · 9 pts · 46d
The size of the main binary and all the libraries loaded does determine the starting point of the memory usage, but then doing things like loading files are going to also use memory and there are many strategies for optimizing for speed, memory usage, disk size that have tradeoffs between them. Anyway the point is that the size of the program itself isn't irrelevant even though it isn't the only factor in memory usage.
CameronDev@programming.dev · 2 pts · 46d
Even the linked libraries may not contribute anything, if they are already loaded and shared amongst other processes. There are so many factors and trade offs that you cant really make any assumptions based off just the executable size.
BCsven@lemmy.ca · 7 pts · 46d
The premise is probably if you can optimize the code to be small, you are probably also optimizing how it runs too. Rather then just bloat up everything
CameronDev@programming.dev · 3 pts · 46d
Once you start optimizing for one aspect, others become less important. In this case, they are doing a few hacks to get to 2.5kb, which do impact runtime performance. A few users report it using 500mb at runtime due to the compression :/
BCsven@lemmy.ca · 3 pts · 46d
Well that sucks, although I assume that's way better than the AI bloated version that now comes with Windows.
ch00f@lemmy.world · 7 pts · 46d
Sure. I wasn't thinking of something like .kkreiger. I assumed that a small simple text editor would use a similarly small amount of memory. Shocked it ballooned so big. Sorry can't read the article at the moment.
CameronDev@programming.dev · 7 pts · 46d
It does some of the tricks that .kkreiger uses, including compressing the binary.
And at least according to a few reports, it uses 500MB of ram:
https://github.com/PlummersSoftwareLLC/TinyRetroPad/issues/21
ChaoticNeutralCzech@feddit.org · 4 pts · 46d
Simply building without Crinkler compression changes the file size to 11 kiB and RAM usage to 1.7 MB. That's almost double what Microsoft's old Notepad (at a file size of 250-350 kiB, including an uncompressed multi-size RGBA icon of around 100 kiB and localization) uses but not bad, and probably the version most people will prefer for practical use.
LeFrog@discuss.tchncs.de · 3 pts · 46d
Oh my god thanks for these memories
demoscene & 64K intro
JigglySackles@lemmy.world · 1 pts · 45d
.kkrieger was so damn cool. Mad impressive what they managed.
JackbyDev@programming.dev · 1 pts · 45d
Thinking it doesn't correlate at all seems foolish. There is some correlation, it's just miniscule.