Search found 5295 matches

by Lutz
Fri Mar 19, 2021 2:59 pm
Forum: newLISP in the real world
Topic: Problem to update an array
Replies: 6
Views: 316

Re: Problem to update an array

You can find a macOS executable here:
http://www.newlisp.org/downloads/develo ... ess/macOS/
by Lutz
Thu Mar 18, 2021 6:43 pm
Forum: newLISP in the real world
Topic: Problem to update an array
Replies: 6
Views: 316

Re: Problem to update an array

At the moment I only can compile on FreeBSD 12.2 (Intel CPU), OpenBSD 5.5 (amd64 CPU) and MacOS 11.2.2 (Intel).
No access to Windows or Linux at the moment. What do your need?
by Lutz
Wed Mar 17, 2021 5:08 pm
Forum: newLISP in the real world
Topic: Problem to update an array
Replies: 6
Views: 316

Re: Problem to update an array

This is fixed here: http://www.newlisp.org/downloads/develo ... nprogress/

Was a bug in 'char' when used by 'setf'.
by Lutz
Thu Nov 12, 2020 4:38 am
Forum: newLISP newS
Topic: Stable Release newLISP v.10.7.5
Replies: 10
Views: 5854

Re: Stable Release newLISP v.10.7.5

This seems to be happening inside the PCRE regex library and only on Windows. Still researching this ...
by Lutz
Mon Oct 19, 2020 3:24 pm
Forum: newLISP in the real world
Topic: pow function problem
Replies: 2
Views: 901

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: 1392

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: 1634

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: 1634

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: 4847

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: 4847

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: 4847

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: 10
Views: 5854

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: 10
Views: 5854

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: 10
Views: 5854

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: 5065

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: 5065

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: 1702

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: 3012

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: 3012

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: 3012

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: 10818

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: 6883

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