Search found 733 matches

by pjot
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...
by pjot
Thu Jan 24, 2008 1:02 pm
Forum: newLISP in the real world
Topic: Nth behaviour?
Replies: 12
Views: 4851

You can have access to my machine, I'll send the details tonight by PM.

Peter
by pjot
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...
by pjot
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...
by pjot
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...
by pjot
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...
by pjot
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...
by pjot
Tue Jan 15, 2008 6:04 pm
Forum: newLISP Graphics & Sound
Topic: NEWLISPDIR questions
Replies: 2
Views: 4141

Ooops sorry, I see there is some info about the newLisp dir in the 9.2.16 manual now :-)

Maybe it is also usefull to explain clearly what this variable can be used for (e.g. location of 'guiserver.lsp')....?

Thanks for replying,

Peter
by pjot
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...
by pjot
Tue Jan 08, 2008 7:25 pm
Forum: newLISP Graphics & Sound
Topic: Java path issue (Unix/Linux)
Replies: 10
Views: 8979

Works perfect!

This way all *nix OS's should be able to run the guiserver as the context now relies on the official environment variable $JAVA_HOME.

Thanks again,

Peter
by pjot
Tue Jan 08, 2008 6:07 pm
Forum: newLISP Graphics & Sound
Topic: Java path issue (Unix/Linux)
Replies: 10
Views: 8979

Hi Lutz,

This is stil not changed in 9.2.12...???

Thanks
Peter
by pjot
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...
by pjot
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...
by pjot
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 ...
by pjot
Sat Dec 29, 2007 4:18 pm
Forum: Anything else we might add?
Topic: The logic of (newLisp) list indexing
Replies: 14
Views: 8410

Actually I'ld rather have a wrap-around behaviour, similar when index couting backwards in a list.

Like this:
> (set 'example '("a" "b" "c" "d" "e"))
("a" "b" "c" "d" "e")
>
> (length example)
5
> (nth 4 example)
"e"
> (nth 5 example)
"a"
> (nth 6 example)
"b"
> (nth 7 example)
"c"
Peter
by pjot
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...
by pjot
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...
by pjot
Fri Dec 28, 2007 10:30 pm
Forum: Anything else we might add?
Topic: The logic of (newLisp) list indexing
Replies: 14
Views: 8410

Michael!

Thanks for your quick reply!

But... How do these languages handle positive indexes?? I mean indexes higher than the amount of elements in a list?

Peter
by pjot
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...
by pjot
Fri Dec 28, 2007 3:39 pm
Forum: newLISP Graphics & Sound
Topic: Java path issue (Unix/Linux)
Replies: 10
Views: 8979

many systems have multiple java's running.. ;-)
So?

newLisp will then at least use a Java binary, the first Java binary it finds. If this isn't working, it's a system setup issue.

Right now the guiserver.lsp context does not find anything....

The 'which' can always be used as a last resort...
by pjot
Fri Dec 28, 2007 3:12 pm
Forum: newLISP Graphics & Sound
Topic: Java path issue (Unix/Linux)
Replies: 10
Views: 8979

Maybe use an (exec "which java")....?
peter[gtk-server-2.2.2]$ newlisp
newLISP v.9.2.11 on Linux, execute 'newlisp -h' for more info.

> (exec "which java")
("/usr/lib/java/bin/java")
by pjot
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...
by pjot
Fri Dec 21, 2007 9:38 am
Forum: newLISP newS
Topic: development release newLISP v.9.2.10
Replies: 24
Views: 10381

Well our company did take over all CB systems, also the Oga ;-)

I have to send you a bill for using newLisp in Tru64Unix ;-)
by pjot
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...
by pjot
Thu Dec 20, 2007 8:37 pm
Forum: newLISP newS
Topic: development release newLISP v.9.2.10
Replies: 24
Views: 10381

Maybe you have to also change it for Linux, please check the manpage for 'alloca'...

See my post above, I just changed it.

Thx
Peter