Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Yet Another XS Tutorial

by hardburn (Abbot)
on Nov 18, 2013 at 18:42 UTC ( #1063181=note: print w/replies, xml ) Need Help??


in reply to Yet Another XS Tutorial

All I want to say is that if somebody out there is thinking about doing an XS project but is afraid to take the plunge, don't be. After linking to ffmpeg and SDL in UAV::Pilot, I can say that it's not nearly as difficult as it seems, and you can figure it out if you just try.

As a result, UAV::Pilot may be the only library in any language for the AR.Drone that can handle the video stream in realtime inside its own framework. Nodecopter has a plugin that shuttles it the video to a browser, and others rely on VLC. My search was by no means exhaustive, but it appears that UAV::Pilot is the only one.


"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Replies are listed 'Best First'.
Re^2: Yet Another XS Tutorial
by revendar (Novice) on Nov 18, 2013 at 19:17 UTC

    Hello hardburn, I read your tutorial. I have a doubt, if I have to learn perlgut to glue perl and c?. Can't I write a C program and write a simple xs file with just function and return datatypes and compile and make a package?Because I can write some decent C program and don't want to spend time on perlguts.

      Not my tutorial, but . . .

      What perlguts goes over is the internal C structures that represent scalars, arrays, and hashes in Perl. The xs code can do some of this for you, but as soon as things get the slightest bit complicated, you'll almost certainly need to know how to interface with SVs and such.

      Don't worry, though. If you know C already, adding this on isn't that hard, and it's all pretty well documented.


      "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2019-04-26 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (128 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!