Page 1 of 1

newLISP development release v.10.3.7

Posted: Thu Nov 24, 2011 3:44 pm
by Lutz
Development release 10.3.7 expands the FFI, foreign functions import API and fixes bugs.

For files, release and changes notes see:
http://www.newlisp.org/downloads/development

All binaries in this release are compiled for the extended FFI with libfffi. On Mac OSX libffi come as part of the standard install. The same seems to be true for UBUNTU Linux 11.04. On Windows, the new FFI seems to work, although no libffi is installed (but required for compilation). At the moment I only could test on two Windos XP SP2 installations. Perhaps a Windows 7 user can confirm that it works on that platform too, without installing anything additional. To try the extended API on Windows you can use this:

Code: Select all

(import "msvcrt.dll" "atof" "double" "char*") 

(atof "123.456") ;=> 123.456
On Mac OS X, you would use "libc.dylib" on Linux "libffi.so".

Re: newLISP development release v.10.3.7

Posted: Thu Nov 24, 2011 4:33 pm
by HPW
Works for me on my WIN7 tablet in newlisp editor.
Just after newlisp update without anything else.

Edit: Also tested the DLL from neobook on XP:
> (import "msvcrt.dll" "atof" "double" "char*")
atof<77BECF90>
> (atof "123.456")
123.456

Re: newLISP development release v.10.3.7

Posted: Fri Nov 25, 2011 7:46 pm
by newdep
Yups..works fine on Win7 :-)
Will test debian and slackware next week...

> (import "msvcrt.dll" "atof" "double" "char*")
(atof "123.456")

atof<76270A80>
> 123.456

Re: newLISP development release v.10.3.7

Posted: Thu Dec 01, 2011 8:16 am
by xytroxon
On 64 bit Win 7 machines, 32 bit programs are installed in:

Code: Select all

"C:/Program Files (x86)/..."
The cypto.lsp (and other?) module needs to add that path as shown below.

Code: Select all

(context 'crypto)

; set library to path-name of the library on your platform OS
;
(set 'files '(
        "C:/Program Files/gnuwin32/bin/libeay32.dll"
        "C:/Program Files (x86)/gnuwin32/bin/libeay32.dll" ;; <<< add this line
        "/usr/lib/libcrypto.so"
        "/usr/lib/libcrypto.so.0.9.8"
        "/usr/lib/libcrypto.so.0.9.7"
        "/usr/lib/libcrypto.so.0.9.6"
        "/usr/lib/libcrypto.so.4"
        "/usr/lib/libcrypto.so.18.0" ; OpenBSD 4.6
        "/usr/lib/libcrypto.dylib"
))
-- xytroxon

Re: newLISP development release v.10.3.7

Posted: Thu Dec 01, 2011 10:32 am
by johu
For new release, in newlisp_manual.html

Code: Select all

<pre>
(until (send pidB (string "greetings from " A)))
</pre>
is

Code: Select all

<pre>
(until (send B (string "greetings from " A)))
</pre>
Maybe, already it might have been corrected.

Re: newLISP development release v.10.3.7

Posted: Fri Dec 02, 2011 3:24 am
by Lutz
Thanks for the corrections xytroxon and johu. Haven't had electricity since last night (severe storms in the Pasadena / L.A. area), will post updates tomorrow.

ps: updated in: http://www.newlisp.org/downloads/develo ... nprogress/
development release 10.3.8 coming week