Displaying 20 results from an estimated 3000 matches similar to: "OptimizedMutex for Mongrel"
2006 Dec 26
7
Rubygems 0.9.0.8 and Fastthread problem
Heya Folks-
This is mainly for Zed and Mentalguy. I have been playing with the
new release of rubygems 0.9.0.8 and I have a major problem with the
requirement that fastthread needs to be required before thread. Just
requiring rubygems and then requiring fastthread right after that
will throw the error:
ez _blog $ ruby
require ''rubygems''
require
2007 Jan 04
5
fastthread -- what is it?
Hi,
A quick search didn''t explain what fastthread is, and how it relates
to mongrel. Why would I want to install fastthread?
Thanks,
Joe
2006 Dec 16
3
fastthread 0.5.3
I''ve just committed fastthread 0.5.3, which finally gives us a working
SizedQueue (which hadn''t really ever worked in previous versions).
Mostly it was just a matter of refactoring Queue and SizedQueue into a
single class behind the scenes, so I could move the signalling of the
SizedQueue-specific condition variable inside the queue''s critical
section. Failing to do so
2007 Dec 18
3
First Shoot, many more to appear: Rails on Ruby 1.9
Guys,
Subject says everything:
http://www.frederico-araujo.com/2007/12/18/my-first-successful-booting-rails-2-0-2-ruby-1-9-attempt
Even ActionView uses Proc.binding (which isn''t correctly supported in
1.9) it appears that lot of folks will try to put their hands in Ruby
1.9 when it comes out, and of course, try to get Rails with Mongrel
running in it.
Zed, Wayne, Evan and ry: maybe we
2007 Feb 14
4
fastthread-0.6.4.1 released
== NOW
A new version of fastthread, the library providing better
implementations of the classes in thread.rb, has been released.
Please note that fastthread is only for Ruby 1.8, not JRuby or any other
Ruby implementation (most of them don''t need it anyway!).
== WHY
The existing implementation of Mutex, Queue, etc. in thread.rb is slow.
fastthread''s is faster (and bypasses
2008 Jan 02
20
fastthread no longer needed?
I''m confused. Wasn''t threading fixed in 1.8.6, negating the need for
fastthread? Why is fastthread still a requirement of Mongrel? Just
curious. :)
2006 Nov 28
1
Mongrel, Mutex and FastThread results for win32.
Hello Guys,
Been testing fastthread (known on previous releases as
optimized_locking) for soon to be released 0.3.18 mswin32 gems
(official ones).
Attached to this message is the ruby script I used for the test
results shown on graphics [1] and [2]
The idea of the script is simulate what Mongrel do with threads
creating a simple workload for testing Ruby VM stability.
[1] refers to normal,
2007 Mar 20
10
fastthread 1.0
Well, just when I thought I was out of the fastthread business...
Okay, in brief:
fastthread is a Ruby extension which re-implements the primitives in
Ruby''s thread.rb in C. It was merged into 1.8.6, replacing the old
thread.rb implementation, but the version that was merged had a couple
serious bugs.
So -- now I release fastthread 1.0, which is basically the Ruby 1.8.6
version with
2006 Dec 31
3
fastthread 0.6.1
I just realized -- if fastthread can be included while Mutex-using code
is already running, then the definition and replacement of the classes
needs to happen atomically. Otherwise, it creates a race condition
where a thread can e.g. end up seeing an incompletely defined Mutex
class or none at all.
fastthread 0.6.1 addresses this by defining the classes and then
atomically swapping the constant
2007 Nov 18
12
Lighthouse and Engine Yard sponsorships
Hey all,
I''m very happy to announce that ActiveReload[1] has generously offered
to sponsor a lighthouse[2] account for rspec. We''ll be moving ticket
tracking there. We''ve already got the account set up and will soon
make it public.
We''re also going to be getting a sponsored slice at Engine Yard[3] to
host source control, which will be either mercurial or git
2008 Oct 10
5
Solution for autospec not working
Hello,
I have noticed that, since version 1.1.4, autotest/autospec does not run any
of my specs. After getting a hint from
http://b.logi.cx/2008/10/9/non-auto-spec, I dove a bit deeper into the code
and found that spec is no longer being run by ruby.
I monkey-patched Autotest::Rspec in my .autotest file so that spec is again
executed (using code taken from version 1.1.4). autospec is now
2007 May 21
13
swifty fly?
I heard about a new mongrel plugin or version that''s single threaded and
uses non-blocking IO with events. It''s called something like "swifty
fly". Anyone have a link for it?
Thanks.
2006 Dec 27
3
ARSession Woes!
I''m having an issue with ARsessions... I have a rails app AND a merb app
both under the same domain... I have redirects working for this to be
seamless... however, the session started on merb is different than the
session started in the rails app... like so..
http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y
Any ideas why?
The only difference I see, but dunno where to change this, is
2006 Dec 21
10
versioning of win32 versus ruby gems
I know we already mentioned this before on the list but I couldn''t
find it in the archives. Is there a way to differentiate the versions
for ruby/mswin32 so that I could run a command like:
# sudo gem install mongrel
--source=http://mongrel.rubyforge.org/releases/ --include-dependencies
--version 1.0
and have it not prompt me like this:
Select which gem to install for your platform
2007 Dec 11
14
Attachment-fu + Story Runner
Hi all,
I''m trying to run a Story Runner integration test that uploads a file
through Attachment-fu.
I''ve tried various ways of specifying the file data, from custom mocks:
class MockFile < Struct.new
(:original_filename, :read, :content_type); end
fdata = MockFile.new "test_upload.txt", "Test Upload", "text/plain"
to
2007 Aug 14
1
Upgrade to 1.0.8 broke Rake
Hello Guys.
I''m upgrading a project from 0.9.8 to 1.0.8, following this procedure:
* Removed vendor/plugins/rspec* completely.
* installed rspec and rspec_on_rails from
svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8
* Run script/generate rspec to update spec_helper and spec.opts
Now, when running rake, get the following error: superclass mismatch
for class Annotation
The following
2006 Nov 04
19
Mongrel 0.3.13.4 Pre-Release -- Ruby''s LEAK Fixed (Death To Mutex!)
Howdy Folks,
This release is after painstaking analysis of a memory leak that was
reported by Bradley Taylor, reduced by myself, and then fixed after much
work. You should all thank Bradley for finding the bizarre fix.
It turns out the Ruby has a memory leak when you use pretty much any
thread locking primitive other than Sync (Mutex, Monitor, etc.):
http://pastie.caboo.se/10194
The fix (for
2007 Jan 23
22
Mongrel 1.0.1 Officially Released
Alright folks, after nearly a month of pounding and beating up the Mongrel 1.0
RC1 release we''re putting out the official 1.0.1 release.
Read all about it at the (much funnier) news posting:
http://mongrel.rubyforge.org/news.html
For those people in a hurry, the gems should hit the mirrors and you can install using your usual commands. Refer the the above page for more help.
2007 May 05
10
have_one and have_present
>Comment By: Luis Lavena (luislavena)
> Date: 2007-05-04 23:37
> describe "An Asset" do
> before(:each) do
> @asset = Asset.new
> end
>
> it { @asset.should have_one(:attachment) }
> it { @asset.should have_present(:something) }
> end
Food for thought on these. I like have_one a lot. It speaks to me as a
Rails developer and I think it speaks to
2008 Jun 04
12
Mongrel as Windows service with normal privileges
I am trying to run Mongrel 1.1.5 with mongrel_service 0.3.4 on Ruby
1.8.6 with a "normal" user account, i.e. a user which belongs only to
the Windows group "Users". The rationale behind this is that running a
web server with full administrative rights (e.g. Local System) is not
something that I would like to do.
Unfortunately, starting the service from the services control