Search found 7 matches
- Wed Aug 20, 2014 7:32 pm
- Forum: newLISP Graphics & Sound
- Topic: locale problem in button-demo.lsp (OSX, 10.6.0)
- Replies: 1
- Views: 6095
locale problem in button-demo.lsp (OSX, 10.6.0)
hi, I have OSX with newlisp 10.6.0 and newLISP-GS v.1.63 installed with homebrew. I tried the button-demo.lsp from http://www.newlisp.org/guiserver/guiserver.lsp.html and ran into an error. The line (gs:set-color 'ColorPanel (random) (random) (random)) resulted in a message "Could not invoke method ...
- Wed Aug 06, 2014 5:29 am
- Forum: newLISP in the real world
- Topic: Build failed on Ubuntu 14.04
- Replies: 10
- Views: 9147
Re: Build failed on Ubuntu 14.04
Hi Lutz thanks so far. I know that the following is not "Build failed" any more but I started this second diskussion above. What about (random x y) returning the same number with each program run? Is that wanted behaviour? (and: is it a good test?) Here's a small test program: t3o@pux:build/newlisp/...
- Tue Aug 05, 2014 9:11 pm
- Forum: newLISP in the real world
- Topic: Build failed on Ubuntu 14.04
- Replies: 10
- Views: 9147
Re: Build failed on Ubuntu 14.04
When running the test again I get the same numbers all the time: 6,24444261148445e+48 6,24444261148445e+48 0 I expected to get a different number on each call of (set 'f (pow (random 10 100) (+ 15 (rand 50)))) but probably I do not know enough about newlisp. And... the test says 0 is bad. But an err...
- Tue Aug 05, 2014 9:02 pm
- Forum: newLISP in the real world
- Topic: Build failed on Ubuntu 14.04
- Replies: 10
- Views: 9147
Re: Build failed on Ubuntu 14.04
Hi Lutz t3o@pux:build/newlisp/newlisp-10.6.0% ./newlisp qa-specific-tests/qa-bigint 6,24444261148445e+48 6,24444261148445e+48 0 >>>>> ERROR in big integer/float conversion t3o@pux:build/newlisp/newlisp-10.6.0% cat /proc/cpuinfo | grep "model name" model name : AMD E1-2500 APU with Radeon(TM) HD Grap...
- Tue Aug 05, 2014 8:22 pm
- Forum: newLISP in the real world
- Topic: Build failed on Ubuntu 14.04
- Replies: 10
- Views: 9147
Re: Build failed on Ubuntu 14.04
Hi, adding the two typedefs helped to make 10.0.6 compile from source without errors on 14.04. But I get an error when doing "make test": ... >>>>> Time per proxy trip: 70 micro seconds >>>>> Message API tested SUCCESSFUL >>>>> ERROR in big integer/float conversion make[1]: *** [check] Error 255 reg...
- Sat Dec 15, 2012 9:58 pm
- Forum: newLISP in the real world
- Topic: Use map to process list of lines from stdin?
- Replies: 4
- Views: 2862
Re: Use map to process list of lines from stdin?
hi and thanks for your answers! My fault (or one of mine) was to think a call to "read-line" would result in a list of lines that I could process with "map": I wanted to map a shrink function on each of the lines. Now I know that a call to "read-line" results in only a single line read. Hence its na...
- Tue Dec 11, 2012 9:57 pm
- Forum: newLISP in the real world
- Topic: Use map to process list of lines from stdin?
- Replies: 4
- Views: 2862
Use map to process list of lines from stdin?
hi, I am new to newlisp and I managed to read and process lines from stdin this way: (while (read-line) (println (slice (current-line) (div (length (current-line) ) 2))) ) = print half of each line. A friend needed that. I would like to do this by calling a function for each line of input but I cann...