Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

"I can now use Perl 5's DBI in Perl 6 :)"

by raiph (Deacon)
on Aug 27, 2014 at 18:11 UTC ( [id://1098790]=perlnews: print w/replies, xml ) Need Help??

»»» This post is about the immature Perl 6, not the rock solid Perl 5 «««

The feature this post is about is just a few days old. It doesn't yet destroy P5 objects, there's more marshaling work to do, etc.

Update About one month after nine started this project... A destroy that makes sense in the context of P6 has been implemented. (But note ribasushi's point about a ref-count driven destroy.) Marshaling is done, including marshaling of exceptions. There's support for inheriting from Perl 5 classes in Perl 6. It already covers a lot of P5/P6 interop functionality.

(I'm bringing this project to monks' attention at this very early stage in the hope that at least some of you consider joining the freenode IRC channel #perl6 over the next couple days to encourage P6ers, play with this new P5 interop, ask questions, etc. Here's hoping.)

Stefan Seifert (aka nine or niner) did a lightning talk at YAPC::EU and started the Inline::Perl5 repo 4 days ago.

He's been making rapid progress since then.

Yesterday in #perl6 niner wrote "I can now use Perl 5's DBI in Perl 6 :)".

Update "I'm out of ideas. Now I need some real world usage of Inline::Perl5 to find out what's missing.".

At the time of writing this PM post the repo's readme says:

Module for executing Perl 5 code and accessing Perl 5 modules from Perl 6.

Supports Perl 5 modules including XS modules. Allows passing integers, strings, arrays and hashes between Perl 5 and Perl 6. Also supports calling methods on Perl 5 objects from Perl 6.

Update README now adds "and calling methods on Perl 6 objects from Perl 5."

  • Comment on "I can now use Perl 5's DBI in Perl 6 :)"

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlnews [id://1098790]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-25 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found