From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: guile-xcb Date: Sun, 17 Feb 2013 22:26:43 +0100 Message-ID: <87y5emd430.fsf@gnu.org> References: <87621rya1p.fsf@gmail.com> <87zjz3gk3z.fsf@gnu.org> <87txpa92nw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1361136745 27320 80.91.229.3 (17 Feb 2013 21:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2013 21:32:25 +0000 (UTC) Cc: guile-user@gnu.org To: mark.d.witmer@gmail.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Feb 17 22:32:47 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7Bqn-0007ie-PJ for guile-user@m.gmane.org; Sun, 17 Feb 2013 22:32:45 +0100 Original-Received: from localhost ([::1]:35386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7BqT-0004yt-5v for guile-user@m.gmane.org; Sun, 17 Feb 2013 16:32:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7BqO-0004yY-I1 for guile-user@gnu.org; Sun, 17 Feb 2013 16:32:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7BqN-0006F5-LL for guile-user@gnu.org; Sun, 17 Feb 2013 16:32:20 -0500 Original-Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=58711 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Bl7-000509-Ml for guile-user@gnu.org; Sun, 17 Feb 2013 16:26:53 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 1CC5AC770; Sun, 17 Feb 2013 22:26:45 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kjlj2+N7NEZM; Sun, 17 Feb 2013 22:26:45 +0100 (CET) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 8FB65C38E; Sun, 17 Feb 2013 22:26:44 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 =?utf-8?Q?Pluvi=C3=B4se?= an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87txpa92nw.fsf@gmail.com> (mark d. witmer's message of "Sun, 17 Feb 2013 14:10:59 -0500") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:e0b:1:123:ca0a:a9ff:fe03:271e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10119 Archived-At: mark.d.witmer@gmail.com skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> >> Woow, looks fun! Do you have example applications around that we could >> play with? >> > > Not yet. It's still a ways away from a working X application. But > hopefully in the relatively near future I'll have something > working. Once I finish the compiler part I need to write wrapper methods > to actually send data to/from the X server. OK, we=E2=80=99ll wait for status updates then. ;-) BTW, did you consider using Scheme and macros instead of a compiler front-end? It may be easier to maintain in the long term. >> >> Wouldn=E2=80=99t SRFI-60 or Guile=E2=80=99s own operations (info "(guile= ) Bitwise >> Operations") do the job? >> > > With some care, I think they would. I'll have to see if XCB ever expects > << to shift 1s off the end of an integer, since (ash n) wouldn't do > that. > > And also, to be really pedantic, logcount behaves differently from XCB's > (otherwise equivalent) popcount when you give it negative numbers... but > popcount takes an unsigned integer as its argument, so nobody ought to > be using it for negative numbers anyway. I see. Anyway, you could implement that in Scheme as well. It=E2=80=99ll certainly be slower than in C, but you could check if it=E2=80=99s a proble= m in practice. Thanks, Ludo=E2=80=99.