News for hackers. Stuff that matters.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Monday September 05, 2011 @11:01PM (#2963932)
Except that Apple's and 3rd-party Mac code is much much more portable. They can switch from x86 down the road in a way that Windows can not.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Monday September 05, 2011 @11:34PM (#2964011)
Please explain. Most recent Windows code is written in C# which makes portability easier but even for C/C++ code as long as the api level compatibility is maintained ( and no one frankly is better than Microsoft at that game) Windows code should be no less portable.

It might be an issue of scale but not portability. Much less software exists for Mac than does for Windows.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by mitchty on Tuesday September 06, 2011 @01:25AM (#2964268)
Well for one, Apple transitioned from ppc->intel REALLY well with Mach-o binaries and Rosetta.

Using a vm/jit isn't the only way to handle architecture changes. In addition it doesn't remove the need to handle kernel changes/etc... that the vm itself runs on. Nor does it mean that the vm and all of its underlying assumptions are valid on a new instruction set. It took java a fair amount of time to run fast on multiple architectures, I doubt .NET will fare any better.

When Windows actually manages to (again, it ran on alphas/mips/ppc and something else back in the 4.0 days) run on more than one platform I might partially buy into .NET being "portable" across windows releases and architectures. But I suspect a fair amount of things will have to change or move to new apis. Similar to Microsofts go it alone 64bit model in Windows, another architecture in the fray will force things into spaces they didn't originally expect.

Basically, I don't trust anything coming out of Microsoft until they deliver the goods. Apple has shown they can handle multiple platforms transparently, and without the need of a vm/jit. Which can help out things like battery life with caches/etc...

http://en.wikipedia.org/wiki/Mach-O http://en.wikipedia.org/wiki/Fat_binary#NeXT.27s.2FApple.27s... http://en.wikipedia.org/wiki/Rosetta_(software)

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by FxChiP on Tuesday September 06, 2011 @04:18AM (#2964667)
You keep saying "without using a vm/jit" like it's something Apple did, but in reality, Rosetta is a JIT and not every Mac OS X binary for PPC was a Universal one (which, incidentally, caused a few problems when Rosetta's translation wasn't up to par, either).

Also, .NET is "portable" not just across Windows releases, but through the work of Mono large portions of it also work on Linux, and on other architectures via Linux as well -- so presumably, anywhere Mono or Microsoft's official .NET are compiled, .NET will run so long as no weird x86- or binary-specific things (like P/Invoke) are done. There are other problems with Mono, however, but those are for another discussion.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by mitchty on Tuesday September 06, 2011 @09:21AM (#2965461)
This is true that Rosetta is a JIT, but my point was more that the Mach-O binary format allows for multiple architecture binaries, therefore somewhat obviating the need for a jit.

The only use Rosetta served was running cross architecture binaries.

Mono also doesn't run the full .NET stack, e.g. think the Netflix drm components, so I can't quite consider it cross platform. Cross platform windows wise sure, but that isn't saying much.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Tuesday September 06, 2011 @01:41AM (#2964307)
From CES2011

The technology demonstration included Windows client support across a range of scenarios, such as hardware-accelerated graphics and media playback, hardware-accelerated Web browsing with the latest Microsoft Internet Explorer, USB device support, printing and other features customers have come to expect from their computing experience. Microsoft Office running natively on ARM also was shown as a demonstration of the full depth and breadth of Windows platform capabilities on ARM architecture.

I dont think there is reason to doubt Microsoft on API compatibility which i s what this ultimately boils down to. Windows recently ran on IA64 BTW. .NET helps but Win32 in itself is proven enough to need little more than just a recompile for porting.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by mitchty on Tuesday September 06, 2011 @09:22AM (#2965464)
I was thinking more along the lines of C/C++ WIN32 api and things like 64bit calling conventions etc... that might not remain quite the same on ARM.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Tuesday September 06, 2011 @12:32PM (#2966142)
There is no such issue. You dont seem to understand what you are talking about. Look up ABI. They couldnt possibly port software as big as the OS itself and MS Office / Oracle DB to Itanium without having stable C/C++ and Win32 ABI/API.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by mitchty on Tuesday September 06, 2011 @05:36PM (#2967388)
Ok fine I'm a retard.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Wednesday September 07, 2011 @12:02AM (#2968300)
Yeah everybody knows there's no way a C API from Microsoft could ever be a leaky abstraction. Lol.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by mitchty on Wednesday September 07, 2011 @01:37PM (#2970497)
Or that there's no way the win64 calling conventions weren't influenced by win32.

But in fact their 64bit abi on x86_64 was in fact derived from their 32bit calling conventions.

http://stackoverflow.com/questions/4429398/why-does-windows6...

Correct me if I'm wrong, but there is an exact case of where 32bit windows on x86 directly influenced 64bit. This is what I'm talking about when I talk about other 64bit platforms may not behave the way Microsoft expects. And this directly influences c/c++ register allocation.

Though I will state, what Microsoft did for its fastcall on 32bit windows and 64bit is rather ingenious in that the same call can work on both platforms.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Wednesday September 07, 2011 @02:18PM (#2970703)
Right, being mainly an extension the x64 is hugely influenced by x86. The 64-bit Win32 ABI is obviously influenced too, to the point that on x64, 32-bit process is largely just a native 64-bit process with 32-bit modules loaded.

Most of the time, the differences are hidden by abstractions in the Win32 C API. The calling conventions do a pretty good job of this (especially the 64-bit ones). Still, there is a nontrivial amount of software that does need to use a few (or many) assembly instructions or interact with the CPU in low-level ways. Windows is a relatively friendly OS for applications that rely on non-standard behavior.

You can't "just port" an antivirus package. Certainly many malware samples won't run on ARM either, but many will (like .vbs). It will take time to sort all that out. In the meantime, many companies simply won't deploy Windows without AV.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Tuesday September 06, 2011 @10:29AM (#2965709)
There really isn't that much C# in commercial software, even from Microsoft. You might find an accounting package here or there, but first-tier apps are almost entirely C and C++ under the hood.

For example, MS Office and IE are still used primarily in 32-bit mode on 64-bit systems.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Tuesday September 06, 2011 @12:40PM (#2966170)
It doesn't matter how much software exists or is in use. We are talking about portability here. For. Net it is is not an issue at all and for Win32 C/c++ only a recompile is necessary. Oracle DB exists for Windows IA64 and office does for Arm. Those are proofs that like any other sane platform portability is not a big issue for Windows.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Tuesday September 06, 2011 @01:17PM (#2966318)
I think you don't have any idea how much it costs to port a major application like that.

Even if everything goes smoothly with the codebase, just setting up another build environment for something like ARM means installing a new compiler version and toolset. Many (or most) dev shops are stuck on 6-10 year old compilers.

You also multiply the QA regression cycle costs by some incremental factor.

There are lots of applications small and large, that to this day, don't even ship a 64-bit build.

Yes, there are some applications that have been ported. Even if you were to come up with a not-short list of them I would submit everything else in the world that has not.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Tuesday September 06, 2011 @02:13PM (#2966557)
I think you are confused as to what exactly we are debating here. Porting costs are real - somehow Mac software isn't magically a free port to ARM. The porting costs depend on code base, complexity, various other things. That's however not what we were debating - the debate was Microsoft has never done it and so it might be hard for them. The counter point I was making was Microsoft has been there and done that and there is no reason to believe Windows software is any harder to port to another platform than Mac Software except for the scale part - Windows just has a ton of more complicated software than Mac has had and porting "toy" Mac apps will be less of an effort than say porting a big Enterprise Windows app. However it isn't fundamentally easier or harder.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by ianferrel on Tuesday September 06, 2011 @12:27AM (#2964114)
Apple's done two successful architecture changes on their desktop OS (68k->PPC->x86). Microsoft's done none.

Traditionally, MS has been very good at maintaining compatibility through different versions. Maybe they'd make an architecture change easily, but they haven't had to do so yet.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Tuesday September 06, 2011 @12:49AM (#2964176)
They have always supported multiple architectures - Win NT ran on Alpha, CE had ARM port, they had IA64 version of Windows server. Technically x86 to x86-64 also is a architecture change and they sailed pretty well thru it given most shipping Windows version today is 64 bit.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Tuesday September 06, 2011 @08:24AM (#2965250)
It's true!

I even know someone who's seen a non-x86/64 Windows system!

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by blinkingled on Tuesday September 06, 2011 @12:28PM (#2966117)
I am sure it doesnt exist as you sir marshray havent seen it. I must have just woken up from a dream where Windows machines running on Itanium also ran Oracle database ported to Windows Itanium.
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Tuesday September 06, 2011 @01:18PM (#2966329)
You know him too?!

Sorry. I concede that there is a major application or three that runs on Itanium. For now. Microsoft is dropping the platform.

As for ARM all I'm saying is we'll wait and see.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by wvenable on Tuesday September 06, 2011 @02:10AM (#2964375)
Microsoft already has Windows 8 and Office running on ARM. The fact is, in both cases, supporting a different processor is a recompile away (with edge cases failing in both cases). Windows NT and NeXTStep were both supporting different processor architectures at the same time.

The big different is not technology, it's culture. Apple will happily make all your old software obsolete as long as it doesn't seriously interfere with them selling new hardware. Microsoft has the much harder job: they need businesses to buy OS licenses (that is what they sell) and those businesses have a lot of old crappy expensive software that must continue to run to make the sale.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by marshray on Tuesday September 06, 2011 @08:12AM (#2965220)
Yes, I know Microsoft has Windows and Office running on ARM.

Wake me up when 50% of the shrinkwrapped Windows-logo compliant and hardware software sitting on store shelves runs on it at native speed.

Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by rimantas on Tuesday September 06, 2011 @11:43AM (#2965964)
Fun fact: Apple had OS X running on x86 since the first release (iirc Jobs dicslosed this announcing the transition to Intel processors).
Re:Ultrabook: Intel's $300 million plan to beat Apple at its... by wvenable on Tuesday September 06, 2011 @08:48PM (#2967885)
That's less interesting when you know that NeXTStep (the direct predecessor to OS X) was actually released for x86.

Fun fact: Windows NT was released for PowerPC.