Questions tagged [celluloid]

Actor-based concurrent object framework for Ruby

Celluloid is a concurrent object oriented programming framework for Ruby which lets you build multithreaded programs out of concurrent objects just as easily as you build sequential programs out of regular objects

99 questions
0
votes
1 answer

Celluloid::TimeoutError: linking timeout of 5 seconds exceeded

I'm working with Jruby 1.7.12 and Celluloid (0.16.0). My application is using pools and generates actors in a loop require 'kaiwa' Kaiwa::Launcher.run Celluloid.logger = Kaiwa::Logger.logger class KaiwaTest include Celluloid …
Sid
  • 6,134
  • 9
  • 34
  • 57
0
votes
1 answer

Change pool size in SupervisionGroup

Can I change pool size in celluloid supervision group? For example I have a worker: class Worker include Celluloid def do puts self.inspect end end And then I provision 3 workers in a supervision group: supervisor =…
Igor S.
  • 553
  • 4
  • 10
0
votes
1 answer

Nasty race conditions with Celluloid

I have a script that generates a user-specified number of IP addresses and tries to connect to them all on some port. I'm using Celluloid with this script to allow for reasonable speeds, since scanning 2000 hosts synchronously could take a long…
0
votes
1 answer

Running Cukes in Parallel with JRuby

I'm trying to run cucumber scenarios in parallel from inside my gem. From other answers, I've found I can execute cucumber scenarios with the following: runtime = Cucumber::Runtime.new runtime.load_programming_language('rb') @result =…
my_overflowed_stack
  • 564
  • 1
  • 10
  • 22
0
votes
1 answer

How can I terminate a SupervisionGroup?

I am implementing a simple program in Celluloid that ideally will run a few actors in parallel, each of which will compute something, and then send its result back to a main actor, whose job is simply to aggregate results. Following this FAQ, I…
FrontierPsycho
  • 743
  • 7
  • 25
0
votes
1 answer

ActiveRecord and jRuby threads/fibers (Rails 4)

I'm using jRuby and Celluloid (default task_class so it should be fibers). I am wrapping my DB stuff in ActiveRecord::Base.connection_pool.with_connection, but it's possible I might have missed it somewhere (how to find that out anyway?). I…
mrbrdo
  • 7,968
  • 4
  • 32
  • 36
0
votes
1 answer

Reading on socket with EOT, SOH, STX among other characters

I'm using Celluloid IO to read from sockets. The incoming message has the following syntax sometextsometextsometext where SOH = Hex 1 FS = Hex 1C STX = Hex 2 ETX = Hex 3 EOT = Hex 4 My read code is something like this - message = "" begin data…
Aditya Sanghi
  • 13,370
  • 2
  • 44
  • 50
-1
votes
1 answer

How to create an animation using celluloid library?

There I created an animation using celluloid library. This animation shows the point which move along the elliptical line. The problem is that, when I run this code, everything is working in sublime text, but when I use Jupyter, it outputs error.…
-1
votes
1 answer

Partition a loop to be processed on different cores parallel

How can I accomplish a loop that will que it's iterations on the available CPU cores? So each iteration will be run in parallel and therefore finish faster? I'm trying to understand the gem Celluloid but if there is another gem that I could use…
Grimbox
  • 203
  • 2
  • 7
1 2 3 4 5 6
7