--- Coro/Changes 2007/10/07 03:58:37 1.264 +++ Coro/Changes 2008/05/10 00:13:18 1.344 @@ -1,19 +1,167 @@ Revision history for Perl extension Coro. -TODO: localise SIG{__DIE__} and/or __WARN__ TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO. -TODO: maybe implement a default message channel, very much like Erlang - (which is cool in a lot of important aspects (failures!), +TODO: maybe implement a default message channel, very much like Erlang's + actor model (which is cool in a lot of important aspects (failures!), but very lacking in others (higher level ipc)). + TODO: AnyEvent provide detetc hook + TODO: Coro::AnyEvent + - completely reworked the Coro manpage. + - added Coro::AnyEvent, generic event loop integration. + - implement cancel, ready and kill commands in Coro::Debug. + - document find_coro in Coro::Debug. + - incompatible change: rename has_stack to has_cctx. + +4.6 Sat Apr 26 10:05:14 CEST 2008 + - INCOMPATIBLE CHANGE: sub/code attributes are no longer supported + by the Coro module. It was a mistake to have it in the first place. + - (experimental) support for activestate perl 5.10 (method "w"). + - (experimental) support for strawberry perl (method "a"). + - coro_sigelem_set did not return a value although it had to, + actual impact unknown. + +4.51 Mon Apr 14 13:28:27 CEST 2008 + - make it compile again on 5.8. + +4.50 Thu Apr 10 09:43:17 CEST 2008 + - I did it twice! (see 4.49). + +4.49 Sun Apr 6 21:23:31 CEST 2008 + - grr, instead of compiling the recent changes on 5.10 only they + were compiled on 5.8 only. + +4.48 Sun Apr 6 20:36:46 CEST 2008 + - allow coroutine switches during eval's under 5.10.x, as it seems + the parser is a per-interpreter option now, so this is safe + (this might fix the odd crashing bug). + - drop support for 5.9.x versions: they are dead, jim. + +4.47 Sun Apr 6 00:37:52 CEST 2008 + - force cctx allocation on API calls: we know we need to force one + and gcc actually manages to confuse our heuristic nowadays, + leading to crashes and worse. + - document force_cctx. + +4.46 Fri Apr 4 22:05:43 CEST 2008 + - upgrade libcoro, resulting in pthread-backend (which was only created + to fulfill the rules of the programming languages shootout). + +4.45 Thu Mar 13 11:55:36 CET 2008 + - fix a file leaking bug in eg/mhyttpd that would allow + downloading of any file (reported by oesi). + - fix deadlock bug in Coro::Channel (reported by Richard Hundt) + (also add testcase). + - support Broadcast option in Coro::Socket (patch by Richard Hundt, + apparently having loads of fun with that). + - implement $state->swap_defsv, ->swap_defav and document ->throw. + +4.4 Wed Feb 13 16:44:29 CET 2008 + - only assume .cfi pseudo isns exist on GNU/Linux. + - add get_timed method to Coro::Channels. + - fixed Coro::Debug manpage. + - perl 5.11 compatbility improvement based on patch by + Andreas König. + +4.37 Sun Jan 20 11:25:23 CET 2008 + - soften the check for an active parser for perl 5.10 (avoiding + "Coro::State::transfer called while parsing" in many cases). + +4.36 Sun Jan 13 10:53:56 CET 2008 + - reset diehook when terminating from an async_pool as to not + trigger any __DIE__ handlers. + +4.35 Sun Jan 13 04:14:13 CET 2008 + - "bt" debug command now displays any exceptions + from longmess and also skips the innermost + stackframes, giving more useufl output. + - allow backtraces in coroutines blocked in Coro::EV, + at a <1% speed hit. + - handle localising of $SIG{__WARN__} and __DIE__ + properly (with a proper amount of dirty hacking). + +4.34 Sat Dec 22 17:49:53 CET 2007 + - upgrade to EV version 2.0 API. + +4.33 Mon Dec 17 08:36:12 CET 2007 + - make Coro::AIO etc. loadable in the absence of EV. + +4.32 Mon Dec 17 07:46:02 CET 2007 + - majorly improved Coro::Handle's performance with Coro::EV. + - implemented the until now mythical Coro::BDB module. + - specialcase EV in Coro::AIO and Coro::BDB for extra speed. + +4.31 Wed Dec 5 12:32:39 CET 2007 + - remove warn statement form Coro::Util. + +4.3 Tue Dec 4 20:33:14 CET 2007 + - calls to the idle function could cause stack corruption + when the stack changed. + - do no longer rely on the presence of EV::DNS if EV is used + (because it is gone), but instead take avdantage of EV::ADNS + if available. + - add ($) prototypes to all functions in Coro::Storable. + - use a conventional (safer) idle callback in Coro::EV. + - do accept quickly in Coro::Debug to avoid endless loops. + +4.22 Fri Nov 30 16:04:04 CET 2007 + - really use optimised versions for Event and EV in Coro::Util + and Coro::Handle. + +4.21 Sun Nov 25 10:48:59 CET 2007 + - fix a spurious memory read. + - Coro::EV no longer keeps the eventloop "alive". + +4.2 Fri Nov 9 20:47:05 CET 2007 + - enable/disable tracing from a new coroutine, not a pooled one. + - fix a memleak in Coro::Event. + - removed killall call from fork_eval. + - made sure store_fd is already loaded so that fork_eval + does not have to parse autoload in each subprocess. + - only use assembly method if -O switch is in $Config{optimize}. + - add (optional) Coro::EV module, so far the best event loop module + directly supported by Coro. + - if the event model is EV, use EV::DNS to resolve + stuff in Coro::Util. + - don't get confused by multiple event notifications in Coro::Handle. + - initial support for EV (libevent interface). + - require Event and EV using configure_requires, to force their existance. + +4.13 Wed Oct 24 07:26:45 CEST 2007 + - add Coro::Storable::blocking_thaw. + - use a vastly more complicated technique to localise + $SIG{__WARN/DIE__} that also works on perls <= 5.8.8. + - use a coroutine for the idle callback Coro::Event, + instead of running Event in the current coroutine context. + This also catches recursive invocations. + - actually report fork errors in gethostbyname and inet_aton. + +4.11 Thu Oct 11 02:40:24 CEST 2007 + - port to threaded perls. + +4.1 Thu Oct 11 02:38:16 CEST 2007 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now be local to each coro (see Coro::State). + - incompatible change: for very deep reasons, cede and cede_notself + cannot return anything, so nothing will be returned. - possibly bring back 5.10 compatibility (untested). - work around stupid (and wrong) warning on 5.10 :(. - overlay the saved state over the context stack. This saves a few hundred bytes per coroutine on average and also speeds up context switching a bit. + - further tune default stack sizes. - (more) correctly calculate stack usage in coro_rss. + - Coro::Storable::blocking_* did not properly lock + resulting in races between coroutines. + - added Coro::Storable::guard. + - stopping to trace a coroutine could destroy the cctx of + an unrelated coroutine. + - explain the relationship between Perl and C coroutines in + more detail in Coro::State. + - Coro::Util::inet_aton did not short-circuit dotted quad forms, + causing a fork per resolve. This also affected Coro::Socket. + - switch to a separate stack in $coro->call/eval to avoid + invalidating pointers. 4.03 Sat Oct 6 21:24:00 CEST 2007 - added Coro::throw method.