Search found 733 matches
- Thu Jan 24, 2008 9:55 pm
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
Indeed, we think this maybe an Endian issue. If I look to the datatypes in (sys-info), then it appears that the first elements are of type 'long' and 'size_t', each of which is 8 bytes. These are shown correctly. cell = stuffIntegerList( 8, cellCount, MAX_CELL_COUNT, symbolCount, (UINT)recursionCoun...
- Thu Jan 24, 2008 1:02 pm
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
- Thu Jan 24, 2008 6:34 am
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
Hm, I cannot import 64-bit libraries anymore with this last compilation: newLISP v.9.2.17 on Linux, execute 'newlisp -h' for more info. > (import "libgtk-server.so" "gtk") problem loading library in function import : "libgtk-server.so: wrong ELF class: ELFCLASS64" This used to work with the plain 'm...
- Thu Jan 24, 2008 6:27 am
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
Later I saw your remark: makefile_linux64 is the same as makefile_linux64ILP32 The 'makefile_linux64ILP32' does not work: peter@AsteroidRider:~/installation/newlisp-9.2.17$ make -f makefile_linux64ILP32 make: *** No rule to make target `makefile_linux64LP32', needed by `newlisp.o'. Stop. But the 'ma...
- Thu Jan 24, 2008 6:20 am
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
The first makefile does not work at all: peter@AsteroidRider:~/installation/newlisp-9.2.17$ make -f makefile_linux64ILP32 make: *** No rule to make target `makefile_linux64LP32', needed by `newlisp.o'. Stop. The second makefile works, but there is no difference: peter@AsteroidRider:~/installation/ne...
- Wed Jan 23, 2008 9:19 pm
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
It is the 64 bit version of Slackware Linux 12.0 called 'SLAMD' (www.slamd64.com). peter@AsteroidRider:~$ uname -a Linux AsteroidRider 2.6.22.8 #1 SMP Tue Sep 25 20:41:25 BST 2007 x86_64 x86_64 x86_64 GNU/Linux I have compiled newLisp as follows: make -f makefile_linux_readline If I run 'make', it w...
- Wed Jan 23, 2008 8:31 pm
- Forum: newLISP in the real world
- Topic: Nth behaviour?
- Replies: 12
- Views: 4851
Nth behaviour?
peter@AsteroidRider:~$ newlisp newLISP v.9.2.17 on Linux, execute 'newlisp -h' for more info. > (sys-info) (362 268435456 358 1 0 140733193390080 9217 1) > (nth 6 (sys-info)) 140733193397249 > (nth 7 (sys-info)) 140733193388033 > (nth 8 (sys-info)) list index out of bounds > (nth 5 (sys-info)) 1407...
- Tue Jan 15, 2008 6:04 pm
- Forum: newLISP Graphics & Sound
- Topic: NEWLISPDIR questions
- Replies: 2
- Views: 4141
- Tue Jan 15, 2008 4:58 pm
- Forum: newLISP Graphics & Sound
- Topic: NEWLISPDIR questions
- Replies: 2
- Views: 4141
NEWLISPDIR questions
Hi, If I set the variable NEWLISPDIR manually in a DOS prompt, newLisp does not seem to get the new value. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\peter>cd\ C:\>cd newlisp C:\newlisp>newlisp newLISP v.9.2.11 on Win32, execute 'newlisp...
- Tue Jan 08, 2008 7:25 pm
- Forum: newLISP Graphics & Sound
- Topic: Java path issue (Unix/Linux)
- Replies: 10
- Views: 8979
- Tue Jan 08, 2008 6:07 pm
- Forum: newLISP Graphics & Sound
- Topic: Java path issue (Unix/Linux)
- Replies: 10
- Views: 8979
- Sat Dec 29, 2007 8:03 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
On second thought, the concept of wrapping around a list is still interesting. Though currently not implemented at all, it still could serve a lot of problematic situations. In fact, each time when elements in a list need to be repeated, it will save a lot of code. Right now, a check must be created...
- Sat Dec 29, 2007 4:54 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
OK now I see. There is no wrapping around in the first place and there has never been. Negative indices just start counting at the end. This has the appearance of wrapping around a list. Hm... in that case, for me it does not matter, as returning nil or the first element will not resolve my programm...
- Sat Dec 29, 2007 4:25 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
By the way, how is this possible: peter[~]$ newlisp newLISP v.9.2.11 on Linux, execute 'newlisp -h' for more info. > (set 'L '("1" "2" "3")) ("1" "2" "3") > (nth -5 L) "1" > (nth -4 L) "1" > (nth -3 L) "1" > (set 'example '("a" "b" "c" "d" "e")) ("a" "b" "c" "d" "e") > (nth 0 example) "a" > (nth -1 ...
- Sat Dec 29, 2007 4:18 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
- Sat Dec 29, 2007 9:34 am
- Forum: Anything else we might add?
- Topic: newLisp competition 2007
- Replies: 68
- Views: 47105
The comic reader has been improved. List of changes: - when changing pages always scroll up - dragging of picture while mousebutton is pressed - mouse scrollbutton to turn pages - some code cleaning because of fixed bugs in newLisp interpreter - escape key now exits program - fixed wrapping around t...
- Sat Dec 29, 2007 12:45 am
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
I think newLISP is unique in returning the last element for indices greater than the length of the list. Unique but not consistent. :-) Of course newLisp is the best programming language on earth, but I am still curious why this decision was made. If an index is counting backwards it wraps around a...
- Fri Dec 28, 2007 10:30 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
- Fri Dec 28, 2007 10:04 pm
- Forum: Anything else we might add?
- Topic: The logic of (newLisp) list indexing
- Replies: 14
- Views: 8410
The logic of (newLisp) list indexing
Hi, Here I am again with an annoying question :-) First a nice quote. peter[~]$ newlisp newLISP v.9.2.11 on Linux, execute 'newlisp -h' for more info. > (set 'example '("a" "b" "c" "d" "e")) ("a" "b" "c" "d" "e") > > (length example) 5 > (nth 4 example) "e" > (nth 5 example) "e" > (nth 6 example) "e...
- Fri Dec 28, 2007 3:39 pm
- Forum: newLISP Graphics & Sound
- Topic: Java path issue (Unix/Linux)
- Replies: 10
- Views: 8979
- Fri Dec 28, 2007 3:12 pm
- Forum: newLISP Graphics & Sound
- Topic: Java path issue (Unix/Linux)
- Replies: 10
- Views: 8979
- Fri Dec 28, 2007 11:56 am
- Forum: newLISP Graphics & Sound
- Topic: Java path issue (Unix/Linux)
- Replies: 10
- Views: 8979
Java path issue (Unix/Linux)
Hi, After upgrading my Linux system(s) to a newer release, the GUIserver did not run anymore. After some troubleshooting it appears that the file '/usr/share/newlisp/guiserver.lsp' looks for a Java binary in '/usr/bin'. However, on Slackware-like systems (also Zenwalk) the java binary resides in '/u...
- Fri Dec 21, 2007 9:38 am
- Forum: newLISP newS
- Topic: development release newLISP v.9.2.10
- Replies: 24
- Views: 10381
- Thu Dec 20, 2007 9:07 pm
- Forum: newLISP newS
- Topic: development release newLISP v.9.2.10
- Replies: 24
- Views: 10381
Well, those are convincing arguments... :-) This latest release is running as a dream: [peter@olga]# make ./build Discovered Tru64 Unix, please read doc/TRU64BUILD cc -ieee -pedantic -c -O3 -DSOLARIS -DTRU64 -DNEWLISP64 -D_POSIX_PII_SOCKET newlisp.c cc -ieee -pedantic -c -O3 -DSOLARIS -DTRU64 -DNEWL...
- Thu Dec 20, 2007 8:37 pm
- Forum: newLISP newS
- Topic: development release newLISP v.9.2.10
- Replies: 24
- Views: 10381