Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dukester

#31
newLISP in the real world / Re: set - setf - setq woes
August 22, 2017, 08:49:05 PM
Quote from: "vetelko"Description in manual is short and simple

http://www.newlisp.org/downloads/newlisp_manual.html#setf">//http://www.newlisp.org/downloads/newlisp_manual.html#setf


I did  RTFM !!  Examples with extra skinny explanations !  Thanks anyway!  +1
#32
newLISP in the real world / Re: set - setf - setq woes
August 21, 2017, 09:58:56 PM
Quote from: "ralph.ronnquist"Hmm, did you have the variable quoted maybe?


Are you asking if I used setf/setq and quoted the symbol as well?  I'm not sure ...  :/



Regardless of how I screwed up though (and I did) ,  I'm looking for extra simple directions as to when to use 'set' , 'setf' and 'setq' so that I won't go down that road ever again! :D
#33
newLISP in the real world / set - setf - setq woes
August 21, 2017, 03:49:39 PM
I'm getting back to playing with newLISP!  - Again!!  :)

The following code broke when I used setf or setq!  Why is that?  What is the subtle diffs between the three?  I want to grok this ASAP - so that I don't spin my wheel ever again with setting a symbol, etc.  TIA



(set 'vowels '("a", "e", "i", "o", "u"))

;; define a function called pig-latin

(define (in-pig-latin this-word)
(set 'first-letter (first this-word))
(if (find  first-letter vowels)
(append this-word "ay") ; concatenate word and "ay"
(append (slice this-word 1) first-letter "ay")))  ; concatenate

;; test the function

(println (in-pig-latin "red"))
(println (in-pig-latin "orange"))
(exit 0)

;; output is
;;edray
;;orangeay

;;Notes:  the setf and setq function BROKE the code when I tried to use them
;;  Why was that?  When is setf and setq used in NL?
#34
newLISP and the O.S. / Re: Guiserver on Win10
August 11, 2016, 04:00:08 PM
Here's some more clues:



c:binnewlisp>java -jar guiserver.jar
newLISP-GS v.1.66 on Windows 10
 double buffering not supported.
 listening on 64001
Exception in thread "main" java.net.BindException: Address already in use: JVM_Bind
        at java.net.DualStackPlainSocketImpl.bind0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
        at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at guiserver.main(guiserver.java:94)
#35
newLISP and the O.S. / Re: Guiserver on Win10
August 11, 2016, 05:55:33 AM

c:binnewlisp>java newlisp.jar
Error: Could not find or load main class newlisp.jar
#36
newLISP and the O.S. / Re: Guiserver on Win10
August 09, 2016, 04:59:23 AM
Java is installed and kept up to date!! :)  Other Java-centric software run without a problem.
#37
Thanks for replying! I solved the issue!!  So I'm moving on to the next step in my little project!! :)
#38
I've lost a lot of the little LISP-ishness that I managed to acquire over the years. Use it or loose it ....



Anyway, I have a variable/symbol --  let's say:


(set 'name  "some_name")

Down the road, I want to test te symbol name to see if it is equal to - say "dukester".  If it is, I want to execute a function - say  "emailPerson".



I thought that the following would work:


(if (= name "dukester") (emailPerson))

But it's not working!  Maybe there's a more LISP-ish of accomplishing this? TIA ...
#39
newLISP and the O.S. / Guiserver on Win10
July 23, 2016, 10:15:30 PM
Will not boot for me! A terminal window flashes by for a second or so, and then nothing. I accept all the defaults when I install. Ideas please!  TIA ....
#40
newLISP in the real world / Re: newlisp-apache-win7
March 05, 2015, 10:01:27 AM
WOOHOO!!!



This is rendered by newLISP v10507c-ab

CGI by newLISP v10507 on Win32

HTTP_HOST : localhost

HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0

HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.5

HTTP_ACCEPT_ENCODING : gzip, deflate

HTTP_DNT : 1

HTTP_CONNECTION : keep-alive

HTTP_PRAGMA : no-cache

HTTP_CACHE_CONTROL : no-cache

PATH : C:Smalltalk;C:Program Files (x86)Iconbin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;c:ansicon;C:Uniconbin;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GtkSharp2.12bin;C:Program Filesnodejs;C:Program Files (x86)PDFtkbin;C:Program Files (x86)GNUClaws Mailpub;C:Program Files (x86)Windows LiveShared;C:Program FilesMicrosoft Windows Performance Toolkit;C:agenabin;C:bin;C:Gobin;

SystemRoot : C:Windows

COMSPEC : C:Windowssystem32cmd.exe

PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.tcl;.groovy;.gy;.ICX

WINDIR : C:Windows

SERVER_SIGNATURE :

SERVER_SOFTWARE : Apache/2.4.12 (Win64)

SERVER_NAME : localhost

SERVER_ADDR : ::1

SERVER_PORT : 80

REMOTE_ADDR : ::1

DOCUMENT_ROOT : C:/Apache24/htdocs

REQUEST_SCHEME : http

CONTEXT_PREFIX : /cgi-bin/

CONTEXT_DOCUMENT_ROOT : c:/Apache24/cgi-bin/

SERVER_ADMIN : admin@example.com

SCRIPT_FILENAME : C:/Apache24/cgi-bin/nLISP/env.cgi

REMOTE_PORT : 50679

GATEWAY_INTERFACE : CGI/1.1

SERVER_PROTOCOL : HTTP/1.1

REQUEST_METHOD : GET

QUERY_STRING :

REQUEST_URI : /cgi-bin/nLISP/env.cgi

SCRIPT_NAME : /cgi-bin/nLISP/env.cgi

NEWLISPDIR : newlisp



**************************************



This is rendered by newLISP v10603

CGI by newLISP v10603 on Win32

HTTP_HOST : localhost

HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0

HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.5

HTTP_ACCEPT_ENCODING : gzip, deflate

HTTP_DNT : 1

HTTP_CONNECTION : keep-alive

HTTP_PRAGMA : no-cache

HTTP_CACHE_CONTROL : no-cache

PATH : C:Smalltalk;C:Program Files (x86)Iconbin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;c:ansicon;C:Uniconbin;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GtkSharp2.12bin;C:Program Filesnodejs;C:Program Files (x86)PDFtkbin;C:Program Files (x86)GNUClaws Mailpub;C:Program Files (x86)Windows LiveShared;C:Program FilesMicrosoft Windows Performance Toolkit;C:agenabin;C:bin;C:Gobin;

SystemRoot : C:Windows

COMSPEC : C:Windowssystem32cmd.exe

PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.tcl;.groovy;.gy;.ICX

WINDIR : C:Windows

SERVER_SIGNATURE :

SERVER_SOFTWARE : Apache/2.4.12 (Win64)

SERVER_NAME : localhost

SERVER_ADDR : ::1

SERVER_PORT : 80

REMOTE_ADDR : ::1

DOCUMENT_ROOT : C:/Apache24/htdocs

REQUEST_SCHEME : http

CONTEXT_PREFIX : /cgi-bin/

CONTEXT_DOCUMENT_ROOT : c:/Apache24/cgi-bin/

SERVER_ADMIN : admin@example.com

SCRIPT_FILENAME : C:/Apache24/cgi-bin/nLISP/env.cgi

REMOTE_PORT : 50682

GATEWAY_INTERFACE : CGI/1.1

SERVER_PROTOCOL : HTTP/1.1

REQUEST_METHOD : GET

QUERY_STRING :

REQUEST_URI : /cgi-bin/nLISP/env.cgi

SCRIPT_NAME : /cgi-bin/nLISP/env.cgi

NEWLISPDIR : newlisp





Thanks a bunch for going through all that trouble!!
#41
newLISP in the real world / Re: newlisp-apache-win7
March 05, 2015, 09:51:49 AM
I'll check it out, and get back to you!!!
#42
newLISP in the real world / Re: newlisp-apache-win7
March 05, 2015, 08:21:52 AM
Versions a & b bombed out!!!



BUT - c & d worked great!!



This is rendered by newLISP v10507d

CGI by newLISP v10507 on Win32

HTTP_HOST : localhost

HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0

HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.5

HTTP_ACCEPT_ENCODING : gzip, deflate

HTTP_DNT : 1

HTTP_CONNECTION : keep-alive

HTTP_PRAGMA : no-cache

HTTP_CACHE_CONTROL : no-cache

PATH : C:Smalltalk;C:Program Files (x86)Iconbin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;c:ansicon;C:Uniconbin;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GtkSharp2.12bin;C:Program Filesnodejs;C:Program Files (x86)PDFtkbin;C:Program Files (x86)GNUClaws Mailpub;C:Program Files (x86)Windows LiveShared;C:Program FilesMicrosoft Windows Performance Toolkit;C:agenabin;C:bin;C:Gobin;

SystemRoot : C:Windows

COMSPEC : C:Windowssystem32cmd.exe

PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.tcl;.groovy;.gy;.ICX

WINDIR : C:Windows

SERVER_SIGNATURE :

SERVER_SOFTWARE : Apache/2.4.12 (Win64)

SERVER_NAME : localhost

SERVER_ADDR : ::1

SERVER_PORT : 80

REMOTE_ADDR : ::1

DOCUMENT_ROOT : C:/Apache24/htdocs

REQUEST_SCHEME : http

CONTEXT_PREFIX : /cgi-bin/

CONTEXT_DOCUMENT_ROOT : c:/Apache24/cgi-bin/

SERVER_ADMIN : admin@example.com

SCRIPT_FILENAME : C:/Apache24/cgi-bin/nLISP/env.cgi

REMOTE_PORT : 50608

GATEWAY_INTERFACE : CGI/1.1

SERVER_PROTOCOL : HTTP/1.1

REQUEST_METHOD : GET

QUERY_STRING :

REQUEST_URI : /cgi-bin/nLISP/env.cgi

SCRIPT_NAME : /cgi-bin/nLISP/env.cgi

NEWLISPDIR : newlisp



****************************************



This is rendered by newLISP v10507c

CGI by newLISP v10507 on Win32

HTTP_HOST : localhost

HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0

HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.5

HTTP_ACCEPT_ENCODING : gzip, deflate

HTTP_DNT : 1

HTTP_CONNECTION : keep-alive

HTTP_PRAGMA : no-cache

HTTP_CACHE_CONTROL : no-cache

PATH : C:Smalltalk;C:Program Files (x86)Iconbin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;c:ansicon;C:Uniconbin;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GtkSharp2.12bin;C:Program Filesnodejs;C:Program Files (x86)PDFtkbin;C:Program Files (x86)GNUClaws Mailpub;C:Program Files (x86)Windows LiveShared;C:Program FilesMicrosoft Windows Performance Toolkit;C:agenabin;C:bin;C:Gobin;

SystemRoot : C:Windows

COMSPEC : C:Windowssystem32cmd.exe

PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.tcl;.groovy;.gy;.ICX

WINDIR : C:Windows

SERVER_SIGNATURE :

SERVER_SOFTWARE : Apache/2.4.12 (Win64)

SERVER_NAME : localhost

SERVER_ADDR : ::1

SERVER_PORT : 80

REMOTE_ADDR : ::1

DOCUMENT_ROOT : C:/Apache24/htdocs

REQUEST_SCHEME : http

CONTEXT_PREFIX : /cgi-bin/

CONTEXT_DOCUMENT_ROOT : c:/Apache24/cgi-bin/

SERVER_ADMIN : admin@example.com

SCRIPT_FILENAME : C:/Apache24/cgi-bin/nLISP/env.cgi

REMOTE_PORT : 50611

GATEWAY_INTERFACE : CGI/1.1

SERVER_PROTOCOL : HTTP/1.1

REQUEST_METHOD : GET

QUERY_STRING :

REQUEST_URI : /cgi-bin/nLISP/env.cgi

SCRIPT_NAME : /cgi-bin/nLISP/env.cgi

NEWLISPDIR : newlisp
#43
newLISP in the real world / Re: newlisp-apache-win7
March 05, 2015, 07:30:04 AM
No worries!!!  My pleasure ...



Got the other "sub" versions DLed - will get back to you when I'm done testing. Got to have breakfast first!!  lol
#44
newLISP in the real world / Re: newlisp-apache-win7
March 04, 2015, 05:56:42 PM
Here you go my friend ....



#!D:Downloadsnewlisp10507newlisp10507.exe

(print "Content-Type: text/htmlrnrn")



(print "<html>")

(print "<h4>CGI by newLISP v" (sys-info -2)" on " ostype "</h4>")

(dolist (e (env)) (println (e 0) " : " (e 1) "</br>"))

(println "</html>")

(exit)





[Wed Mar 04 18:48:52.963460 2015] [cgi:error] [pid 1176:tid 712] [client ::1:50059] End of script output before headers: env.cgi







#!D:Downloadsnewlisp10506newlisp10506.exe

(print "Content-Type: text/htmlrnrn")



(print "<html>")

(print "<h4>CGI by newLISP v" (sys-info -2)" on " ostype "</h4>")

(dolist (e (env)) (println (e 0) " : " (e 1) "</br>"))

(println "</html>")

(exit)





CGI by newLISP v10506 on Win32

HTTP_HOST : localhost

HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0

HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.5

HTTP_ACCEPT_ENCODING : gzip, deflate

HTTP_DNT : 1

HTTP_CONNECTION : keep-alive

HTTP_PRAGMA : no-cache

HTTP_CACHE_CONTROL : no-cache

PATH : C:Smalltalk;C:Program Files (x86)Iconbin;C:ProgramDataOracleJavajavapath;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;c:ansicon;C:Uniconbin;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GtkSharp2.12bin;C:Program Filesnodejs;C:Program Files (x86)PDFtkbin;C:Program Files (x86)GNUClaws Mailpub;C:Program Files (x86)Windows LiveShared;C:Program FilesMicrosoft Windows Performance Toolkit;C:agenabin;C:bin;C:Gobin;

SystemRoot : C:Windows

COMSPEC : C:Windowssystem32cmd.exe

PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.tcl;.groovy;.gy;.ICX

WINDIR : C:Windows

SERVER_SIGNATURE :

SERVER_SOFTWARE : Apache/2.4.12 (Win64)

SERVER_NAME : localhost

SERVER_ADDR : ::1

SERVER_PORT : 80

REMOTE_ADDR : ::1

DOCUMENT_ROOT : C:/Apache24/htdocs

REQUEST_SCHEME : http

CONTEXT_PREFIX : /cgi-bin/

CONTEXT_DOCUMENT_ROOT : c:/Apache24/cgi-bin/

SERVER_ADMIN : admin@example.com

SCRIPT_FILENAME : C:/Apache24/cgi-bin/nLISP/env.cgi

REMOTE_PORT : 50063

GATEWAY_INTERFACE : CGI/1.1

SERVER_PROTOCOL : HTTP/1.1

REQUEST_METHOD : GET

QUERY_STRING :

REQUEST_URI : /cgi-bin/nLISP/env.cgi

SCRIPT_NAME : /cgi-bin/nLISP/env.cgi

NEWLISPDIR : newlisp
#45
newLISP in the real world / Re: newlisp-apache-win7
March 04, 2015, 04:25:55 PM
Like I indicated up the thread, CGI scripts run with zero problems using other language interpreters!!



So there is NO http.conf issue as far as I can determine.



I have a compiled C script that runs extra quick. I haven't yet seen problems with quick scripts - but I might have missed a lot. :)



xytroxon has had the very same issue (again, look up-thread) - but NOT with older versions of newLISP!!



For me, newLISP would be more attractive in an Apache/CGI context, than in anything else. I'm sure that it could compete admirably if it could be made to play nice - consistently.



So Lutz - what do you need to know to get a better handle on this problem? How can I help?