newLISP development release v.10.3.7

Notices and updates
Locked
Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

newLISP development release v.10.3.7

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

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Re: newLISP development release v.10.3.7

Post 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
Hans-Peter

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Re: newLISP development release v.10.3.7

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

xytroxon
Posts: 296
Joined: Tue Nov 06, 2007 3:59 pm
Contact:

Re: newLISP development release v.10.3.7

Post 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
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976

johu
Posts: 143
Joined: Mon Feb 08, 2010 8:47 am

Re: newLISP development release v.10.3.7

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: newLISP development release v.10.3.7

Post 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

Locked