ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Changes
(Generate patch)

Comparing Coro/Changes (file contents):
Revision 1.523 by root, Wed Aug 26 07:42:49 2009 UTC vs.
Revision 1.603 by root, Wed Dec 5 01:09:12 2012 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: should explore PerlIO::coroaio (perl leaks like hell). 3TODO: should explore PerlIO::coroaio (perl leaks like hell).
4TODO: maybe implement a default message channel, very much like Erlang's
5 actor model (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)).
7TODO: unready_all
8TODO: myhttpd header parsing
9TODO: channel->maxsize(newsize)? 4TODO: channel->maxsize(newsize)?
5TODO: http://www.microsoft.com/msj/archive/s2ce.aspx
6TODO: __GCC_HAVE_DWARF2_CFI_ASM
10 7
8TODO: add peerhost/peerport from IO::Socket::INET etc.
9
10 - implement 5.17 compatibility by almost blindly applying a
11 good-looking patch by Father Chrysostomos.
12 - use experimental fiber implementation on native windows
13 perls.
14 - support magic values as timed_io_once args.
15 - recommend AnyEvent 7+ or EV 4+, also require EV
16 version 4 or newer for Coro::EV.
17
186.10 Tue Oct 9 01:14:27 CEST 2012
19 - updated ecb.h, it had a typo that caused it to not compile on many
20 big endian systems (reported by many people).
21 - disable memory fences in ecb.h to improve portability.
22
236.09 Sat Oct 6 23:25:02 CEST 2012
24 - Coro::EV I/O watchers were not interruptible by exceptions
25 (Coro::State::throw) (testcase by sten).
26 - ->throw now puts threads into the ready queue, as this seems to
27 be expected by existing code, and code that doesn't cope with spurious
28 wakeups needs fixing anyway.
29 - use fd -1 in mmap.
30 - cast I32 to int in error message printf.
31 - warn about broken so-called "hardened" kernels.
32
336.08 Fri Apr 13 12:05:47 CEST 2012
34 - be more aggressive about exiting like perl does - formerly,
35 exiting from the non-main thread would not execute END blocks.
36
376.07 Fri Nov 11 21:21:48 CET 2011
38 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
39 - update ecb.h.
40
416.06 Mon Aug 8 23:59:48 CEST 2011
42 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
43 backend, which is an order of magnitude slower. unfortunately, cygwins
44 pthread implementation isn't very complete either, so allocate the stack
45 twice just to be sure.
46 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
47 in its ithreaded perl - best recompile cygwin and use the 'w'indows
48 backend for much better performance. also disable ithreads for
49 even better performance...).
50
516.05 Thu Aug 4 21:36:36 CEST 2011
52 - blush, condvar values would not be propagated from send to recv anymore
53 (reported by Chip Salzenberg).
54 - use exponential increase for the readline buffer length in
55 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
56
576.04 Wed Aug 3 17:15:45 CEST 2011
58 - use even more efficient and more compatible condvars for
59 compatibility to AnyEvent 6.x :)
60 - more inconsequential ecb.h updates.
61
626.03 Wed Aug 3 11:41:30 CEST 2011
63 - change how Coro patches AnyEvent condvars for compatibility to
64 AnyEvent 6.x.
65 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
66 hasn't been included.
67
686.02 Wed Jul 13 04:35:19 CEST 2011
69 - "improve portability to Gentoo" - gentoo manages to put perl variables
70 in memory areas that are farther than 2gb apart, which the jit couldn't
71 handle and barfed. now it's just a bit slower on gentoo and similar
72 systems.
73
746.01 Sun Jul 3 12:31:14 CEST 2011
75 - workarounds are good, but the test for whether pthreads are used
76 was not good. thisone should be better.
77 - check differently whether gcc generates cfi instructions itself.
78
796.0 Wed Jun 29 19:43:35 CEST 2011
80 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
81 destroyed and cleaned up automatically (e.g. async { schedule }).
82 - implement a JIT compiler for part of the thread switch code,
83 which gives a 50% speed improvement on threaded perls, and
84 about 4% on non-thraeded perls (so threaded perls now finally
85 reach about half the speed of non-threaded perls).
86 - slightly modernise Coro::Intro, add section about rouse functions.
87 - avoid DEFSV and ERRSV, giving another 10% improvement
88 in thread switching.
89 - Coro::State->is_destroyed is now called is_zombie.
90 - implement a Coro->safe_cancel method that might fail, but
91 cancels in a "safer" way if it succeeds.
92 - add preliminary support for DEBUGGING perls.
93 - get rid of two hash-accesses when initialising a new Coro - this
94 speeds up coro creation by almost a factor of two.
95 - croak when a coro that is being cancelled tries to block
96 (e.g. while executing a guard block), instead of crashing or
97 deadlocking.
98 - use a more robust and also faster method to identify Coro::State
99 objects - speeds up everything a bit.
100 - implement Coro->cancel in XS for a 20% speed improvement, and to
101 be able to implement mutual cancellation.
102 - speed up context switches by a percent or two by more efficiently
103 allocating context stack entries.
104 - implement Coro->join and Coro->on_destroy in XS for a speedup and
105 a reduction in memory use.
106 - cancelling a coro while it itself is cancelling another coro is
107 now supported and working, instead of triggering an assertion.
108 - be a bit more crash-resistant when calling (buggy) on_destroy
109 callbacks (best effort).
110 - move on_destroy into the slf_frame, to allow extension slf
111 functions to have destructors.
112 - get rid if coro refcounting - simply crash in other interpreter
113 threads by nulling the pointers on clone.
114 - simplify warn/die hook handling when loading Coro - the convoluted
115 logic seems to be no longer neccessary.
116 - use libecb instead of our own home-grown gcc hacks.
117 - document alternatives to Coro::LWP. Please use them :)
118 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
119 sigaltstack. Really. wine suffers from it, erlang suffers from it,
120 and it's known since at least 2006.
121
1225.372 Wed Feb 23 06:14:30 CET 2011
123 - apparently mingw doesn't provide a working gettimeofday, try to
124 work around that by relying on Time::HiRes (indirectly brought to
125 my attention by Max Maischein).
126 - fix some portability issues when Time::HiRes was used.
127
1285.371 Mon Feb 21 14:36:08 CET 2011
129 - backport to windows process emulation code again.
130
1315.37 Sat Feb 19 07:49:44 CET 2011
132 - add a big "Coro thread life cycle" section to "man Coro".
133 - try a tentative workaround against the breakage that 5.13 has
134 introduced without depreciation period. sigh.
135 - no longer use Time::HiRes if gettimeofday is available, which
136 saves quite a lot of memory.
137
1385.36 Sun Feb 13 05:33:41 CET 2011
139 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
140 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
141 method call.
142 - undocument Coro::Timer::sleep and obsolete whole module.
143 - optimise Coro::Timer::timeout memory and cpu usage.
144 - slightly updated Coro::Intro for recent changes.
145 - do not initialise PL_dirty anymore.
146
1475.25 Thu Nov 11 01:08:39 CET 2010
148 - try a different approach on netbsd - netbsd 5 finally has marginally
149 working pthreads, but still broken ucontext/sigaltstack.
150 - openbsd 4.8 finally got their act together, Coro works out of the box
151 with asm, setjmp and pthreads (no change, just informational).
152
1535.24 Sat Oct 23 11:27:12 CEST 2010
154 - port to the EV 4.0 API.
155 - work around bugs in mingw32, making strawberry perl work
156 out of the box.
157 - correctly modify Coro::AIO function prototypes
158 so that they reflect the "no optional parameters" rule.
159 - "ported" libcoro to C++.
160
1615.23 Mon May 17 18:50:42 CEST 2010
162 - be more resistant to ordering changes when initialising
163 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
164 Waldorf).
165 - document that perl 5.12 deliberately removed support for cloning.
166
1675.22 Wed Apr 14 03:55:35 CEST 2010
168 - correctly return udnef on errors in Coro::Handle::read/write
169 (testcase by Marc Mims).
170 - convert Coro::Util into a "perl compatibility wrapper" - the functions
171 are less useful now, but are drop-in replacements for existing
172 functions, listing better alternatives in the documentation. This also
173 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
174 with Coro::Util::inet_aton.
175 - do not override $Coro::idle unconditionally in Coro.pm, as other
176 modules could have provided their own idle coro already
177 (for exmaple, Coro::AnyEvent).
178 - fix Coro::Util::gethost* functions.
179 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
180
1815.21 Wed Dec 16 07:19:51 CET 2009
182 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
183 together.
184 - add some examples on how to combine other event loops with Coro in
185 Coro::AnyEvent, and how to run it (and not to block). Seems to be
186 the most common source of confusion.
187 - try to catch people naively blocking in an event callback.
188 - work around the perl filehandle bug issue in conjunction with
189 older common::sense (as indirectly pointed out by ZSystem).
190 - clarify the "not from signal handlers" section.
191
1925.2 Sun Oct 4 14:54:24 CEST 2009
193 - Coro::Storable destroyed the prototypes of the functions it wrapped.
194 - export rouse_cb and rouse_wait by default now.
195 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
196 - new method $state->swap_sv.
11 - added section on "windows process emulation" to the manpage, 197 - added section on "windows process emulation" to the manpage,
12 after a not-so-fruitful (nor-friendly) "discussion" with chip 198 after a not-so-fruitful (nor-friendly) "discussion" with chip
13 salzenberg (discussion implies arguments, but his only arguments 199 salzenberg (discussion implies arguments, but his only arguments
14 were ad-hominems, one wonders why he started it in the first 200 were ad-hominems, one wonders why he started it in the first
15 place). I hope this explains it well enough for him to understand, 201 place). I hope this explains it well enough for him to understand,
16 and maybe well enough for others to understand. 202 and maybe well enough for others to understand.
203 - use common::sense everywhere now.
204 - idle callbacks are no longer supported, use idle coros instead.
205 - print a thread listing when a deadlock is detected.
17 206
185.17 Sat Aug 22 23:09:31 CEST 2009 2075.17 Sat Aug 22 23:09:31 CEST 2009
19 - work around a bug in the perl debugger causing crashes 208 - work around a bug in the perl debugger causing crashes
20 when running under the debugger by marking _pool_handler as nodebug. 209 when running under the debugger by marking _pool_handler as nodebug.
21 - speed up Coro::async considerably. 210 - speed up Coro::async considerably.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines