There's a lot info out there about Cocoa development on x86, universal binaries and all that, but what about Ruby, Perl, and Python. Anybody have any issues pop up with any of the scripting languages on OS-X86?
r.m.
r.m.
-
Re: OS-X86 & Scripting Languages
Sun, January 15, 2006 - 10:06 PM
Roger,
Normally, scripting languages aren't compiled, so, for instance, a Perl script will run (unless it depends on platform-specific modules / filesystems / etc.) just as well on an Windows box as it does on a PowerPC Mac as it does on an Intel Mac as it does on a PowerPC Linux box ...
ActiveState did release compilers for their OSX Perl / Python tools, but i'm sure they'll update them soon.
Regards,
John
Falling You - exploring the beauty of voice and sound
www.fallingyou.com -
-
Re: OS-X86 & Scripting Languages
Sun, January 15, 2006 - 10:35 PMYes, I'm aware that code written in these scripting languages isn't compiled, but the interpreters are. The Ruby|Python|Perl interpreters are themselves apps that would need to be ported to the new platform. What I want to know are things like ... Have the interpreters been recompiled to run navtively, or are they using Rosetta? Are there any big v. little endian issues? etc.
j. -
-
Re: OS-X86 & Scripting Languages
Mon, January 16, 2006 - 8:41 AM
Roger,
Oh -- sorry to misunderstand you, then :-)
Regarding the executables themselves, I don't think they'd run under Rosetta, because they're open-source / GNU based, and already build on x86 with no problems. So, with 10.4.4, i'm 99% confident that Apple just recompiled Perl / Python / et al from the source, so they're native.
Regarding endian issues, there may be, depending on what you're doing ... I just got into the habit of enforcing one endian model by always calling htonx before I send / write, and ntohx after I receive / read (or using a class library or framework that does this for me automatically, if I have that option).
Regards,
Falling You - exploring the beauty of voice and sound
www.fallingyou.com
-
-
Unsu...
Re: OS-X86 & Scripting Languages
Mon, January 16, 2006 - 9:31 AMI read on one of the mac news sites that every single last thing on the intel macs is either intel native compiled or universal binary. So that means that yes, perl and python are running native for you when you get it.
-
-
-
-
Re: OS-X86 & Scripting Languages
Fri, April 28, 2006 - 7:39 PMInteresting. I would have thought they would be native, but doing perl -V provides possible evidence to the contrary on my new Mac Book
It reports Perl 5.8.6 and under Platform it claimss "... release_ppc power macintosh powerpc" -
-
Re: OS-X86 & Scripting Languages
Thu, June 1, 2006 - 12:40 AMSo does mine, but running 'file /usr/bin/perl' tells me that it's a universal binary. I guess they just forgot to change their build name.
-