gl and glut

3 views
Skip to first unread message

Eduardo Cavazos

unread,
Mar 10, 2009, 12:27:07 AM3/10/09
to jazzs...@googlegroups.com
Hello,

I noticed that gl and glut libraries were added to Jazz recently. Very nice!

Is it possible to "load" them into a Jazz repl interactively? I.e.

~ # jazz
JazzScheme v2.1.3 beta

> (... type something here to load gl)

Ed

Guillaume Cartier

unread,
Mar 10, 2009, 2:46:39 PM3/10/09
to jazzs...@googlegroups.com
That feature was in fact added a couple weeks ago! See the message: "Library require / import / export now special forms" for details.

With it, you can now enter the following at the console to get access to opengl functionality:

(import (jazz.graphic.opengl))

Guillaume

Eduardo Cavazos

unread,
Mar 10, 2009, 3:34:32 PM3/10/09
to jazzs...@googlegroups.com

>> I noticed that gl and glut libraries were added to Jazz recently. Very
>> nice!
>>
>> Is it possible to "load" them into a Jazz repl interactively? I.e.
>>
>> ~ # jazz
>> JazzScheme v2.1.3 beta
>>
>> > (... type something here to load gl)

Guillaume Cartier wrote:

> That feature was in fact added a couple weeks ago! See the message: "Library
> require / import / export now special forms" for details.

Looks good!

> With it, you can now enter the following at the console to get access to
> opengl functionality:
>
> (import (jazz.graphic.opengl))

Hmmm, is there a way to get this to work at a jazz repl started at a
shell? I get an error when I try that:

~ # jazz
JazzScheme v2.1.3 beta

> (import (jazz.graphic.opengl))
*** ERROR IN (console)@1.2 -- Unbound variable: import
1>

Ed

Guillaume Cartier

unread,
Mar 10, 2009, 4:15:12 PM3/10/09
to jazzs...@googlegroups.com
There is no such thing as "a jazz repl started at a shell". When you run jazz.exe you are running a Gambit repl exactly as if you had started gsi but with some code already loaded to implement the Jazz module system. That is why it doesn't understand the Jazz language.

For (import (jazz.graphic.opengl)) to work, you have to use the Jedi repl. Note that creating a minimal app that would be just a single window with a Jazz repl in it for new comers to do quick experiments would be a nice project.

Guillaume
Reply all
Reply to author
Forward
0 new messages