Re: How can I format an integer ?
Re: How can I format an integer ?
- Subject: Re: How can I format an integer ?
- From: Philip Aker <email@hidden>
- Date: Thu, 6 Nov 2008 02:36:52 -0800
On 2008-11-04, at 17:41:56, Mark J. Reed wrote:
On Tue, Nov 4, 2008 at 6:53 PM, Jon Pugh
<email@hidden> wrote:
So, speed isn't the real problem, memory use is. In most cases,
the iterative (loop) method will use considerably less memory.
Right, unless you use tail recursion and a language system that is
optimized for it; in the latter case (true of Scheme, for instance)
recursion is no more resource-intensive than iteration.
Even true these days for C and C++. gcc, which is currently used to
compile most everything that runs on Mac OS X will optimize for tail
recursion in some but not all cases (void foo() {foo();} e.g.). But I
think that llvm (see the future of Apple's compiler world at
<llvm.org>) will do a better job on these languages.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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