• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I format an integer ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: How can I format an integer ? (From: Barry Wainwright <email@hidden>)
 >Re: How can I format an integer ? (From: Philip Aker <email@hidden>)
 >Re: How can I format an integer ? (From: Luther Fuller <email@hidden>)
 >Re: How can I format an integer ? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: How can I format an integer ? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: How can I format an integer ?
  • Next by Date: Re: How can I format an integer ?
  • Previous by thread: Re: How can I format an integer ?
  • Next by thread: Re: How can I format an integer ?
  • Index(es):
    • Date
    • Thread