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

Comparing Coro/Changes (file contents):
Revision 1.178 by root, Tue Dec 5 12:50:04 2006 UTC vs.
Revision 1.353 by root, Sun May 25 03:15:27 2008 UTC

1Revision history for Perl extension Coro. 1Revision history for Perl extension Coro.
2 2
3TODO: better (earlier) error messages on broken transfer's 3TODO: should explore PerlIO::via::CoroCede and PerlIO::via::CoroAIO.
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)).
7
84.72 Sun May 25 05:14:36 CEST 2008
9 - tweak META.yaml a bit, unfortunately, there is no documented way
10 to have optional dependencies with CPAN. doh :(
11 - avoid running some tests on windows because they would fail due to
12 perl bug (broken fork, broken pipes...).
13 - work around perl on windows bugs where perl returns undocumented
14 error codes for sysread, syswrite etc. by taking advantage
15 of AnyEvent's workaround for that problem.
16 - use AnyEvent::Util::fh_nonblocking in Coro::Handle to work around
17 a common perl implementation bug on windows.
18 - use unix domain sockets in testsuite to work around
19 common perl implementation bugs on widows (they are emulated by
20 tcp sockets on windows. ugh.)
21
224.71 Sat May 24 20:01:27 CEST 2008
23 - fix a bug in Coro::AnyEvent ("Usage: Coro::AnyEvent::_schedule()").
24 - take advantage of async name resolution of AnyEvent::Util.
25 - work around brutal inet_aton override in Coro::LWP.
26 - take advantage of the readyhook in Coro::EV, for smoother
27 scheduling.
28
294.7 Sun May 11 00:32:19 CEST 2008
30 - completely reworked the Coro manpage.
31 - added Coro::AnyEvent, generic event loop integration.
32 - implement cancel, ready and kill commands in Coro::Debug.
33 - document find_coro in Coro::Debug.
34 - incompatible change: rename has_stack to has_cctx.
35 - Coro::AIO and Coro::BDB no longer force event model detection,
36 use AnyEvent::AIO and AnyEvent::BDB.
37
384.6 Sat Apr 26 10:05:14 CEST 2008
39 - INCOMPATIBLE CHANGE: sub/code attributes are no longer supported
40 by the Coro module. It was a mistake to have it in the first place.
41 - (experimental) support for activestate perl 5.10 (method "w").
42 - (experimental) support for strawberry perl (method "a").
43 - coro_sigelem_set did not return a value although it had to,
44 actual impact unknown.
45
464.51 Mon Apr 14 13:28:27 CEST 2008
47 - make it compile again on 5.8.
48
494.50 Thu Apr 10 09:43:17 CEST 2008
50 - I did it twice! (see 4.49).
51
524.49 Sun Apr 6 21:23:31 CEST 2008
53 - grr, instead of compiling the recent changes on 5.10 only they
54 were compiled on 5.8 only.
55
564.48 Sun Apr 6 20:36:46 CEST 2008
57 - allow coroutine switches during eval's under 5.10.x, as it seems
58 the parser is a per-interpreter option now, so this is safe
59 (this might fix the odd crashing bug).
60 - drop support for 5.9.x versions: they are dead, jim.
61
624.47 Sun Apr 6 00:37:52 CEST 2008
63 - force cctx allocation on API calls: we know we need to force one
64 and gcc actually manages to confuse our heuristic nowadays,
65 leading to crashes and worse.
66 - document force_cctx.
67
684.46 Fri Apr 4 22:05:43 CEST 2008
69 - upgrade libcoro, resulting in pthread-backend (which was only created
70 to fulfill the rules of the programming languages shootout).
71
724.45 Thu Mar 13 11:55:36 CET 2008
73 - fix a file leaking bug in eg/mhyttpd that would allow
74 downloading of any file (reported by oesi).
75 - fix deadlock bug in Coro::Channel (reported by Richard Hundt)
76 (also add testcase).
77 - support Broadcast option in Coro::Socket (patch by Richard Hundt,
78 apparently having loads of fun with that).
79 - implement $state->swap_defsv, ->swap_defav and document ->throw.
80
814.4 Wed Feb 13 16:44:29 CET 2008
82 - only assume .cfi pseudo isns exist on GNU/Linux.
83 - add get_timed method to Coro::Channels.
84 - fixed Coro::Debug manpage.
85 - perl 5.11 compatbility improvement based on patch by
86 Andreas König.
87
884.37 Sun Jan 20 11:25:23 CET 2008
89 - soften the check for an active parser for perl 5.10 (avoiding
90 "Coro::State::transfer called while parsing" in many cases).
91
924.36 Sun Jan 13 10:53:56 CET 2008
93 - reset diehook when terminating from an async_pool as to not
94 trigger any __DIE__ handlers.
95
964.35 Sun Jan 13 04:14:13 CET 2008
97 - "bt" debug command now displays any exceptions
98 from longmess and also skips the innermost
99 stackframes, giving more useufl output.
100 - allow backtraces in coroutines blocked in Coro::EV,
101 at a <1% speed hit.
102 - handle localising of $SIG{__WARN__} and __DIE__
103 properly (with a proper amount of dirty hacking).
104
1054.34 Sat Dec 22 17:49:53 CET 2007
106 - upgrade to EV version 2.0 API.
107
1084.33 Mon Dec 17 08:36:12 CET 2007
109 - make Coro::AIO etc. loadable in the absence of EV.
110
1114.32 Mon Dec 17 07:46:02 CET 2007
112 - majorly improved Coro::Handle's performance with Coro::EV.
113 - implemented the until now mythical Coro::BDB module.
114 - specialcase EV in Coro::AIO and Coro::BDB for extra speed.
115
1164.31 Wed Dec 5 12:32:39 CET 2007
117 - remove warn statement form Coro::Util.
118
1194.3 Tue Dec 4 20:33:14 CET 2007
120 - calls to the idle function could cause stack corruption
121 when the stack changed.
122 - do no longer rely on the presence of EV::DNS if EV is used
123 (because it is gone), but instead take avdantage of EV::ADNS
124 if available.
125 - add ($) prototypes to all functions in Coro::Storable.
126 - use a conventional (safer) idle callback in Coro::EV.
127 - do accept quickly in Coro::Debug to avoid endless loops.
128
1294.22 Fri Nov 30 16:04:04 CET 2007
130 - really use optimised versions for Event and EV in Coro::Util
131 and Coro::Handle.
132
1334.21 Sun Nov 25 10:48:59 CET 2007
134 - fix a spurious memory read.
135 - Coro::EV no longer keeps the eventloop "alive".
136
1374.2 Fri Nov 9 20:47:05 CET 2007
138 - enable/disable tracing from a new coroutine, not a pooled one.
139 - fix a memleak in Coro::Event.
140 - removed killall call from fork_eval.
141 - made sure store_fd is already loaded so that fork_eval
142 does not have to parse autoload in each subprocess.
143 - only use assembly method if -O switch is in $Config{optimize}.
144 - add (optional) Coro::EV module, so far the best event loop module
145 directly supported by Coro.
146 - if the event model is EV, use EV::DNS to resolve
147 stuff in Coro::Util.
148 - don't get confused by multiple event notifications in Coro::Handle.
149 - initial support for EV (libevent interface).
150 - require Event and EV using configure_requires, to force their existance.
151
1524.13 Wed Oct 24 07:26:45 CEST 2007
153 - add Coro::Storable::blocking_thaw.
154 - use a vastly more complicated technique to localise
155 $SIG{__WARN/DIE__} that also works on perls <= 5.8.8.
156 - use a coroutine for the idle callback Coro::Event,
157 instead of running Event in the current coroutine context.
158 This also catches recursive invocations.
159 - actually report fork errors in gethostbyname and inet_aton.
160
1614.11 Thu Oct 11 02:40:24 CEST 2007
162 - port to threaded perls.
163
1644.1 Thu Oct 11 02:38:16 CEST 2007
165 - incompatible change: $SIG{__DIE__} and $SIG{__WARN__} will now
166 be local to each coro (see Coro::State).
167 - incompatible change: for very deep reasons, cede and cede_notself
168 cannot return anything, so nothing will be returned.
169 - possibly bring back 5.10 compatibility (untested).
170 - work around stupid (and wrong) warning on 5.10 :(.
171 - overlay the saved state over the context stack. This saves
172 a few hundred bytes per coroutine on average and also
173 speeds up context switching a bit.
174 - further tune default stack sizes.
175 - (more) correctly calculate stack usage in coro_rss.
176 - Coro::Storable::blocking_* did not properly lock
177 resulting in races between coroutines.
178 - added Coro::Storable::guard.
179 - stopping to trace a coroutine could destroy the cctx of
180 an unrelated coroutine.
181 - explain the relationship between Perl and C coroutines in
182 more detail in Coro::State.
183 - Coro::Util::inet_aton did not short-circuit dotted quad forms,
184 causing a fork per resolve. This also affected Coro::Socket.
185 - switch to a separate stack in $coro->call/eval to avoid
186 invalidating pointers.
187
1884.03 Sat Oct 6 21:24:00 CEST 2007
189 - added Coro::throw method.
190 - minor code cleanups.
191
1924.02 Sat Oct 6 02:36:47 CEST 2007
193 - fix a very minor per-coroutine memleak (a single codereference).
194 - fixed a bug where the currently in-use c context would be freed
195 prematurely (can happen only when programs change the stacksize
196 or use tracing).
197 - tracing can no longer keep a coro alive after it terminated.
198 - do static branch prediction in the common path for gcc. gives
199 about 2-5% speed improvement here.
200
2014.01 Fri Oct 5 22:10:49 CEST 2007
202 - instead of recreating *a* standard output handle we simply
203 use STDOUT, which is faster and hopefully more robust.
204
2054.0 Fri Oct 5 12:56:00 CEST 2007
206 - incompatibly changed Coro::Storable::freeze.
207 - major new feature: added Coro::Debug, for interactive coroutine
208 debugging, tracing and much more.
209 - major bug fix: unbelievable, but true: $_, $/ and many other
210 "saved" variables actually weren't being saved. This has been fixed,
211 of course, while increasing performance while losing all the save
212 flags.
213 - save flags are gone, and all the api functions dealing with them.
214 - added Coro::Semaphore::adjust.
215 - added Coro::Util::fork_eval.
216 - added Coro::Storable::{nfreeze,blocking_{freeze,nfreeze}}.
217 - added Coro::killall.
218 - reduce initial stack sizes to allow for "micro-coroutines".
219 - better async_pool resource management, moved parts of async_pool
220 handling to XS (major speed improvement).
221 - actually croak before modifying important data structures.
222 - refuse to transfer while compiling.
223 - possibly support eval EXPR better now.
224 - enable assembly per default on linux+bsd x86+amd64.
225 - all internal members were renamed _something for easier subclassing.
226 - many minor tweaks.
227
2283.63 Wed May 16 14:10:06 CEST 2007
229 - implement handcoded assembly for x86/amd64 SVR ABI.
230
2313.62 Fri Apr 27 21:36:06 CEST 2007
232 - upgrade libcoro (which might set unwind info correctly).
233 - change default on linux to setjmp/longjmp.
234
2353.61 Thu Apr 19 12:36:18 CEST 2007
236 - Coro::Storable caused an endless loop when thawing invalid
237 pst's sometimes.
238 - use a Semaphore in Coro::Storable, as Storable doesn't
239 seem to be reentrant (although it is documented to
240 be threadsafe...).
241 - fix Coro::Signal to bring back the original unreliable
242 but stateful semantics.
243 - fixed a lot of typos in Coro.pm (patch submitted by David
244 Steinbrunner, which applied flawlessly).
245
2463.6 Sat Apr 14 17:13:31 CEST 2007
247 - added some bugfixes to get eg/myhttpd working again.
248 - added Coro::Storable for often-cede'ing freeze/thaw.
249 - try to do a clean exit when a coroutine calls exit
250 (EXPERIMENTAL).
251 - got rid of indirect call through _coro_init.
252 - updated the partly antique examples in eg/ to
253 work again and be a bit less magic, too.
254 - fixed Coro::Signal semantics to work as documented again.
255
2563.55 Sun Mar 25 01:20:47 CET 2007
257 - add SAVE_DEFFH to save the default filehandle and enable
258 it by default.
259 - finally move socket-operations from Coro::Socket to Coro::Handle
260 to be able to unblock foreign sockets.
261 - add Coro::State::save_also and guarded_save.
262 - add count accessor to Coro::Semaphore.
263 - add Coro::State::cctx_stacksize.
264 - just for the fun of it, do not rely on implicit context,
265 which can dramatically improve performance, but people
266 using windows-process-emulation perls do not care much about
267 performance.
268
2693.51 Sun Mar 4 14:18:04 CET 2007
270 - fixed a problem when you weakened references to Coro::State's
271 (patch by Yuval Kogman).
272
2733.501 Wed Feb 28 12:44:07 CET 2007
274 - rename some global symbols as macosx from hell redefines
275 them without asking.
276
2773.5 Tue Feb 13 20:22:53 CET 2007
278 - do AnyEvent model detection earlier, avoiding problems
279 caused by first using AnyEvent and later Coro::Event.
280 - implement and document Coro::Event event objects.
281 - fix a potential problem in Coro::Event causing crashes.
282 - initialise PL_comppad when creating a new coroutine,
283 avoids crashes on early coro destruction.
284
2853.41 Mon Jan 22 19:19:49 CET 2007
286 - readline on Coro::Handle did not support undefined $/,
287 nor did it deliver partial lines on EOF or error.
288 - implement malloc fallback for stack allocation because
289 stupid broken idiotic OSX has a stupid broken
290 idiotic fits-the-whole-os mmap "implementation" and
291 my dick feels longer if Coro is portable even to
292 obsolete platforms.
293
2943.4 Fri Jan 19 21:52:54 CET 2007
295 - remove t/09_timer.t, as it isn't really testing much
296 but was rather flaky in practise.
297 - async_pool coro would keep arguments and callback alive until
298 it was reused.
299 - cancellation of a coroutine could cause spurious idle calls
300 in cede_notself.
301
3023.3 Sat Jan 6 03:45:00 CET 2007
303 - implement $coro->on_destroy.
304 - Coro::Event blocking semantics have been changed,
305 documented and - hopefully - improved.
306 - fix nice adding, not subtracting, from priority.
307 - fix ->prio and api_is_ready (patch by Mark Hinds).
308 - fixed an assert ("... == prev__cctx->idle_te")
309 that could errronously trigger.
310 - fix various large and small memleaks.
311 - use a (hopefully) more stable cancel implementation
312 that immediately frees the coroutine data.
313 - cede/cede_notself return a status now.
314 - added Coro::guard function.
315 - added a global coroutine pool for jobs (on my machine,
316 I can create and execute 48k simple coros/s with async,
317 and 128k coros with async_pool).
318 - Coro::AIO now uses the coroutine priority as io priority.
319
3203.2 Fri Dec 22 05:07:09 CET 2006
321 - improve portability to slightly older perls.
322 - use cleaner coroutine destruction.
323 - simplify configuration for users.
324 - optionally (unrecommended) prefer perl functions over
325 their coro replacements.
4 326
53.11 Tue Dec 5 13:11:24 CET 2006 3273.11 Tue Dec 5 13:11:24 CET 2006
6 - fixed some bogus assert's, but as perl.h disables assert even 328 - fixed some bogus assert's, but as perl.h disables assert even
7 without NDEBUG (thank you very much), not too many people should 329 without NDEBUG (thank you very much), not too many people should
8 notice (that did include myself). Andreas König noticed, though :) 330 notice (that did include myself). Andreas König noticed, though :)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines