News for hackers. Stuff that matters.
Re:Microsoft gives up on Windows 10 Mobile by maxxxxx on Monday October 09, 2017 @03:35PM (#15436762)
Same here. I can't even imagine how 3rd party tool developers feel. Let's say you have a grid component. In the last few years you had to do a Winforms and several XAML versions( WPF, WinRT, Silverlight and now UWP). The XAML look superficially the same but all have their set of weird limitations and bugs. I am definitely done with Windows desktop.
Re:Microsoft gives up on Windows 10 Mobile by bnolsen on Monday October 09, 2017 @04:00PM (#15436970)
Wow, imagine someone trying to make this statement 15 years ago...things have sure changed.
Re:Microsoft gives up on Windows 10 Mobile by cjsuk on Monday October 09, 2017 @05:23PM (#15437583)
Indeed. 15 years ago I kind of enjoyed it. Win32/winforms is still less horrible than the web these days.
Re:Microsoft gives up on Windows 10 Mobile by pcwalton on Monday October 09, 2017 @07:28PM (#15438242)
Win32 is in no way less horrible than the Web. Win32 doesn't have any device-independent layout, at all. Forget about handling HiDPI sensibly. RegisterClassEx/CreateWindowEx are incredibly verbose. WndProcs are a mess compared to individual event handlers. The mishmash of COM and inconsistently named C APIs is terrible. COM involves a monstrous amount of boilerplate. COM requires you to deal with apartment threading, legacy that exists primarily for compatibility with Visual Basic 6, which is of course no longer supported but still saddles the platform. Creating an OpenGL context with WGL, with the "false context" stuff, is a nightmare compared to WebGL. Memory management is a giant pain to deal with. The GDI APIs are archaic and slow. I could go on…
Re:Microsoft gives up on Windows 10 Mobile by pjmlp on Tuesday October 10, 2017 @03:26AM (#15439980)
Yet I would rather take all of that than dealing with Frankenstein CSS/HTML/JavaScript programming, while making sure it is pixel perfect across all browsers and not making use of the OS features and computer hardware that made me buy it in first place, e.g. WebGL 2.0 on DX 12 GPU.

Most of the issues you mention are solved in .NET, WPF and UWP. COM is a breeze to use in Delphi, MFC/ATL, .NET, C++/CX.

Windows is much more than just Win32.

Apparently Windows event system is so bad, that the younger generation re-inventing it in the form of React.

Also Cocoa, UI Kit, Android and Qt are all better solutions than Web.

Re:Microsoft gives up on Windows 10 Mobile by oceanswave on Tuesday October 10, 2017 @07:40AM (#15440949)
Despite the populist mindset that programming the web is a shitshow, it’s really not. Tooling these days is pretty incredible and the ecosystem is pretty great when you are found needing - issues get fixed, PR’s get accepted. It’s a much better experience than a 20 year old environment where everything is set in stone, yet bugs and inconsistencies still exist.

The tools and software for traditional windows app programming have long been neglected and the newer ones throw you into a niche — and still don’t provide a cohesive story.

I would much rather pick up react and produce a working product in less time it takes to troubleshoot XAML databindng and styles, for instance. If my windows app needed something like a map component, I can drop one in my macOS, iOS app - the same one baked into the os - and on the web have an assortment of components to choose from — with WebGL support baked in.

Also, there isn’t such thing as a DX only gfx card - it happily runs OpenGL games and apps just fine

Re:Microsoft gives up on Windows 10 Mobile by pjmlp on Tuesday October 10, 2017 @08:02AM (#15441056)
> Tooling these days is pretty incredible and the ecosystem is pretty great when you are found needing - issues get fixed, PR’s get accepted. It’s a much better experience than a 20 year old environment where everything is set in stone, yet bugs and inconsistencies still exist.

Try to make a CRUD SPA as fast as a Delphi one, including a nice L&F by default, just with mouse clicks and setting a few properties.

> Also, there isn’t such thing as a DX only gfx card - it happily runs OpenGL games and apps just fine

This statement means you don't have much experience in graphics programming, at least regarding the fun of dealing with drivers and how OEMs classify GPU features.

So if you prefer I will rephrase it as "WebGL 2.0 on OpenGL 4.6 GPU".

Now feel free to compare what it means in GPU features.

Hint, WebGL 2.0 is basically OpenGL ES 3.0, which maps to OpenGL 4.3.

https://www.khronos.org/developers/reference-cards/

Re:Microsoft gives up on Windows 10 Mobile by pcwalton on Tuesday October 10, 2017 @12:45PM (#15443248)
> Try to make a CRUD SPA as fast as a Delphi one, including a nice L&F by default, just with mouse clicks and setting a few properties.

Use Bootstrap for the look and feel. The browser's painting stack is far faster than Delphi's '90s style GDI, so you don't have to do anything there.

Re:Microsoft gives up on Windows 10 Mobile by pjmlp on Tuesday October 10, 2017 @01:43PM (#15443771)
You love to use the GDI example against native devs, a Win16 technology, long superceded by better alternatives on Windows.

I only used Delphi as an example, because in 2017 the Web is yet to produce anything that approaches it, even Web Components are yet to be fully done.

A RAD tool is much more than just rendering widgets, a simple CRUD application should be doable just by clicking and setting properties, including talking to the database backend.

Speaking of WebComponents, when will Mozilla support HTML Imports?

Re:Microsoft gives up on Windows 10 Mobile by pcwalton on Tuesday October 10, 2017 @12:43PM (#15443232)
> Yet I would rather take all of that than dealing with Frankenstein CSS/HTML/JavaScript programming

I wouldn't.

> Most of the issues you mention are solved in .NET, WPF and UWP.

I wasn't talking about .NET, WPF, and UWP. I was responding to the claim that Petzold-style Win32 apps are better than the Web.

> Apparently Windows event system is so bad, that the younger generation re-inventing it in the form of React.

Huh? React is not WndProc.

> Also Cocoa, UI Kit, Android and Qt are all better solutions than Web.

Disagree.

I've written the same WebGL app twice now, once in Cocoa/Objective-C and once on the Web, with a TypeScript and Webpack stack. Once I got over the initial hump of learning the technology, it was a much nicer experience than my experience with Cocoa. TypeScript is a better language for UI development than C++, Java, or Obj-C, and the fact that the browser implementation of WebGL smooths over the issues with OpenGL on Mac was a huge relief.

Re:Microsoft gives up on Windows 10 Mobile by pjmlp on Tuesday October 10, 2017 @02:13PM (#15444017)
Petzold-style Win32 apps were already out of fashion on Windows 95.

Apparently others with better knowledge of Web than me, think otherwise about React vs WndProc.

https://bitquabit.com/post/the-more-things-change/

As for your WebGL example, I would have used Swift with SceneKit instead, regarding productivity in native development on Apple systems.

Re:Microsoft gives up on Windows 10 Mobile by OldSchoolJohnny on Tuesday October 10, 2017 @10:48AM (#15442233)
You're assumptions are outdated
Re:Microsoft gives up on Windows 10 Mobile by pjmlp on Tuesday October 10, 2017 @01:45PM (#15443787)
Please provide a link to a Delphi like tool for the Web, including components for backend comunication.
Re:Microsoft gives up on Windows 10 Mobile by meredydd on Tuesday October 10, 2017 @02:40PM (#15444251)
Allow me to present: https://anvil.works/

Visual interface editor? Check.

Component-based UI model? Check. (It's all in Python, everything is an object, very Delphi-ish.)

Back-end communication? Check. (One-line RPC to call functions on the server.)

Database integration? Check.

(The built-in datastore runs on Postgres, and lets you do things like delegate views on a table directly to the client. Mix this with data bindings, and you can create CRUD apps with tiny amounts of code. Or you can start importing the appropriate Python libraries and go to town with your favourite DB.)

Re:Microsoft gives up on Windows 10 Mobile by pjmlp on Tuesday October 10, 2017 @04:17PM (#15445009)
Thanks for proving me wrong, Anvil actually does look quite good.
Re:Microsoft gives up on Windows 10 Mobile by cjsuk on Tuesday October 10, 2017 @02:36AM (#15439833)
That sounds exactly like the state of affairs the moment you pick a JavaScript framework, which was my point.
Re:Microsoft gives up on Windows 10 Mobile by mobilio on Monday October 09, 2017 @08:00PM (#15438351)
Yeah... because compatibility here is MUST.
Re:Microsoft gives up on Windows 10 Mobile by bonesss on Tuesday October 10, 2017 @05:18AM (#15440460)
What I find missing, compared to back-in-the-day, is the _maturity_ of that ecosystem.

Win32 has warts on warts, but around the year 2000 the MS development space was a monoculture and the COM-to-GUI story was increasingly mature and integrated.

.Net came along and, on the one hand, positioned MS to be a whole different kind of tool provider (F# on dotnet core on linux in kuberernetes is niiiiice), but they also lost a few hundred man-years worth of local improvements to their platform. This without providing a credible replacement for Win32 ensuring it would be around for decades.

That fracture fractured again with XAML, again losing tons of maturity, and then fractured even further with the UWP/Silverlight/Metro/WhoKnows. I've never been a bigger fan of MS's product line, but can't justify or defend using much on the client other than html for fancy things or standard winforms for deployability.