Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Re: .net
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 2695 of 2912
Post > Topic >>

Re: .net

by Marcin =?UTF-8?Q?=E2=80=98Qrczak=E2=80=99?= Kowalczyk <qrczak@[EMAIL PROTECTED] Dec 14, 2007 at 11:28 PM

Dnia 14-12-2007, Pt o godzinie 21:30 +0100, Joachim Durchholz pisze:

> The JVM isn't a good target for FPLs though. To eliminate tail calls you

> need to pack everything into a single function, but then functions are 
> limited in size.

It can be done differently: manage the call stack manually, implement
a tail call as a regular call, and manage a counter of tail calls; when
the counter reaches some value, throw an exception to clean the stack
and restart the computation based on the manually managed stack.

This is of course horribly ugly, and slower than it needs to be.

http://docs.msdnaa.net/ark_new/Webfiles/WhitePapers/Babel01/bab12.pdf

..NET VM is theoretically better, as it provides tail call opcodes.
But only in theory, because in the Microsoft implementation tail calls
for x86 are horribly slow, much slower than regular calls.

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=98236

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@[EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
 




 3 Posts in Topic:
Re: .net
Marcin =?UTF-8?Q?=E2=80=9  2007-12-14 23:28:38 
Re: .net
Jon Harrop <usenet@[EM  2007-12-15 19:13:51 
Re: .net
George Neuner <gneuner  2007-12-16 20:32:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:18:04 CDT 2008.