Re: [AOLSERVER] perl [was: Re: Advice for writing a ruby-aolserver module]

2006-05-23 Thread Mark Aufflick

Hmm, might be worth trying that until ruby gets more thread friendly.
I have the code from Jim Lynch's attempt at nsperl as a start.

On 5/23/06, 'Jesus' Jeff Rogers [EMAIL PROTECTED] wrote:

Mark Aufflick wrote:

 A smart idea that Vlad gave me is to use nsproxy as a base module,
 which apparently already fires up a pool of tcl interpreters in
 seperate processes. It might be a good model for our non-thread safe
 friends like Ruby and Perl.

Perl can be thread-safe, if you jump through the right hoops
(-DMULTIPLICITY and maybe another define).  I did some work on making
the tclperl package thread-safe with the main intent of making it work
in aolserver, and got pretty good results.  If there was a DBD interface
to the Ns_Db functions that would make aolserver a *schweet* environment
for perl apps since there is no database pooling on apache.

-J


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.




--
Mark Aufflick
e: [EMAIL PROTECTED]
w: mark.aufflick.com
p: +61 438 700 647
f: +61 2 9436 4737


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] perl (nsperl? DBD::AOLserver? etc.)

2006-05-23 Thread Dossy Shiobara
On 2006.05.22, 'Jesus' Jeff Rogers [EMAIL PROTECTED] wrote:
 If there was a DBD interface to the Ns_Db functions that would make
 aolserver a *schweet* environment for perl apps since there is no
 database pooling on apache.

Oh, interesting.  This is definitely going on my TODO list --
DBD::AOLserver ... neat.  Of course, testing it will require having the
nsperl thing you've done to run Perl scripts inside the nsd.  Have you
made your stuff publically available somewhere?

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] perl (nsperl? DBD::AOLserver? etc.)

2006-05-23 Thread Jeff Hobbs
Dossy Shiobara wrote:
 On 2006.05.22, 'Jesus' Jeff Rogers [EMAIL PROTECTED] wrote:
  If there was a DBD interface to the Ns_Db functions that would make 
  aolserver a *schweet* environment for perl apps since there is no 
  database pooling on apache.
 
 Oh, interesting.  This is definitely going on my TODO list -- 
 DBD::AOLserver ... neat.  Of course, testing it will require 
 having the nsperl thing you've done to run Perl scripts 
 inside the nsd.  Have you made your stuff publically 
 available somewhere?

Anyone considering binding Tcl and Perl at the C level should look at the Tcl
module for Perl, latest version at:
http://search.cpan.org/~vkon/Tcl-0.89/Tcl.pm

This has the highest efficiency, correct binding of Perl SVs to Tcl Tcl_Objs,
because I wrote it.  ;)  While you likely want the reverse (like Fontaine's
tclperl extension), the C translation of SVs to Tcl_Objs should still apply.

Jeff


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] perl (nsperl? DBD::AOLserver? etc.)

2006-05-23 Thread Jeff Rogers

Dossy Shiobara wrote:

On 2006.05.22, 'Jesus' Jeff Rogers [EMAIL PROTECTED] wrote:


If there was a DBD interface to the Ns_Db functions that would make
aolserver a *schweet* environment for perl apps since there is no
database pooling on apache.



Oh, interesting.  This is definitely going on my TODO list --
DBD::AOLserver ... neat.  Of course, testing it will require having the
nsperl thing you've done to run Perl scripts inside the nsd.  Have you
made your stuff publically available somewhere?


I haven't previously, but I could.  It's not really in the nicest state 
however (not well documented, sloppy comments (where they exist), etc). 
 I pretty much started from Fontaine's tclperl (v2.3 I think) and added 
in thread-safety and better handling of SVs (I haven't compared to Jeff 
Hobbs's work on Tcl.pm) and wrote a little wrapper for use in aolserver.


I put it at
http://home.diphi.com/users/jeffr/nsperl/nsperl.tar.gz
for now, but a more permanent home would be better (once it's cleaned 
up, naturally).


-J


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] 
with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.