Search found 5296 matches

by Lutz
Wed Oct 16, 2002 10:30 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

I am using the BCC32 version 5.5.1 from Borland. It is a free compiler available on their website. I used to work with Borland C++ a long time ago, and I remember there was a way to redirect math exceptions to your own exception handler (sort of like signals in UNIX). That would be the 'right' way t...
by Lutz
Wed Oct 16, 2002 9:43 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

just to sum up where we are so far with NaN, and what's pending: (1) we can now create a symbol containing the NaN value: (set '+NaN (sqrt -1)) when doing this, the error message "sqrt: DOMAIN error" will occur only on the native Win32 version, and I have no way to suppress it (some body knows?). I ...
by Lutz
Mon Oct 14, 2002 10:30 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

You could put: (define (+NaN) (sqrt -1)) ;; make new function retruning a NaN In your initialization file (init.lsp) , or just put: (set '+NaN (sqrt -1)) in your initialization file. Then after startup of newLISP +NaN will return +NaN. Lutz ps: just finished a new function 'constant' for protecting ...
by Lutz
Mon Oct 14, 2002 8:46 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

At this moment there is no general mechanism in place to protect symbols from beeing changed. The mechanism used for 'nil and 'true wouldn't be suited. So at this moment constants have to be set initially and could be put into 'init.lsp' (in the start up directory of Win32 newLISP or in /usr/share/n...
by Lutz
Mon Oct 14, 2002 6:28 pm
Forum: newLISP in the real world
Topic: RS-232 ?
Replies: 2
Views: 4327

I think you could just use a device in /dev, treating it like a file handle, basically working with it like you would in UNIX.

Lutz
by Lutz
Mon Oct 14, 2002 6:26 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

NaN stuff now also working on Win32 see version 6.5.26 in:

http://newlisp.org/download/development/

and the CHANGES file in the distribution

Lutz
by Lutz
Mon Oct 14, 2002 6:24 pm
Forum: Anything else we might add?
Topic: Win version
Replies: 2
Views: 4065

why Windoze version again

Some users wanted it, some useres had problems running Cygwin based newLISP and other Cygwin stuff. The final push came from Steve who delivered a port to the Digital Mars Compiler and than later to the Borland Compiler. Steve put a lot of good work and research into it, and I think it was worth it....
by Lutz
Mon Oct 14, 2002 6:09 pm
Forum: newLISP newS
Topic: development version newlisp 6.5.26
Replies: 0
Views: 3488

development version newlisp 6.5.26

from the CHANGES file: 6.5.26 - doc fixes - date crashed on values resulting in dates before 1970-Jan-1 00:00:00 in the Win32 version. In Win32 now minimum value for date is 86400, which is safely on or after 1970-Jan-1 00:00:00 for all time zones - NaN can now be put into a variable for comparison ...
by Lutz
Mon Oct 14, 2002 3:44 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

I have it working now on the cygwin/unix versions:

(set '+NaN (sqrt -1))
+NaN => +NaN

(= +NaN (sqrt -1)) => true

but still have problems on the BORLAND C++ compiled Win32, crashing
under certain cirumstances.

Lutz
by Lutz
Mon Oct 14, 2002 3:52 am
Forum: newLISP in the real world
Topic: Freeing up orphaned contexts.
Replies: 1
Views: 3633

Freeing up orphaned contexts.

You could use 'delete' to delete symbols and their contents. Or just nil the symbols, as you suggest, which would keep the symbols but free all the contents. I.e. after having loaded the demo application 'Hanoi' from the Demo menu, you could do a: (map delete (symbols 'Hanoi)) This would delete all ...
by Lutz
Mon Oct 14, 2002 3:00 am
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

Thanks Bob for your bits about NaN, that was very interesting, I wonder if there is any literature you could point us too, to learn more about how to use NaN etc.. (div 1 0) => Inf ;; hangs the Win32 version is broken on the Win32 version. When compiled with GCC under Cygwin or Linux is gives you: '...
by Lutz
Sun Oct 13, 2002 3:33 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 20079

there is no symbol for NaN in newLISP (and in any other programming language I know), '+NaN' is just the way the C-library, with which newLISP was compiled, formats NaN results. You can test a coputing result for NaN'nes, but a comparison of two expressions resulting in NaN will always give 'nil'. T...
by Lutz
Fri Oct 11, 2002 4:44 am
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

httpd

I am glad you found the problem Ryon.

Lutz
by Lutz
Thu Oct 10, 2002 10:46 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

since version 6.5.18 'write-process' and 'read-process' are collapsed in to 'exec', all three functions point to the same function, which works like the old 'read-process' when given one parameter and which works like 'write-process' when given two parameters. try everything again using a newer vers...
by Lutz
Thu Oct 10, 2002 2:51 am
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

There shouldn't be a need to tweak the CGI generating statement. I would start over and do exactly what's recommended in the README file of the newlisp-IDE-1.6.tgz package. All problems I have seen, always boiled down to one of the following: - no c:\tmp or /tmp directory present - wrong permissions...
by Lutz
Wed Oct 09, 2002 2:07 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

in your case it seems to get stuck in '(process-http-request request)' . In the beginning of the httpd programs do: (define debug-flag true) Then you can observe what kind of request httpd receives. The error message you are receiving indicates, that for some reason it receives an invalid request ty...
by Lutz
Tue Oct 08, 2002 8:45 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

'/tmp' should be 'c:\tmp' on a Windows machine. newLISP will take '/' as the root directory of the current drive. On windows normally 'c:\tmp' does not exists, sometimes there is a 'c:\temp'.

Lutz
by Lutz
Tue Oct 08, 2002 2:58 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

in Windows/XP (what I am running) it works on: IE 6.0 (Mandelbrot sometimes doesn't work) OPERA 6.0 MOZILLA 6.1 The cgi for the read-rocess.lsp example works, if you change "ls -l" to "dir" . The mandelbrot.lsp example works sometimes not on IE but alwyas on OPERA and MOZILLA. I still have issues ha...
by Lutz
Tue Oct 08, 2002 2:42 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

I assume you are running Windows?

make sure that newlisp.exe is in the path of your environment. When you use the files supplied in newlisp-IDE-1.6.tgz, unzip it (works with Winzip) , you can go into the public_html it generates and type:

<pre>
newlisp httpd 80 .
</pre>


Lutz
by Lutz
Tue Oct 08, 2002 2:24 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 19972

httpd

its the line 159/160: <pre> (set 'procStr (append "./" fileName " > /tmp/pcgi" )) ;; for LINUX (set 'procStr (append "newlisp ./" fileName " > /tmp/pcgi" )) ;; for Win32 </pre> One of the lines should be commented out. The line numbers in the header have not been updated as they should. I will chang...
by Lutz
Thu Sep 26, 2002 4:53 pm
Forum: newLISP newS
Topic: Great froum
Replies: 3
Views: 5386

This is great, thanks for bringing this up so fast. let me try some formatting: (define-macro (foreach _x _lst) (eval (list 'dolist (list _x _lst) (append (list 'begin) (rest (rest (args))))))) (define-macro (repeat _n) (eval (list 'dotimes (list 'x _n) (append (list 'begin) (rest (args)))))) This s...