newLISP Stable Release v.10.4.0

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

newLISP Stable Release v.10.4.0

Post by Lutz »

Stable Release 10.4.0 has a rewritten message API for multiprocessing, an extended FFI and makes efficiency improvements.

http://www.newlisp.org/index.cgi?page=Downloads

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

Re: newLISP Stable Release v.10.4.0

Post by newdep »

Thanks lot Lutz!... ;-)
-- (define? (Cornflakes))

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

Re: newLISP Stable Release v.10.4.0

Post by xytroxon »

Keep up the good work!!!

-- xytroxon
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976

jopython
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Re: newLISP Stable Release v.10.4.0

Post by jopython »

Thank you Lutz for the readline improvements.

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

Re: newLISP Stable Release v.10.4.0

Post by johu »

Hellow, Lutz.

Accoding to Release Notes v.10.4.0

In function now,
The day-of-the-year number now starts with 1 instead of offset 0. Both changes make now more ISO 8601 compliant.
So, I have a qestion.
The date function date-list returns the day-of-the-year number, too.

Code: Select all

newLISP v.10.4.0 on Win32 IPv4/6, execute 'newlisp -h' for more info.

> (date-list (date-value))
(2012 2 15 8 31 15 45 3)
> (now)
(2012 2 15 8 31 17 952586 46 3 540 -60)
It seems that the day-of-the-year numbers are different in now and date-list.

In the manual of date-list,
(date-list 1282479244) → (2010 8 22 12 14 4 234 1)
(date-list 1282479244 0) → 2010 ; year
(date-list 1282479244 -2) → 234 ; day of year

(apply date-value (date-list 1282479244)) → 1282479244

(date-list 0) → (1970 1 1 0 0 0 1 5) ; Thursday 1st, Jan 1900
In reality,

Code: Select all

> (date-list 1282479244)
(2010 8 22 12 14 4 233 7)
> (date-list 0)
(1970 1 1 0 0 0 0 4)
2010/8/22 was Sunday.

Perhaps,
The day-of-the-year number is not correct, but its example in the manual is correct.
The day of current week is correct, but its example in the manual is not correct.

By the way,
Now, I am translating the manual to Japanese.
As soon as possible, I will finish and update it.

Thanks,

P.S.

In the manual,

The following examples show how the extendet <tt>import</tt> syntax can
                   ↓
The following examples show how the extended <tt>import</tt> syntax can

Maybe.
Last edited by johu on Wed Feb 15, 2012 3:16 pm, edited 1 time in total.

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

Re: newLISP Stable Release v.10.4.0

Post by Lutz »

The day of year value in 'date-list' is still a 0 based offset and has not yet been converted like 'now'. I have made a note in the manual - now online - and have corrected the example.

This does not affect any conversions as shown in the manual, where the day of year value is never used.

Thanks for discovering this.

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

Re: newLISP Stable Release v.10.4.0

Post by johu »

Thank you, Lutz.

I understood.

And I updated the manual translated to Japanese.

newlisp_manual-10400
CodePatterns-20120214

There are in here.

Regards,

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

Re: newLISP Stable Release v.10.4.0

Post by Lutz »

Thanks a lot, Johu. Both are updated here:

http://www.newlisp.org/newlisp_manual-jp.html
http://www.newlisp.org/CodePatterns-jp.html

I also added a link to a framed Japanese version on the Documentation page.

Ishpeck
Posts: 14
Joined: Thu Jun 09, 2011 3:53 am

Re: newLISP Stable Release v.10.4.0

Post by Ishpeck »

Running Arch Linux x86_64, had the following.

Code: Select all

In file included from newlisp.c:20:0:
newlisp.h:37:56: fatal error: x86_64-linux-gnu/ffi.h: No such file or directory
compilation terminated.
Changed newlisp.h to get it compiling.

Code: Select all

[ishpeck@kiyoshi newlisp-10.4.0]$ export C_INCLUDE_PATH=/usr/lib/libffi-3.0.10/include:/usr/include
[ishpeck@kiyoshi web]$ diff newlisp.h newlisp-10.4.0/newlisp.h
37,38c37
< /*#  include <x86_64-linux-gnu/ffi.h>*/    /* ubuntu_x64 */
< #include <ffi.h>
---
> #  include <x86_64-linux-gnu/ffi.h>    /* ubuntu_x64 */
Seems to work now.

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

Re: newLISP Stable Release v.10.4.0

Post by johu »

Thank you for always being so kind, Lutz.

It seems to be still old version in http://www.newlisp.org/CodePatterns-jp.html.

And I updated the guiserver manual to Japanese.
guiserver_index-jp.html was modified because links was incorrect.
Of course, guiserver_manual-jp.html renewed.

newlisp_manual-10400
CodePatterns-20120214
guiserver_manual-144

There are in here.

Regards,

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

Re: newLISP Stable Release v.10.4.0

Post by Lutz »

Perhaps you have a problem with your browser cache - hit Shift-Reload ;-) Both newlisp_manual.jp and CodePatterns-jp.html where replaced yesterday. On guiserver_manual-jp.html, today I only found a 2011 -> 2012 difference in the date and have replaced it. Biut JP spelling to jp was all replaced with new files yesterday.

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

Re: newLISP Stable Release v.10.4.0

Post by johu »

I am sorry,

CodePatterns-jp was a problem with my browser cache.

But 0GUI functions with Japanese occurs link-error when link is clicked in function-indexes.
Becasue in guiserver_index-jp.html, using "-JP" at links, not "-jp".
There are my mistakes.
Please replace http://www.newlisp.org/guiserver-jp/gui ... ex-jp.html.

Thanks,

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

Re: newLISP Stable Release v.10.4.0

Post by Lutz »

Thanks Johu, now online corrected:

http://www.newlisp.org/guiserver-jp/gui ... me-jp.html

now the framed format is also available in English:

http://www.newlisp.org/guiserver/guiserver_frame.html

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

Re: newLISP Stable Release v.10.4.0

Post by johu »

Thanks a lot, Lutz.

Locked