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

Comparing Coro/Changes (file contents):
Revision 1.501 by root, Sat Jun 27 14:06:59 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.
197 - added section on "windows process emulation" to the manpage,
198 after a not-so-fruitful (nor-friendly) "discussion" with chip
199 salzenberg (discussion implies arguments, but his only arguments
200 were ad-hominems, one wonders why he started it in the first
201 place). I hope this explains it well enough for him 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.
206
2075.17 Sat Aug 22 23:09:31 CEST 2009
208 - work around a bug in the perl debugger causing crashes
209 when running under the debugger by marking _pool_handler as nodebug.
210 - speed up Coro::async considerably.
211 - try some hacks to get netbsd to work "more often" - their broken
212 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
213 - convert Coro to AE 5.0 API.
214
2155.162 Tue Jul 28 04:04:03 CEST 2009
216 - perl 5.8.2 is now minimum requirement.
217 - skip t/19_handle.t on broken windows perls.
218
2195.161 Wed Jul 22 04:47:38 CEST 2009
220 - Coro::AnyEvent::poll could have a different prototype when EV was
221 used as backend (analyzed by Tatsuhiko Miyagawa).
222 - Coro::AnyEvent errornously initialised the event loop when loaded,
223 not on demand.
224 - try to workaround rare */t/01_unblock.t failures.
225
2265.16 Tue Jul 21 01:44:37 CEST 2009
227 - Coro::AnyEvent failed to hook into the event loop
228 when no threads had been readied between detecting
229 the event loop and actually running it.
230 - considerably speed up Coro::Select by taking avdantage
231 of AnyEvent > 4.8 and some other optimisations.
232 - implement paragraph readline mode in Coro::Handle
233 (based on patches by Zsbán Ambrus).
234 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
235 and analyzed by Yasuhiro MATSUMOTO).
236 - clarified libcoro license and copyright.
237 - someone stole my EXTRA_META!!!
238 - implement Coro::Select::patch_pp_sselect and it's brother,
239 for hardcode select overriding.
240
2415.151 Mon Jul 6 05:41:57 CEST 2009
242 - backport to windows process emulation code again (patch by
243 Yasuhiro MATSUMOTO).
244 - slightly update Coro::MakeMaker.
245
2465.15 Tue Jun 30 10:28:06 CEST 2009
247 - deprecate Coro::Socket, document how to get ipv6 support via
248 AnyEvent::Socket instead.
11 - implement signal->wait ($cb) interface, similar to semaphores. 249 - implement signal->wait ($cb) interface, similar to semaphores.
12 - work around SvOK not supporting getmagic, so we have to getmagic 250 - work around SvOK not supporting getmagic, so we have to getmagic
13 to test for undef :/ (reported by Matthias Waldorf). 251 to test for undef :/ (reported by Matthias Waldorf).
252 - load Coro::AnyEvent in all modules using AnyEvent.
253 - work around perl corrupting our internal data structures,
254 reported by Tokuhiro Matsuno.
255 - enable per-coroutine real and cpu time gathering
256 (Coro::State::enable_times).
14 257
155.14 Wed Jun 24 01:37:48 CEST 2009 2585.14 Wed Jun 24 01:37:48 CEST 2009
16 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent, 259 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent,
17 as this seems to have been a difficult concept (poll, sleep, idle, 260 as this seems to have been a difficult concept (poll, sleep, idle,
18 idle_upto). 261 idle_upto).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines