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

Comparing Coro/Changes (file contents):
Revision 1.382 by root, Wed Oct 22 16:34:07 2008 UTC vs.
Revision 1.524 by root, Thu Oct 1 23:16:27 2009 UTC

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: maybe implement a default message channel, very much like Erlang's
5 actor model (which is cool in a lot of important aspects (failures!), 5 actor model (which is cool in a lot of important aspects (failures!),
6 but very lacking in others (higher level ipc)). 6 but very lacking in others (higher level ipc)).
7TODO: unready_all
8TODO: myhttpd header parsing
9TODO: channel->maxsize(newsize)?
10
11 - Coro::Storable destroyed the prototypes of the functions it wrapped.
12 - fix various prototype mismatches in Coro::AnyEvent and Coro::Handle.
13 - added section on "windows process emulation" to the manpage,
14 after a not-so-fruitful (nor-friendly) "discussion" with chip
15 salzenberg (discussion implies arguments, but his only arguments
16 were ad-hominems, one wonders why he started it in the first
17 place). I hope this explains it well enough for him to understand,
18 and maybe well enough for others to understand.
19 - use common::sense everywhere now.
20
215.17 Sat Aug 22 23:09:31 CEST 2009
22 - work around a bug in the perl debugger causing crashes
23 when running under the debugger by marking _pool_handler as nodebug.
24 - speed up Coro::async considerably.
25 - try some hacks to get netbsd to work "more often" - their broken
26 setjmp/longjmp, ucontext *and* phtreads are really hard on Coro.
27 - convert Coro to AE 5.0 API.
28
295.162 Tue Jul 28 04:04:03 CEST 2009
30 - perl 5.8.2 is now minimum requirement.
31 - skip t/19_handle.t on broken windows perls.
32
335.161 Wed Jul 22 04:47:38 CEST 2009
34 - Coro::AnyEvent::poll could have a different prototype when EV was
35 used as backend (analyzed by Tatsuhiko Miyagawa).
36 - Coro::AnyEvent errornously initialised the event loop when loaded,
37 not on demand.
38 - try to workaround rare */t/01_unblock.t failures.
39
405.16 Tue Jul 21 01:44:37 CEST 2009
41 - Coro::AnyEvent failed to hook into the event loop
42 when no threads had been readied between detecting
43 the event loop and actually running it.
44 - considerably speed up Coro::Select by taking avdantage
45 of AnyEvent > 4.8 and some other optimisations.
46 - implement paragraph readline mode in Coro::Handle
47 (based on patches by Zsbán Ambrus).
48 - replace WSAEINPROGRESS by WSAEWOULDBLOCK (reported
49 and analyzed by Yasuhiro MATSUMOTO).
50 - clarified libcoro license and copyright.
51 - someone stole my EXTRA_META!!!
52 - implement Coro::Select::patch_pp_sselect and it's brother,
53 for hardcode select overriding.
54
555.151 Mon Jul 6 05:41:57 CEST 2009
56 - backport to windows process emulation code again (patch by
57 Yasuhiro MATSUMOTO).
58 - slightly update Coro::MakeMaker.
59
605.15 Tue Jun 30 10:28:06 CEST 2009
61 - deprecate Coro::Socket, document how to get ipv6 support via
62 AnyEvent::Socket instead.
63 - implement signal->wait ($cb) interface, similar to semaphores.
64 - work around SvOK not supporting getmagic, so we have to getmagic
65 to test for undef :/ (reported by Matthias Waldorf).
66 - load Coro::AnyEvent in all modules using AnyEvent.
67 - work around perl corrupting our internal data structures,
68 reported by Tokuhiro Matsuno.
69 - enable per-coroutine real and cpu time gathering
70 (Coro::State::enable_times).
71
725.14 Wed Jun 24 01:37:48 CEST 2009
73 - provide explicit functions to "cede" to the event loop in Coro::AnyEvent,
74 as this seems to have been a difficult concept (poll, sleep, idle,
75 idle_upto).
76 - add Coro::AnyEvent::readable/writable functions.
77 - clarify Coro::EV/Event/AnyEvent manpages.
78 - free per-thread global scalars in the thread calling ->cancel, to
79 avoid crashes when $_, $@ etc., are magical but some of those
80 had already been freed.
81 - "unexperimentalise" the callback interface for Coro::Semaphore.
82 - speed up ready queue management/context switching by using a linked
83 list instead of an array (~5-10%).
84 - implement "watch" command in Coro::Debug shells.
85 - for fun, implement time-slicing as an example in the manpage.
86 - if AnyEvent detects EV or Event, but we don't have Coro::EV or
87 Coro::Event, use the normal AnyEvent handling instead of dieing
88 (the same is true for Coro::Handle).
89 - properly document Coro::EV::timed_io_once.
90 - avoid unneccessary ->cancel calls in Coro::Handle.
91 - maybe make it work on mingw32 with win32 backend
92 (based on patch by Yasuhiro Matsumoto).
93
945.132 Fri May 29 09:00:39 CEST 2009
95 - do not keep a reference to the argument itself in
96 Coro::Semaphore::guard, as it could change later.
97 - support SO_RCVBUF/SO_SNDBUF nonstandard Coro::Socket options,
98 should support a prepare callback.
99
1005.131 Mon Mar 16 23:20:37 CET 2009
101 - implement and document Coro->suspend, Coro->resume.
102 - fix Coro::Select implementation to not (often) close
103 the passed file descriptors (testcase provided by pippijn).
104
1055.13 Mon Dec 15 21:51:42 CET 2008
106 - EXPERIMENTAL: implement dynamic winds (on_enter/on_leave).
107 - don't set diehook to C<undef> but instead to NULL, to avoid
108 spurious warnings.
109 - fix a lot of bugs in Coro::SemaphoreSet.
110 - Coro::SemaphoreSet will less often create a semaphore needlessly.
111 - add Coro::SemaphoreSet::count and wait methods.
112 - take advantage of the new Guard module.
113 - deprecate Coro::guard.
114 - try to fix the dreaded 01_unblock tests once more. I hate it when
115 testsuites need more fixing than the code they are supposed to test.
116 - croak in more cases when a required callback isn't resolvable.
117 - fix some minor issues in Coro::State->call/eval.
118 - use current coroutine context instead of a temporary one
119 when temporarily switching to another coroutine.
120 - do not call C-level on_destroy handlers during global destruction,
121 to avoid needless segfaults.
122
1235.12 Sun Dec 7 13:30:38 CET 2008
124 - add default config for MirOS, which seems to be a bug-to-bug
125 compatible fork of openbsd ("world domination by releasing
126 openbsd cvs before the openbsd folks do it" or so :).
127 - free_padlist did destroy the names pad, not good, but didn't
128 seem to bother perl - this could fix issues such as eval ""
129 inside a function called from multiple coroutines.
130 - use a different method to detect destruction time.
131 - be more careful when freeing padlists just before global
132 destruction.
133 - fixed and expanded the call/cc example.
134 - renamed _terminate to _coro_run.
135 - new method Coro::Channel->shutdown.
136 - try pthreads on openbsd <4.4 (broken sigaltstack, will
137 pthreads fare better?).
138 - be less picky about destroying "a" running coroutine.
139
1405.11 Tue Nov 25 21:49:05 CET 2008
141 - DEBUGGING in 5.10.0 is a mess: it constantly flags perfectly
142 working code with failed assertions, introducing more bugs than
143 it fixes, requiring elaborate workarounds :(
144
1455.1 Mon Nov 24 08:54:59 CET 2008
146 - wrote a small introductory tutorial - Coro::Intro.
147 - convert Coro::Timer, Coro::Select and Coro::Util to rouse API.
148 - Coro::Select did errornously dup the file descriptors
149 and didn't work with all AnyEvent backends.
150 - Coro::Select wasn't imported correctly form Coro::LWP, causing blocking
151 LWP data transfers.
152 - disassociate c contexts from coro objects - this is agruably more
153 correct, but mostly allows sharing of cctxs between coro and state
154 objects, for added memory savings and speed increases.
155 - bumped $Coro::POOL_RSS up to 32kb by default.
156 - no longer set the optype to OP_CUSTOM, as B::* understandably
157 doesn't like this very much (and we *are* a type of entersub).
158 - implement state cloning, just to prove that call/cc can be done.
159 - automatically load Coro::AnyEvent in Coro::Handle.
160 - wrap ->cancel calls in eval inside Coro::Handle as EV watchers
161 do not have this method (and don't need it either).
162 - speed up generic anyevent methods in Coro::Handle by using rouse
163 callbacks.
164 - allow coroutines in $Coro::IDLE, speeding up Coro::AnyEvent and
165 others. It also makes the debugger happier, as you can trace
166 through the idle threads now.
167 - add comppad_name* and hints ($^H, %^H) to per-thread variables.
168 - eg/event was pretty broken.
169 - better 5.8.6 compatibility.
170
1715.0 Thu Nov 20 10:35:05 CET 2008
172 - NEW ARCHITECTURE: use the latest 4.x version if you experience
173 stability issues.
174 - bump API version to 7 - all dependents must be recompiled.
175 - removed timed_* functions - they were not being used anyways
176 and should be replaced by a more generic mechanism -
177 and were annoying to support anyways :)
178 - removed SemaphoreSet's waiter method - use sem method instead.
179 - Coro::Semaphore->adjust didn't correctly wake up enough waiters.
180 - async_pool did free a scalar value twice
181 ("Attempt to unreference...").
182 - fix a longstanding bug where calling terminate on a coro that
183 was waiting for a semaphore that was just becoming available
184 would cause a deadlock (semaphore would get into a state where
185 it was available but waiters were still blocked).
186 - calling throw on a coroutine that is waiting for a semaphore will
187 no longer make it acquire the semaphore (and thus leak a count).
188 - perl's process emulation is now not even theoretically supported
189 anymore.
190 - new functions Coro::rouse_cb and Coro::rouse_wait for easier
191 conversion of callback-style to blocking-style.
192 - new methods $coro->schedule_to and ->cede_to, to specifically
193 schedule or cede to a specific coroutine.
194 - new function Coro::Semaphore::wait.
195 - use named constants in Coro::Channel (Richard Hundt).
196 - directly patch the entersub opcode calling SLF functions (cede,
197 transfer and so on). this does speed up context switching, but
198 more importanly, it frees us from the hardcoded behaviour of
199 entersub, so we might actually be able to return something from
200 those functions and atcually create new ones.
201 - take advantage of __builtin_frame_address on gcc.
202 - expose THX in coroapi (not sure whether this was a wise decision,
203 as "threaded" perls are running at half speed anyways).
204 - implement execute_slf (schedule-like-function) interface that makes
205 it possible to implement schedule-like-functions in XS.
206 - use new SLF interface to massively speed up Coro::EV by roughly a
207 factor of two.
208 - used new SLF interface to massively speed up Coro::Semaphore by a
209 factor of three.
210 - used new SLF interface to speed up Coro::AIO by roughly a factor of
211 four and reduce its memory usage considerably.
212 - implement Coro::SemaphoreSet purely in terms of Coro::Semaphore,
213 for a nice speedup and vastly more correct behaviour. Also implement
214 a new method "sem" to get at the underlying semaphore object.
215 - implement Coro::Channel in terms of Coro::Semaphore, for a moderate
216 (in comparison) 20-40% speedup.
217 - used new SLF interface to reimplement Coro::Signal gaining
218 some unknown (because I was too lazy), but certain, speedup, and also
219 making signals reliable for the first time.
220 - used new SLF interface and other optimisations to speed up async_pool
221 by a factor of two. It also doesn't rely on perl's exception mechanism
222 to exit anymore. The overhead for terminating an async_pool, coro over
223 a normal async is now very small.
224 - sped up coroutine creation/destruction by 40%.
225 - forgot to include Coro/libcoro/README in the dist for all these years.
226 - work around a freebsd pthreads bug (manual testcancel is required as
227 pthread_cond_wait isn't a cancellation point on freebsd).
228 - use new rouse functions to speed up and simplify Coro::BDB.
229 - make "prefer perl native functions" work with threaded perls.
230 - condense Coro::Debug ps output, hint at v and w flags.
231 - (libcoro) lots of minor cleanups and portability improvements.
232
2334.914 Wed Nov 19 12:54:18 CET 2008
234 - fix a disastrous bug in the readline optimisation
235 introduced in 4.801.
236
2374.913 Sat Nov 15 07:58:28 CET 2008
238 - async_pool did free a scalar value twice
239 ("Attempt to unreference...").
240
2414.912 Thu Nov 13 18:31:23 CET 2008
242 - minor cleanups.
243 - use much larger stacks on linux and perl < 5.8.8.
244 - Coro::Debug::new_unix_server did not unlink the socket
245 when destroyed.
246
2474.911 Tue Nov 11 04:26:17 CET 2008
248 - "port" to threaded perls.
249
2504.91 Mon Nov 10 05:36:38 CET 2008
251 - the ->throw exception object no longer leaks.
252 - creating a new cctx leaked a scopestack entry (memleak).
253 - new coroutines didn't get created with a zero flags field
254 (unknown impact).
255 - calling ->throw on a not-yet-started coroutine should now work
256 instead of being ignored.
257 - ->throw is now supported on Coro::State objects.
258 - clean up cctx creation code a bit.
259 - entersub is actually a UNOP, not a LOGOP (not a bugfix).
260
2614.9 Sat Nov 8 17:45:27 CET 2008
262 - (libcoro) did not preserve rbp with CORO_ASM (we are getting there).
263 - (libcoro) no longer leak threads in the experimental pthread backend,
264 also speed it up considerably.
265 - (libcoro) do not rely on makecontext passing void *'s unscathed.
266 - fix compiletime dependencies on libcoro in the Makefile.
267 - cctx_count wasn't always updated properly.
268 - Coro::State::cctx_stacksize wasn't applied correctly.
269 - new function Coro::State::cctx_max_idle.
270 - the default max number of idle C contexts is now 4.
271 - (libcoro) try harder to get _setjmp/_longjmp.
272 - (libcoro) cleanup and extend the libcoro API to officially
273 allow the creation of empty source contexts.
274 - very experimental workaround for the totally broken netbsd platform.
275 - tried to hack around openbsd bugs.
276
2774.804 Wed Nov 5 16:36:00 CET 2008
278 - Coro::Debug::new_unix_server would not create a non-blocking listening
279 socket, sometimes causing freezes.
280 - (libcoro) fix misaligned stack points for setjmp and assembly
281 methods, which can cause crashes on x86/x86_64 with a sufficiently
282 aggressive compiler.
283 - new function: Coro::Debug::new_tcp_server.
284 - move ->throw into the Coro class because it only works on coro objects.
285
2864.803 Mon Nov 3 17:16:12 CET 2008
287 - (libcoro) use a global asm statement to become independent of gcc
288 otpimisations for CORO_ASM (thanks to pippijn for the idea).
289 - try to workaround yet another broken bsd, this time dragonfly.
290
2914.802 Thu Oct 30 10:56:12 CET 2008
292 - support -fno-omit-frame-pointer on x86 with the assembly method.
293 - tune 01_unblock.t tests a bit.
7 294
84.801 Wed Oct 22 18:33:37 CEST 2008 2954.801 Wed Oct 22 18:33:37 CEST 2008
9 - improve readline speed for very long "lines". 296 - improve readline speed for very long "lines".
10 - backport to 5.8.8. 297 - backport to 5.8.8.
11 298

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines