Skip to content
Commits on Aug 24, 2012
  1. diary day 4

    committed Aug 24, 2012
  2. add fast fib(n) function

    - a non-recursive XS function as frontend
    - a real C function as the recursive worker
    
    This is really fast.
    committed Aug 24, 2012
  3. fib_overkill(n) function

    which demonstrates
    
     - how to call a Perl function from C
     - how to misuse that for a recursion which
       continuously stresses function call and
       argument conversion from C to Perl back
       and forth
    
    as a silly example but good lesson to understand
    how things work.
    committed Aug 24, 2012
  4. pure Perl fibonacci function

    ...to have a test vehicle for correctness and speed
    comparisons.
    committed Aug 24, 2012
Commits on Jul 3, 2012
  1. diary day 3

    committed Jul 3, 2012
  2. add grep_even_integers(...) function

    which demonstrates
    
     - iterate over argument stack using "for", "items", and "ST()"
     - check for numbers
     - push return values to stack
     - increment ref count accordingly
    committed Jul 3, 2012
  3. add *_faster() functions

    ...which demonstrate how to explicitely extend
    the stack once by a known size instead of in each
    PUSH.
    committed Jul 3, 2012
  4. add get_2_strings() function

     - similar to get_5_ints()
     - just with other data type
    committed Jul 3, 2012
Commits on Jul 2, 2012
  1. add get_5_ints() function

     - straight PUSH of integers onto stack
     - use PPCODE
     - use mXPUSHi to cover garbage collection
    committed Jul 2, 2012
Commits on Jun 22, 2012
  1. diary day 2

    committed Jun 22, 2012
  2. add hello_to_persons_hashref_by_keys(HV* persons, AV* keys)

    ...which demonstrates:
    
     - iterate hash by given array of keys
     - combination of former lessons
    committed Jun 22, 2012
  3. add hello_to_persons_hashref(HV* persons) function

    ...which demonstrates:
    
     - iterate over key/value pairs of a hash reference
     - check for contained element types
     - cast according to element type
    committed Jun 22, 2012
Commits on Jun 20, 2012
  1. add hello_to_persons_arrayref(AV* persons) function

    ...which demonstrates:
    
     - iterate over elements of an array reference
     - check for contained element types
     - cast according to element type
    committed Jun 20, 2012
Commits on Jun 12, 2012
  1. add hello_to(const char * someone) function

    - with expert declaration
    - with test to call it from Perl
    committed Jun 12, 2012
Commits on Jun 5, 2012
  1. use Sub::Exporter

    committed Jun 5, 2012
Commits on May 23, 2012
  1. diary day 1

    committed May 23, 2012
  2. create a test file

    committed May 23, 2012
  3. add XSLoader to Perl module

    committed May 23, 2012
  4. the magic pport.h

    ...generated with
    
      perl -MDevel::PPPort -eDevel::PPPort::WriteFile
    committed May 23, 2012
  5. initial project

    committed May 23, 2012
Something went wrong with that request. Please try again.