[clean-list] 65537 on Linux
lethevert
acatofearlgrey at ybb.ne.jp
Mon Aug 13 16:25:05 MEST 2007
Hello,
I noticed an interesting thing in Clean 2.2 on Linux.
I created a module Test5Add as the following.
==Test5Add.dcl=====================================================
definition module Test5Add
add :: Int Int -> Int
==Test5Add.icl=====================================================
implementation module Test5Add
import StdInt
add :: Int Int -> Int
add a b = a + b
===================================================================
Then I made a main module.
==Test5.icl========================================================
module Test5
import StdEnv, Test5Add
Start = foldl add 0 (take 65537 (repeat 1))
===================================================================
Then run the program but it did not return.
I changed the number 65537 to 65536, then it returned within a second.
I tried it on Windows environment and both programs returned in a second.
I wonder why this happens. Is it a bug?
The detail of the Linux environment is the following.
$ uname -srvmo
Linux 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 GNU/Linux
The CPU type is "AMD Athlon(tm) 64 X2 Dual Core Processor 3800+."
Regards,
lethevert
lethevert at users.sourceforge.net
More information about the clean-list
mailing list