Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [RELEASE] Pugs 6.2.5 is released!: msg#00137

lang.perl.perl6.compiler

Subject: Re: [RELEASE] Pugs 6.2.5 is released!

"vadim" <vadim@xxxxxxxxxxxxx> 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.

Which approach will you advice?

If I were doing this then I'd take my C library and write some kind of wrapper for it using Parrot. Parrot's NCI (Native Call Interface) lets you load a dynamically linked library/shared object and call functions in it (I once wrote a script that auto-gen'd Parrot calls for the entire Win32 API). Then you can write a Perl6 module that inlines PIR (Parrot code) that loads your Parrot code wrapping the C library and calls the functions you want, and wrap all of this again in some nice Perl 6 module/class.

I believe that the plan is that Pugs will be re-written from Haskell into Perl 6, so writing your binding to the C library with Haskell's support for doing so probably won't be a long-term solution to your needs.

Hope this helps, and corrections welcome (all(qw/beer wine baileys/) == none(@good_idea) ;-)).

Jonathan



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe