Discussion:
[Larceny-users] Probably a daft question
David Rush
2008-08-19 07:44:14 UTC
Permalink
But has anyone done a GTK+ set of bindings for Larceny yet? This is
more of a curiosity kind of inquiry than a serious project need right
now, but given the cross-platform capabilities of both systems, the
combination would make Larceny/GTK a really great platform for
cross-platform GUI development.

Besides, PLT's GUI system makes me crazy :)

david rush
--
GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt
William D Clinger
2008-08-19 15:55:01 UTC
Permalink
Post by David Rush
But has anyone done a GTK+ set of bindings for Larceny yet?
Felix Klock has prototyped this, but I don't know its current
state. I'll let him fill in the details, but it will probably
be a couple of days before he'll have time to respond.

Will
Ray Racine
2008-08-19 16:34:53 UTC
Permalink
FWIW, I did run all of Felix's examples at the time which exercised the
basic widgets and windows. Don't recall any substantive issues when doing
so on Linux system.

Ray
Post by William D Clinger
Post by David Rush
But has anyone done a GTK+ set of bindings for Larceny yet?
Felix Klock has prototyped this, but I don't know its current
state. I'll let him fill in the details, but it will probably
be a couple of days before he'll have time to respond.
Will
_______________________________________________
Larceny-users mailing list
https://lists.ccs.neu.edu/bin/listinfo/larceny-users
Felix Klock
2008-08-19 17:09:12 UTC
Permalink
David (cc'ing larceny-users)-
Post by David Rush
But has anyone done a GTK+ set of bindings for Larceny yet? This is
more of a curiosity kind of inquiry than a serious project need right
now, but given the cross-platform capabilities of both systems, the
combination would make Larceny/GTK a really great platform for
cross-platform GUI development.
I did some work on a set of GTK+ bindings.

Take a look at:

https://trac.ccs.neu.edu/trac/larceny/browser/trunk/larceny_src/lib/Standard/gtk.sch
https://trac.ccs.neu.edu/trac/larceny/browser/trunk/larceny_src/lib/Standard/gtk-2.4.sch
https://trac.ccs.neu.edu/trac/larceny/browser/trunk/larceny_src/lib/Standard/glib.sch
https://trac.ccs.neu.edu/trac/larceny/browser/trunk/larceny_src/lib/Standard/gdk.sch

and example uses of it in:

https://trac.ccs.neu.edu/trac/larceny/browser/experiments/gtk

Its nowhere near complete, but the fundamentals are there. Some newer
FFI features were added specifically to support the needs of GTK+;
e.g. the establish-void*-subhierarchy! procedure. Other bits were put
in before I had developed define-c-info and friends, so there are some
ugly hard-coded values that should be replaced with invocations of
define-c-info or similar header importing macros. Other elements of
support were pretty much hacked in, such as the use of g_signal_query
to dynamically extract the expected type of a callback in glib.sch.

Recently I've been experimenting more with OpenGL bindings than GTK+.
But it would be good for someone with more GTK+ experience than myself
to exercise the existing set of GTK+ bindings and add more functions
to it.
Post by David Rush
Besides, PLT's GUI system makes me crazy :)
A set of bindings for wxWindows might also be worth exploring. PLT's
system is based on a fork of an old version of wx; it would be
interesting to see if we could hook into the current version of wx.
But then again I do not know how actively that project is maintained;
GTK+ seems like a safer bet in terms of long term support and activity
from the development community.

-Felix

Continue reading on narkive:
Loading...