That is indeed very possible. As for callouts, I don't see why they wouldn't work. If we go down the GTK-way of thinking with pike_iteration() and pike_run() methods, one which does one call to the main loop, the other which starts it (i.e run from a thread or so), call_outs would work as long as pike_iteration() is called often enough.
/ David Hedbor
Previous text:
2004-02-23 16:51: Subject: Embedding Pike into C/C++ game
I think the biggest problem is that no one is making a list of the actual problems that should be solved. To me it (since I know so little about the backend, memory management etc) it feels like it shouldn't be that hard to add pike_init and pike_exit that does what main does and then begin to call Pike code (possibly with a set of restrictions like no threads and no call_outs).
/ Martin Nilsson (saturator)
pike-devel@lists.lysator.liu.se