newLISP Fan Club

Forum => newLISP newS => Topic started by: Lutz on November 24, 2011, 07:44:42 AM

Title: newLISP development release v.10.3.7
Post by: Lutz on November 24, 2011, 07:44:42 AM
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:


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

(atof "123.456") ;=> 123.456


On Mac OS X, you would use "libc.dylib" on Linux "libffi.so".
Title: Re: newLISP development release v.10.3.7
Post by: HPW on November 24, 2011, 08:33:43 AM
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:
Quote
> (import "msvcrt.dll" "atof" "double" "char*")

atof<77BECF90>

> (atof "123.456")

123.456
Title: Re: newLISP development release v.10.3.7
Post by: newdep on November 25, 2011, 11:46:01 AM
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
Title: Re: newLISP development release v.10.3.7
Post by: xytroxon on December 01, 2011, 12:16:43 AM
On 64 bit Win 7 machines, 32 bit programs are installed in:


"C:/Program Files (x86)/..."

The cypto.lsp (and other?) module needs to add that path as shown below.



(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
Title: Re: newLISP development release v.10.3.7
Post by: johu on December 01, 2011, 02:32:22 AM
For new release, in newlisp_manual.html


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

 is


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

Maybe, already it might have been corrected.
Title: Re: newLISP development release v.10.3.7
Post by: Lutz on December 01, 2011, 07:24:39 PM
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/development/inprogress/

development release 10.3.8 coming week