unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Exceptions that pass continuations
Date: Fri, 19 Jul 2013 18:14:18 +0200	[thread overview]
Message-ID: <87r4eu1q91.fsf@zigzag.favinet> (raw)
In-Reply-To: <CAMFYt2ZTeKXYLWbhr4N7_LXLkE3GFF6kCNMQjFR+VquQkyR8mQ@mail.gmail.com> (Panicz Maciej Godek's message of "Fri, 19 Jul 2013 15:52:30 +0200")

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

() Panicz Maciej Godek <godek.maciek@gmail.com>
() 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.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2013-07-19 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19 10:39 Exceptions that pass continuations Panicz Maciej Godek
2013-07-19 13:00 ` Thien-Thi Nguyen
2013-07-19 13:52   ` Panicz Maciej Godek
2013-07-19 16:14     ` Thien-Thi Nguyen [this message]
2013-07-19 14:12   ` Taylan Ulrich B.

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=87r4eu1q91.fsf@zigzag.favinet \
    --to=ttn@gnuvola.org \
    --cc=godek.maciek@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).