in reply to Potential project - Perl Beads?
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Potental project - Perl Beads?
by Masem (Monsignor) on Sep 24, 2001 at 17:05 UTC | |
This isn't a problem in perl thanks to numerous ways to introspect a module after loading. As for examples, let me try to give a couple. Let's say you wanted a stock quote off a certain web page out of the rest of the junk on the page. Sure, this is a breeze in straightforward perl, but the idea with Beads is that you can put this together without knowing the language to any great extent. So the connection in Beads would be something like: Note that the beads should be sufficiently reusable. As another example, let's say I wanted to make a web page of thumbnails from a directory of images. Here's a possible Bead string for that: Here, I hopefully demonstrate that data sent through beads would need to have synchorization; here, SaveImageBead would wait until it has both inputs from data that was generated by LineMatcherBead, and HTMLTableGeneratorBead would also wait for the same. Note that this means that some beads would run in a threaded environment, while others would be 'batch' operations. Again, these examples are easy enough to do in straightforward perl but what I'm aiming for is a way for those not familar with programming or scripting to have a solution to put together advanced 'scripts' without help. While XBeans, the JAva solution, will probably work too, using perl means that you avoid the overhead of instaniting a Java environment, you are probably insured of it working without the installation of additional packages on most *NIX installs, and that adding to the system by third parties should be much simpler than adding to it via Java.
-----------------------------------------------------
| [reply] [d/l] [select] |
by suaveant (Parson) on Sep 24, 2001 at 17:44 UTC | |
I can see it as a good thing for perl, what I think would go well with it would be the ability to call a bean you didn't have, and the first run of the script would load all necessary beans from a known source, all you would need is use Perl::Beads; Just a thought. I suppose anything in the FAQ or Tutorials section would be fair game for a bead, as well. I'm not sure... it sounds plausible, but unless it is designed just right it could easily become so much perl cruft... but if designed right, it might help those less familiar with programming... - Ant | [reply] |
by tilly (Archbishop) on Sep 24, 2001 at 17:41 UTC | |
| [reply] |
by Masem (Monsignor) on Sep 24, 2001 at 18:13 UTC | |
And to answer someone else as pointed out in this thread, yes, XML would seem to be inefficient, but a hidden advantage of using XML as transfer mechanisms would be that beads would not necessarily have to lie on the same computer; the bead could easily be a report server that does something with XML and return XML back, or could be a client bead talking to a server bead, etc. In addition, beads would not necessary need to talk to other beads; using XML allows anything to be inserted into the mechanism as long as it understands the XML. Using perl internals would be nice, but at some point if you cross the machine boundary, you need to serialize the objects, and XML is a very convinent way to do this.
-----------------------------------------------------
| [reply] |