Search found 20 matches
- Mon Jan 01, 2007 8:17 pm
- Forum: newLISP and the O.S.
- Topic: comments on building newLISP on Solaris and Linux
- Replies: 0
- Views: 2659
comments on building newLISP on Solaris and Linux
Happy New Year! I just downloaded and built version 9.0.0 on Solaris 8 and these are a few thoughts. # Building under Linux, Solaris, and other Unix derivatives. create make targets 'check' and 'test' which are synonyms and run the qa-* scripts. The qa-* scripts along with any related information sh...
- Mon Apr 25, 2005 1:50 am
- Forum: Anything else we might add?
- Topic: (open "myfile" "a") doesn't work as expe
- Replies: 1
- Views: 2983
(open "myfile" "a") doesn't work as expe
The following code: (device (open "myfile" "a")) (print "This goes in myfile") (close (device)) (exit) fails with: value expected : (open "myfile" "a") when the file "myfile" doesn't exist. If you use (on Unix): #touch myfile And rerun the code above, it works as expected. I would expect that a file...
- Mon Apr 25, 2005 1:33 am
- Forum: Anything else we might add?
- Topic: documentation fix: (device)
- Replies: 1
- Views: 2917
documentation fix: (device)
The following example in the documentation is incorrect: (device (open "myfile" "write")) => 5 (print "This goes in myfile") => "This goes in myfile.dat" (close (device)) => true It should be: (device (open "myfile" "write")) => 5 (print "This goes in myfile") => "This goes in myfile" (close (device...
- Sat Apr 02, 2005 8:20 am
- Forum: Anything else we might add?
- Topic: Important note for developers :)
- Replies: 2
- Views: 3734
- Fri Apr 01, 2005 7:33 am
- Forum: newLISP newS
- Topic: What was THAT?
- Replies: 17
- Views: 17016
my 2 cents
A couple of comments on the new layout: 1) I prefer web pages that make full use of the available screen width, generally by using three columns. The laptop I use to read the forum is 1280 x 800 pixels so it has a lot of width but not so much height. This makes for a lot of vertical scrolling especi...
- Tue Mar 22, 2005 9:47 am
- Forum: newLISP in the real world
- Topic: Please critique: web interaction script
- Replies: 1
- Views: 2914
Please critique: web interaction script
I'm trying to write a program in Newlisp that runs under Sun Solaris and: 1) Makes a list of md5 signatures of all files in /usr/bin. 2) Sends sections "chunks" of the signature list to a special web page operated by Sun Microsystems for checking against a database of known-good signatures. 3) Searc...
- Wed Mar 09, 2005 1:10 am
- Forum: Anything else we might add?
- Topic: Scripting languages Poll
- Replies: 3
- Views: 4588
- Tue Jan 25, 2005 7:10 am
- Forum: newLISP in the real world
- Topic: Initial "N" missing for 'newlisp -h' version 8.4.0
- Replies: 1
- Views: 3030
Initial "N" missing for 'newlisp -h' version 8.4.0
It ain't 'ewLISP' my friend, it's 'NewLISP'. Seriously though, I just compiled NewLISP v 8.4.0 under Sun Sparc Solaris 8 and noticed the inital 'N' was missing from the output of 'newlisp -h'. Rather than search through the source, I thought I'd let you all take a look... ca1$ ./newlisp -h ewLISP v....
- Wed Nov 03, 2004 12:35 am
- Forum: newLISP in the real world
- Topic: How to capture output from (!) ?
- Replies: 3
- Views: 4181
- Tue Nov 02, 2004 11:01 pm
- Forum: newLISP in the real world
- Topic: How to capture output from (!) ?
- Replies: 3
- Views: 4181
How to capture output from (!) ?
Is there an easy way to capture the stdout (and stderr) output of an external command run using (!) without using files? I'd like to be able to do something like: (set 'file04 (! "ls -l | grep 2004")) and have the result be the string spit out by grep instead of the return code as (!) does now. Perh...
- Tue Nov 02, 2004 9:41 pm
- Forum: newLISP in the real world
- Topic: Process spawns additional newLisps
- Replies: 4
- Views: 4624
- Sun Oct 24, 2004 3:42 am
- Forum: Anything else we might add?
- Topic: (replace) doesn't seem to work with "^".
- Replies: 7
- Views: 7905
- Sun Oct 24, 2004 3:19 am
- Forum: Anything else we might add?
- Topic: (replace) doesn't seem to work with "^".
- Replies: 7
- Views: 7905
Try this in perl: #!/usr/bin/perl $a = "aaa"; $a =~ s/^\w/x/; print "\$a=$a\n"; You will get $a="xaa". This is correct in Perl, and is what I want newLisp to do. To anyone who's interested, the pattern /^\w/ means match any single "word" character at the beginning of the string. This is the correct ...
- Sun Oct 24, 2004 1:20 am
- Forum: Anything else we might add?
- Topic: (replace) doesn't seem to work with "^".
- Replies: 7
- Views: 7905
(replace) doesn't seem to work with "^".
I'm trying to replace the initial character of a string (actually, I'm trying to do something more complex, but this is the gist of it). I tried the following under newLisp 8.2.0 (Sparc Solaris 8) and got the following: > (replace "a" "aaa" (upper-case $0) 0) "AAA" > (replace "^a" "aaa" (upper-case ...
- Wed Aug 18, 2004 6:09 am
- Forum: newLISP in the real world
- Topic: How about a test suite?
- Replies: 3
- Views: 4199
How about a test suite?
It would be nice to have a 'make test' or 'make check' option after running 'make' when building Newlisp. It could help speed debugging on "non-supported" platforms like Solaris. I'm willing to be an "official" Solaris tester if this would help. I'm thinking of something along the lines of the test ...
- Wed Aug 18, 2004 6:00 am
- Forum: newLISP and the O.S.
- Topic: (get-url) doesn't work for me on Solaris 8
- Replies: 5
- Views: 7333
(get-url) doesn't work for me on Solaris 8
From inside a script or the Newlisp shell, this hangs: (get-url "http://www.nuevatec.com") But using curl at the login shell comes back instantly (within 250ms): ca1$ curl http://www.nuevatec.com <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>NUEVATEC Internatio...
- Wed Aug 11, 2004 11:00 pm
- Forum: newLISP and the O.S.
- Topic: Bug in (sleep) on Solaris 8 (Newlisp v8.1.0)
- Replies: 5
- Views: 7661
On Solaris 5.9 nanosleep() is available, use the following changes in the makefile: in CFLAGS include -DNANOSLEEP CFLAGS = -Wall -pedantic -Wno-uninitialized -c -O2 -g -DNANOSLEEP -DSOLARIS -DOPSYS=4 in the compile line include the library -lrt $(CC) $(OBJS) -g -lm -ldl -lrt -lsocket -lnsl -o newli...
- Wed Aug 11, 2004 7:44 am
- Forum: newLISP and the O.S.
- Topic: Bug in (sleep) on Solaris 8 (Newlisp v8.1.0)
- Replies: 5
- Views: 7661
Bug in (sleep) on Solaris 8 (Newlisp v8.1.0)
I'm running Newlisp on Solaris 8 and when I run the following program: #!/usr/local/bin/newlisp # # Demonstrate bug in (sleep) on Solaris 8 (println "\n(sleep 999) interval is too short.") (dotimes (i 10) (println (format "%02d " i) (date (apply date-value (now)))) (sleep 999) ) (println "\n(sleep 1...
- Wed Mar 10, 2004 10:28 pm
- Forum: Anything else we might add?
- Topic: (constant 'x) broken?
- Replies: 5
- Views: 6418
(constant 'x) broken?
I tried the following using 7.5.0 on both Solaris and WIN32: > (set 'a 3) 3 > (dec 'a) 2 > (constant 'a) 2 > (dec 'a) 1 > (set 'a 5) symbol is protected in function set : a > a 1 It appears that the (constant 'a) call only protects against (set) but not (dec) or (inc) for that matter. This doesn't c...
- Wed Mar 10, 2004 5:10 pm
- Forum: newLISP in the real world
- Topic: Installation process impressions
- Replies: 1
- Views: 3077
Installation process impressions
Just downloaded and installed newlisp 7.5.0 (WIN 32) The install process does not, but in my opinion should, create the C:\temp directory if it doesn't already exist. Alternatively, the installer could provide a dialog to choose the temp directory location right after asking for the main installatio...