Re: AppleScript lists are O(1) vectors (was Re: AS Library Question)
Re: AppleScript lists are O(1) vectors (was Re: AS Library Question)
- Subject: Re: AppleScript lists are O(1) vectors (was Re: AS Library Question)
- From: has <email@hidden>
- Date: Sat, 16 Jan 2016 14:35:00 +0000
Chris Page wrote:
>> On Dec 21, 2015, at 5:53 PM, Chris Page <email@hidden> wrote:
>>
>> AppleScript lists are O(1) vectors. What leads you to believe they
aren't?
>
> I mis-wrote: although the AppleScript list data structure is an O(1)
vector, reading one element from a list will usually read every element
once, making certain operations O(n).
Like I said, performance-destroying garbage behavior that should've been
sorted 20 years ago, though even now fixing it would still be
worthwhile. Lack of stack traces in errors is another, particularly as
it's a serious source of pain for users when testing and debugging
library handlers. I appreciate scut-work is not exciting or
intellectually engaging*, but it's all good, practical improvements that
address real AS users' real AS needs.
has
* As I've said before, if inventing exciting new features is your
interest then go create a *new* end-user language that's unencumbered by
AS's massive baked-in brokenness and cultural baggage. If *I* can do it
(I'm onto #3 now) it *definitely* can't be hard.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden