chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Chicken and GUI programming


From: Jörg F . Wittenberger
Subject: Re: [Chicken-users] Chicken and GUI programming
Date: 27 Jul 2013 13:30:14 +0200

On Jul 26 2013, Michele La Monaca wrote:

Hi,

I am investigating the feasibility and the opportunity to write
(basic) Win32 GUI apps using Chicken. So far I think I've obtained
good results leveraging Christian Kellermann's nice technique to
handle callbacks
(http://pestilenz.org/~ckeen/blog/posts/callbacks.html)*.

Since this appears to be helpful to you, you might also be interested
in a slightly longer example code:

http://lists.nongnu.org/archive/html/chicken-users/2010-01/msg00046.html
It demonstrates how to run things in a POSIX thread and have it call
back into Chicken.  In this case sqlite3 queries run without blocking
the Chicken thread and the sqlite3 virtual file system interface is
used to fetch the database content from the Chicken thread itself.

Works pretty reliable, try hoist.askemos.org for an application.

 I am able
to create windows, add widgets, react to events and so on.
Unfortunately I've stumbled upon a problem I am not able to overcome.
When the app engages in long running operations, the (scheme)
procedure in charge of handling GUI's events starves, with the net
effect that the app seems to freeze.

So my question is: it's just me not properly using Chicken's
"cooperative" threads (which might be well the case since I am not
accustomed to those), or I've hit an intrinsic limit of Chicken being
single threaded (in the pthread sense of "concurrent" threads)?

Ciao,
Michele

* I think there are a few errors in the example.

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]