Re: Depending on policy [was Re: Implementation of take (multiple) in Jini starter kit]

"John McClain - Sun Microsystems, Inc." <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Greg Trasuk wrote:
> In the context below, I would write the 'while' loop, even if I knew it
> would probably only execute once.  Over the years I've learned that
> implementors will find ways to break my code if I let them.  They may
> not do it in this version of the product, or the next, but they are very
> patient and will eventually get to it.

:-)

> So I write to the
> specification.  Specifications may change, but when they do, it will
> usually be after a public discussion and consideration of the impacts,
> rather than somebody deciding they know a better way on a Friday
> afternoon.

Does it make a difference if fixing the issue would only require a tweak
to the space's configuration, not a change to your code?

> Not to  mention that from a management point of view, it always bothers
> me if I know I'm locked in to a single vendor's product, since I'm
> relying on 'optimizations' in that product.

Of course in this particular case it seems likely that all
implementation of JavaSpace05 would handle at least 2 entries. Does that
change things?

> Also, it seems to me that if you use the second option, there might be
> some concurrency issues, etc.

In general because of concurrency issues I would expect most
applications of take multiple to need the loop anyway, but there are
probably a few that know that no one else is adding/removing matching
entries.

--
BTW, if you want to reply to this message, please direct your reply
to the list, thanks

John McClain                                    [email protected]
Sun Microsystems, Inc.
Burlington, MA

And it is that way today. We are tricked by hope into starting
companies, beginning books, immigrating to this country and investing
in telecom networks. The challenges turn out to be tougher than we
imagined. Our excessive optimism is exposed. New skills are demanded.
But nothing important was ever begun in a prudential frame of mind.

         - David Brooks

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.