5 ms·
Retrowin32, a Win32 emulator
- unwind 4y agoVery cool! The two demos seem to be broken right now, but I guess this is nowhere near being released and/or intended for public consumption yet. Also (from "Taking a break" linked [1] in the post): does Figma not use email? Wut? [1]: https://neugierig.org/software/blog/2022/09/break.html https://neugierig.org/software/blog/2022/09/break.html
- badsectoracula 4y agoFWIW the demos work on Firefox, Chromium and Konqueror here.
- unwind 4y agoOh? That's odd, I'm on Firefox (Windows) too, I just get blank screens and errors in the Console if I have a look.
- tssva 4y agoThey both run in Chrome on my Android phone.
- stuaxo 4y agoWorked fine on Firefox on Ubuntu, but Edge on my work windows laptop wasn't so happy.
- yjftsjthsd-h 4y agoLOL, is this going to become another "win32 binaries work better in WINE than on actual Windows" moment? EDIT: Ah, probably not; looks like people are having success on Chrome too so it's probably just the site having a temporary issue
- HeckFeck 4y agoNow that's some real hacking. Maybe win32 will become the stable ABI for the browser too ;)
- dark-star 4y agoThis article is full of inaccuracies. For example > Linux churns so much that a given program written today won't work in a year I don't think that's true. It's more like "programs written 20 years ago (against glibc 1.x) don't work on recent Linux anymore" > programs written in the Windows 95 32-bit era are guaranteed to never change again Yeah, well, programs written for Linux 20 years ago also never change again. That's the whole point of closed-source binary-only programs... > [windows executables are an] accumulation of cruft over literally decades. Linux ELF file formats also contain ancient bits and pieces that are not used anymore. And the a.out "cruft" has only been finally removed this week
- jart 4y agoIt's absolutely true. It's not true of the kernel. But if you depend on any .so files provided by your distro, then you can reasonably assume that once the version of your distro goes EOL you're going to running your app in a docker container later (unless you continually maintain all the breakages). That's why I always make static binaries. Since if you only link the kernel, then you're good. WIN32 is also pretty stable. Always has been compared to the Linux userspace. You have to go back 20 years (like the OP) before unmaintained WIN32 apps start falling apart.
- quietbritishjim 4y ago> > programs written in the Windows 95 32-bit era are guaranteed to never change again > Yeah, well, programs written for Linux 20 years ago also never change again. That's the whole point of closed-source binary-only programs... This sentence is poorly phrased, but from the context it looks like they meant: programs written in the Windows 95 32-bit era are guaranteed to continue running without ever changing again
- kristopolous 4y agoIt's one of the costs of closed source; binary compatible becomes really important. It'd be interesting if a company like Adobe open sourced everything at the 20 year mark. Hobbyists and enthusiasts would love them for it.
- 4y ago
- alrlroipsp 4y agoTLDR; Op didnt get a demo running in qemu, so he built an emulator, that also doesn't run the demo.
- Aldo_MX 4y agoThe demos run fine using an iPad webview
- mysterydip 4y agoThis is exciting for me personally. I have a lot of code over the years for my gamedev hobby written for win32 that isn't easy to port elsewhere. Making them available on the web would be a fun way to keep them alive.
- nvella 4y agoThis is pretty cool! It immediately reminded me of Gary Bernhardt's 2014 talk, 'The Birth and Death of Javascript'[1]. Truly life imitating art. [1] https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript https://www.destroyallsoftware.com/talks/the-birth-and-death...
- nyanpasu64 4y ago> It feels like there was kind of a sweet spot before GPUs took over everything where there's software like demos and games that likely don't require a lot of Windows API and are possibly old enough to be possible to emulate on one of these fast new Macs. I'm reminded of FamiTracker, one of these traditional Win32 (MFC eew) apps which has managed to survive into the modern day with a technological stack largely unchanged, outside of newer compilers and me replacing DirectSound with WASAPI in Dn-FT. But even in simple apps there's a surprising amount of complexity, ranging from threading deadlocks from poor architecture, to a Wine bug causing the window to fail to redraw when resized (https://bugs.winehq.org/show_bug.cgi?id=52903 https://bugs.winehq.org/show_bug.cgi?id=52903, related https://bugs.winehq.org/show_bug.cgi?id=52515 https://bugs.winehq.org/show_bug.cgi?id=52515).
- hnlmorg 4y agoI’d imagine there might still be a surprising number of MFC apps still in circulation. PuTTY, for example, uses MFC (I’d completely forgotten MFC was a thing until I had to write a custom port of PuTTY for a previous company ~5 years ago).
- terinjokes 4y agoIn fact, I just upgraded an MFC music application[0] to VS2022 and 64-bit this year, marking the first release in 15 years. I'm not a Windows developer, and had to learn it while working on this upgrade. The MFC documentation has clearly atrophied, but has far as I can tell, there's also not blessed upgrade path for C++ applications. [0]: https://github.com/terinjokes/mixere https://github.com/terinjokes/mixere
- juki 4y ago> blessed upgrade path for C++ applications. There is C++/WinRT + WinUI 3, but looking at the screenshot that will pretty much require re-designing the whole UI so it's not going to be a simple upgrade.
- 4y ago
- kethinov 4y agoA project like this is vital for software preservation. The closest thing to it besides what the author listed in the article is Apple's Rosetta, but add that to the list of similar but not quite exact comparisons noted by the author and frankly do any of us really believe Apple will keep Rosetta around forever? We saw how that went last time. We really need open source, community-maintained versions of things like Rosetta so that old apps written for different architectures or even different operating systems can continue to run on modern operating systems. I applaud the author. We need more people like that interested in this stuff.
- gpderetta 4y agowine?
- p2detar 4y agoAs the Retrowin32 author states: > There are other projects to run old Windows programs. WoW64 is the name of the system within 64-bit Windows that makes old 32-bit Windows programs run. Wine shims the Windows API onto your host system — see the great How Wine works for a deep dive on what that means. And system emulator projects like qemu emulate a full x86 machine such that you can install Windows onto them. But Wow64 requires running 64-bit Windows, Wine requires x86 hardware, and qemu requires installing the full Windows OS into the emulator to run a Windows program.
- nottorp 4y ago> and are possibly old enough to be possible to emulate on one of these fast new Macs ... or on an older slow Mac if it didn't have to go through a browser?
- mhd 4y agoIt seems we get all kinds of Windows emulation, but was there ever a marginally worked out attempt of "just" providing the necessary libraries for a basic Win32 application, open source or commercial? So not aiming at a binary-level compatibility, but source-level.
- DustinBrett 4y agoI use BoxedWine (http://www.boxedwine.org/ http://www.boxedwine.org/) on my desktop environment in the browser (https://github.com/DustinBrett/daedalOS https://github.com/DustinBrett/daedalOS) to run exe's directly. Works quite good for things like SkiFree or even Notepad++. Happy to see projects like Retrowin32 to move this tech forward, or at least keep it alive.
- Stamp01 4y agoThis is really cool, but... if the whole thing is to get a demo to run, the demo in question can be viewed on YouTube. https://www.youtube.com/watch?v=GeWcGhYVYXY https://www.youtube.com/watch?v=GeWcGhYVYXY
- deleted 4y ago[deleted]
- nineteen999 4y ago> That is, Linux churns so much that a given program written today won't work in a year; Highly inaccurate, hyperbole.
- apignotti 4y agoNice to see our technology, CheerpX, cited here. Running Wine on top of CheerpX/WebVM is in our plans by-the-way. https://webvm.io https://webvm.io
- marcodiego 4y ago> It's kind of amazing to look at the archaeology of how Windows works because it's the accumulation of cruft over literally decades. For example every exe file first begins with a DOS program that prints "This program cannot be run in DOS mode" followed by more headers that are then parsed by Windows. That was not the case with defrag or regedit (or was it another register editor tool...). I remember using it without windows to backup and restore the register. This allowed me use windows as I wished and if it simply became slower because of the register, I could simply restore it.
- Dwedit 4y agoOne Win32 emulator I don't see get much mention is HXDOS. It can run the Win32 Console version of 7-zip on a 486 with MS DOS 5.
- andsoitis 4y agoBackwards compatibility (i.e. practicality) has been one of Microsoft’s strategic advantages. Just like compound interest, it accretes value in a powerful way.