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

Comparing Coro/Changes (file contents):
Revision 1.475 by root, Sun Dec 7 12:31:23 2008 UTC vs.
Revision 1.597 by root, Mon Oct 8 23:13:36 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 4TODO: channel->maxsize(newsize)?
5 actor model (which is cool in a lot of important aspects (failures!), 5TODO: http://www.microsoft.com/msj/archive/s2ce.aspx
6 but very lacking in others (higher level ipc)). 6TODO: __GCC_HAVE_DWARF2_CFI_ASM
7
86.10
9 - updated
10
116.09 Sat Oct 6 23:25:02 CEST 2012
12 - Coro::EV I/O watchers were not interruptible by exceptions
13 (Coro::State::throw) (testcase by sten).
14 - ->throw now puts threads into the ready queue, as this seems to
15 be expected by existing code, and code that doesn't cope with spurious
16 wakeups needs fixing anyway.
17 - use fd -1 in mmap.
18 - cast I32 to int in error message printf.
19 - warn about broken so-called "hardened" kernels.
20
216.08 Fri Apr 13 12:05:47 CEST 2012
22 - be more aggressive about exiting like perl does - formerly,
23 exiting from the non-main thread would not execute END blocks.
24
256.07 Fri Nov 11 21:21:48 CET 2011
26 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
27 - update ecb.h.
28
296.06 Mon Aug 8 23:59:48 CEST 2011
30 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
31 backend, which is an order of magnitude slower. unfortunately, cygwins
32 pthread implementation isn't very complete either, so allocate the stack
33 twice just to be sure.
34 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
35 in its ithreaded perl - best recompile cygwin and use the 'w'indows
36 backend for much better performance. also disable ithreads for
37 even better performance...).
38
396.05 Thu Aug 4 21:36:36 CEST 2011
40 - blush, condvar values would not be propagated from send to recv anymore
41 (reported by Chip Salzenberg).
42 - use exponential increase for the readline buffer length in
43 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
44
456.04 Wed Aug 3 17:15:45 CEST 2011
46 - use even more efficient and more compatible condvars for
47 compatibility to AnyEvent 6.x :)
48 - more inconsequential ecb.h updates.
49
506.03 Wed Aug 3 11:41:30 CEST 2011
51 - change how Coro patches AnyEvent condvars for compatibility to
52 AnyEvent 6.x.
53 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
54 hasn't been included.
55
566.02 Wed Jul 13 04:35:19 CEST 2011
57 - "improve portability to Gentoo" - gentoo manages to put perl variables
58 in memory areas that are farther than 2gb apart, which the jit couldn't
59 handle and barfed. now it's just a bit slower on gentoo and similar
60 systems.
61
626.01 Sun Jul 3 12:31:14 CEST 2011
63 - workarounds are good, but the test for whether pthreads are used
64 was not good. thisone should be better.
65 - check differently whether gcc generates cfi instructions itself.
66
676.0 Wed Jun 29 19:43:35 CEST 2011
68 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
69 destroyed and cleaned up automatically (e.g. async { schedule }).
70 - implement a JIT compiler for part of the thread switch code,
71 which gives a 50% speed improvement on threaded perls, and
72 about 4% on non-thraeded perls (so threaded perls now finally
73 reach about half the speed of non-threaded perls).
74 - slightly modernise Coro::Intro, add section about rouse functions.
75 - avoid DEFSV and ERRSV, giving another 10% improvement
76 in thread switching.
77 - Coro::State->is_destroyed is now called is_zombie.
78 - implement a Coro->safe_cancel method that might fail, but
79 cancels in a "safer" way if it succeeds.
80 - add preliminary support for DEBUGGING perls.
81 - get rid of two hash-accesses when initialising a new Coro - this
82 speeds up coro creation by almost a factor of two.
83 - croak when a coro that is being cancelled tries to block
84 (e.g. while executing a guard block), instead of crashing or
85 deadlocking.
86 - use a more robust and also faster method to identify Coro::State
87 objects - speeds up everything a bit.
88 - implement Coro->cancel in XS for a 20% speed improvement, and to
89 be able to implement mutual cancellation.
90 - speed up context switches by a percent or two by more efficiently
91 allocating context stack entries.
92 - implement Coro->join and Coro->on_destroy in XS for a speedup and
93 a reduction in memory use.
94 - cancelling a coro while it itself is cancelling another coro is
95 now supported and working, instead of triggering an assertion.
96 - be a bit more crash-resistant when calling (buggy) on_destroy
97 callbacks (best effort).
98 - move on_destroy into the slf_frame, to allow extension slf
99 functions to have destructors.
100 - get rid if coro refcounting - simply crash in other interpreter
101 threads by nulling the pointers on clone.
102 - simplify warn/die hook handling when loading Coro - the convoluted
103 logic seems to be no longer neccessary.
104 - use libecb instead of our own home-grown gcc hacks.
105 - document alternatives to Coro::LWP. Please use them :)
106 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
107 sigaltstack. Really. wine suffers from it, erlang suffers from it,
108 and it's known since at least 2006.
109
1105.372 Wed Feb 23 06:14:30 CET 2011
111 - apparently mingw doesn't provide a working gettimeofday, try to
112 work around that by relying on Time::HiRes (indirectly brought to
113 my attention by Max Maischein).
114 - fix some portability issues when Time::HiRes was used.
115
1165.371 Mon Feb 21 14:36:08 CET 2011
117 - backport to windows process emulation code again.
118
1195.37 Sat Feb 19 07:49:44 CET 2011
120 - add a big "Coro thread life cycle" section to "man Coro".
121 - try a tentative workaround against the breakage that 5.13 has
122 introduced without depreciation period. sigh.
123 - no longer use Time::HiRes if gettimeofday is available, which
124 saves quite a lot of memory.
125
1265.36 Sun Feb 13 05:33:41 CET 2011
127 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
128 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
129 method call.
130 - undocument Coro::Timer::sleep and obsolete whole module.
131 - optimise Coro::Timer::timeout memory and cpu usage.
132 - slightly updated Coro::Intro for recent changes.
133 - do not initialise PL_dirty anymore.
134
1355.25 Thu Nov 11 01:08:39 CET 2010
136 - try a different approach on netbsd - netbsd 5 finally has marginally
137 working pthreads, but still broken ucontext/sigaltstack.
138 - openbsd 4.8 finally got their act together, Coro works out of the box
139 with asm, setjmp and pthreads (no change, just informational).
140
1415.24 Sat Oct 23 11:27:12 CEST 2010
142 - port to the EV 4.0 API.
143 - work around bugs in mingw32, making strawberry perl work
144 out of the box.
145 - correctly modify Coro::AIO function prototypes
146 so that they reflect the "no optional parameters" rule.
147 - "ported" libcoro to C++.
148
1495.23 Mon May 17 18:50:42 CEST 2010
150 - be more resistant to ordering changes when initialising
151 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
152 Waldorf).
153 - document that perl 5.12 deliberately removed support for cloning.
154
1555.22 Wed Apr 14 03:55:35 CEST 2010
156 - correctly return udnef on errors in Coro::Handle::read/write
157 (testcase by Marc Mims).
158 - convert Coro::Util into a "perl compatibility wrapper" - the functions
159 are less useful now, but are drop-in replacements for existing
160 functions, listing better alternatives in the documentation. This also
161 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
162 with Coro::Util::inet_aton.
163 - do not override $Coro::idle unconditionally in Coro.pm, as other
164 modules could have provided their own idle coro already
165 (for exmaple, Coro::AnyEvent).
166 - fix Coro::Util::gethost* functions.
167 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
168
1695.21 Wed Dec 16 07:19:51 CET 2009
170 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
171 together.
172 - add some examples on how to combine other event loops with Coro in
173 Coro::AnyEvent, and how to run it (and not to block). Seems to be
174 the most common source of confusion.
175 - try to catch people naively blocking in an event callback.
176 - work around the perl filehandle bug issue in conjunction with
177 older common::sense (as indirectly pointed out by ZSystem).
178 - clarify the "not from signal handlers" section.
179
1805.2 Sun Oct 4 14:54:24 CEST 2009
181 - Coro::Storable destroyed the prototypes of the functions it wrapped.
182 - export rouse_cb and rouse_wait by default now.
183 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
184 - new method $state->swap_sv.
185 - added section on "windows process emulation" to the manpage,
186 after a not-so-fruitful (nor-friendly) "discussion" with chip
187 salzenberg (discussion implies arguments, but his only arguments
188 were ad-hominems, one wonders why he started it in the first
189 place). I hope this explains it well enough for him to understand,
190 and maybe well enough for others to understand.
191 - use common::sense everywhere now.
192 - idle callbacks are no longer supported, use idle coros instead.
193 - print a thread listing when a deadlock is detected.
194
1955.17 Sat Aug 22 23:09:31 CEST 2009
196 - work around a bug in the perl debugger causing crashes
197 when running under the debugger by marking _pool_handler as nodebug.
198 - speed up Coro::async considerably.
199 - try some hacks to get netbsd to work "more often" - their broken
200 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
201 - convert Coro to AE 5.0 API.
202
2035.162 Tue Jul 28 04:04:03 CEST 2009
204 - perl 5.8.2 is now minimum requirement.
205 - skip t/19_handle.t on broken windows perls.
206
2075.161 Wed Jul 22 04:47:38 CEST 2009
208 - Coro::AnyEvent::poll could have a different prototype when EV was
209 used as backend (analyzed by Tatsuhiko Miyagawa).
210 - Coro::AnyEvent errornously initialised the event loop when loaded,
211 not on demand.
212 - try to workaround rare */t/01_unblock.t failures.
213
2145.16 Tue Jul 21 01:44:37 CEST 2009
215 - Coro::AnyEvent failed to hook into the event loop
216 when no threads had been readied between detecting
217 the event loop and actually running it.
218 - considerably speed up Coro::Select by taking avdantage
219 of AnyEvent > 4.8 and some other optimisations.
220 - implement paragraph readline mode in Coro::Handle
221 (based on patches by Zsbán Ambrus).
222 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
223 and analyzed by Yasuhiro MATSUMOTO).
224 - clarified libcoro license and copyright.
225 - someone stole my EXTRA_META!!!
226 - implement Coro::Select::patch_pp_sselect and it's brother,
227 for hardcode select overriding.
228
2295.151 Mon Jul 6 05:41:57 CEST 2009
230 - backport to windows process emulation code again (patch by
231 Yasuhiro MATSUMOTO).
232 - slightly update Coro::MakeMaker.
233
2345.15 Tue Jun 30 10:28:06 CEST 2009
235 - deprecate Coro::Socket, document how to get ipv6 support via
236 AnyEvent::Socket instead.
237 - implement signal->wait ($cb) interface, similar to semaphores.
238 - work around SvOK not supporting getmagic, so we have to getmagic
239 to test for undef :/ (reported by Matthias Waldorf).
240 - load Coro::AnyEvent in all modules using AnyEvent.
241 - work around perl corrupting our internal data structures,
242 reported by Tokuhiro Matsuno.
243 - enable per-coroutine real and cpu time gathering
244 (Coro::State::enable_times).
245
2465.14 Wed Jun 24 01:37:48 CEST 2009
247 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent,
248 as this seems to have been a difficult concept (poll, sleep, idle,
249 idle_upto).
250 - add Coro::AnyEvent::readable/writable functions.
251 - clarify Coro::EV/Event/AnyEvent manpages.
252 - free per-thread global scalars in the thread calling ->cancel, to
253 avoid crashes when $_, $@ etc., are magical but some of those
254 had already been freed.
255 - "unexperimentalise" the callback interface for Coro::Semaphore.
256 - speed up ready queue management/context switching by using a linked
257 list instead of an array (~5-10%).
258 - implement "watch" command in Coro::Debug shells.
259 - for fun, implement time-slicing as an example in the manpage.
260 - if AnyEvent detects EV or Event, but we don't have Coro::EV or
261 Coro::Event, use the normal AnyEvent handling instead of dieing
262 (the same is true for Coro::Handle).
263 - properly document Coro::EV::timed_io_once.
264 - avoid unneccessary ->cancel calls in Coro::Handle.
265 - maybe make it work on mingw32 with win32 backend
266 (based on patch by Yasuhiro Matsumoto).
267
2685.132 Fri May 29 09:00:39 CEST 2009
269 - do not keep a reference to the argument itself in
270 Coro::Semaphore::guard, as it could change later.
271 - support SO_RCVBUF/SO_SNDBUF nonstandard Coro::Socket options,
272 should support a prepare callback.
273
2745.131 Mon Mar 16 23:20:37 CET 2009
275 - implement and document Coro->suspend, Coro->resume.
276 - fix Coro::Select implementation to not (often) close
277 the passed file descriptors (testcase provided by pippijn).
278
2795.13 Mon Dec 15 21:51:42 CET 2008
280 - EXPERIMENTAL: implement dynamic winds (on_enter/on_leave).
281 - don't set diehook to C<undef> but instead to NULL, to avoid
282 spurious warnings.
283 - fix a lot of bugs in Coro::SemaphoreSet.
284 - Coro::SemaphoreSet will less often create a semaphore needlessly.
285 - add Coro::SemaphoreSet::count and wait methods.
286 - take advantage of the new Guard module.
287 - deprecate Coro::guard.
288 - try to fix the dreaded 01_unblock tests once more. I hate it when
289 testsuites need more fixing than the code they are supposed to test.
290 - croak in more cases when a required callback isn't resolvable.
291 - fix some minor issues in Coro::State->call/eval.
292 - use current coroutine context instead of a temporary one
293 when temporarily switching to another coroutine.
294 - do not call C-level on_destroy handlers during global destruction,
295 to avoid needless segfaults.
7 296
85.12 Sun Dec 7 13:30:38 CET 2008 2975.12 Sun Dec 7 13:30:38 CET 2008
9 - add default config for MirOS, which seems to be a bug-to-bug 298 - add default config for MirOS, which seems to be a bug-to-bug
10 compatible fork of openbsd ("world domination by releasing 299 compatible fork of openbsd ("world domination by releasing
11 openbsd cvs before the openbsd folks do it" or so :). 300 openbsd cvs before the openbsd folks do it" or so :).
12 - free_padlist did destroy the names pad, not good, but didn't 301 - free_padlist did destroy the names pad, not good, but didn't
13 seem to bother perl - this could fix issues such as eval "" 302 seem to bother perl - this could fix issues such as eval ""
14 inside a function called form multiple coroutines. 303 inside a function called from multiple coroutines.
15 - use a different method to detect destruction time. 304 - use a different method to detect destruction time.
16 - be more careful when freeing padlists just before global 305 - be more careful when freeing padlists just before global
17 destruction. 306 destruction.
18 - fixed and expanded the call/cc example. 307 - fixed and expanded the call/cc example.
19 - renamed _terminate to _coro_run. 308 - renamed _terminate to _coro_run.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines