4 ms·
> c# is not native code Correct. C# does not ahead-of-time compile to hardware machine code (e.g. x86). > WPF is not a native UI How do you classify "native"
by paulddraper 10y ago
> c# is not native code
Correct. C# does not ahead-of-time compile to hardware machine code (e.g. x86).
> WPF is not a native UI
How do you classify "native" vs "non-native" UI?
- pjmlp 10y agoSure it does. Ever heard of NGEN, Mono-aot, .NET MDIL, .NET Native?
- flukus 10y agoTo what degree are they native? I wouldn't consider something native just because it bundles the VM into the exe.
- pjmlp 10y agoTo the same degree as C is native, there isn't any VM doing JIT compilation. All straight sugar free Assembly instructions. Now if you mixing the notions of VM and runtime, even C has a runtime called crt0 on most UNIX systems.
- flukus 10y ago> Now if you mixing the notions of VM and runtime, even C has a runtime called crt0 on most UNIX systems. I was mixing them up. The line seems be kind of blurry though once you start embedding garbage collectors though, then again the GC could just as easily be in an external library.
- dleslie 10y ago> How do you classify "native" vs "non-native" UI? Not OP, but presumably WPF can be considered non-native because it relies upon the .Net stack.
- flukus 10y agoNot just .net (I think it's all c underneath), I'd consider winforms with c# to be a native UI (but not native code) because it's just a .net wrapper around win32.
- LeoNatan25 10y agoIs UWP UI "native"?
- flukus 10y agoYes, although the windows desktop situation is such a clusterfuck that I could make a case that it's not ;) It all depends on if you consider the full desktop or the metro interface to be the native one.
- flukus 10y agoA native UI is one that uses that platforms (or desktop environment) native toolkit, that's win32 on windows, qt on KDE, gtk on gnome and cocoa (or whatever it is today) on Mac. WPF is it's own toolkit built in directx, it's as native as swing. WPF sits at the same abstraction level as most games, would you consider the main menu in GTA to be a native one?
- pvg 10y agowould you consider the main menu in GTA to be a native one? Does a WPF menu (and WPF-based apps in general) integrate with the systemwide conventions and settings for things like keyboard shortcuts, default font, etc? Is it a first-class UI toolkit for the system? My impression was it is supposed to be, in a way GTA's UI (or Swing) is not.
- flukus 10y ago> Does a WPF menu (and WPF-based apps in general) integrate with the systemwide conventions and settings for things like keyboard shortcuts, default font, etc? About as well as swing ever did, no where near as good as Qt does, I think we'd all agree qt is not the native UI of windows. Then again, it is hard to judge. Not a lot of win32 apps seem to follow system wide settings either, even the MS ones.
- pvg 10y agoAbout as well as swing ever did Really? It's just not the impression I get, granted it's been a while since I've used Windows for anything other than to, well, play a bit of GTA. I remember paint.net being a thing (seems it's still around) and it looked and behaved like a Windows app. Qt apps look instantly recognizable and fugly to me on any platform. It's hard to believe that WPF apps had or still have, say, the font-rendering problems Swing apps had or were missing access to affordances like control over the tray icon, etc. The reason I'm skeptical is that WPF was very much intended to be a first-class Windows-specific ui toolkit. You're telling me it's worse than cross-platform toolkits with all of their necessary design and implementation compromises. Edit: Oh! I figured out where I was confused. WPF and Winforms. Not the same thing.