Re:The Problem of Vsync
by exDM69 on Wednesday September 07, 2011 @04:25AM
(#2968791)
The FFI point was a factor why I have not used/updated libwm recently. libwm is C++ with constructors, destructors and exceptions. The semantics of C++ make it poor for FFI. Some interpreter-based languages can somewhat do it (e.g. python), but on a compiler based language like Haskell it becomes a bit painful.
Another factor was that libwm supports a lot of legacy API's, like GLX 1.0. I wanted to support my g/f's crappy intel based macbook because at the time I was sometimes stuck that as my only computer.
Anyways, the morale of the story is: don't write system level libraries in C++ unless you want to spend the rest of your life writing C++.
Another factor was that libwm supports a lot of legacy API's, like GLX 1.0. I wanted to support my g/f's crappy intel based macbook because at the time I was sometimes stuck that as my only computer.
Anyways, the morale of the story is: don't write system level libraries in C++ unless you want to spend the rest of your life writing C++.