Search found 5290 matches

by Lutz
Mon Oct 19, 2020 3:24 pm
Forum: newLISP in the real world
Topic: pow function problem
Replies: 2
Views: 203

Re: pow function problem

The newLISP function pow works like the Perl and Python function pow : >>> pow(3, 0.33) 1.4369776521848516 >>> pow(-3, 0.33) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: negative number cannot be raised to a fractional power >>> All use the Standard C Library fu...
by Lutz
Sat Sep 12, 2020 2:54 pm
Forum: newLISP in the real world
Topic: get-url works on some sites
Replies: 4
Views: 540

Re: get-url works on some sites

Yes, some sites redirect from http to https . On Mac, Linux and other UNIX like system you could use: (exec "curl 'https://www.amazon.com'") Not sure if the curl utility is also available on Windows. Or you could use the library module from here: http://www.newlisp.org/code/curl.lsp This module was ...
by Lutz
Wed Aug 26, 2020 3:38 pm
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

newLISP can be compiled without readline support by taking out: -DREADLINE from the compile line in the make file and take out: -lreadline and: -lncurses from the linkline in the make file. Here is a new recompile without readline support: http://www.newlisp.org/cgi-bin/newlisp compiled using: makef...
by Lutz
Tue Aug 25, 2020 3:04 pm
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

When NearlyFreeSpeech.NET Support contacted me, we had a longer email exchange. This is the solution I offered: lutz mueller <lutz.email@gmail.com> Apr 17, 2020, 1:05 PM to [NearlyFreeSpeech.NET Hi Jeff, You can find a current executable compiled and tested on your server here: http://www.newlisp.or...
by Lutz
Fri Sep 20, 2019 4:58 pm
Forum: newLISP in the real world
Topic: Timing function problem
Replies: 19
Views: 2695

Re: Timing function problem

Over time envrironment and stack memory gets fragmented by certain functions. The error forces a total low level freeing and reallocation of this memory. There is nothing we can do about it without slowing down everywhere, but it is a rare enough problem. Until now, I have never seen this before.
by Lutz
Fri Sep 20, 2019 3:09 pm
Forum: newLISP in the real world
Topic: Timing function problem
Replies: 19
Views: 2695

Re: Timing function problem

Yes, using your definition of 'merge', time is increasing on my system too. > ./merge-time 2837.097 (598 576460752303423488 418 3 0 2048 0 10878 10705 1411) 3596.99 (598 576460752303423488 418 3 0 2048 0 10878 10705 1411) 4144.72 (598 576460752303423488 418 3 0 2048 0 10878 10705 1411) 4526.995 (598...
by Lutz
Fri Sep 20, 2019 2:05 pm
Forum: newLISP in the real world
Topic: Timing function problem
Replies: 19
Views: 2695

Re: Timing function problem

On my system: MacBook (Retina, 12-inch, Early 2016), macOS Mojave v10.14.6 it looks different: newLISP v.10.7.5 64-bit on OSX IPv4/6 UTF-8 libffi, options: newlisp -h > (define (merge lstA lstB op) (sort (append lstA lstB) op)) (lambda (lstA lstB op) (sort (append lstA lstB) op)) > (time (merge (seq...
by Lutz
Tue May 14, 2019 11:54 pm
Forum: newLISP newS
Topic: Stable Release newLISP v.10.7.5
Replies: 8
Views: 2719

Re: Stable Release newLISP v.10.7.5

Yes, if you go directly to the download directory:

http://www.newlisp.org/downloads/

you find SHA1.txt text files containing check-sums in all sub-directories. The SHA1.txt for the newlisp-10.7.5.tgz package has been added a few minutes ago.
by Lutz
Mon May 13, 2019 5:54 pm
Forum: newLISP newS
Topic: Stable Release newLISP v.10.7.5
Replies: 8
Views: 2719

Re: Stable Release newLISP v.10.7.5

Yes, always has been this way. In the next release all these text files in the doc directory will have a .txt extension. Then they will look Ok in all browsers.
by Lutz
Mon May 13, 2019 2:39 pm
Forum: newLISP newS
Topic: Stable Release newLISP v.10.7.5
Replies: 8
Views: 2719

Stable Release newLISP v.10.7.5

Stable release v.10.7.5 adds minor functionality and fixes bugs:

http://www.newlisp.org/index.cgi?Downloads
by Lutz
Sun May 05, 2019 2:01 pm
Forum: newLISP newS
Topic: newLISP in a browser - new version
Replies: 6
Views: 3858

Re: newLISP in a browser - new version

For the download link click the info button in the menu. There is a link in the installation paragraph on that page. Nothing new in this version, except that it requires web assembly in the browser and is a bit faster loading and executing. Most newer browser versions have web assembly support in it...
by Lutz
Sun May 05, 2019 11:54 am
Forum: newLISP newS
Topic: newLISP in a browser - new version
Replies: 6
Views: 3858

newLISP in a browser - new version

New version of newLISP-JS based on future stable release v.10.7.5:

http://www.newlisp.org/newlisp-js/

Best on Firefox web browser.
by Lutz
Sun Apr 21, 2019 12:08 pm
Forum: newLISP in the real world
Topic: Get a frame of lines from a table by filter
Replies: 1
Views: 1283

Re: Get a frame of lines from a table by filter

Code: Select all

> (slice lst 1 3)
(("11" "12" "13") ("21" "22" "23") ("31" "32" "33"))
> 
http://www.newlisp.org/downloads/newlis ... html#slice

Or shorter:

Code: Select all

> (1 3 lst)
(("11" "12" "13") ("21" "22" "23") ("31" "32" "33"))
See here:
http://www.newlisp.org/downloads/newlis ... rest_slice
by Lutz
Fri Apr 12, 2019 2:31 pm
Forum: newLISP in the real world
Topic: Are '(true nil) and '(true) is equal?
Replies: 9
Views: 1910

Re: Are '(true nil) and '(true) is equal?

From the transpose documentation: "Matrix dimensions are calculated using the number of rows in the original matrix for columns and the number of elements in the first row as number of rows for the transposed matrix." Looking for the shortest row in a multidimensional list would take a much longer t...
by Lutz
Fri Apr 12, 2019 10:58 am
Forum: newLISP in the real world
Topic: Are '(true nil) and '(true) is equal?
Replies: 9
Views: 1910

Re: Are '(true nil) and '(true) is equal?

> (set 'L '((1 2 3) (1 2 ))) ((1 2 3) (1 2)) > (transpose L) ((1 1) (2 2) (3 nil)) > (transpose (transpose L)) ((1 2 3) (1 2 nil)) > (= L (transpose (transpose L))) nil > From the documentation of transpose : "Any kind of list-matrix can be transposed. Matrices are made rectangular by filling in ni...
by Lutz
Thu Apr 11, 2019 7:03 am
Forum: newLISP in the real world
Topic: Are '(true nil) and '(true) is equal?
Replies: 9
Views: 1910

Re: Are '(true nil) and '(true) is equal?

Thanks for the discovery of this bug.

Fixed here: http://newlisp.nfshost.com/downloads/de ... nprogress/
by Lutz
Sat Mar 30, 2019 3:51 pm
Forum: newLISP newS
Topic: Development release newLISP v.10.7.4
Replies: 19
Views: 8611

Re: Development release newLISP v.10.7.4

Oops, not sure how this happened.

On my development computer: 7b4e1f84d878a101dbe761fdd68bbfafe819e9f9

So the newlisp-10.7.4.tgz checksum is correct but the SHA1.txt is wrong and has been updated now.
by Lutz
Fri Mar 29, 2019 2:47 pm
Forum: newLISP and the O.S.
Topic: Newlisp-Apache-CGI Issues Again
Replies: 29
Views: 3908

Re: Newlisp-Apache-CGI Issues Again

Try the following: Create a subdirectory "newlisp" in "Program Files" and put the newlisp.exe executable in there. If there are any modules you are going to use, create a "modules" directory inside the "newlisp" directory. (env "PROGRAMFILES") => C:\Program Files (x86) (env "NEWLISPDIR") => C:\Progr...
by Lutz
Wed Mar 27, 2019 4:55 pm
Forum: newLISP and the O.S.
Topic: Newlisp-Apache-CGI Issues Again
Replies: 29
Views: 3908

Re: Newlisp-Apache-CGI Issues Again

Check how NEWLISPDIR and PROGRAMFILES are defined. See here for an explanation of these directories: http://www.newlisp.org/downloads/newlisp_manual.html#startup You could use the fowlowing script to check: (println (env "PROGRAMFILES")) ; only defined on Windows (println (env "NEWLISPDIR")) (exit)
by Lutz
Wed Mar 27, 2019 3:21 am
Forum: newLISP and the O.S.
Topic: Newlisp-Apache-CGI Issues Again
Replies: 29
Views: 3908

Re: Newlisp-Apache-CGI Issues Again

Try:

Code: Select all

(print "Content-Type: text/html\r\n\r\n")
by Lutz
Wed Mar 20, 2019 2:53 pm
Forum: newLISP in the real world
Topic: Unexpected result in round
Replies: 3
Views: 1342

Re: Unexpected result in round

If you are concerned about the visual representation use format:

Code: Select all

> > (round 8.300 -1)
8.300000000000001

> (format "%2.1f" 8.300)
"8.3"
> 
by Lutz
Mon Feb 18, 2019 9:13 pm
Forum: newLISP and the O.S.
Topic: Build newLISP for win10 64bit
Replies: 9
Views: 1710

Re: Build newLISP for win10 64bit

Both makefiles compile without errors and warnings on my Windows 7 and using the 5.1.0 gcc.exe (tdm64-1) compiler version. Make sure you have the file libffi.a in the C:\MinGW\lib\gcc\x86_64-w64-mingw32\5.1.0 directory. libffi.a is not part of the MinGW distribution. You can probably get it here: ht...
by Lutz
Mon Jan 07, 2019 3:18 pm
Forum: newLISP newS
Topic: Ask info about newLISP
Replies: 6
Views: 2978

Re: Ask info about newLISP

The upcoming stable release v10.7.5 will be just like 10.7.4. No new additions or changes just bug fixes. No plans have been made yet for future versions.