|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[ clisp-Bugs-2025817 ] apply '+ fails for large lists (e.g. 10, 000 elements)Bugs item #2025817, was opened at 2008-07-23 10:34
Message generated for change (Comment added) made by sds You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2025817&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: lisp error >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: cid (cid_x) >Assigned to: Sam Steingold (sds) Summary: apply '+ fails for large lists (e.g. 10,000 elements) Initial Comment: Something bad happens when using (apply '+ ...) with large lists (in my case, a list of 10,000 elements). e.g.: [17]> (apply '+ (loop repeat 1000 collecting 1)) 1000 [18]> (apply '+ (loop repeat 10000 collecting 1)) *** - APPLY: too many arguments given to + The following restarts are available: ABORT :R1 ABORT Break 1 [19]> The same code using #'reduce instead of #'apply works as expected even for much larger list sizes. $ uname -a Darwin 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 $ clisp --version GNU CLISP 2.43 (2007-11-18) (built 3423136400) (memory 3423136540) Software: GNU C 4.0.1 (Apple Inc. build 5465) gcc -D_NONSTD_SOURCE -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB -DUNICODE -I. -x none -L/opt/local/lib -lintl -liconv -lc -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib -lreadline -lncurses -L/opt/local/lib -liconv -L/opt/local/lib -lsigsegv -lc -R/opt/local/lib -L/usr/X11/lib -R/usr/X11/lib SAFETY=0 HEAPCODES STANDARD_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.5 libiconv 1.11 libreadline 5.2 Features: (REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN GETTEXT UNICODE BASE-CHAR=CHARACTER UNIX MACOS) C Modules: (clisp i18n syscalls regexp) Installation directory: /opt/local/lib/clisp-2.43/ User language: ENGLISH Machine: I386 (I386) ---------------------------------------------------------------------- >Comment By: Sam Steingold (sds) Date: 2008-07-23 10:44 Message: Logged In: YES user_id=5735 Originator: NO http://www.lisp.org/HyperSpec/Body/convar_call-a_uments-limit.html Constant Variable CALL-ARGUMENTS-LIMIT Constant Value: An integer not smaller than 50 and at least as great as the value of lambda-parameters-limit, the exact magnitude of which is implementation-dependent. Description: The upper exclusive bound on the number of arguments that may be passed to a function. in clisp it is 4096. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2025817&group_id=1355 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ clisp-devel mailing list clisp-devel@... https://lists.sourceforge.net/lists/listinfo/clisp-devel |
| Free Forum Powered by Nabble | Forum Help |