development release newLISP v.9.3.4

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

development release newLISP v.9.3.4

Post by Lutz »

• a quicker way to make dictionaries (hashes)

• 'read-expr' hooks into newLISP's interpreter

• 'sys-info' now also reports PID

Files and changes notes: http://newlisp.org/downloads/development/

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post by Jeff »

Thank you, Lutz. When you say "creating dictionaries got faster," do you mean that the speed of their creation is faster or the syntax for creating them is simpler?
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post by Jeff »

One other thing- is it possible in future versions that (Context "key" value) could work like set, with multiple insertions? i.e. (Context "foo" bar "baz" bat) to set foo and baz in Context.
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

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

Post by Lutz »

... the syntax for creating them is simpler?
yes, simpler / speedier to write
could work like set, with multiple insertions?
perhaps we could have this second syntax pattern:

Code: Select all

(<context> <list>)
where <list> is either a flat list of pairs:

Code: Select all

(<var1> <value1> <var2> <value2> ...)
or an association list?

Code: Select all

((<var1> <value1>) (<var2> <value2>) ...)

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post by Jeff »

That would work better, because it would be more easily composed.
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

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

Post by cormullion »

Do the existing sys-info values still work, or has one of them been replaced?

hsmyers
Posts: 104
Joined: Wed Feb 20, 2008 4:06 pm
Location: Boise, ID, USA
Contact:

Post by hsmyers »

And just when I've convereted everything to assox!! Oh well, I've got bigger tables to fry...
"Censeo Toto nos in Kansa esse decisse."—D. Gale "ℑ♥λ"—Toto

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

Post by newBert »

Lutz wrote:development release newLISP v.9.3.4
• a quicker way to make dictionaries (hashes)
hsmyers wrote:And just when I've convereted everything to assox!
Me too ;)
I'm going to investigate a little these hash tables in the NewLisp way :)

Locked