2009/8/2 Daniel Kraft <d...@domob.eu>: >> Yeah, X examples are rather anachronistic. I dunno, an OpenGL >> version might be fun. Imagine .. 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 good > for this purpose; and the OpenGL code probably gets also lengthier than the > 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. Maybe a simple >> fractal explorer? > > Fractal Explorer sounds nice, and I'd use Gtk+ as "graphics library" for it. > On the other hand, I also quite like keeping the original "logo" package; > with the interactive fractal explorer, I don't see much one could do with it > apart from zooming/moving with Scheme commands. For the logo package, one > can, for instance, quite elegantly construct a Koch curve with a recursive > 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 with > Guile is really useful and produces a cool result. > > So I favour keeping it but maybe really switching the backend to Gtk+ from > X. Or do you have some other ideas for a good example project? Sounds good to me. Whatever excites you the most is what counts! --linas