unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: guile-xcb
Date: Sun, 17 Feb 2013 14:12:16 +0100	[thread overview]
Message-ID: <87zjz3gk3z.fsf@gnu.org> (raw)
In-Reply-To: 87621rya1p.fsf@gmail.com

Hi Mark,

Mark Witmer <mark.d.witmer@gmail.com> skribis:

> guile-xcb is a language implemented in the Guile VM that parses the XML
> files used by the xcb project to specify the X protocol and compiles
> them into Guile modules containing all the methods and data needed to
> send requests to the X server and receive replies/events back. If new X
> extensions are added to the xcb library, guile-xcb can compile and add
> them with no additional work.

Woow, looks fun!  Do you have example applications around that we could
play with?

> It uses a tiny bit of C code right now, to ensure that
> addition/bit-shifting/etc. operate exactly like they normally would in
> plain C. I'm open to suggestions on how to do this properly in Scheme;

Wouldn’t SRFI-60 or Guile’s own operations (info "(guile) Bitwise
Operations") do the job?

I see you also have wrappers for C integer subtraction and addition, but
the behavior of these upon overflow/underflow is undefined in the C
standard (see ‘-fwrapv’ in GCC.)

Thanks,
Ludo’.




  reply	other threads:[~2013-02-17 13:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-17  2:00 guile-xcb Mark Witmer
2013-02-17 13:12 ` Ludovic Courtès [this message]
2013-02-17 19:10   ` guile-xcb mark.d.witmer
2013-02-17 21:26     ` guile-xcb Ludovic Courtès

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=87zjz3gk3z.fsf@gnu.org \
    --to=ludo@gnu.org \
    --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).