Search found 5296 matches

by Lutz
Wed Jul 27, 2016 1:54 am
Forum: Whither newLISP?
Topic: mat BUG
Replies: 2
Views: 7717

Re: mat BUG

Thanks Kosh and Rickyboy, now working: http://www.newlisp.org/downloads/development/inprogress/ newLISP v.10.7.1 64-bit on OSX IPv4/6 UTF-8 libffi, options: newlisp -h > (mat * '((1 2 3) (4 5 6)) -1) ((-1 -2 -3) (-4 -5 -6)) > (mat * '((1 2 3) (4 5 6)) (float -1)) ;; on 10.7.0 64-bit cast the scalar ...
by Lutz
Mon Jul 25, 2016 4:19 pm
Forum: newLISP in the real world
Topic: search not changing seek position
Replies: 5
Views: 5648

Re: search not changing seek position

Now works on all cases and platforms: http://www.newlisp.org/downloads/development/inprogress/ > (open "newlisp.c" "r") 3 > (search 3 "you") 134 > (seek 3) 134 > (search 3 "You") 611 > (seek 3) 611 > (search 3 "see") 715 > (read-line 3) "see <http://www.gnu.org/licenses/>." > (seek 3) 751 > (read-li...
by Lutz
Fri Jul 22, 2016 2:34 pm
Forum: newLISP in the real world
Topic: search not changing seek position
Replies: 5
Views: 5648

Re: search not changing seek position

Seems to be a bug on Linux and OpenBSD, (seek 3) should return the position of the search. It is fine on Mac OSX, Windows and FreeBSD: > (open "newlisp.c" "r") 3 > (seek 3) 0 > (search 3 "you") 134 > (seek 3) 134 > (search 3 "You") 611 > (seek 3) 611 > Not sure what is going on in Linux and OpenBSD.
by Lutz
Wed Jul 20, 2016 3:39 am
Forum: Anything else we might add?
Topic: primitive function empty? could not accept array
Replies: 13
Views: 12771

Re: primitive function empty? could not accept array

There are no empty arrays ;-)
by Lutz
Thu Jul 07, 2016 5:49 pm
Forum: Anything else we might add?
Topic: Strange reader
Replies: 5
Views: 10826

Re: Strange reader

The keywords lambda , lambda-macro , fn and fn-macro are resolved / translated at a very early stage of the source reading process for speed efficiency reasons. Think of them as being built-in and not re-definable similar to parentheses and quotes, they are part of the syntax. These keywords transla...
by Lutz
Sat Apr 30, 2016 6:40 pm
Forum: newLISP in the real world
Topic: file-info on directorys
Replies: 1
Views: 4092

Re: file-info on directorys

The file-info just reports the contents of the C stat() or fstat() function argument structure, without any processing. There are subtle differences how structure fields are used on different platforms but this manual page for Linux perhaps gives you an Idea: http://man7.org/linux/man-pages/man2/sta...
by Lutz
Sat Apr 30, 2016 6:29 pm
Forum: So, what can you actually DO with newLISP?
Topic: Quaternion strikes back
Replies: 4
Views: 9529

Re: Quaternion strikes back

Thanks for the contributions, Heiko!

The old files for vector.lsp and quadlib.lsp have been removed and a GitHub link is added on the modules page here: http://www.newlisp.org/modules/ where it says "Index: hds1/newlisp-modules". If you prefer a different description line, let me know.
by Lutz
Wed Apr 27, 2016 6:26 am
Forum: newLISP newS
Topic: segmentation fault
Replies: 3
Views: 8096

Re: segmentation fault

A segfault may leave a process in an unknown, potentially unsafe, state and the process should exit.
by Lutz
Mon Apr 25, 2016 5:18 pm
Forum: newLISP newS
Topic: segmentation fault
Replies: 3
Views: 8096

Re: segmentation fault

The second parameter of unpack must contain a valid memory addrees or a segfault can occur. This is mentioned in the documentation:
http://www.newlisp.org/downloads/newlis ... tml#unpack
... in the second paragraph.
by Lutz
Tue Apr 19, 2016 1:25 pm
Forum: newLISP Graphics & Sound
Topic: Guiserver again
Replies: 6
Views: 7889

Re: Guiserver again

On OS X and all other Unix/Linux newlisp-edit looks for NEWLISPDIR/guiserver.jar , where NEWLISPDIR is defined as /usr/local/share/newlisp on newlisp startup, except when NEWLISPDIR is already defined in the environment, then that definition is not changed when newlisp starts. You also can start new...
by Lutz
Mon Apr 11, 2016 7:44 am
Forum: newLISP and the O.S.
Topic: New installation on Mac OS X El Capitan (10.11.4)
Replies: 3
Views: 6292

Re: New installation on Mac OS X El Capitan (10.11.4)

On both the OS X and Windows system, I am using, JAVA_HOME is not defined but the java executable (javaw on Windows) is in the executable path. On OS X there is a link from /usr/bin/java to the Java Framework files: ~> which java /usr/bin/java ~> ls -ltr /usr/bin/java lrwxr-xr-x 1 root wheel 74 Dec ...
by Lutz
Sat Apr 09, 2016 2:20 pm
Forum: newLISP and the O.S.
Topic: New installation on Mac OS X El Capitan (10.11.4)
Replies: 3
Views: 6292

Re: New installation on Mac OS X El Capitan (10.11.4)

Not sure what is going on. Perhaps a faulty Java installation? Have not seen this, I am also running OSX Capitan and always update/install the latest Java. Perhaps other users have seen this? Several documentation files needed update to /usr/local, see here: http://www.newlisp.org/downloads/developm...
by Lutz
Thu Apr 07, 2016 6:39 am
Forum: So, what can you actually DO with newLISP?
Topic: Quaternion Calculus
Replies: 5
Views: 6960

Re: Quaternion Calculus

... and also updated here: http://www.newlisp.org/modules/various/quatlib.lsp.html

ps: upated to 0.3
pps: upated to 0.4
ppps: upated to 0.6
by Lutz
Wed Apr 06, 2016 12:51 pm
Forum: So, what can you actually DO with newLISP?
Topic: Quaternion Calculus
Replies: 5
Views: 6960

Re: Quaternion Calculus

Thanks Heiko, the module link has been added here http://www.newlisp.org/modules/various/index.html and accessible from the modules pages http://www.newlisp.org/modules/ from the 'Various' section.
by Lutz
Fri Mar 25, 2016 10:50 am
Forum: newLISP in the real world
Topic: Wrong number of grid columns
Replies: 3
Views: 4914

Re: Wrong number of grid columns

Thanks for the thorough analysis. This seems to be a peculiarity with the Java API. I am currently running JDK 1.8.0_40 on Windows 7. As I am currently travelling, I only have access to a Windows computer, but can test Mac OSX when I am back home by the end of April. I assume it will be the same pic...
by Lutz
Thu Mar 24, 2016 3:28 pm
Forum: newLISP in the real world
Topic: Wrong number of grid columns
Replies: 3
Views: 4914

Re: Wrong number of grid columns

Populate the frame first with panel s then add other elements into each panel . The following example creates a window with a rows x cols grid: #!/usr/bin/newlisp (set-locale "C") (load (append (env "NEWLISPDIR") "/guiserver.lsp")) (gs:init) (gs:frame 'GridDemo 100 100 300 200 "panels in a grid") (s...
by Lutz
Thu Mar 17, 2016 6:08 pm
Forum: newLISP newS
Topic: mem leak in v10.7.1
Replies: 2
Views: 7406

Re: mem leak in v10.7.1

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

still doing more testing.
by Lutz
Thu Mar 17, 2016 4:05 pm
Forum: newLISP newS
Topic: mem leak in v10.7.1
Replies: 2
Views: 7406

Re: mem leak in v10.7.1

... looking into it.
by Lutz
Mon Mar 14, 2016 3:43 pm
Forum: newLISP newS
Topic: newLISP v.10.7.0 Stable Release
Replies: 21
Views: 21146

Re: newLISP v.10.7.0 Stable Release

... time zone offset in the 'now' function now switching fine between standard and daylight savings time on Windows:

http://www.newlisp.org/downloads/develo ... l.html#now

http://www.newlisp.org/downloads/development/inprogress
by Lutz
Mon Feb 22, 2016 1:16 am
Forum: newLISP newS
Topic: newLISP v.10.7.0 Stable Release
Replies: 21
Views: 21146

Re: newLISP v.10.7.0 Stable Release

Thanks Johu, for better testing, I will come back to this mid March when daylight savings time starts in the US.
by Lutz
Thu Feb 18, 2016 3:53 pm
Forum: newLISP newS
Topic: newLISP v.10.7.0 Stable Release
Replies: 21
Views: 21146

Re: newLISP v.10.7.0 Stable Release

It is incorrectly adjusting for daylight bias in 10.7.0 on Windows. This will be set back to previous 10.6.2 behavior in a future version. The intend was to make values compatible between Unix and Windows during daylight savings time. But it breaks when outside of daylight savings time. The assumpti...
by Lutz
Fri Feb 05, 2016 3:21 pm
Forum: newLISP in the real world
Topic: bayes-train and query-cgi.txt
Replies: 1
Views: 4319

Re: bayes-train and query-cgi.txt

bayes-train just counts and is often used just for counting purposes without applying Bayesian statistics, bayes-query then does the Bayesian calculations on those counts.


Ps: there is now bayes-query going on in query-edit.txt, "query" here just means a "web query"
by Lutz
Fri Jan 22, 2016 7:42 pm
Forum: newLISP newS
Topic: newLISP v.10.7.0 Stable Release
Replies: 21
Views: 21146

Re: newLISP v.10.7.0 Stable Release

Many thanks, Johu and Ralph. Everything is updated.
by Lutz
Thu Jan 21, 2016 5:11 pm
Forum: newLISP newS
Topic: newLISP v.10.7.0 Stable Release
Replies: 21
Views: 21146

newLISP v.10.7.0 Stable Release

Stable release v.10.7.0 adds functionality to existing functions, adds a new function and fixes bugs. Release Notes: http://www.newlisp.org/downloads/newLISP-10.7.0-Release.html Downloads: http://www.newlisp.org/index.cgi?Downloads Thanks to everybody for their contributions and suggestions. Ps: on ...