[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Docs on extensions to MacPerl....



Hi Matthias,

>You can't return an array. XFCN's return a string only.

So if I use the XFCN interface, I will have to resort to things like
split(/\001/, $a) when returning arrays. Which will be useable, but not
really nice.

>In your concrete situation, Jon Stevens' suggestion might be the preferrable
>akternative, though.

I've already used Tango for creating a simple "latest news" FM interface.
Tango is way too simple for the task I have. I need full Perl and probably
full sql (instead of Tango's simple queries). I need to be able to use
cookies. I need to be able to use virtual web servers.

My queries will be fast, so the problem with current MacPerl not being
threadded is not that big. And "porting" to unix is no problem if speed is
a problem - I've made a lot of cgi-bin under Solaris 2 (including using
locks and cookies...)

>>seems like I'm able to make a normal PowerPC shared library  which then can
>>be bootstrap'ed much like if I'm writing an extension to perl under unix.
>Yes, this works. It will take some experimentation for you, although I
>believe the 5.1.0 source distribution is a bit friendlier than previous
>ones.

Could you give me some hints of what will need some experiments? I've not
written extensions (xs) for Perl, so I'm interested in what will differ
from doing it by the book (e.g. what differs from doing a shared lib under
Solaris 2).

---  Peter Speck    http://www.dat.ruc.dk/~speck/

Q.- How many developers does it take to change a light bulb?
A.- The light bulb works fine on the system in my office...