Changes between Version 3 and Version 4 of ModParrotArchitecture

Show
Ignore:
Timestamp:
11/21/08 18:17:31 (13 years ago)
Author:
jhorwitz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModParrotArchitecture

    v3 v4  
     1= mod_parrot Architecture = 
     2 
    13NOTE: This is a work in progress. 
    24 
    3 = Overview = 
     5== Overview == 
    46 
    57This page describes the various subsystems of mod_parrot, and how they all work together.  It is meant to reflect the current state of mod_parrot and should not be used for future design notes.  As such, it will be kept up to date with mod_parrot trunk. 
    68 
    7 = Terminology = 
     9== Terminology == 
    810 
    911 * HLL: high level language (e.g. Rakudo Perl 6, PHP) 
     
    1416 * Context: a data structure containing information about the current connection 
    1517 
    16 = Design Goals = 
     18== Design Goals == 
    1719 
    1820 * Provide a Parrot interface to the Apache API and data structures 
     
    2123 * Become the primary platform for mod_perl6 development 
    2224 
    23 = mod_parrot Module = 
     25== mod_parrot Module == 
    2426 
    2527The mod_parrot Apache module is the product of compilation, and is usually named {{{mod_parrot.so}}} on Unix systems.  It has a dependency on libparrot.so. 
     
    3133{{{LoadModule parrot_module modules/mod_parrot.so}}} 
    3234 
    33 == Configuration == 
     35=== Configuration === 
    3436 
    35 == Contexts == 
     37=== Contexts === 
    3638 
    3739A context is a data structure that maintains state for mod_parrot during the various phases of a request.  It is defined as {{{modparrot_context}}} in {{{mod_parrot.h}}} and contains the following members: 
     
    5658To maintain state, the same context must be used for all phases of a request, as it contains a reference to the interpreter. 
    5759 
    58 == Interpreter Management == 
     60=== Interpreter Management === 
    5961 
    6062Contexts are allocated from context pools, which contain a finite number of contexts created at startup.  Contexts contain pointers to Parrot interpreters so this also provides mod_parrot with a pool of interpreters. 
    6163 
    62 === Interpreter Lifecycle === 
     64==== Interpreter Lifecycle ==== 
    6365 
    6466 
     
    6668Interpreters are created  
    6769 
    68 = Apache Interface = 
     70== Apache Interface == 
    6971 
    70 == NCI Functions == 
     72=== NCI Functions === 
    7173 
    72 == Parrot Objects == 
     74=== Parrot Objects === 
    7375 
    74 = HLL Modules = 
     76== HLL Modules == 
    7577 
    76 == Module Registration == 
     78=== Module Registration === 
    7779 
    78 == Metahandlers == 
     80=== Metahandlers === 
    7981 
    80 = Multiprocessing Module Support = 
     82== Multiprocessing Module Support == 
    8183 
    82 == Prefork MPM == 
     84=== Prefork MPM === 
    8385 
    84 == Threaded MPM (e.g. worker) == 
     86=== Threaded MPM (e.g. worker) ===