Re: GUIs and events (was: Re: Concurrency)

Wolfgang Thaller <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
(I accidentally posted this to [email protected] yesterday...)

Glynn Clements wrote:

> Wolfgang Thaller wrote:
>
>> 2) CGA implementations should automatically do all necessary
>> synchronization so that the CGA fully supports concurrency even if the
>> backend library does not.
>
> I suspect that this might be a bad idea, and I'm not totally sure that
> it's even possible. I think that it would be better to defer this
> decision until the feasibility can be assessed.

While different implementations might in some cases be slightly more 
complex than just using locks, I don't see why it should be impossible. 
After all, thread-safe toolkits are not new.

Do you have any specific problems in mind?

Also, it should be noted that this feature is important: Unless we have 
this or an equivalent, it will _not_ be possible to use concurrent 
Haskell for writing GUI programs.

Of course, we could still agree that it is a goal, add something like 
"unless it turns out to be infeasible" and then revisit the issue later.

Cheers,

Wolfgang
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.