В Втр, 24.05.2005, в 14:58, Autrijus Tang пишет: > On Tue, May 24, 2005 at 10:36:16PM -0400, vadim wrote: > > > On behalf of the Pugs team, I am elated to announce the release of > > > Pugs 6.2.5, with much more comprehensive OO support, hyper and reduction > > > metaoperators on user-defined operators, as well as experimental > > > coroutine support. > > > > > > > Could you please advice, how is it possible to use external library, or > > better just C code? > > Perl6 <-> C binding. > > > > Should I use Haskell for this? Should I use parrot? > > > > To be more concrete, I want to start using Tcl/Tk from within perl6 > > (like currently Tcl::Tk CPAN module does this) > > At first I tried TclHaskell, which currently is out of date, and it took > > considerable efforts for me, unknowledgable in Haskell, to make it > > compile, but even after that is is non-trivial to move on, however seems > > doable. > > I think the best bet yet is to use Perl5's Tk binding, either by > improving Inline::Pugs or improving Pugs's Perl 5 embedding support. > The first one may be easier.
Perl5's Tk binding is based on older Tk verion, so I, personally, prefer using more up-to-date Tcl/Tk via Tcl::Tk. But my personal preferences left aside, and returning to more general question, what is most preferable way for *any* C library binding? Is it via Perl5 currently? (look at Tcl/Tk like ordinary C library) Any chances on using Haskel's C support? Parrot? PS. As long as Tcl::Tk is much more lightweight compared to perlTk, it could require less work on adopting it, anyway... Best regards, Vadim.