Re: Various Qs about Intel and AppleScript
Re: Various Qs about Intel and AppleScript
- Subject: Re: Various Qs about Intel and AppleScript
- From: Christopher Nebel <email@hidden>
- Date: Thu, 12 Jan 2006 11:13:30 -0800
On Jan 11, 2006, at 1:42 PM, jj wrote:
Hmmm... Now that you mention it, I'm just working in a project
which reads compiled scripts and extracts certain data (eg, aliases
and raw apple-events)... But if the compiler works the same in both
PowerPC and Intel, it should write the same exact bytes to the
scpt, and it won't be a problem...
Yes, though you do have to be aware that you're reading big-endian
data all the time. If you were to build your project for Intel,
you'd probably need some changes.
To answer the particular question of "read" and "write", they
always read and write big-endian data -- we made it that way so
existing data files would work on Intel systems. You don't have
to do anything special.
I know nobody will use AS for intensive Unicode (kind of) tasks,
but won't be this affect speed?
Yes, but not so you'd notice. The cost of swapping is negligible
compared to the cost of the I/O.
Appart from this, if (read above) the compiler compiles the same
code in a Intel machine, will it run thru Rosetta? (more
speedless)
No. In memory, everything is native-endian. What's really affected
is the loading and storing of scripts -- they're byte-swapped as
necessary at that time; run-time isn't affected at all.
I'm sure Apple considered (now or before) the option of an entire
re-design of the AS language (as well as just trashing it). Will
Apple do it sooner or later, or this is an absolute NO? Are you
already working on it? It's only curiosity, as the old ASLG is not
a so-outdated document, and the app I mentioned works fine for
compiled scripts dated from 1993 ;-)
I am legally obliged to not give a complete answer to that question,
but I will say that we plan to continue supporting existing
AppleScript scripts.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden