in reply to Inline::C *back* into Perl
There is no reason why I can't write a C graphics engine and interface the OpenGL program to any program (including Perl) over named-pipes, sockets, or equivalent.
</code>app ---> commands over pipe --> gfxEngine <--- events over pipe <--- (where the app can be written in *any* language)
This system would be really cool as I would have a graphics engine that is 100% cross-language (if not cross-platform) -- in theory, it might even be able to write OpenGL programs in bash.
This seems better than the Inline approach (though Inline rocks) since I could pretty much develop a solution usable from any application, standarding on IPC protocols rather than language constructs. The performance tradeoff of using IPC rather than system calls should be neglible, and this would allow me to develop any number of utility functions in C for speed improvements.
Also, this seems like it might have a bit more community interest as well -- rather than just another way to talk to OpenGL.
Best of all, I'd have a cross-language graphics engine usuable immediately in all languages I ran across with...even future ones.
I'll still have to hammer out the protocols and so on, but this is definitely doable and I'm going to give it a shot.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Inline::C *back* into Perl
by flyingmoose (Priest) on Feb 15, 2004 at 22:17 UTC | |
by tilly (Archbishop) on Feb 16, 2004 at 01:09 UTC | |
by flyingmoose (Priest) on Feb 16, 2004 at 03:29 UTC |