Development release newLISP v.10.7.3

Notices and updates

Development release newLISP v.10.7.3

Postby Lutz » Mon Oct 09, 2017 5:12 pm

Development release newLISP v.10.7.3 fixes bugs and adds a non-blocking option to 'read-key'.

http://www.newlisp.org/downloads/development/

http://www.newlisp.org/downloads/develo ... lease.html

This release is the base for a stable release 10.7.4 in January 2018.
Lutz
 
Posts: 5258
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: Development release newLISP v.10.7.3

Postby TedWalther » Mon Oct 09, 2017 8:12 pm

Wow, how did you know. This week for the first time in many years of using newlisp, I used read-key. And then I came to a use-case where I wanted non-blocking. I tried using "peek" for this, but it didn't work. Thank you for adding non-blocking read-key!
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.
TedWalther
 
Posts: 602
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC

Re: Development release newLISP v.10.7.3

Postby johu » Tue Oct 10, 2017 10:59 am

Hello, Lutz.

line 2002889 in newlisp_manual v10.7.3
<p>Wen using the <tt>true</tt> flag the <tt>read-key</tt> is non-blocking
  ↓
<p>When using the <tt>true</tt> flag the <tt>read-key</tt> is non-blocking

maybe

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

ERR: invalid list index in function set

Postby shoukei » Wed Mar 21, 2018 7:02 am

Hello,

I am reading a tsv file into an array but I'm getting "ERR: invalid list index in function set"
in newLISP 10.7.4. and 10.7.3.

Code: Select all
(setq addrlist (array 27000 4))
(setq filename "zenkoku2.tsv")

(set 'data-file (open filename "read"))
(setq NR 0)
(while (read-line data-file)
       (setq thisline (current-line))
       (setq thisline (parse thisline "\t" 0))
       (println NR)
       (println thisline)
       (setq (addrlist NR 0) (thisline 0))
       (setq (addrlist NR 1) (thisline 1))
       (setq (addrlist NR 2) (thisline 2))
       (setq (addrlist NR 3) (thisline 3))
       (inc NR)
       )
(close data-file)


But it works with version 10.7.2.
I don't know why it doesn't work with the latest versions.

Thanks.
Attachments
zenkoku2.tsv.zip
(238.03 KiB) Downloaded 67 times
shoukei
 
Posts: 6
Joined: Tue Aug 30, 2016 1:29 pm

Re: Development release newLISP v.10.7.3

Postby Lutz » Sun Mar 25, 2018 9:14 pm

Your code will work with v10.7.4 like in v10.7.1 here:
http://newlisp.org/downloads/development/inprogress/

See the paragraph about synchronizing file positions from stream and raw file access:
http://newlisp.org/downloads/developmen ... 10.7.4.txt
Lutz
 
Posts: 5258
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Uploading doesn't work now

Postby shoukei » Mon Mar 26, 2018 3:33 am

Lutz wrote:Your code will work with v10.7.4 like in v10.7.1 here:
http://newlisp.org/downloads/development/inprogress/

See the paragraph about synchronizing file positions from stream and raw file access:
http://newlisp.org/downloads/developmen ... 10.7.4.txt


Thank you Lutz for the fix.

Reading the tsv file now works great.

But uploading doesn't work again like what happened some time ago. The uploaded file is corrupt.
I remember that was related to 'seek' also.
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=2&t=4870&p=23967&hilit=shoukei#p23965

Best Regards,
Shoukei
shoukei
 
Posts: 6
Joined: Tue Aug 30, 2016 1:29 pm

Re: Development release newLISP v.10.7.3

Postby Lutz » Mon Mar 26, 2018 2:43 pm

More changes. This works on macOS for your data and test-code and for upload.cgi without file corruption:
http://newlisp.nfshost.com/downloads/de ... nprogress/

Not tested yet on Windows and Linux.
Lutz
 
Posts: 5258
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: Development release newLISP v.10.7.3

Postby shoukei » Tue Mar 27, 2018 5:25 am

Lutz wrote:More changes. This works on macOS for your data and test-code and for upload.cgi without file corruption:
http://newlisp.nfshost.com/downloads/de ... nprogress/

Not tested yet on Windows and Linux.


Thanks Lutz!

Everything works now.
shoukei
 
Posts: 6
Joined: Tue Aug 30, 2016 1:29 pm


Return to newLISP newS

Who is online

Users browsing this forum: No registered users and 1 guest

cron