. .

YAPC::EU 2010 - The Renaissance of Perl



XS++ - Bonding Perl and C++ with minimal pain

XS++ - Bonding Perl and C++ with minimal pain

By Steffen Mueller from AmsterdamX.pm
Date: Wednesday, 4 August 2010 15:00
Duration: 20 minutes
Target audience: Intermediate
Language: English
Tags: c glue xs

You can find more information on the speaker's site:

Everyone seems to know that the obscure mini-language called "XS" is the standard way to wrap a C library for use in Perl code. Curiously, the mere thought of XS appears to strike fear in the heart of experienced developers. To add insult to the injury, the use of plain XS to wrap C++ code is barely documented.

Mattia Barbon must have had similar thoughts when he wrote the Wx bindings for Perl, thus XS++ was born. It offers a friendlier syntax for wrapping C++ classes and methods that is reminiscent of plain C++ headers with some annotations to fine-tune the Perl-facing API. It automatically converts C++ exceptions to Perl exceptions and helpfully takes care of many of the hoops one would ordinarily have to jump through.

The presentation introduces the audience to XS++.
Some advanced topics covered may require modest familiarity with XS or C++, but the basic concepts should be accessible to intermediate Perl programmers.

Attended by: Nicholas Clark, Stefan Seifert (‎Nine‎), Nuno Carvalho (‎smash‎), Salvador Fandiño (‎salva‎), Roman Baumer (‎rba‎), Olivier Mengué (‎dolmen‎), Jörg Plate (‎Patterner‎), Florian Ragwitz (‎rafl‎), John Scoles (‎byterock‎), Clinton Gormley (‎DrTech‎), Steffen Schwigon (‎renormalist‎), David Leadbeater (‎dg‎), Marco Fontani (‎mfontani‎), Shmuel Fomberg, Steffen Mueller, Vincent Pit (‎vincent‎), Francesco Rivetti (‎oha‎), Leon Timmermans (‎leont‎), Alan Haggai Alavi (‎alanhaggai‎), simotrone, Sawyer X, Antonio Caria,

Our sponsors


  • Booking.Com
  • YAPC::Europe 2009
  • cPanel


  • Shadowcat
  • 123 people
  • Venda
  • Dada


  • YAPC::Europe Foundation
  • Smart Open Software
  • MySQL
  • Exonetric
  • pair Networks


  • GitHub
  • Italpro
  • Geoesse
  • $foo Perl Magazin
  • Lokku
  • Apress
  • No Starch Press
  • O'Reilly Media

Media Partners

  • Linux Magazine


  • Regione Toscana
  • Comune di Pisa