Re: Concurrency (was: Re: Re: events & callbacks)

Antony Courtney <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
I have not been following this discussion particularly closely, so can't 
really comment on the specifics.

However, I think it is worth noting that Swing, Java's state-of-the-art 
cross-platform GUI toolkit, is NOT thread-safe, despite the fact that 
the Java language *and* libraries have had robust support for threads 
and multi-threaded programming from the start, and there was no shortage 
of developer resources or concurrent programming expertise on the Swing 
team.

The decision not to make Swing thread-safe was deliberate, and was based 
in part on brutal experience by previous attempts to build thread-safe 
GUI toolkits (Trestle, SubArctic, etc.).

I strongly encourage anyone who is thinking seriously about these issues 
to at least read the following short article:

http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html

particularly the final section ("Why did we implement Swing This Way?") 
which discusses the rationale for their design.

Remember:  Worse Is Better.

	-antony

-- 
Antony Courtney
Grad. Student, Dept. of Computer Science, Yale University
[email protected]          http://www.apocalypse.org/pub/u/antony
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.