unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: Javier Sancho <jsf@jsancho.org>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: SLAYER announcement and help request for preparing a GNU package
Date: Wed, 8 May 2013 00:00:22 +0200	[thread overview]
Message-ID: <CAMFYt2b0ioz5dFdzSPnr26m+iKBWrY9ikHmVip789go=P9ZmZg@mail.gmail.com> (raw)
In-Reply-To: <CAPH5TQH2WhTEi2nmSGtrFPF+GoSzp6dBJujXoNYgpoLv0T2Q_w@mail.gmail.com>

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

2013/5/7 Javier Sancho <jsf@jsancho.org>

> Panicz Maciej Godek wrote:
> > I even managed to build it, but for some reasons the demos won't run. I
> get
> > the following error:
> > gacela/video.scm:175:2: In procedure init-gl:
> > gacela/video.scm:175:2: In procedure module-lookup: Unbound variable:
> > set-gl-hint
>
> The reason is, oh my god, you are the first who test my code.
>

:) I guess that's how it begins.
I'm trying to build a portable package for slayer, and I must say that in a
way it's much more difficult than programming (which is actually a great
pleasure) -- there's a lot of reading and figuring out how to 'get it right'

When I started this project, I made demos and some documentation, but
> I stopped maintaining them because nobody was interested. Makefiles
> compile OpenGL and SDL bindings, but now I use Figl and compilation is
> not needed. The error with set-gl-hint comes because I have a figl
> version with some improvements. I've sent patches to figl maintainers.
>

I've applied all three patches, and I got a new error:
gacela/games/guybrush$ ./guybrush.scm
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not
been called
[xcb] Aborting, sorry about that.
guile: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.
Abort (core dumped)

gacela/games/tetris$ ./tetris.scm
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server
":0.0"
      after 129 requests (128 known processed) with 18 events remaining.

Currently, Gacela is in a very unstable state. Demos, for example, use
> an old version with a more OOP style, because when I wrote them I was
> beginning to understand Lisp and functional programming. But actually
> I'm reestructuring all the code looking for a more elegant, beatiful,
> functional style.
>
>
I don't think those two paradigms rule each other out. I believe that games
and user interfaces are the cases where OOP feels at home, but it seems a
good practice to avoid mutable variables wherever they're unnecessary. I
think John Carmack is quite just in this regard:
http://www.altdevblogaday.com/2012/04/26/functional-programming-in-c/


> > If it comes to code, I see that you have a more polling-style approach
> for
> > processing input. My desire is to get a system that never stops being
> > reconfigurable -- to truly separate the user interface from program
> logics.
> > I don't know if it's achievable, but I have a feeling that such
> direction is
> > worth exploring
>
> Yes, your style is more callback style. I personally prefer polling
> because then I can read the code sequentially. But it's a personal
> consideration.
>
> > All these concepts sound very interesting, but I'm curious whether they
> are
> > reflected the code somewhere.
>
> For the moment, no. But I have a lot of papers :-)
>

I'm curious where will it go :)

regards

[-- Attachment #2: Type: text/html, Size: 4559 bytes --]

      reply	other threads:[~2013-05-07 22:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-04 21:54 SLAYER announcement and help request for preparing a GNU package Panicz Maciej Godek
2013-05-05  5:15 ` John Darrington
2013-05-05  6:55   ` Stjepan Horvat
2013-05-05  6:59   ` Panicz Maciej Godek
2013-05-05 18:48     ` Thien-Thi Nguyen
2013-05-05 19:42       ` Popularity (was Re: SLAYER announcement ...) Mike Gran
2013-05-05 20:04         ` Popularity Frank Terbeck
2013-05-05 22:12         ` Popularity (was Re: SLAYER announcement ...) Chris Vine
2013-05-06  3:25         ` Nala Ginrut
2013-05-07 12:20         ` Ludovic Courtès
2013-05-05 21:37       ` SLAYER announcement and help request for preparing a GNU package Panicz Maciej Godek
2013-05-06  8:06 ` Javier Sancho
2013-05-06 19:36   ` Panicz Maciej Godek
2013-05-06 21:25     ` Thien-Thi Nguyen
2013-05-07 22:50       ` Panicz Maciej Godek
2013-05-08  9:34         ` Thien-Thi Nguyen
2013-05-08 12:51           ` Panicz Maciej Godek
2013-05-08 13:37             ` Mark H Weaver
2013-05-08 15:15               ` Mike Gran
2013-05-08 21:44                 ` Panicz Maciej Godek
2013-05-09  6:50             ` Thien-Thi Nguyen
2013-05-08 21:56           ` Ludovic Courtès
2013-05-07  7:23     ` Javier Sancho
2013-05-07 22:00       ` Panicz Maciej Godek [this message]

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='CAMFYt2b0ioz5dFdzSPnr26m+iKBWrY9ikHmVip789go=P9ZmZg@mail.gmail.com' \
    --to=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=jsf@jsancho.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).