newLISP Fan Club

Forum => newLISP newS => Topic started by: Lutz on September 14, 2005, 06:19:13 AM

Title: development version newLISP 8.6.5
Post by: Lutz on September 14, 2005, 06:19:13 AM
* new function 'randomize'

* new function 'net-eval' for simpler distributed computing

* revised logging system

* bug fixes



For change notes and files see http://newlisp.org/downloads/development/



Lutz
Title:
Post by: HPW on September 14, 2005, 08:45:45 AM
Hello Lutz,



thanks for the new release!



But there is a bug in newLISP.dll which breaks some of my plugin-functions.

On every return-string of the DLL a single space-char is added.



Examples:

'[text] ........[/text] '

'nil '



Note the last extra space. Since I match for the last seven bytes '[/text]' I now get no match and return-string processing failed.
Title:
Post by: HPW on September 14, 2005, 08:51:24 AM
Seems also been added in newLISP-tk!



Later:

Cross-tested with 8.6.0 where it worked without the space.
Title:
Post by: Lutz on September 14, 2005, 09:29:03 AM
The extra space is on purpose and the change is mentioned in the CHANGES notes. This is the reason why:



When evaluating multiple expressions remotely over Tcp/Ip, pipes or any other communications channel, then the results come back in a string buffer. When numberrs or strings are returned those get concatenated when no space is inbetween. The new 'net-eval' evaluates the buffers coming back in order to facilitate lisp expressions, i.e. lists as return values. The space ensures that results are not concatenated and only the last is returned as in a (begin ...) block.



Lutz
Title:
Post by: HPW on September 14, 2005, 11:44:34 AM
So will it stay this way also for the DLL-version?

If so, I will modify the plugin to work with the new end-tag.
Title:
Post by: HPW on September 14, 2005, 12:26:34 PM
I have released a hpwNewLISP 2.08 which adresses the new return-string.
Title:
Post by: Lutz on September 14, 2005, 01:24:37 PM
Yes, dynamic and shared libraries are working the same way (win32, osx, unix)



Lutz
Title:
Post by: HPW on September 14, 2005, 10:20:11 PM
It seems that this great new release is pretty influenced by your kozorzu work.

;-)



PS: Distributed computing is far beyond my current use and understanding of newLISP,

but who knows when it might become usefull.
Title:
Post by: Fanda on September 15, 2005, 10:45:11 PM
There is an error in 'randomize':



> (randomize '())

()

> (randomize '(1 2))

(2 1)

> (randomize '(1))

=> infinite loop



It doesn't check for list of length 1.



Fanda
Title:
Post by: Lutz on September 16, 2005, 04:25:08 AM
thanks for catching this



Lutz
Title:
Post by: Fanda on September 16, 2005, 11:21:25 PM
I like to test your development versions.



I use newLISP only for playing, but I test it to allow other people write some real stuff.



Fanda