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

Comparing Coro/Changes (file contents):
Revision 1.509 by root, Wed Jul 8 02:16:49 2009 UTC vs.
Revision 1.607 by root, Fri Dec 7 22:37:23 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
86.23 Fri Dec 7 23:36:37 CET 2012
9 - use experimental fiber implementation on native windows
10 perls.
11 - use sizeof (void *) as multiplication factor for stack sizes,
12 to accomodate the totally braindamaged microsoft 64 bit "os".
13 - changed verifier host from win2k-ap510-32 to win7-sp516-32/64.
14 activeperl 5.16 crashes when PerlIO_define_layer is called due
15 to some bug in the perl dll, strawberry perl at least passes
16 the testsuite.
17 - implement Coro::Handle->peeraddr/host/port, for slightly
18 improved compatibility with LWP.
19 - implement 5.17 compatibility by almost blindly applying a
20 good-looking patch by Father Chrysostomos.
21 - move stack management functions into libcoro 3.
22 - libcoro version 3 "released".
23 - support magic values as timed_io_once args.
24 - recommend AnyEvent 7+ or EV 4+, also require EV
25 version 4 or newer for Coro::EV.
26
276.10 Tue Oct 9 01:14:27 CEST 2012
28 - updated ecb.h, it had a typo that caused it to not compile on many
29 big endian systems (reported by many people).
30 - disable memory fences in ecb.h to improve portability.
31
326.09 Sat Oct 6 23:25:02 CEST 2012
33 - Coro::EV I/O watchers were not interruptible by exceptions
34 (Coro::State::throw) (testcase by sten).
35 - ->throw now puts threads into the ready queue, as this seems to
36 be expected by existing code, and code that doesn't cope with spurious
37 wakeups needs fixing anyway.
38 - use fd -1 in mmap.
39 - cast I32 to int in error message printf.
40 - warn about broken so-called "hardened" kernels.
41
426.08 Fri Apr 13 12:05:47 CEST 2012
43 - be more aggressive about exiting like perl does - formerly,
44 exiting from the non-main thread would not execute END blocks.
45
466.07 Fri Nov 11 21:21:48 CET 2011
47 - work around a bug in PerlIO (setting $SIG{__WARN__} to a PVCV).
48 - update ecb.h.
49
506.06 Mon Aug 8 23:59:48 CEST 2011
51 - cygwin unfortunately patches the stack at runtime, so we use the pthreads
52 backend, which is an order of magnitude slower. unfortunately, cygwins
53 pthread implementation isn't very complete either, so allocate the stack
54 twice just to be sure.
55 (note: cygwin also enables mymalloc, which is NOT THREADSAFE ON WINDOWS,
56 in its ithreaded perl - best recompile cygwin and use the 'w'indows
57 backend for much better performance. also disable ithreads for
58 even better performance...).
59
606.05 Thu Aug 4 21:36:36 CEST 2011
61 - blush, condvar values would not be propagated from send to recv anymore
62 (reported by Chip Salzenberg).
63 - use exponential increase for the readline buffer length in
64 Coro::Handle. also reduce initial allocation to 1020 from 4096 bytes.
65
666.04 Wed Aug 3 17:15:45 CEST 2011
67 - use even more efficient and more compatible condvars for
68 compatibility to AnyEvent 6.x :)
69 - more inconsequential ecb.h updates.
70
716.03 Wed Aug 3 11:41:30 CEST 2011
72 - change how Coro patches AnyEvent condvars for compatibility to
73 AnyEvent 6.x.
74 - update ecb.h, to no longer include <pthread.h> in case WinNT.h
75 hasn't been included.
76
776.02 Wed Jul 13 04:35:19 CEST 2011
78 - "improve portability to Gentoo" - gentoo manages to put perl variables
79 in memory areas that are farther than 2gb apart, which the jit couldn't
80 handle and barfed. now it's just a bit slower on gentoo and similar
81 systems.
82
836.01 Sun Jul 3 12:31:14 CEST 2011
84 - workarounds are good, but the test for whether pthreads are used
85 was not good. thisone should be better.
86 - check differently whether gcc generates cfi instructions itself.
87
886.0 Wed Jun 29 19:43:35 CEST 2011
89 - INCOMPATIBLE CHANGE: unreferenced coro objects will now be
90 destroyed and cleaned up automatically (e.g. async { schedule }).
91 - implement a JIT compiler for part of the thread switch code,
92 which gives a 50% speed improvement on threaded perls, and
93 about 4% on non-thraeded perls (so threaded perls now finally
94 reach about half the speed of non-threaded perls).
95 - slightly modernise Coro::Intro, add section about rouse functions.
96 - avoid DEFSV and ERRSV, giving another 10% improvement
97 in thread switching.
98 - Coro::State->is_destroyed is now called is_zombie.
99 - implement a Coro->safe_cancel method that might fail, but
100 cancels in a "safer" way if it succeeds.
101 - add preliminary support for DEBUGGING perls.
102 - get rid of two hash-accesses when initialising a new Coro - this
103 speeds up coro creation by almost a factor of two.
104 - croak when a coro that is being cancelled tries to block
105 (e.g. while executing a guard block), instead of crashing or
106 deadlocking.
107 - use a more robust and also faster method to identify Coro::State
108 objects - speeds up everything a bit.
109 - implement Coro->cancel in XS for a 20% speed improvement, and to
110 be able to implement mutual cancellation.
111 - speed up context switches by a percent or two by more efficiently
112 allocating context stack entries.
113 - implement Coro->join and Coro->on_destroy in XS for a speedup and
114 a reduction in memory use.
115 - cancelling a coro while it itself is cancelling another coro is
116 now supported and working, instead of triggering an assertion.
117 - be a bit more crash-resistant when calling (buggy) on_destroy
118 callbacks (best effort).
119 - move on_destroy into the slf_frame, to allow extension slf
120 functions to have destructors.
121 - get rid if coro refcounting - simply crash in other interpreter
122 threads by nulling the pointers on clone.
123 - simplify warn/die hook handling when loading Coro - the convoluted
124 logic seems to be no longer neccessary.
125 - use libecb instead of our own home-grown gcc hacks.
126 - document alternatives to Coro::LWP. Please use them :)
127 - work around another mindless idiotic NEEDLESS bug in openbsd/mirbsds
128 sigaltstack. Really. wine suffers from it, erlang suffers from it,
129 and it's known since at least 2006.
130
1315.372 Wed Feb 23 06:14:30 CET 2011
132 - apparently mingw doesn't provide a working gettimeofday, try to
133 work around that by relying on Time::HiRes (indirectly brought to
134 my attention by Max Maischein).
135 - fix some portability issues when Time::HiRes was used.
136
1375.371 Mon Feb 21 14:36:08 CET 2011
138 - backport to windows process emulation code again.
139
1405.37 Sat Feb 19 07:49:44 CET 2011
141 - add a big "Coro thread life cycle" section to "man Coro".
142 - try a tentative workaround against the breakage that 5.13 has
143 introduced without depreciation period. sigh.
144 - no longer use Time::HiRes if gettimeofday is available, which
145 saves quite a lot of memory.
146
1475.36 Sun Feb 13 05:33:41 CET 2011
148 - automatically load Coro::Channel, Coro::RWLock, Coro::Semaphore,
149 Coro::SemaphoreSet, Coro::Signal and Coro::Specific on first "new"
150 method call.
151 - undocument Coro::Timer::sleep and obsolete whole module.
152 - optimise Coro::Timer::timeout memory and cpu usage.
153 - slightly updated Coro::Intro for recent changes.
154 - do not initialise PL_dirty anymore.
155
1565.25 Thu Nov 11 01:08:39 CET 2010
157 - try a different approach on netbsd - netbsd 5 finally has marginally
158 working pthreads, but still broken ucontext/sigaltstack.
159 - openbsd 4.8 finally got their act together, Coro works out of the box
160 with asm, setjmp and pthreads (no change, just informational).
161
1625.24 Sat Oct 23 11:27:12 CEST 2010
163 - port to the EV 4.0 API.
164 - work around bugs in mingw32, making strawberry perl work
165 out of the box.
166 - correctly modify Coro::AIO function prototypes
167 so that they reflect the "no optional parameters" rule.
168 - "ported" libcoro to C++.
169
1705.23 Mon May 17 18:50:42 CEST 2010
171 - be more resistant to ordering changes when initialising
172 Coro::AnyEvent, Coro::EV and Coro::Event (reported by Matthias
173 Waldorf).
174 - document that perl 5.12 deliberately removed support for cloning.
175
1765.22 Wed Apr 14 03:55:35 CEST 2010
177 - correctly return udnef on errors in Coro::Handle::read/write
178 (testcase by Marc Mims).
179 - convert Coro::Util into a "perl compatibility wrapper" - the functions
180 are less useful now, but are drop-in replacements for existing
181 functions, listing better alternatives in the documentation. This also
182 fixes a bug in Coro::LWP which naively substituted Socket::inet_aton
183 with Coro::Util::inet_aton.
184 - do not override $Coro::idle unconditionally in Coro.pm, as other
185 modules could have provided their own idle coro already
186 (for exmaple, Coro::AnyEvent).
187 - fix Coro::Util::gethost* functions.
188 - Coro::Timer corretcly exports it's symbols (reported by Hideki Yamamura).
189
1905.21 Wed Dec 16 07:19:51 CET 2009
191 - automatically load Coro::AnyEvent when AnyEvent and Coro are used
192 together.
193 - add some examples on how to combine other event loops with Coro in
194 Coro::AnyEvent, and how to run it (and not to block). Seems to be
195 the most common source of confusion.
196 - try to catch people naively blocking in an event callback.
197 - work around the perl filehandle bug issue in conjunction with
198 older common::sense (as indirectly pointed out by ZSystem).
199 - clarify the "not from signal handlers" section.
200
2015.2 Sun Oct 4 14:54:24 CEST 2009
202 - Coro::Storable destroyed the prototypes of the functions it wrapped.
203 - export rouse_cb and rouse_wait by default now.
204 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
205 - new method $state->swap_sv.
206 - added section on "windows process emulation" to the manpage,
207 after a not-so-fruitful (nor-friendly) "discussion" with chip
208 salzenberg (discussion implies arguments, but his only arguments
209 were ad-hominems, one wonders why he started it in the first
210 place). I hope this explains it well enough for him to understand,
211 and maybe well enough for others to understand.
212 - use common::sense everywhere now.
213 - idle callbacks are no longer supported, use idle coros instead.
214 - print a thread listing when a deadlock is detected.
215
2165.17 Sat Aug 22 23:09:31 CEST 2009
217 - work around a bug in the perl debugger causing crashes
218 when running under the debugger by marking _pool_handler as nodebug.
219 - speed up Coro::async considerably.
220 - try some hacks to get netbsd to work "more often" - their broken
221 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
222 - convert Coro to AE 5.0 API.
223
2245.162 Tue Jul 28 04:04:03 CEST 2009
225 - perl 5.8.2 is now minimum requirement.
226 - skip t/19_handle.t on broken windows perls.
227
2285.161 Wed Jul 22 04:47:38 CEST 2009
229 - Coro::AnyEvent::poll could have a different prototype when EV was
230 used as backend (analyzed by Tatsuhiko Miyagawa).
231 - Coro::AnyEvent errornously initialised the event loop when loaded,
232 not on demand.
233 - try to workaround rare */t/01_unblock.t failures.
234
2355.16 Tue Jul 21 01:44:37 CEST 2009
236 - Coro::AnyEvent failed to hook into the event loop
237 when no threads had been readied between detecting
238 the event loop and actually running it.
11 - considerably speed up Coro::Select by taking avdantage 239 - considerably speed up Coro::Select by taking avdantage
12 of AnyEvent > 4.8 and some other optimisations. 240 of AnyEvent > 4.8 and some other optimisations.
241 - implement paragraph readline mode in Coro::Handle
242 (based on patches by Zsbán Ambrus).
243 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
244 and analyzed by Yasuhiro MATSUMOTO).
245 - clarified libcoro license and copyright.
246 - someone stole my EXTRA_META!!!
247 - implement Coro::Select::patch_pp_sselect and it's brother,
248 for hardcode select overriding.
13 249
145.151 Mon Jul 6 05:41:57 CEST 2009 2505.151 Mon Jul 6 05:41:57 CEST 2009
15 - backport to windows process emulation code again (patch by 251 - backport to windows process emulation code again (patch by
16 Yasuhiro MATSUMOTO). 252 Yasuhiro MATSUMOTO).
17 - slightly update Coro::MakeMaker. 253 - slightly update Coro::MakeMaker.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines