Perl 6 - the future is here, just unevenly distributed

IRC log for #perl11, 2013-02-06

| Channels | #perl11 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:05 ^aristotle joined #perl11
02:17 flexvault joined #perl11
02:17 ingy joined #perl11
02:17 rurban joined #perl11
02:19 aristotle joined #perl11
04:09 bulk88 joined #perl11
04:26 Will_the_Chill joined #perl11
04:39 Reini joined #perl11
04:57 Reini joined #perl11
05:39 Reini joined #perl11
05:57 Will_the_Chill joined #perl11
07:10 Reini joined #perl11
08:37 aristotle joined #perl11
08:40 Reini joined #perl11
08:52 renormalist Hi! Just saw you mentioning FFI in your discussion days ago.
08:52 renormalist I only have basic knowledge of XS and FFI but lately came to a problem.
08:53 renormalist As far as I understand, FFI (at least as provided in LuaJit) statically parses C declarations.
08:54 renormalist The problem we had here was how to apply this magic ppport.h which does the multi-perl-version compatibility work.
08:55 renormalist How would you use FFI with C declarations to access the Perl5 internal API and stil lnot restrict to one particular version?
08:56 renormalist Only idea so far is brute force: statically provide pre-precompiled definitions for each supported Perl version and choose during perl Makefile.PL.
08:58 renormalist (it's not strictly on-topic for this channel but would help clarify usage of FFI in a perl11/p2 world.)
10:00 bulk88 so how does FFI detect in and out pointers? accuracy of const in param name?
10:01 bulk88 ppport.h? I guess you are speaking about having p2 call into p5? or p2 loading and using p5 libraries/SOs unmodified?
10:02 renormalist actually we did it from Lua into p5.
10:03 bulk88 call into p5? or have Lua/your system call p5 SOs without a p5 interp
10:03 bulk88 ?
10:04 renormalist In my usecase we discussed a lua-2-perl5 bi-directional bridge, both interpreters knew each other and called into it.
10:04 renormalist from Lua it was using FFI
10:04 renormalist from Perl it was XS
10:05 renormalist (not sure what SO means)
10:50 renormalist ah, SO = .so .... I just got it. /me a bit slow sometimes... :-)
14:43 bluescreen joined #perl11
15:55 Reini joined #perl11
15:56 rurban no, p2 is new p5 parser and a neko/potion-based vm and runtime.
15:57 rurban the new ffi will be is similar to lua,
15:57 rurban so I generate lua-like opcodes from p5 sources.
16:12 rurban "How would you use FFI with C declarations to access the Perl5 internal API and stil lnot restrict to one particular version?" See C::DynaLib I use Conmvert::Binary::C to parse EXTERN.h and perl.h and generate C::DynaLib::PerlTypes at perl Makefile.PL
16:13 rurban http://cpansearch.perl.org/src/RURBAN/C-DynaLib-0.61/Makefile.PL parse_perl_types
16:26 rurban A ptr is parsed by the * in the argument type declaration, but the ffi does not care much, It's just an int. The ffi wrapper/header parser cares a bit more about it.
18:57 punter joined #perl11
19:06 punter left #perl11
19:18 flexvault_ joined #perl11
19:47 flexvault joined #perl11
20:02 flexvault joined #perl11
21:00 Reini joined #perl11
21:30 Reini joined #perl11
22:00 Reini joined #perl11
22:31 Reini joined #perl11
23:17 Reini joined #perl11

| Channels | #perl11 index | Today | | Search | Google Search | Plain-Text | summary