Revision history for Ekorn-Pipeline-Workers

Unreleased

v0.1.0 2026-11-29

    Stages that run each value in a worker process, with a user guide
    and a reference.

    The first release, of Ekorn-Pipeline's roadmap item 2026-0065:
    three stages that run a named function for each value, or each
    distinct key, in a pool of workers, each a fresh perl, on Unix and
    Windows alike, for blocking work and work for the CPU; with a user
    guide of recipes, each a whole program and the module it uses,
    tested on Linux, macOS and Windows, and a reference of what the
    stages promise.

    - in_workers, in_workers_as_ready and once_per: a named function for
      each value, or each distinct key, in a pool of workers, each a
      fresh perl on a socket of its own, on Unix and Windows alike;
      results in the order the values came, or as they're back, each
      saying where it came from (Ekorn-Pipeline 2026-0065).
    - All three stages are exported by default, as Futures' are; an
      empty import list keeps them out (Ekorn-Pipeline 2026-0064, D12).
    - init, init_args and done: each worker set up once, as it starts,
      and torn down as it leaves (Ekorn-Pipeline 2026-0065, D2).
    - The function a worker runs, and init and done, may be given as a
      code reference to a named sub in a module, as well as by name; an
      anonymous sub, or a sub of the program's script, croaks as the
      stage is made (Ekorn-Pipeline 2026-0065, D7 as amended).
    - An error object a function dies with reaches the program as it was,
      or as its message if it can't be frozen (Ekorn-Pipeline 2026-0065,
      D13).
    - The messages call the function "the function", count values from
      1, and leave out Storable's own file and line (Ekorn-Pipeline
      2026-0065, D14 and D15).
    - A module that won't load says why, with Perl's reason, rather than
      that there's no function (Ekorn-Pipeline 2026-0064, D9).
    - A stop from the function, met as the stage flushes at the end of
      a run, carries every result before it; and a stop that isn't an
      array carries nothing, as in Ekorn, rather than ending the worker
      (Ekorn-Pipeline 2026-0065, D17 and D18).
    - An option a stage doesn't take, and a window or hold that isn't a
      whole number, croaks as the stage is made; once_per's ordered is
      documented, and only once_per takes it (Ekorn-Pipeline 2026-0065,
      D19 and D20).
    - A function no worker can load croaks as the stage is made: one in
      the program's script, in any package, given by name or by code
      reference, or one in a second package of a module's file. Each
      used to pass, then start every worker, and fail in each with
      "Can't locate My/Script.pm", a file the program never had
      (Ekorn-Pipeline 2026-0065, D21).
    - The messages a run gives name the stage that gave it, in_workers,
      in_workers_as_ready or once_per, and once_per's speak of keys;
      they all said in_workers, and value (Ekorn-Pipeline 2026-0065,
      D22).
    - init_args without an init croaks, rather than being given to
      nothing (Ekorn-Pipeline 2026-0065, D23).
    - A worker's token is in its environment, not its command line,
      which every user of the computer can read, and comes from
      /dev/urandom where there is one (Ekorn-Pipeline 2026-0065, D16).
    - A user guide, Ekorn::Pipeline::Workers::Manual::HowTo: recipes,
      each a whole program and the module it uses, tested as they stand
      on Linux, macOS and Windows (Ekorn-Pipeline 2026-0064, D7, and
      2026-0065, D10).
    - A reference, Ekorn::Pipeline::Workers::Manual::Reference: what the
      stages promise, from fresh perls to every message, each promise
      linked to the recipes that show it, its examples tested as they
      stand (Ekorn-Pipeline 2026-0064 and 2026-0065).
