114 points · by walterbell · 7y ago · 100 comments
UWP was a clustefuck from the beginning, especially after everyone realized that MS intended to give-up on mobile. There aren't many people who bought into it and given Microsoft's infamous support for legacy code it's no surprise that they decided to tank it. Bottom line, my guess is that very few people will be hurt by this decision. They've all moved to greener pastures long ago.
I'd probably choose Qt.
Of course you can. The Common Controls are part of Win32 in the same way that user32 and gdi32 are.
Also worth noting that Microsoft is in the unique position that they do not want to break countless applications and realise that backwards compatibility is their strong point and a major reason why people use Windows, so even if something is "deprecated", unless it's related to some low-level system functionality, chances are it is not going to stop working. I'd say that they use "deprecation" more as a way of marketing newer-but-not-necessarily-better technologies.
On the subject of cross platform I wouldn't go for qt or anything like it unless I really needed it. All those frameworks are too compromised if you are targeting a single platform. Possibly even if you aren't.
- vb com+ - c++ dcom - c++ mfc - .net 1.1 winform - .net 4 - wpf - delphi
Microsoft causes this by events like build which go “we are betting everything on x” then the year later it is “x was cool but look at xx”
Gahhhhhh
https://blogs.windows.com/buildingapps/2016/09/16/animations...
Silverlight, Winforms, MFC, etc. still all work perfectly fine.
C++: https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-a... Rust: https://crates.io/crates/winrt C: https://stackoverflow.com/questions/7436144/using-winrt-from...
etc.
kind of swig for com/winrt supporting just now only c++ and python https://github.com/Microsoft/xlang/wiki/xlang-faq
Compare a sane "C API designed to be used from C":
https://docs.microsoft.com/en-us/windows/desktop/dlgbox/usin...
that involves nothing more than initialising a structure and calling a single function, with MS's "recommended replacement" using COM:
https://msdn.microsoft.com/en-us/library/Bb776913(v=VS.85).a...
That is a ten level deep nested if with just as many function calls, to do essentially the equivalent of the code above. The first time I saw this, I seriously thought they were taking the piss.
I don’t see why you couldn’t write a UWP app in pure C, you’d just need a shitload of boilerplate and glue to make it sane to work with.
Though the C++ projection contains quite a bit of boilerplate itself, so... shrug
So it’s not clear to me at all why I should bet on any of them and not just use Electron, which is in a lot of ways worse, but at least guaranteed to stick around.
And they announced that WinUI 3.0 will open source all built-in XAML controls (they are even rewritten some to be on top of Composition because of that), will also open the XAML Stack and Composition.
This is a big deal.
Until someone does something better that isn’t single platform it has to be here to stay
From that perspective, it's not really "cross platform", since you're just developing for one platform that happens to run inside many others: a web app.
The genius who convinced Microsoft to throw its weight behind an API completely incompatible with everything they had done before should be lauded for chutzpah. They couldn't have done a better job of destroying Windows, if that was their goal.
But I'll acknowledge that I've got a substantial bias here considering I both keenly observed and to a very modest extent contributed to external coverage of the development of the platform reboots conceived during Longhorn/Vista/7/8 (Avalon/WPF, Indigo/WCF, WinFS, WinRT, some of which succeeded, some of which died) and the efforts to shed legacy platforms dating back almost three decades now.
Why do you believe what you believe? Citations would be helpful, but I recognize we're discussing opinions.
1. The first version of WP7 was fine. Silverlight was a pretty mature technology and there was developer interest (at least in the Microsoft ecosystem).
2. WP8 (and Windows 8) came out with WinRT. This was incompatible with existing ways of writing Windows code, so you couldn't bring (almost) any legacy code over. This means that extensive porting efforts were required for code that used to work fine on Win32. This was particularly brutal for open source libraries (like OpenCV/OpenSSL etc.) which were sorely necessary if you wanted to target all 3 mobile platforms.
In addition there was a much smaller API surface. Bluetooth LE or VPN APIs for example never came out until too late. You couldn't even create COM ports (necessary for GPS dongles) in a Windows 8 (not mobile, just regular desktop) WinRT/UAP app. So Win32 applications would work just fine on Windows 8, but if you wanted they fancy new features, you were either SOL or had a long development cycle ahead of you. The forced async paradigm also added massive complexity for cross-platform development.
They failed to see people rapidly losing interest in Windows (Charles Petzold's Windows 8 book sold so badly, he gave up on Windows for Xamarin. This is the guy who literally wrote the Bible of Windows GUI programming) and take action to remedy that. Instead, they spent time and effort on half-assing "Bridges" which they then rapidly lost interest in and stopped supporting.
It's fine to try to shed legacy platforms, but you don't do it at the cost of developer traction, at the very moment when you need them most. They could have done a lot more to make it easier for developers to bring code over. MS OpenTech, for example, was a worthy initiative that again got killed too soon.
So, my opinion is that nothing but hubris explains the decision to go down the road of abandoning Win32 at a time when Microsoft needed its developers more than anything else.
Having worked at Microsoft way back in the day, I've seen many bad ideas get pushed out, but Microsoft always used to treat developers with respect. WinRT was just a massive slap in the face in comparison.
*edited formating
[0] https://docs.microsoft.com/de-de/windows/uwp/winrt-component...
Compare with gtk, which breaks backward compatibility liberally. After a few versions, old applications stop working unless someone takes the time to fix them. This means application progress is reset again and again. We lose tons of old code for no good reason. OTOH, the old tools written in win95's win32 or in x11's xlib (or posix, mother of all stable APIs), still work 20 years later. This means you can focus on improving instead of rebuilding.
Don't get me wrong: Backwards compatibility is a cost. But I'd rather have to pay it once, centrally, instead of distributed over all applications. Very rarely you can deprecate and fix a small part. But in general, libraries are the ground upon which applications are built. That ground should be stable.
BTW, I fear the damage wayland will do to the linux ecosystem.
UWP meant dropping support for old Windows, you can't even access the filesystem (open a playlist file? Unzip an archive? Open subtitle files? Nah), and you can only publish on Windows Store which nobody visits. It didn't catch on.
I feel for the developers at MS building a platform nobody would use. Until this announcement.
Among other things UWP didn't allow PAGE_EXECUTE on the memory mapping calls, meaning that JITs were disallowed. That's pretty core to general purpose computing in a real way, IMO.
(Disclaimer, work for Microsoft - made LuaJIT run on UWP in my free time, this definitely works :) )
[1] - https://docs.microsoft.com/en-us/windows/desktop/api/memorya...
Maybe to limit sandbox attack surface? Or working around KnownDLLs pinning perhaps? But even then, why not provide forwarding stubs instead of forcing all UWP devs to write their own or #ifdef spam? Time constraints before shipping Windows 8?
This style of API churn - not limited to VirtualProtect, and often with only newfangled COM C++/CX bindings for replacement APIs - definitely put me off UWP App dev, and I just don't see what the upside was supposed to be for anyone. Lots of extra work, mostly just to lose functionality.
Fun fact: your UWP app also links in gdi.dll and user32 as well.
Also, I remember deploying some code to a surface Hub, my C# build for that took 40 minutes to an hour. Not fun.
On the other hand, it did make me learn some web development to do UIs.
(Excluding the platform-holder’s own JIT’s, of course.)
DVD players, microwaves, and even game consoles are single-purpose computing devices, designed to do one thing. I'm having a lot of trouble putting iPhones and iPads in that category. As terribly locked down as they are, they're still very much "general purpose".
And BTW, I think Microsoft's goal was quite clearly for UWP to be as locked down as iOS.
> Regardless, the idea that consumers would shift their application acquisition behavior just because Microsoft wanted it was a poor idea that ought to never have been implemented in the first place. It’s good to see the company catching up to the place its customers never left.
That just about sums it up for me. Good on Microsoft, I guess.