Search found 5296 matches

by Lutz
Sat Jun 24, 2017 8:09 pm
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 133364

Re: newLISP in a browser

Great! will try it later. You can check performance evaluating this: (load "newlisp-js/qa-bench") The file is loaded from the internal directory. >>>>> total time: 821 >>>>> Performance ratio: 1.54 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit) Its 1.54 times slower in JavaScript...
by Lutz
Thu Jun 22, 2017 3:05 pm
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 133364

Re: newLISP in a browser

When I have more time, may be. There is very little interest in the browser version at all. Perhaps somebody else wants to do it: http://webassembly.org/docs/faq/
by Lutz
Wed Jun 21, 2017 11:47 pm
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 133364

Re: newLISP in a browser

Thanks for doing this work Ferry: http://www.ferrydb.nl/newlisp/ I also updated the 'info' file to newlisp-js-10.7.3.zip reference here: http://www.newlisp.org/newlisp-js/ The zip file contains the whole newlisp-js directory including the codemirror editor files. The -s MAX_SETJMPS=100 setting in th...
by Lutz
Fri Jun 16, 2017 1:45 pm
Forum: Whither newLISP?
Topic: (directory) nonsence
Replies: 5
Views: 6742

Re: (directory) nonsence

The function 'directory' (as you use it) takes two arguments, the first is the path.
Only the second can take a regular expression for the filename:

http://www.newlisp.org/downloads/newlis ... #directory
by Lutz
Fri May 05, 2017 7:30 am
Forum: newLISP newS
Topic: Stable maintenance release newLISP v.10.7.1
Replies: 11
Views: 15670

Re: Stable maintenance release newLISP v.10.7.1

Good suggestion. In 10.7.3 "newlisp -h" will also suppress loading of init.lsp:

http://www.newlisp.org/downloads/develo ... nprogress/
by Lutz
Thu Apr 13, 2017 1:46 pm
Forum: newLISP newS
Topic: Stable maintenance release newLISP v.10.7.1
Replies: 11
Views: 15670

Re: Stable maintenance release newLISP v.10.7.1

Binaries for 10.7.2 are available here:

http://www.newlisp.org/downloads/development/
by Lutz
Sat Apr 08, 2017 7:33 am
Forum: newLISP newS
Topic: Stable maintenance release newLISP v.10.7.1
Replies: 11
Views: 15670

Re: Stable maintenance release newLISP v.10.7.1

Still testing it and working on it. There could be other related issues.

May be sometime next week, I can make a maintenance release with new binaries.
by Lutz
Fri Apr 07, 2017 11:27 am
Forum: newLISP newS
Topic: Stable maintenance release newLISP v.10.7.1
Replies: 11
Views: 15670

Re: Stable maintenance release newLISP v.10.7.1

Thanks Shoukei for catching this. Fixing seek and search for mixed file-stream / raw-handle operations was not done right.

Fixed here: http://www.newlisp.org/downloads/develo ... nprogress/
by Lutz
Thu Mar 16, 2017 2:35 am
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 133364

Re: newLISP in a browser

After reading this: https://hacks.mozilla.org/2017/03/why-w ... an-asm-js/
I may change my mind. Perhaps WebAssembly is worth a try. Also does 64bit integers.
by Lutz
Sun Mar 12, 2017 5:31 pm
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 133364

Re: newLISP in a browser

Probably a newlisp-js-lib.wasm will be substantially bigger than a newlisp-js-lib.js, which might be a problem on devices with less memory. Speedwise we don’t know, the current JavaScript machine in FireFox is already pretty good. For me, the main thing on this topic is, that the interest in ‘newLIS...
by Lutz
Mon Feb 20, 2017 12:05 am
Forum: newLISP and the O.S.
Topic: exec in newlisp 10.7.1/Windows
Replies: 1
Views: 4157

Re: exec in newlisp 10.7.1/Windows

The translation from “\n” to “\r\n” happens in the newer MINGW development system call popen() or _popen(). Both do the same text translation in current MINGW versions used. In newLISP popen() is used only in the exec function and when writing CGI output in newLISP builtin web server (nl-web.c). Whe...
by Lutz
Sat Feb 11, 2017 11:34 pm
Forum: newLISP in the real world
Topic: set multiple symbols from list values at once
Replies: 2
Views: 3160

Re: set multiple symbols from list values at once

use map and set

Code: Select all

> (map set '(name city age) '("john" "new york" 22))
("john" "new york" 22)

> name
"john"
> city
"new york"
> age
22
> 
by Lutz
Wed Feb 01, 2017 5:35 pm
Forum: newLISP newS
Topic: Stable maintenance release newLISP v.10.7.1
Replies: 11
Views: 15670

Re: Stable maintenance release newLISP v.10.7.1

Thanks for the correction and quick update of the Japanese manual translation.

English: http://www.newlisp.org/downloads/newlisp_manual.html

Japanese: http://www.newlisp.org/newlisp_manual-jp.html
by Lutz
Tue Jan 31, 2017 12:15 am
Forum: newLISP newS
Topic: Stable maintenance release newLISP v.10.7.1
Replies: 11
Views: 15670

Stable maintenance release newLISP v.10.7.1

Stable maintenance release v.10.7.1 adds minor functionality and fixes bugs.

Downloads: http://www.newlisp.org/index.cgi?Downloads

Release notes: http://www.newlisp.org/downloads/newLIS ... lease.html

Many thanks to all for suggestions and bug reports leading to this release.
by Lutz
Thu Jan 19, 2017 6:07 pm
Forum: newLISP in the real world
Topic: Why this forum's link not exists in newlisp's home page?
Replies: 2
Views: 3448

Re: Why this forum's link not exists in newlisp's home page?

The maintainer of this bord ryon, messaged me that currently new board registrations are not possible because registration confirmation emails are failing. Until this issue is fixed, I removed the link from the home page. Existing users of the baord tipically know the link anyway.
by Lutz
Sat Nov 26, 2016 9:53 am
Forum: newLISP Graphics & Sound
Topic: Tk (or other) GUI in newLisp (single executable)
Replies: 11
Views: 14608

Re: Tk (or other) GUI in newLisp (single executable)

The Tcl/Tk based newLISP GUI in was abandoned in version 9.1.9 in 2007 when the Java based Guiserver was introduced. Since then some minor changes where necessary to adapt to changes in the newLISP API. HPW from http://hpwsoft.de made some necessary changes to the newlisp-tk script for subsequent ve...
by Lutz
Thu Oct 06, 2016 9:51 pm
Forum: newLISP in the real world
Topic: bug?
Replies: 3
Views: 4186

Re: bug?

Thanks for finding this. nil is only allowed in ++, --, inc and dec when contents of a variable, else it is seen as a wrong parameter.

fixed here: http://www.newlisp.org/downloads/develo ... nprogress/
by Lutz
Tue Sep 20, 2016 2:05 pm
Forum: newLISP in the real world
Topic: ANNOUNCE: A Simple Genetic Algorithm in NewLisp...
Replies: 2
Views: 4021

Re: ANNOUNCE: A Simple Genetic Algorithm in NewLisp...

Genetic algorithms are great. You also might be interested in fuzzy logic . Similarly to genetic algorithms , fuzzy logic can solve mathematically complex problems in a simple way. This book uses newLISP for all examples: A Practical Introduction to Fuzzy Logic using LISP By Luis Argüelles Méndez (a...
by Lutz
Mon Sep 19, 2016 11:05 pm
Forum: newLISP newS
Topic: newLISP v.10.7.0 Stable Release
Replies: 21
Views: 21151

Re: newLISP v.10.7.0 Stable Release

Don't use configure-alt which gives me the same problem on FreeBSD 10.3, but use configure instead, which works well selecting makefile_bsdLP64_utf8_ffi : newlisp /home/public/newlisp-10.7.0]$ make ./configure removing old objects and setting correct permissions ... discovering platform and default ...
by Lutz
Fri Aug 05, 2016 1:13 pm
Forum: newLISP in the real world
Topic: intersect bug?
Replies: 4
Views: 5743

Re: intersect bug?

The intersect function only takes 2 lists, but you could use apply with a reduce 2 parameter to work on more lists: > (setf a '(4 5 3 6 7)) (4 5 3 6 7) > (setf b '(3 1 2 0 5)) (3 1 2 0 5) > (setf c '(4 0 1 2 5)) (4 0 1 2 5) > (setf d '(0 1 2 0 5)) (0 1 2 0 5) > > (apply intersect (list a b c d) 2) (...
by Lutz
Wed Aug 03, 2016 3:24 pm
Forum: newLISP in the real world
Topic: memory leak? antiprimes
Replies: 15
Views: 9675

Re: memory leak? antiprimes

What you see, is memory not reclaimed by the the OS yet, but already given back to the OS by your newLISP process and accumulating over time. Take out the ‘exit’ statement at the end of the program, so it will stay in newLISP, but not run. When monitoring (1) the process, you will see that the OS wi...