And so it begins:
Just hours after announcing the migration of the Mac platform to Intel CPU's, Apple released the Universal Binary Programming Guidelines (PDF, 1.5 MB). This document points out the changes that must be made to code to ensure it runs on PowerPC and Intel-based Macs. One warning is of particular interest to Java developers, as it contains a warning for combining the java.nio package with JNI:
The I/O API (NIO) that was introduced in JDK 1.4 allows the use of native memory buffers. If you are a Java programmer who uses this API, you may need to revise your code. NIO byte buffers have a byte ordering which by default is big-endian. If you have Java code originally written for Mac OS X on PowerPC, when you create java.nio.ByteBuffers you should call the function ByteBuffer.order(ByteOrder.nativeOrder()) to set the byte order of the buffers to the native byte order for the current architecture. If you fail to do this, you will obtain flipped data when you read multibyte data from the buffer using JNI.
Via java.net/mac sorry, no permalink available
Damnit. And I just started using NIO for my byte processing needs (and my ipod4j API :P).
I am telling you, I don't care what Mathmatica runs on, this whole endian issue is going to be a big deal. And I don't care what Xcode does, until the GCC folks and people like Metroworks get the bugs worked out of compilers, it is going to be a while before this whole Intel thing is a Good Thing™.
Anybody remember what the world was like in 10.0.0? Apple is basically sending the world back to that page for another year, maybe two.
Comments
RE: Macintel: NIO considered harmful
This is also an interesting thing to point out,.."Apple also confirmed that they would not stop customers from running Windows on the Intel-based Mac, although the Mac OS will not run on another PC."
RE: Macintel: NIO considered harmful
"although the Mac OS will not run on another PC"
Good luck with that, maybe they wont officially offer it (cant pick OSX at Dell, though that would be very cool) but it will happen.
RE: Macintel: NIO considered harmful
And for the damn record Big Endian is better dammit. The big end of the egg is OBVIOUSLY better to crack first!!!!