1 | Revision history for Perl extension Coro. |
1 | Revision history for Perl extension Coro. |
2 | |
2 | |
3 | TODO: should explore PerlIO::coroaio (perl leaks like hell). |
3 | TODO: should explore PerlIO::coroaio (perl leaks like hell). |
4 | TODO: 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)). |
|
|
7 | TODO: unready_all |
|
|
8 | TODO: myhttpd header parsing |
|
|
9 | TODO: channel->maxsize(newsize)? |
4 | TODO: channel->maxsize(newsize)? |
|
|
5 | TODO: http://www.microsoft.com/msj/archive/s2ce.aspx |
|
|
6 | TODO: __GCC_HAVE_DWARF2_CFI_ASM |
10 | |
7 | |
|
|
8 | TODO: 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 | |
|
|
18 | 6.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 | |
|
|
23 | 6.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 | |
|
|
33 | 6.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 | |
|
|
37 | 6.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 | |
|
|
41 | 6.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 | |
|
|
51 | 6.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 | |
|
|
57 | 6.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 | |
|
|
62 | 6.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 | |
|
|
68 | 6.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 | |
|
|
74 | 6.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 | |
|
|
79 | 6.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 | |
|
|
122 | 5.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 | |
|
|
128 | 5.371 Mon Feb 21 14:36:08 CET 2011 |
|
|
129 | - backport to windows process emulation code again. |
|
|
130 | |
|
|
131 | 5.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 | |
|
|
138 | 5.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 | |
|
|
147 | 5.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 | |
|
|
153 | 5.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 | |
|
|
161 | 5.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 | |
|
|
167 | 5.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 | |
|
|
181 | 5.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 | |
|
|
192 | 5.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 | |
|
|
207 | 5.17 Sat Aug 22 23:09:31 CEST 2009 |
11 | - work around a bug in the perl debugger causing crashes |
208 | - work around a bug in the perl debugger causing crashes |
12 | when running under the debugger by marking _pool_handler as nodebug. |
209 | when running under the debugger by marking _pool_handler as nodebug. |
13 | - speed up Coro::async considerably. |
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. |
14 | |
214 | |
15 | 5.162 Tue Jul 28 04:04:03 CEST 2009 |
215 | 5.162 Tue Jul 28 04:04:03 CEST 2009 |
16 | - perl 5.8.2 is now minimum requirement. |
216 | - perl 5.8.2 is now minimum requirement. |
17 | - skip t/19_handle.t on broken windows perls. |
217 | - skip t/19_handle.t on broken windows perls. |
18 | |
218 | |