in reply to Re: Perl/Tk Applet for Web
in thread Perl/Tk Applet for Web
Also, there are a number of tools meant to ease the production of AJAX-enabled web pages from Perl. Some seem to even lessen the need to know JavaScript well for more basic uses. AJAX gives us HTML::Prototype, HTML::Prototype::Js, OpenThought, AEAE, HTML::AjaxTags, JQuery, and more.
This doesn't give exactly the same kind of advantages that Flash and such do. However, it can get pretty close, and there's no plugin required. When (if?) SVG is standardized across browsers, it'll be even closer. JavaScript isn't in every browser nor allowed to be active at every location, but then neither are plugins.
A thought occurs to me that it wouldn't even be a good idea to focus efforts on securing a Perl plugin and promoting it. ActionScript is pretty powerful, and Flash is pretty widespread. There's nothing keeping other languages from compiling down to SWF, which is a more-or-less open format.
The HaXe language does just that. HaXe can target Flash, JavaScript, or nekoVM although what's possible is a little different in each case. Some of the functionality is through libraries, so the core language doesn't get polluted with target-specific abilities that don't exist on other targets.
Multiple backends is a goal of Perl6 IIRC -- parrot, a JIT, JVM, perhaps CLR, etc. Perhaps modules could be made that allow Perl5 and/or Perl6 with some graphics and sound lib calls to compile down to Flash. I'm not sure Tk, Gtk+, SDL, OpenGL, or whatever would be exactly suitable, but perhaps a subset of one or more of those could be squeezed in. A separate Flash library module might be necessary.
Update (2007-09-07 21:12Z): I've found references to SWF::Builder and SWF::File. Those require a some knowledge of the Flash concepts, but they look usable enough. It shouldn't be any harder than picking up a Perl interface to some other library. teabag has a pretty interesting CUFP using SWF::file at plong - a pong clone with SWF::File.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl/Tk Applet for Web
by zentara (Cardinal) on Sep 08, 2007 at 11:51 UTC | |
|
Re^3: Perl/Tk Applet for Web
by dsheroh (Monsignor) on Sep 08, 2007 at 14:49 UTC |