release newLISP version 10.0

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

release newLISP version 10.0

Post by Lutz »

• A new generation of newLISP

Release notes: http://www.newlisp.org/downloads/newLIS ... lease.html

All files: http://www.newlisp.org/downloads

Ps: checksums done with: openssl dgst -sha1

SHA1(newlisp-10.0.0-intel.dmg)= 5e365a989aac1c69783b2a1a62f49026c6cc0a3e
SHA1(newlisp-10.0.0-ppc.dmg)= d7d9237c5a46bcd27e86d0b1c48eaf9c49a24b90
SHA1(newlisp-10.0.0.tgz)= 78e1292773a21d178253b19a0f7b167c3d6ae7a1
SHA1(newlisp-10000-win-gs-125.exe)= f0399ebc007e4076027e22a1cc63c1f9526cab12
SHA1(newlisp-ide-4.2.tgz)= 99b62a2cfe82bc85ed682f623c0fd4f2dd496512
SHA1(newlisp-wiki-4.5.tgz)= a08de4009cadaa63820fbb710596ab1ec3310d4c
SHA1(newlisp_10.0.0-1_i386.deb)= d91900a464cffb626beb328382b3064082d026af
SHA1(newlisp_10.0.0-utf8_i386.deb)= acd3c22637d09c6546c6f9dc66505968775515f3

Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Post by Kazimir Majorinc »

Congratulations, best wishes and thanks.

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

Post by newdep »

champagne! <...PloP...>
-- (define? (Cornflakes))

unixtechie
Posts: 65
Joined: Sat Sep 06, 2008 6:30 am

hooray!

Post by unixtechie »

champagne and fireworks ;))))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Congratulations! Time to start coding!

Days to competition deadline:

Code: Select all

> (load "http://unbalanced-parentheses.nfshost.com/downloads/timeutilities.lsp.txt")
> (Duration:list-to-string (:period-to-list (Duration (:period (Time) (Time 2008 12 31 23 59 59)))))
"23d 04h 25m 45s"
(well, I don't recommend you download and run code like this... :)

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Post by itistoday »

Congrats! :-D

(btw Lutz, are you on Twitter?)
Get your Objective newLISP groove on.

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Post by itistoday »

Ack! Can't run the intel .pkg, it reports that I've got a newer version of newlisp installed (I don't, I have 9.9.96).
Get your Objective newLISP groove on.

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

Post by Lutz »

Do the uninstall, then install again.

or do manually:

sudo rm -rf /Library/Receipts/newLISPpackage.pkg/

this is part of the uninstall.command script (you dbl-click on it) in the installation newlisp-10.0.0-intel.dmg

I am not on twitter.

thanks for all the congratulations, also posted the newlisp_manual.pdf 2 hours ago.

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Post by itistoday »

Sorry, I didn't mean to make that sound like a cry for help, was just reporting it in case this was something you wanted to know about.
Get your Objective newLISP groove on.

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

Post by newdep »

Lutz,

What again where the right printing formats when you want to
print the newlisp manual?


Edit: fount it...
Print double sided on 8.5x11 inch or DIN A4 size paper, then cut to 7 x 9 inches and bind.
-- (define? (Cornflakes))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Yes, I often get that "newer package" problem too. I don't really understand why, but it happened in earlier releases too.

ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Post by ale870 »

Wow! Congratulations and thank you!
newLisp is the best scripting language I ever used!
--

donkey
Posts: 1
Joined: Mon Aug 04, 2008 2:54 pm

Post by donkey »

Wonderful, I've been waiting for this :). Best regards!

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

After some days of testing and trying really hard to find a bug, I couldn't find anything.... One moment I thought there was something with the UTF-8 stuff but it appeared to be a bug on my side :-)

So congrats! I will convert my old stuff to newLisp10 :-)

Peter

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

Post by xytroxon »

newLISP 10.0 Manuel's errors er. "manual" spelling errors ;)

(search for -> and replace with)

amnd -> and

arccosine -> arc-cosine used else where

"terms are of different arity" parity?

avalailable -> available

diffferent -> different

eturned -> returned

exection -> execution

fuction -> function

implixit -> implicit

initilization -> initialization

interation -> iteration

loalhost -> localhost

loded -> loaded

otherwis -> otherwize

prefined -> predefined

ramaining -> remaining

specifiy -> specify

standrad -> standard

structurei -> structure (think I reported this earlier)

surroundng -> surrounding

sytem -> system

useres -> users

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

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

Post by xytroxon »

Some I just found in Code Patterns to fix (may be some variable names)

caugth

chracter

conventsions

differencing

distibuted

eilnpsw

elmnt

exampls

extabish

fropm

fucntion

funcion

indetd

nde

netcat

nodep

nohup

prodcons

resuls

solutions

somefile

sring

transfomed

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

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

Post by Lutz »

Thanks to xytroxon and all the others sending in corrections for documentation. A new version of Code Patterns is online here:

http://www.newlisp.org/downloads/CodePatterns.html

The manual was updated last on december 20th.

There will be a 10.0.1 maintenance release update during the first week of January, fixing some bugs and updating some external files. Most of these files are already online, i.e. stat.lsp and newLISPdoc.html.

Many thanks to everybody in the community for their participation and advice.

To all a good transition into a happy and peaceful year 2009.

Jeremy Dunn
Posts: 95
Joined: Wed Oct 13, 2004 8:02 pm
Location: Bellingham WA

Post by Jeremy Dunn »

Sorry Xytotron, there is a typo in your typos! it should be

otherwis -> otherwise

not

otherwis -> otherwize

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

Post by xytroxon »

Jeremy Dunn wrote:Sorry Xytotron, there is a typo in your typos! it should be

otherwis -> otherwise

not

otherwis -> otherwize
Thankzzz!

Muzzzt of been the early AM hour here... ;)

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

didi
Posts: 166
Joined: Fri May 04, 2007 8:24 pm
Location: Germany

bug?

Post by didi »

I can't write-line to a file , maybe a bug, maybe i'm to dumb - i tried it in a program and than with the original-sample from the manual:

Code: Select all

( set 'out-file (open "myfile" "write" ))
( write-line "hello there" out-file )
( close out-file )
leads to :
ERR: string expected in function write-line : out-file

my system : windows-xp

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

Re: bug?

Post by xytroxon »

You are confused by the "string device" syntax verses the "file device" syntax...

Change:

Code: Select all

( write-line "hello there" out-file )
To:

Code: Select all

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

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

Post by Lutz »

'write-line' changed order of parameters for 10.0, but unfortunately the string device example in the reference didn't get converted, now corrected:

http://www.newlisp.org/newlisp_manual.html#write-line

the I/O device is now always the first parameter

didi
Posts: 166
Joined: Fri May 04, 2007 8:24 pm
Location: Germany

Post by didi »

Thanks for the fast help - now it works fine.

newBert
Posts: 156
Joined: Fri Oct 28, 2005 5:33 pm
Location: France

Post by newBert »

newLISP 10.0 Manual
newLISP 10.0 Manual wrote:Functions with memory

A default function can update the lexically isolated static variables contained inside its namespace:

;; a function with memory

(define (Gen:Gen x)
(if Gen:acc
(inc Gen:acc x)
(set Gen:acc x)))

(Gen 1) → 1
(Gen 1) → 2
(Gen 2) → 4
(Gen 3) → 7

gen:acc → 7

The first time the Gen function is called, its accumulator is set to the value of the argument. Each successive call increments Gen's accumulator by the argument's value.

The definition of Gen:Gen shows, how a fuction is put in its own namespace without using the surroundng (context 'Gen) and (context MAIN) statements. In that case only symbols qualified by the namespace prefix will end up in the Gen context. In the above example the variable x is still part of MAIN.
and the example causes an error:

Code: Select all

ERR: symbol expected in function set : acc
called from user defined function Gen
(set Gen:acc x) ought to be replaced by (setq Gen:acc x) or (set 'Gen:acc x)
BertrandnewLISP v.10.7.6 64-bit on Linux (Linux Mint 20.1)

DrDave
Posts: 126
Joined: Wed May 21, 2008 2:47 pm

Post by DrDave »

newBert wrote:newLISP 10.0 Manual

A default function can update the lexically isolated static variables contained inside its namespace:

;; a function with memory

(define (Gen:Gen x)
(if Gen:acc
(inc Gen:acc x)
(setq Gen:acc x)))
On v.9.9.4 Win32 I additionally had to add a quote to the inc code:
replace (inc Gen:acc x)
with (inc 'Gen:acc x)

(Don't have v10 installed on this computer.)
...it is better to first strive for clarity and correctness and to make programs efficient only if really needed.
"Getting Started with Erlang" version 5.6.2

Locked