[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unloading Perl scripts ...
On Fri, Apr 12, 2002 at 07:38:22PM +1000, Peter Zelezny scripsit:
> It should change for 1.9.x/2.0.0. Running each script in it's own initialized
> interpreter might do the trick, but I'm scared to see how much memory that'll
> use. What do you mean by a "perl based" perl scripting interface (it sounds
> evil ;)?
Running multiple interpreter is silly. First it will eat to much
memory, second will forbid to have utility scripts. For instance, I
have made a script which just adds rfc-like nick and channel name
comparation. I use the function provided by this script in a lot of
others. Obvioulsy I could make the script a perl module and have the
script charging it, but then there will be say 10 copies of it in the
memory...
By "perl based" I mean that the search for the handler and its
execution will be a purely perl affair, using function defined in a
perl module which will be loaded by the embedded interpreter on
startup. From the point of view of the rest of xchat, nothing will
change: it will still call some perl_inboud or perl_outbound function,
but this will in turn call a perl sub and let it doing the
job. Starting nerxt month I should have some free time and I could
try to implement it if you people are interested.
Greetings
--
Leo TheHobbit
IRCnet #roma2
ICQ 56656060
++++
The King asked his wise men for some single thing that would make him
happy when he was sad, but sad when he was happy. They consulted and
came back with a ring engraved with the message: This Too Will Pass
Sufi wisdom
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/