newLISP development release v.10.3.7

Started by Lutz, November 24, 2011, 07:44:42 AM

Previous topic - Next topic

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">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".

HPW

#1
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
Hans-Peter

newdep

#2
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
-- (define? (Cornflakes))

xytroxon

#3
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
\"Many computers can print only capital letters, so we shall not use lowercase letters.\"

-- Let\'s Talk Lisp (c) 1976

johu

#4
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.

Lutz

#5
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/">http://www.newlisp.org/downloads/develo ... nprogress/">http://www.newlisp.org/downloads/development/inprogress/

development release 10.3.8 coming week