PC

"Tidak ada kembung, tidak ada telemetri, tidak ada omong kosong." Mantan wizard pengkodean Microsoft membuat klon OG Notepad yang berukuran hanya 2.686 byte

📰 PC Gamer✍️ Nick Evanson📅 1 jam lalu👁 2 views
Share:💬𝕏f✈️

🌐 Konten masih dalam Bahasa Inggris. Terjemahan sedang diproses.

"Tidak ada kembung, tidak ada telemetri, tidak ada omong kosong." Mantan wizard pengkodean Microsoft membuat klon OG Notepad yang berukuran hanya 2.686 byte

Once nothing more than a basic text editor, Windows Notepad has been expanded in recent years to become almost a fully-fledged word processor. For some people, the little tool has become synonymous with Microsoft's penchant for bloat and unnecessary changes, so one former Redmond coder decided to do something about it.

The person in question is Dave Plummer, and we've written about his past work and exploits many times over the years. These days, he regularly posts videos on his YouTube channel, Dave's Garage, and earlier this week, he showed how he created an app that replicated the original Notepad, with the goal of keeping everything under 4 kB.

In contrast, the latest version of the Windows Notepad executable is 352 kB. Some of that file size can be attributed to additions the text editor has accrued over the years, though hacking those off won't be enough to get Notepad down to 4 kB in size.

Incredibly, though, Plummer's final program is just 2,686 bytes. Not kilobytes, just bytes. That's only fractionally larger than the games the 1977 Atari 2600 console originally launched with. So how on Earth did Plummer make it so small?

What made this possible is the fact that Windows itself carries around everything an app needs, such as menu systems and a graphical user interface. You don't need to replicate them, just call them up as and when they're required. By writing just a few lines of assembly code to tell Windows to 'show a right-click menu', standard text editor features now take up hundreds of bytes in size.

Pavia, Lombardy, Italy - November 23, 2024: Atari 2600 console from 1976 at Ctrl+Alt Museum. The cartridge, from 1982, is the shooter game River Raid.

OG Atari 2600 games were limited to 2 kB in size. (Image credit: Photology1971 via Getty Images)

Another trick Plummer employed was using Crinkler to generate the final executable. In the 4 kB demoscene, this little compressing linker tool is near legendary. Basically, it takes all the various file objects generated by the code compiler and links them together so that they become a cohesive program; then it compresses the living daylights out of the code.

Plummer's success at creating an OG Notepad just 2.6 kB in size wasn't using any cheats or the like: all Windows applications do this, which is partly why the operating system is as big as it is. And to be fair to the current version of Notepad, the code has to be secure, readable, version-compatible, and so on. All those aspects increase the file size.

The project is a good exercise for any developer to try and replicate, but it's also a very timely one. With the global memory crisis set to rampage for many more years, game devs will need to employ similar approaches in order to keep memory consumption down. Alas, with numerous game studios at risk of being shut down, decreasing budgets plus pressures over time constraints will almost certainly mean that we won't see programmers looking to shave off every megabyte where they can.

Sumber: PC Gamer

Kenapa Memilih Kami?

Proses Instan

24/7 otomatis

💰

Harga Termurah

Harga bersaing

🔒

100% Aman

Refund jika gagal

📃

Terlengkap

Beragam produk

🎁

Cashback

Setiap pembelian

💳

Multi Payment

Banyak metode

💬

CS 24/7

Bantuan kapan saja

📬 Newsletter

Dapatkan info promo, produk baru, dan berita terkini langsung ke email kamu.

Kami tidak akan mengirim spam. Kamu bisa berhenti berlangganan kapan saja.

FAQ - Pertanyaan Umum

Temukan jawaban untuk pertanyaan seputar layanan kami

MakerGames adalah platform terpercaya untuk pembelian voucher game, top-up game, pulsa, paket data, token PLN, dan berbagai produk digital (PPOB) lainnya dengan harga termurah dan proses instan.
Pilih produk yang diinginkan, masukkan data yang diperlukan (seperti User ID atau nomor HP), pilih nominal, lakukan pembayaran melalui metode yang tersedia, dan produk akan dikirim secara otomatis dalam hitungan detik.
Kami mendukung berbagai metode pembayaran termasuk transfer bank, QRIS (GoPay, OVO, DANA, ShopeePay, Bank dan lain-lainnya), virtual account, dan saldo deposit.