C::Blocks Advent Calendar 2016

Posted on December 3, 2016. Filed under: Uncategorized | Tags: , , , , , , |

C::Blocks Advent Calendar

Perl is great, but sometimes I find myself reaching for C to do some of my computational heavy lifting. There are many tools that help you interface Perl and C. This module differs from most others out there by providing a way of inserting your C code directly where you want it called, rather than hooking up a function to C code written elsewhere. This module was also designed from the outset with an emphasis on easily sharing C functions and data structures spread across various packages and source files. Most importantly, the C code you see in your script and your modules is the C code that gets executed when your run your script. It gets compiled by the extremely fast Tiny C Compiler at script parse time.

  1. Weaving procedural C code into your Perl code
  2. How to get data across the boundary between Perl and C
  3. How to get information across the boundary between Perl and C
  4. How to declare and share C functions
  5. Benchmarks
  6. Generating and modifying code
  7. Pointers and data structures
  8. Controling access to pointers
  9. The details of writing a type for C::Blocks
  10. How to use C::Blocks in multithreaded Perl code

See also C::Blocks

Liked it here?
Why not try sites on the blogroll...