unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Chris Vine <vine35792468@gmail.com>
To: guile-user@gnu.org
Subject: Re: understanding guile-gi
Date: Mon, 17 Jan 2022 02:08:24 +0000	[thread overview]
Message-ID: <20220117020824.9d6359e9a29e8392d69024ee@gmail.com> (raw)
In-Reply-To: <f58b8502-d64d-d7e0-b9f3-0d3276bfae68@posteo.de>

On Sun, 16 Jan 2022 13:37:02 +0000
Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> wrote:
> Hello Guile Users!
> 
> I would like to understand guile-gi better, hopefully at some point I will be
> able to create GTK applications using Guile. But perhaps my understanding is
> wrong, so I want to ask a few things:
> 
> guile-gi – I think this stands for "Guile Gnome(?) Introspection"?

The "gi" stands for gobject-introspection.

> gi – I think this "introspection" part of the name is about inspecting sources
> and deriving code from that, to make use of Gnome libraries. Or is it for GTK?

Instrospection is available for any library with a gobject-introspection
typelib.  That includes glib and GTK and most of the gnome
stack.  /usr/lib[64]/girepository-1.0/ will contain the typelibs
available on your distribution.  There will be many of them.

> Which things are part of GTK and which things are part of Gnome? Currently my
> picture is: GTK contains all the GUI things and Gnome the data things. For
> example: GTK might contain some date picker dialog or popup or whatever, but the
> datatype for date itself would be part of Gnome. "GDate". As such Gnome provides
> a sort of common datatypes basis, which could be used by other frameworks as
> well (and maybe is?).

No.

> So guile-gi makes use of introspection to give access to Gnome datatypes, or
> does it create bindings via FFI for an already existing C code base, which is
> the actual introspection for Gnome stuff?

I am not certain what you mean but gobject-introspection provides
bindings for C libraries written to GObject conventions which make them
available to higher level languages such as python (pygobject),
javascript (gjs) and guile scheme (guile-gi and g-golf).  pygobject is
widely used; gjs is used by gnome-shell amongst others.

> And finally: Is my expectation correct, that I will be able to make GTK
> applications using Guile, if I learn to use guile-gi?

It will mainly work although I believe there are a few missing pieces
which you are unlikely to encounter.  Look at some of the examples in
the guile-gi repository.  Also look at g-golf.



      parent reply	other threads:[~2022-01-17  2:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-16 13:37 understanding guile-gi Zelphir Kaltstahl
2022-01-16 16:24 ` Luis Felipe
2022-01-16 16:45 ` Luis Felipe
2022-01-16 20:39   ` Zelphir Kaltstahl
2022-01-16 21:19     ` Tim Meehan
2022-01-16 21:19       ` Tim Meehan
2022-01-17  2:16     ` Chris Vine
2022-01-17  8:30       ` Zelphir Kaltstahl
2022-01-17  2:08 ` Chris Vine [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220117020824.9d6359e9a29e8392d69024ee@gmail.com \
    --to=vine35792468@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).