On 27/02/2013, at 2:41 PM, Michael Maul wrote: > When you get a chance can you let me know if the FLTK package works on OSX?
It's building now, version 1.3. So far seems good .. built the examples .. one of them worked .. very fast! Nice find! So tentative answer: yes, it works. Now, for Felix integration... Any "library" which mandates calling an event loop in the library is not a library, but a framework (that's MY definition :) Frameworks can only be used with "general" Felix at the moment one way: by running the framework in a separate thread, and posting data to it for callback stubs to use. This SUCKS totally. However a GOOD GUI system never forces this. Example of bad GUIs: almost all of them including Xlib. However MS-Windows does NOT enforce this, its one of the few good GUI's. One of the major benefits of SDL was that it was a library and NOT a framework. The reason is simple. A library is a SLAVE. Any framework is a MASTER and callbacks make your program a slave. Slaves cannot maintain state easily, programming with them is so hard it basically cannot be done for anything complex. The usual way to obtain control inversion and get control back from frameworks is to use a thread. Thread provide control inversion. However pre-emptive threading is usually NOT what the programmer needs: they just want control inversion. Felix provides control inversion without the problems of pre-emptive threads. But it can only do so ... .. because Felix itself is a framework. (There is some work going on to remove this constraint by allowing you to run your own scheduler instance). FLTK provides an event-loop function, but it seems to me you do NOT have to use it. So Mike, could you please check that? It seems you can call Fl::wait() or Fl::check() instead. This may help, it depends. Systems that require callback registration always suck. Note again: Windows does NOT. You can poll the event queues and dispatch the events yourself, in fact, you actually HAVE to write your own event loop. Anyhow, FLTK does look very appealing at the moment. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language