From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Re: calling scheme procedures by name from C Date: Sun, 2 Aug 2009 15:07:35 -0500 Message-ID: <3ae3aa420908021307n3df631f6l6c66a816e4112776@mail.gmail.com> References: <1249204627.2918.56.camel@debianrts.home> <3ae3aa420908020417nd62c8ffw28fec741c26a81cc@mail.gmail.com> <1249225244.12325.8835.camel@localhost.localdomain> <3ae3aa420908021022y1cc35168y63c697fa79db2dd2@mail.gmail.com> <4A75D612.7010801@domob.eu> <3ae3aa420908021215k106da181w6f3c1292718c8f99@mail.gmail.com> <4A75EB0D.2060805@domob.eu> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249243682 3540 80.91.229.12 (2 Aug 2009 20:08:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2009 20:08:02 +0000 (UTC) Cc: guile-user@gnu.org To: Daniel Kraft Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Aug 02 22:07:55 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXhLW-0001qY-Vk for guile-user@m.gmane.org; Sun, 02 Aug 2009 22:07:55 +0200 Original-Received: from localhost ([127.0.0.1]:45694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXhLW-0004sN-DM for guile-user@m.gmane.org; Sun, 02 Aug 2009 16:07:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXhLJ-0004ro-WF for guile-user@gnu.org; Sun, 02 Aug 2009 16:07:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXhLF-0004rG-QO for guile-user@gnu.org; Sun, 02 Aug 2009 16:07:41 -0400 Original-Received: from [199.232.76.173] (port=56456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXhLF-0004rC-Md for guile-user@gnu.org; Sun, 02 Aug 2009 16:07:37 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.210.172]:35722) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXhLF-0008Rm-7P for guile-user@gnu.org; Sun, 02 Aug 2009 16:07:37 -0400 Original-Received: by yxe2 with SMTP id 2so5445228yxe.14 for ; Sun, 02 Aug 2009 13:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1665BKifLjhiriIXGjfjOwnpgUyobpRZQcozX5n9WmQ=; b=V0ZzsRKPy0DCErr2tPFtH55s5bmQlcZ8XqiIyz9RNWs1SQ/CqqnmbKx8CSwJZ7nUpE bPTuekpAZD4pqb/ZNDuwduPtZwcHC0SyD7GW41D8MuxGZYG4pQDtsUQpWxeiE9unK0S9 EqWY0/hDsRpvTVp6N0zCkvt73+In2nWEa1Pak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=maywwbeN8y/JAZ6/zWRKoFy7eDXIGLzn7i7Nj1VThDC0EuvG304cwy1Nd18W7nYmda YjRLqeZUYFbUaf0YEnnlfyiM9rVgyu5l/ndpa/+ieRPx+XUgK11n9Md4EwZPescAvyUt eHVtClRJRy7cF0vhUqA7C7UVe/Oo/hwTrxf9M= Original-Received: by 10.100.177.14 with SMTP id z14mr6912723ane.185.1249243655367; Sun, 02 Aug 2009 13:07:35 -0700 (PDT) In-Reply-To: <4A75EB0D.2060805@domob.eu> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7392 Archived-At: 2009/8/2 Daniel Kraft : >> Yeah, X examples are rather anachronistic. =C2=A0I dunno, an OpenGL >> version might be fun. =C2=A0Imagine .. 3D programming in scheme ..! >> it would not be a bad idea, I don't think. > > Hm... Maybe allowing to build a simple 3D scene, like: > > (define x (make-scene)) > (add-sphere x '(1 2 3) 5 'red) > ... > > But I fear this makes the backend code a lot more complicated than is goo= d > for this purpose; and the OpenGL code probably gets also lengthier than t= he > X one (though I'm not an expert with OpenGL). There are some very easy-to-use windowing toolkits intended for OpenGL e.g. glut. But, yes, simply setting up lights, setting up viewpoint, declaring basic surface properties would be verbose. >> Anyway, doing something interactive would be appropriate -- >> something vaguely enjoyable when its done. =C2=A0Maybe a simple >> fractal explorer? > > Fractal Explorer sounds nice, and I'd use Gtk+ as "graphics library" for = it. > =C2=A0On the other hand, I also quite like keeping the original "logo" pa= ckage; > with the interactive fractal explorer, I don't see much one could do with= it > apart from zooming/moving with Scheme commands. =C2=A0For the logo packag= e, one > can, for instance, quite elegantly construct a Koch curve with a recursiv= e > Scheme function -- I don't know if the existing tutorial does this, but I > quite like this idea and it would give a "nice" example where scripting w= ith > Guile is really useful and produces a cool result. > > So I favour keeping it but maybe really switching the backend to Gtk+ fro= m > X. =C2=A0Or do you have some other ideas for a good example project? Sounds good to me. Whatever excites you the most is what counts! --linas