| Computers Forum Index » Computer Languages (Ruby) » [ANN] Tiamat: Automatic parallelism across multiple... |
|
Page 1 of 1 |
|
| Author |
Message |
| James M. Lawrence... |
Posted: Fri Oct 23, 2009 5:17 am |
|
|
|
Guest
|
= Tiamat
== Summary
Automatic parallelism across multiple cores and machines: a plugin for
Pure.
== Synopsis
require 'tiamat/autoconfig'
require 'benchmark'
mod = Pure.define do
def total(left, right)
left + right
end
def left
(1..500_000).inject(0) { |acc, n| acc + n }
end
def right
(1..500_000).inject(0) { |acc, n| acc + n }
end
end
# compute using two threads
puts Benchmark.realtime { mod.compute(2).total } # =>
0.4432079792022705
# compute using two local Ruby interpreters
Tiamat.open_local(2) {
puts Benchmark.realtime { mod.compute.total } # =>
0.2420041561126709
}
== Description
Tiamat is a worker plugin for the pure functional package. It links
Ruby interpreters together with DRb, forming a back-end for Pure's
parallelizing engine.
== Install
% gem install tiamat
Or for the (non-gem) .tgz package,
% ruby install.rb [--uninstall]
== Links
* Pure: http://purefunctional.rubyforge.org
* Documentation: http://tiamat.rubyforge.org
* Download: http://rubyforge.org/frs/?group_id=9145
* Rubyforge home: http://rubyforge.org/projects/tiamat
* Repository: http://github.com/quix/tiamat
== Author
* James M. Lawrence <quixoticsycophant at (no spam) gmail.com>
--
Posted via http://www.ruby-forum.com/. |
|
|
| Back to top |
|
|
|
| Rajinder Yadav... |
Posted: Fri Oct 23, 2009 9:07 pm |
|
|
|
Guest
|
On Thu, Oct 22, 2009 at 11:42 PM, James M. Lawrence
<quixoticsycophant at (no spam) gmail.com> wrote:
James this is wicked, love what you're doing, although I have no idea
on how to use it yet =)
Does Tiamat work on top of Pure? Where should I start?
--
Kind Regards,
Rajinder Yadav
http://DevMentor.org
Do Good! - Share Freely, Enrich and Empower people to Transform their lives. |
|
|
| Back to top |
|
|
|
| James M. Lawrence... |
Posted: Sat Oct 24, 2009 6:54 pm |
|
|
|
Guest
|
Rajinder Yadav wrote:
Quote:
James this is wicked, love what you're doing, although I have no idea
on how to use it yet =)
Does Tiamat work on top of Pure? Where should I start?
Yes, Tiamat is a back-end for Pure. The first step is to install it and
then run through the examples in the readmes. Have you tried that?
--
Posted via http://www.ruby-forum.com/. |
|
|
| Back to top |
|
|
|
| Rajinder Yadav... |
Posted: Tue Oct 27, 2009 5:00 am |
|
|
|
Guest
|
James M. Lawrence wrote:
Quote: If you installed the gem, did you require 'rubygems' or set the RUBYOPT
environment variable to '-rrubygems'?
Hi James, that was my problem, thank you.
I will play around with pure, it looks very promising even though I don't have
immediate use for it now I think it's well worth getting to know.
--
Kind Regards,
Rajinder Yadav
http://DevMentor.org
Do Good! - Share Freely, Enrich and Empower people to Transform their lives. |
|
|
| Back to top |
|
|
|
|