Oz and Mozart Users Mailing List

Re: closable port?


From: Denys Duchier (duchier@ps.uni-sb.de)
Date: Fri Apr 25 2003 - 01:00:06 CEST


gabor.szokoli@vanderbilt.edu (Gabor Szokoli) writes:

> Oh well. It just looked soo cool to write {Map Stream Consumer}...
> One more reason to switch to "for" loops: break!

:-) of course, "break" is just using an exception to escape; so you
could do that too if you thought it convenient.

> Note1:Seeing that these 2 threads run strictly the same number of
> times, I realised they really belong in the same space. Is there any
> significant difference between using a regular "script" proc to
> bootstrap the root node of a search from the inside as opposed to
> "filling it up" from the outside with many Space.inject -s?

Space.inject is more expensive (there is a thread outside that injects
stuff, and then there is a thread inside that needs to deal with it)
and it can only affect stuff that is reachable from the space's root.
It's much better to do it all in the initial script, if you can get
away with it.

> Note2:Speaking of loops, I'm trying to teach Oz to Java programmers
> here, they love the familiar constructs like functions and "for". They
> would love cells, too, if ony its usage syntax were shorter.

This will improve in a future release. There is already code
committed in the devel trunk that attempts to address these issues.

> They say it's multiparadigm all right, but it's not fair they have
> to type so much more than other paradigm people. Declaring a
> variable "final" is just 1 extra word in Java, in contrast.

Ah, give me a break! These are the same people who think nothing of
having to write a couple of new classes and a dozen adapters everytime
they change their underwear :-)

Cheers,

-- 
Dr. Denys Duchier
Équipe Calligramme
LORIA, Nancy, FRANCE
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs@mozart-oz.org.



This archive was generated by hypermail 2b29.