Search found 20 matches

by gregben
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: 2308

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...
by gregben
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: 2251

(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...
by gregben
Mon Apr 25, 2005 1:33 am
Forum: Anything else we might add?
Topic: documentation fix: (device)
Replies: 1
Views: 2172

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...
by gregben
Sat Apr 02, 2005 8:20 am
Forum: Anything else we might add?
Topic: Important note for developers :)
Replies: 2
Views: 2661

Hilarious!

I especially liked the slider controls and the verbosity=10
comments.

Thank you for the link!
by gregben
Fri Apr 01, 2005 7:33 am
Forum: newLISP newS
Topic: What was THAT?
Replies: 17
Views: 11443

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...
by gregben
Tue Mar 22, 2005 9:47 am
Forum: newLISP in the real world
Topic: Please critique: web interaction script
Replies: 1
Views: 2488

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...
by gregben
Wed Mar 09, 2005 1:10 am
Forum: Anything else we might add?
Topic: Scripting languages Poll
Replies: 3
Views: 3270

you forgot Ruby.
by gregben
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: 2605

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....
by gregben
Wed Nov 03, 2004 12:35 am
Forum: newLISP in the real world
Topic: How to capture output from (!) ?
Replies: 3
Views: 3515

Thanks, Lutz.

It would be nice to have "see also (exec)"
in the manual entries for (!) and (process).
by gregben
Tue Nov 02, 2004 11:01 pm
Forum: newLISP in the real world
Topic: How to capture output from (!) ?
Replies: 3
Views: 3515

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...
by gregben
Tue Nov 02, 2004 9:41 pm
Forum: newLISP in the real world
Topic: Process spawns additional newLisps
Replies: 4
Views: 3801

Not that it helps, but I tried (process "newlisp") under Solaris 8 and got
three processes too.
by gregben
Sun Oct 24, 2004 3:42 am
Forum: Anything else we might add?
Topic: (replace) doesn't seem to work with "^".
Replies: 7
Views: 5295

Thanks, Lutz for all your feedback. :-)

Here's a little function I wrote that is sort of useful
without using regex or replace.

#!/usr/bin/newlisp

(define (initial-capital str)
(nth-set 0 str (upper-case (nth 0 str)))
str
)


(println (initial-capital "abc"))
(exit)
by gregben
Sun Oct 24, 2004 3:19 am
Forum: Anything else we might add?
Topic: (replace) doesn't seem to work with "^".
Replies: 7
Views: 5295

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 ...
by gregben
Sun Oct 24, 2004 1:20 am
Forum: Anything else we might add?
Topic: (replace) doesn't seem to work with "^".
Replies: 7
Views: 5295

(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 ...
by gregben
Wed Aug 18, 2004 6:09 am
Forum: newLISP in the real world
Topic: How about a test suite?
Replies: 3
Views: 3458

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 ...
by gregben
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: 5515

(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...
by gregben
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: 5603

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...
by gregben
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: 5603

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...
by gregben
Wed Mar 10, 2004 10:28 pm
Forum: Anything else we might add?
Topic: (constant 'x) broken?
Replies: 5
Views: 4542

(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...
by gregben
Wed Mar 10, 2004 5:10 pm
Forum: newLISP in the real world
Topic: Installation process impressions
Replies: 1
Views: 2691

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...