What C code base is good to start with?<br><br>(I'm familiar with Gambit's FFI -- wrapped parts of OpenCV for my own use). However, I don't know about X11 to "just write one from scratch". <br><br>Thanks!<br>
<br><div class="gmail_quote">On Wed, Feb 18, 2009 at 10:47 PM, David Rush <span dir="ltr"><<a href="mailto:kumoyuki@gmail.com">kumoyuki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/2/19 Vincent St-Amour <<a href="mailto:stamourv@iro.umontreal.ca">stamourv@iro.umontreal.ca</a>>:<br>
<div class="Ih2E3d">>> No offense intended, but I think re-implementing window managers in<br>
>> Haskell/Scheme/<current language of choice> seems a bit<br>
>> Not-Invented-Here syndrome-ish. If it ain't broke, don't fix it -<br>
>> since there's lots of other interesting things to fix/create.<br>
<br>
</div>Yes and no. The WM is one of your most intimate connections to the<br>
system and there's a lot to be said for what you learn in writing one.<br>
<div class="Ih2E3d">That said:<br>
<br>
> I'm currently using stumpWM (a tiling WM written in Common Lisp), and<br>
> I find it quite nice to be able to add code on the fly to the WM, and<br>
> to be able to extend it in Lisp rather than in some configuration file<br>
> with its own syntax. I'd compare it to emacs for extensibility.<br>
<br>
</div>Which is exactly my point. And you can learn an awful lot about UI<br>
design (at least how *you* like to relate to the machine) from hacking<br>
on a properly extensible WM. Such as:<br>
<div class="Ih2E3d"><br>
> Of course, having a window manager running with Gambit would be even<br>
> better. SCWM (Scheme Constraints Window Manager) could be a nice<br>
> starting point, but does not seem to have been updated since 2000.<br>
<br>
</div>And SCWM was the proximate cause for me to learn Scheme. I had become<br>
interested in Lisps through hacking on emacs and wanted a WM that was<br>
similarly flexible. SCWM's death has been a great disappointment to<br>
me, it was a great WM. But I don't think you'll find its code is a<br>
good starting point. For one, it was pretty intimately tied into the<br>
Guile of the time - which sucked; and it also did a lot of work in C -<br>
which also sucked. A fresh start using Gambit's excellent FFI for<br>
connecting to the X11 libraries would be the way to go about it. On<br>
the other hand SCWM could be a goo candidate for design-level reuse.<br>
<br>
But the gripping hand is that you will have to rewrite it from<br>
scratch. That's not a small job, but it's also not huge.<br>
<br>
david<br>
<font color="#888888">--<br>
GPG Public key at <a href="http://cyber-rush.org/drr/gpg-public-key.txt" target="_blank">http://cyber-rush.org/drr/gpg-public-key.txt</a><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br>