From: Paul Brannan Date: 2003-11-12T03:15:49+09:00 Subject: Re: ruby-dev summary 21833-21882 On Wed, Nov 12, 2003 at 12:12:37AM +0900, Kazuo Saito wrote: > [ruby-dev:21819] error message of Array.new(9,0) {|x|x+1} > > Array.new(9,0){|x|x+1} > #=> wrong number of arguments (ArgumentError) > > Proper English message for this error is wanted. Fell free to > post your idea. How about "cannot pass block and default value to Array.new"? > [ruby-dev:21833] pthread trouble on tcltklib (Re: ruby-tk hangs > when exception is raised) > > Hidetoshi NAGAI commited a patch to make pthread to work well with > Ruby's thread together. The patch will solve problems in extension > libraries using pthreads, Tcl/Tk extension for example. You can > try it by adding "--with-pthread-ext" to configure options. The > options is disabled by default. > Nagai said the patch works, but it is just preliminary. Testing > with other extensions using pthread and sending bug reports are > welcome. What exactly does this patch do? To what degree does ruby work with pthreads now? Looking at the source to the patch, it looks like Ruby now acquires a lock every time it wants to switch threads. What impact does this have on performance? What is the purpose of the patch to signal.c that comes with the patch? It almost looks unrelated... Paul