Search found 5286 matches

by Lutz
Fri Sep 20, 2019 4:58 pm
Forum: newLISP in the real world
Topic: Timing function problem
Replies: 19
Views: 2072

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.
by Lutz
Fri Dec 07, 2018 1:27 am
Forum: newLISP in the real world
Topic: nonblocking option for net-accept?
Replies: 7
Views: 1336

Re: nonblocking option for net-accept?

Why does net-select not work for you? Maybe I don't understand the question.
by Lutz
Sat Nov 17, 2018 6:00 pm
Forum: newLISP in the real world
Topic: Apply error message
Replies: 4
Views: 1306

Re: Apply error message

Use transpose:

Code: Select all

> (transpose '((a 1) (b 2) (c 3)))
((a b c) (1 2 3))
> 
A hint will be added to the description of list in the manual.