From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Exceptions that pass continuations Date: Fri, 19 Jul 2013 18:14:18 +0200 Message-ID: <87r4eu1q91.fsf@zigzag.favinet> References: <8738ra3drr.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1374250313 17418 80.91.229.3 (19 Jul 2013 16:11:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2013 16:11:53 +0000 (UTC) Cc: "guile-user@gnu.org" To: Panicz Maciej Godek Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 19 18:11:54 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 1V0DHe-00057s-Jl for guile-user@m.gmane.org; Fri, 19 Jul 2013 18:11:54 +0200 Original-Received: from localhost ([::1]:33881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0DHd-0006Ff-SQ for guile-user@m.gmane.org; Fri, 19 Jul 2013 12:11:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0DHU-0006Fa-Tm for guile-user@gnu.org; Fri, 19 Jul 2013 12:11:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0DHT-0001V1-Hc for guile-user@gnu.org; Fri, 19 Jul 2013 12:11:44 -0400 Original-Received: from smtp206.alice.it ([82.57.200.102]:59949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0DHT-0001Un-7D for guile-user@gnu.org; Fri, 19 Jul 2013 12:11:43 -0400 Original-Received: from zigzag.favinet (79.10.68.118) by smtp206.alice.it (8.6.060.26) id 51DBE146023366AE; Fri, 19 Jul 2013 18:11:40 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1V0DK9-0003XJ-A8; Fri, 19 Jul 2013 18:14:29 +0200 In-Reply-To: (Panicz Maciej Godek's message of "Fri, 19 Jul 2013 15:52:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.102 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:10561 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable () Panicz Maciej Godek () Fri, 19 Jul 2013 15:52:30 +0200 > In this case, are OpenGL "lights" not amenable to wrapping as a SMOB? I've been considering making new type for lights -- perhaps that would be a little more introspective -- but it turned out more efficient to represent them in straightforward manner as integers. However, the thing with the lights is that they need to be disabled explicitly -- otherwise the lights that are no longer needed would still lit the scene until the garbage collector decides to disable them. If the integers are small, non-negative and disjoint, and the usage is always plural (i.e., a "set of lights"), then you might consider using a bit vector to model the set. But a bit vector (alone) strikes me as very spartan. Surely, there must be some other state associated w/ a "light", such as color, intensity or direction? If so, then perhaps a bit vector plus a (compacted) struct (accessible from both C and Scheme) might do the trick. I suppose it's high time to go educate myself before i spew further foolishness... Also, I recently read an article about garbage collector in mobile apps, and perhaps having some means to do without it would be a nice option. Here's the link: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ Well, mobile apps is something i'm even MORE ignorant of (than OpenGL), so i'll just say thanks for the link, and bow out of this thread now. =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlHpZd0ACgkQZwMiJEyAdQJ7xwCfRwC1Q9uc3vuEy62GWKp+l7be ztAAoN2qebPKtpWVMSdHlLRG08a2jDJN =5JIz -----END PGP SIGNATURE----- --=-=-=--