--- Coro/Changes 2009/10/01 23:50:23 1.525 +++ Coro/Changes 2012/02/19 11:14:45 1.589 @@ -1,15 +1,172 @@ Revision history for Perl extension Coro. TODO: should explore PerlIO::coroaio (perl leaks like hell). -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: unready_all -TODO: myhttpd header parsing TODO: channel->maxsize(newsize)? +TODO: http://www.microsoft.com/msj/archive/s2ce.aspx + - be more aggressive about exiting like perl does - formerly, + exiting from the non-main thread would not execute END blocks. + +6.07 Fri Nov 11 21:21:48 CET 2011 + - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV). + - update ecb.h. + +6.06 Mon Aug 8 23:59:48 CEST 2011 + - cygwin unfortunately patches the stack at runtime, so we use the pthreads + backend, which is an order of magnitude slower. unfortunately, cygwins + pthread implementation isn't very complete either, so allocate the stack + twice just to be sure. + (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS, + in its ithreaded perl - best recompile cygwin and use the 'w'indows + backend for much better performance. also disable ithreads for + even better performance...). + +6.05 Thu Aug 4 21:36:36 CEST 2011 + - blush, condvar values would not be propagated from send to recv anymore + (reported by Chip Salzenberg). + - use exponential increase for the readline buffer length in + Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes. + +6.04 Wed Aug 3 17:15:45 CEST 2011 + - use even more efficient and more compatible condvars for + compatibility to AnyEvent 6.x :) + - more inconsequential ecb.h updates. + +6.03 Wed Aug 3 11:41:30 CEST 2011 + - change how Coro patches AnyEvent condvars for compatibility to + AnyEvent 6.x. + - update ecb.h, to no longer include in case WinNT.h + hasn't been included. + +6.02 Wed Jul 13 04:35:19 CEST 2011 + - "improve portability to Gentoo" - gentoo manages to put perl variables + in memory areas that are farther than 2gb apart, which the jit couldn't + handle and barfed. now it's just a bit slower on gentoo and similar + systems. + +6.01 Sun Jul 3 12:31:14 CEST 2011 + - workarounds are good, but the test for whether pthreads are used + was not good. thisone should be better. + - check differently whether gcc generates cfi instructions itself. + +6.0 Wed Jun 29 19:43:35 CEST 2011 + - INCOMPATIBLE CHANGE: unreferenced coro objects will now be + destroyed and cleaned up automatically (e.g. async { schedule }). + - implement a JIT compiler for part of the thread switch code, + which gives a 50% speed improvement on threaded perls, and + about 4% on non-thraeded perls (so threaded perls now finally + reach about half the speed of non-threaded perls). + - slightly modernise Coro::Intro, add section about rouse functions. + - avoid DEFSV and ERRSV, giving another 10% improvement + in thread switching. + - Coro::State->is_destroyed is now called is_zombie. + - implement a Coro->safe_cancel method that might fail, but + cancels in a "safer" way if it succeeds. + - add preliminary support for DEBUGGING perls. + - get rid of two hash-accesses when initialising a new Coro - this + speeds up coro creation by almost a factor of two. + - croak when a coro that is being cancelled tries to block + (e.g. while executing a guard block), instead of crashing or + deadlocking. + - use a more robust and also faster method to identify Coro::State + objects - speeds up everything a bit. + - implement Coro->cancel in XS for a 20% speed improvement, and to + be able to implement mutual cancellation. + - speed up context switches by a percent or two by more efficiently + allocating context stack entries. + - implement Coro->join and Coro->on_destroy in XS for a speedup and + a reduction in memory use. + - cancelling a coro while it itself is cancelling another coro is + now supported and working, instead of triggering an assertion. + - be a bit more crash-resistant when calling (buggy) on_destroy + callbacks (best effort). + - move on_destroy into the slf_frame, to allow extension slf + functions to have destructors. + - get rid if coro refcounting - simply crash in other interpreter + threads by nulling the pointers on clone. + - simplify warn/die hook handling when loading Coro - the convoluted + logic seems to be no longer neccessary. + - use libecb instead of our own home-grown gcc hacks. + - document alternatives to Coro::LWP. Please use them :) + - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds + sigaltstack. Really. wine suffers from it, erlang suffers from it, + and it's known since at least 2006. + +5.372 Wed Feb 23 06:14:30 CET 2011 + - apparently mingw doesn't provide a working gettimeofday, try to + work around that by relying on Time::HiRes (indirectly brought to + my attention by Max Maischein). + - fix some portability issues when Time::HiRes was used. + +5.371 Mon Feb 21 14:36:08 CET 2011 + - backport to windows process emulation code again. + +5.37 Sat Feb 19 07:49:44 CET 2011 + - add a big "Coro thread life cycle" section to "man Coro". + - try a tentative workaround against the breakage that 5.13 has + introduced without depreciation period. sigh. + - no longer use Time::HiRes if gettimeofday is available, which + saves quite a lot of memory. + +5.36 Sun Feb 13 05:33:41 CET 2011 + - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore, + Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new" + method call. + - undocument Coro::Timer::sleep and obsolete whole module. + - optimise Coro::Timer::timeout memory and cpu usage. + - slightly updated Coro::Intro for recent changes. + - do not initialise PL_dirty anymore. + +5.25 Thu Nov 11 01:08:39 CET 2010 + - try a different approach on netbsd - netbsd 5 finally has marginally + working pthreads, but still broken ucontext/sigaltstack. + - openbsd 4.8 finally got their act together, Coro works out of the box + with asm, setjmp and pthreads (no change, just informational). + +5.24 Sat Oct 23 11:27:12 CEST 2010 + - port to the EV 4.0 API. + - work around bugs in mingw32, making strawberry perl work + out of the box. + - correctly modify Coro::AIO function prototypes + so that they reflect the "no optional parameters" rule. + - "ported" libcoro to C++. + +5.23 Mon May 17 18:50:42 CEST 2010 + - be more resistant to ordering changes when initialising + Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias + Waldorf). + - document that perl 5.12 deliberately removed support for cloning. + +5.22 Wed Apr 14 03:55:35 CEST 2010 + - correctly return udnef on errors in Coro::Handle::read/write + (testcase by Marc Mims). + - convert Coro::Util into a "perl compatibility wrapper" - the functions + are less useful now, but are drop-in replacements for existing + functions, listing better alternatives in the documentation. This also + fixes a bug in Coro::LWP which naively substituted Socket::inet_aton + with Coro::Util::inet_aton. + - do not override $Coro::idle unconditionally in Coro.pm, as other + modules could have provided their own idle coro already + (for exmaple, Coro::AnyEvent). + - fix Coro::Util::gethost* functions. + - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura). + +5.21 Wed Dec 16 07:19:51 CET 2009 + - automatically load Coro::AnyEvent when AnyEvent and Coro are used + together. + - add some examples on how to combine other event loops with Coro in + Coro::AnyEvent, and how to run it (and not to block). Seems to be + the most common source of confusion. + - try to catch people naively blocking in an event callback. + - work around the perl filehandle bug issue in conjunction with + older common::sense (as indirectly pointed out by ZSystem). + - clarify the "not from signal handlers" section. + +5.2 Sun Oct 4 14:54:24 CEST 2009 - Coro::Storable destroyed the prototypes of the functions it wrapped. + - export rouse_cb and rouse_wait by default now. - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle. + - new method $state->swap_sv. - added section on "windows process emulation" to the manpage, after a not-so-fruitful (nor-friendly) "discussion" with chip salzenberg (discussion implies arguments, but his only arguments @@ -17,7 +174,6 @@ place). I hope this explains it well enough for him to understand, and maybe well enough for others to understand. - use common::sense everywhere now. - - mark all SLF functions as nodebug, to avoid more debugger bugs. - idle callbacks are no longer supported, use idle coros instead. - print a thread listing when a deadlock is detected.