284 points · by chris-at · 12y ago · 183 comments
update: I have to add other news just announced. With winJS now we can target also xboxone, ios and android device And also the full framework is opensource under apache license
update2: winJS on github https://github.com/winjs/winjs
You can even link to and reuse that code from languages such as: C++, C#, Java, Ruby, Perl, Python, assembler, lua, scheme, lisp.
The future is gonna be so 1970.
Have you ever done C development like this, ever in your life?
I did. Between 1994 and 2003, we had applications run across Windows, HP-UX, Aix, DG/UX, GNU/Linux, BSD, Solaris.
An awful mess of #ifdefs, compiler specific behaviours, lack of POSIX compliance, OS specific extensions.
This on the server side, and lets not forget there are ZERO portable standards for writing portable GUI code in C.
Finally, C shouldn't never had become mainstream given its lack of safety, that we are still suffering in 2014. There were better systems programming languages in the late 70's, they just weren't at Bell Labs.
Everything else either implements a 3rd GUI, Swing, et al, or looks weird on a few of the platforms, GTK.
Oddly enough the best cross-platform lib I've seen, Qt, is written in C++.
C certainly isn't the be all and end all, however, it's far more portable, reusable, and linkable than C#.
If you try and add a "JumpList" to a program in C, you end up using Windows-specific extensions / APIs that make it no longer crossplatform. C# + Low-level Win32 APIs is closer to the OS than the generic C-libraries designed on a DEC PDP-11 40 years ago.
http://windows.microsoft.com/en-us/windows7/products/feature...
Besides, your typical C-program will not understand SEH Exceptions or DLLs (concepts that are extended as part of the "Win32 Runtime". Its not like Win32 is POSIX compliant ya know...
Last time I used Windows (several years ago), there were always apps that needed to download and install the latest version of the .NET runtime... - is that still a thing?
Citation please. AFAIK, there are significantly more C libraries than C# libraries.
Actually this is not true. I've just been tasked with maintaining some C# code that is used as a business tool.
No problem, I thought, I'll just use Xamarin and Mono on my Mac. I made progress, but as soon as the C# code went to use the OleDbConnection stuff (to write to an MS Access database and make Excel files) it threw a DLLNotFoundException. So now I have to find a Windows machine to do the rest of my debugging.
Seriously though: not only is C# a much easier language to learn which includes features and libraries that most developers expect from a modern language, that probably wasn't even what gum_ina_package was "Wow"ing at.
To me, the point is that the barrier to entry for writing apps across all platforms has now been lowered for C# developers - a group of developers, by the way, which is numerous.
Just what my iOS app needed, more shitty Windows devs, and dependency injection, or whatever the latest enterprise bullshit is. Why write code that 100 to 200 lines of code that actually work when you could make a giant UML diagram, a bunch of flow charts and write unit tests all day because everything you've ever heard of needs to be an object with a class hierarchy.
The Linux kernel doesn't have unit tests, DI, TLA, etc and works and every ASP.NET app you've ever seen has loads of them yet can barely accomplish anything before crashing / doing something weird?
Customers are gonna be fucking pumped when they find out we've added dependency injection and millions of lines of code that are pointless and unnecessary. Why release memory when you're done with it? Just don't do anything wave your hands and voila you're process is using 200 MB instead of 2 MB, yet it claims to have a 'garbage collector'
Have you ever considered that some people choose the languages and platforms they work with specifically to avoid the anti-patterns commonly found on the platforms and languages they refuse to work with?
There isn't even a Boost for C.
Honestly, I'd be surprised if you actually knew C with a statement like that.
You end up at exactly the same point you did with C, except now you have 100-500 MB of garbage to haul around with your application.
Cross platform dev and deployment is hard, Java and C# just push the work somewhere else while adding garbage that gets in the way.
If you want to make GUIs for iOS,Android,Windows,OSX, and Linux use HTML/CSS/JS.
If you want to process data on iOS,Android,Windows,OSX, and Linux use C/C++, using only the std C/C++ libs, or a portability library.
Total cross-platform is a pipe dream. Just like Java or more recently HTML5/JS cross-platform mobile apps, they are almost always a half-baked solution compared to proper native OS apps. The UX and performance will never be consistent enough to make it better than just investing in native development (Note I'm talking about software, not simple content consumption apps where HTML5 in browser is fine).
Having primary operating system -> tablet -> phone is a good enough goal. They should focus 100% and make it as stable ass possible.
Now from a business persperctive would it make sense? i dont know,Microsoft business relies heavily on Windows. But hey,anything's possible.
Problem with mono is ,mono or not,.net dev without VS kind of sucks,and VS is Windows bound.
Now you'll be able to implement them with a native experience, without significantly increasing your costs.
What about games? I've got a load of games on the iPad, why can't I play them on my (hypothetical) touch-enabled MacBook Pro?
Why do I have to pay twice for everything?
This is just what Sony have done with Cross-Play - customers love being able to buy a game once and then be able to play it on their PS3, PS4 and Vita.
Microsoft apps are written using the MVVM (Model View, View-Model) framework. The idea here is that you would share almost all of your model code, and really only rewrite the view layer (XAML) per platform. You're also allowed to share the exact same views across platforms, but it's unlikely that will be a good experience for users, given the differences: screen sizes, input modalities, etc.
Further, the Phone implementation of WinRT is a subset of the tablet's, so sticking to the WinRT API alone isn't enough. Complicating matters further, the phone lets you actually use a Win32 subset which is not allowed on tablet.
This (appears to atleast) unify everything towards more of a write once, run on all windows platforms world.
The true boundary between mobile and desktop computing is numeric computation. You don't want to mine bitcoin or your stock market rocket science on a mobile device, mainly due to burning through the battery in a trice.
It never made sense for things called Windows not to have a unified pool of apps. This is a significant improvement.
The other 95% will benefit from being freed from their veal cubicles and looking up at human faces while walking around.
As for mouse vs touch etc. I agree, I think. Microsoft should have made a touch OS that isn't Windows. They might get Windows fully evolved to span that gap about the time Android takes away the enterprise business.
They put on display some pretty great tooling for sharing common code across platforms and tuning the experience per UI. With decent cloud integration, there's a smoother on ramp for C# devs to get to wide audience apps with less dev resource than most any other dev env I can think of.
I heard they rebuilt the TCP/IP stack so it's not user land 32 bit driver anymore.
Any ideas if/when they'll modernize NTFS? Right now it's a race to the bottom to who has the worse FS, HFS+ or NTFS. WinFS or ZFS on OS X would be a godsend.
What about the registry? Any idea if they'll make that easier to manage for regular people? Am I still fucked if it corrupts?
What about sunsetting Win32? Or improving the driver model?
They're starting to get it on the UI side, but the reason why I use Mavericks as my personal machine and work on a LAMP stack has less to do with how useful or pretty the start menu is, and more to do with the godawful internals of Windows. Or have we just resigned ourselves to a crappy OS internally that we've all just gotten used to?
The TCP stack hasn't been a 32-bit driver since XP.
NTFS has been modernised already: http://en.wikipedia.org/wiki/ReFS
The registry is fine - it's people pissing around in it that break it.
Win32 - haven't touched it for years. Driver model: not my problem.
Mavericks is a crime compared to windows 8.1. I use both, regularly. It's virtually impossible to use efficiently with a keyboard unless you have twisted mutilated hands to hit meta keys galore and half the apps don't actually survive more than 2 minutes without crashing.
1) Keyboard shortcuts are fine, if u use a OSX all day every day you will think Windows shortcuts are bad. That and you can edit pretty much every single shortcut in OSX if you are really that offended by them.
2) If your apps are crashing every 2mins (or even more than once a week...) your computer is f'd.
The lack of disk quotas, deduplication, and named streams (and more) mean that it's not exactly a general-purpose filesystem, at least as far as standard Windows Domain deployments are concerned.
I suspect they'll address all of these issues eventually, and look forward to it, but as it stands you unfortunately can't just format everything as ReFS instead of NTFS and expect that everything will work. Unlike with ZFS.
netsh winsock reset
as a regular troubleshooting step when diagnosing network connectivity issues. I was long under the impression that the reason why that kept happening was that the NT kernel didn't have a robust TCP/IP stack of its own and was reimplementing the BSD sockets via a translation layer that was easily hooked into by godawful apps that felt like putting whatever it wanted there.
ReFS wasn't on my radar, and that's my fault.
The registry isn't fine. As of Windows 8 it can still hose a machine by going corrupt. The concept of having a centralized application database for application state and other metadata isn't a bad one, the current implementation absolutely sucks. It goes corrupt and the entire machine is rendered useless. Granted, the current solution is to just back it up and hope none of the backups corrupt either. Corruption doesn't happen from just people manually messing with it, corruption happens from a lot of apps reading and writing from it at the same time. A lot of apps not even bothering with good practices in how to handle it either.
As far as Win32 and the driver model not being your problem... When crappy apps written in 20 year old APIs and devices using crappy drivers crash your machine, then it absolutely IS your problem.
I can't speak to your use of OSX with a keyboard. However, given my choices, I'll take weird metakey combos over, "Is my TCP/IP stack going to eat itself this week?" Besides, emacs uses nothing but crappy and bizarre meta key combos and it's still a thing. So.
http://blogs.msdn.com/b/b8/archive/2012/01/16/building-the-n...
I'll believe it when they ship it.
EDIT:
Retracted. Looks like it's actually going to ship with Win8.1
Yes they are. Windowed Metro-apps, and legitimate Start Menu with decent Metro live tile integration (and a shutdown button)
I was hoping that they'd have jumplists back on the startmenu, but lets see what they come up with...
This would actually provide an easy path for developers to get into the Windows ecosystem while ignoring the whole market share issue. Combine first class integration with an awesome IDE (Visual Studio), and frankly way better tooling than Eclipse this would be a pretty compelling reason for me to use Xamarin, and by extension have a Windows run target for my app.
Disclosure: written more XAML than I'd care too.
http://www.zdnet.com/windows-8-developers-are-shunning-winjs...
Fat binaries aren't needed to support pointer arithmetic or any other C++11 features in a cross-platform binary. LLVM bitcode supports pointer arithmetic. I also believe .NET bytecode supports pointer arithmetic. I'm not sure what other features you thought would require some kind of fat binary.
"write once, run anywhere"
(for those who don't get the reference: https://www.youtube.com/watch?v=bGX7N-CoaPo)
Dammit, there goes my resistance. Which apparently is futile. I'll show myself out.
If this does work its a cool things. Just microsoft needs to make c# and the .net framework open source and actually cross platform. Mono is a non starter for a lot of places.
Then fix and start again.
And everything I wrote is already happening (actually, it's been happening for a while). Just try any well-built W8 app in different screen sizes or snapping configurations. ;)
I can use their technology to develop apps for other platforms, but I cannot use their technology to run those apps. That requires having the other platform.
It would be nice if I could not only develop cross platform apps for iOS, Android, and Windows Phone, but I could also run them on their Windows Phone platform. I would buy a windows phone if it could do that.
Given the current state, why would I bother making content for windows phone? Why use C# if it's a second class citizen on the majority platforms? Why even learn it if the only thing it's good for anymore is Web API?
Windows could be the universal platform but instead they are still functioning like it's something they could monopolize. Those days are over.
Not sure why you've been downvoted for stating facts. So I +1'd.
If all it does is run on all Microsoft platforms, from Windows Phone to XBoxOne, it's just a "Microsoft" app. If Microsoft decides to call what the Xbox runs "Windows" they'll become... Windows apps...
Sadly the other platforms died so the portable executable is really just the stuck executable.
1. The xbox 360 was released in 2005. This was essentially the first Microsoft console to run 'apps,' and those had to be architected specifically for the console.
2. The iPhone was years away in 2005. Phones ran shitty little apps that had to be architected specifically for the phone.
3. The iPad was years away. Microsoft tablets just ran XP. The idea of the iPad as a "bigger iPhone" was mocked to no end when it was announced. People thought they wanted OS X on a touchscreen. Microsoft would have thought the same thing.
4. gMail has just been released. The idea of a true "web app" required remarkable vision and foresight by itself. Additionally, web apps had to be architected specifically for the browser (seeing a pattern?).
Even if Microsoft had seen 5 years into the future and predicted all these changes, the platform they would have created in 2005 wouldn't have had anything to run on.
Similarly, the idea of web apps taking over everything was not new. Microsoft was acutely aware of that, since that was Netscape's big idea (also Java was in theory the same threat - write once, run anywhere, make Windows unimportant). Again, all in the 90s. This is the most fundamental answer as to why MS didn't do this stuff before. Not because of a lack of foresight, but because their foresight was good enough to allow them to identify it as a threat to their monopoly.
Touch screen phones/tablets I agree were less obvious predictions, but even if MS did figure that out early on, it wouldn't have changed their motivation to fight back against Netscape and Java and similar technologies.
But now the tables have turned...