development release newLISP v.8.2.4

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

development release newLISP v.8.2.4

Post by Lutz »

NOTE, deprecated 'collect, getenv, putenv' and 'environ' are completely eliminated from newlisp and examples, modules: httpd, cgi.lsp, sqlite.lsp.

All are replaced or collapsed to functions maintaining the same syntax, only names have to be changed. For details see the chapter about "Deprecated Functions" in the manual.

Other changes, which could prompt newLISP script changes are:

- net-error now returns error number and text separate in a list
- 'now' has added the daylight-savings-flag 0 or 1 as last parameter
- (new ...) now will not overwrite existing symbols, to allow true
mixins of other contexts. To overwrite symbols as before version
8.2.4 use the true as a third parameter i.e. (new A B true).

- the function 'push' is now optimized to handle pushing at the end of a list with index -1, as efficient as pushing in front of a list. This allows faster inplace list growing without pushing in front and then 'reverse'ing. This will also benefit the "Computer Shotoout" -list benchmark which beginning with version 8.2.4 can be written closer to the specification and will run even faster omitting the 'reverse'. This optimization will over time also find its way into other inplace list-modifying functions.

For the complete changelog with other changes, bug fixes and files see: http://newlisp.org/downloads/development/

Lutz

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

Post by Lutz »

This weeks development release newLISP 8.2.5 contains various usability enhancements and addtions/improvements to the context object system. See here: http://www.newlisp.org/index.cgi?page=News and here: http://newlisp.org/downloads/development/

Lutz

jsmall
Posts: 26
Joined: Mon Sep 20, 2004 1:44 am

cgi.lsp obsolete?

Post by jsmall »

Has cgi.lsp been eliminated or folded into some
other module/example?

How will wiki and blog be affected if at all?

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

Post by Lutz »

No, not at all. Look for it in the modules directory of the source distribution. It is at version 1.6 now in 8.2.5 and it also comes packed with the wiki, ide and blog apps.

Lutz

lwix
Posts: 24
Joined: Tue Oct 26, 2004 3:14 am
Location: New Zealand

Re: development release newLISP v.8.2.4

Post by lwix »

Lutz wrote: - the function 'push' is now optimized to handle pushing at the end of a list with index -1, as efficient as pushing in front of a list...
Great! Now we can implement efficient queues easily.

Lucas

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

Post by Lutz »

This weeks development release 8.2.6 focuses mainly on improvements of the context system and has a new 'letn'. For details see here: http://www.newlisp.org/index.cgi?page=News and for files see here http://newlisp.org/downloads/development

Lutz

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

Post by HPW »

Typo in example:

;; (MYHash:values) => ((1 2 3) 1234)

gives an error and should be:

;; (MyHash:values) => ((1 2 3) 1234)

and:

;; (MyHash:get MyHash "someKey") => 1234
;; (MyHash:get MyHash "anything") => (1 2 3)

Should be:

;; (MyHash:get "someKey") => 1234
;; (MyHash:get "anything") => (1 2 3)
Hans-Peter

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

Post by Lutz »

thanks, will be corrected

Lutz

Locked