Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawn needs a new name #21

Closed
tra opened this issue Aug 29, 2011 · 18 comments
Closed

Spawn needs a new name #21

tra opened this issue Aug 29, 2011 · 18 comments

Comments

@tra
Copy link
Owner

tra commented Aug 29, 2011

Spawn is such a good name that Ruby 1.9 decided to steal it (damn you Matz!). I'm not inclined to monkey-patch ruby so it's probably time to come up with a new name. Here's some ideas:

spelling variations

spon - nice & short
spown - spawn has been p0wn3d
spawnd - spawn daemon, just add a 'd'
spawned - past tense
spark - spawn/fork
spork - spawn/fork - unfortunately already a gem with this name

synonyms

beget - parent process begets child process
branch - branching metaphor, too generic?
hatch - children start out as eggs
sow - like a seed
cleave - with a knife
dispatch - send it away
launch - off you go!

miscellaneous

khan - after Genghis Khan who was a prolific spawner of children
drone - a worker bee process

Feel free to give your 2 cents and pick your top 3 favorites.

@shannonrush
Copy link

+1 spown

@alakra
Copy link

alakra commented Aug 30, 2011

+1 spork

@tra
Copy link
Owner Author

tra commented Aug 30, 2011

Genghis Khan had lots of offspring so how about "khan"? Do you have a "khan do" attitude?

@emptyflask
Copy link

"Spark" is good, but also in use (though it appears to be a dead project)

It doesn't have quite the same meaning, but how about "respawn"?

Or to keep with the original theme, "roe" and "offspring" are both available.

@tra
Copy link
Owner Author

tra commented Sep 9, 2011

I've been giving it more thought and am considering keeping the name and, instead, changing the syntax to something like this:

Spawn.new do
  stuff
end

Or maybe,

Spawn.run do
  stuff
end

This sort of change would also make it easier to pull out of ActiveRecord so that you can run it anywhere.

@emptyflask
Copy link

That would be much better!

@jackdesert
Copy link

Spark +1

@drsharp
Copy link
Contributor

drsharp commented Nov 8, 2011

I took this as an option to learn about forking, setting up a github repo, and making it a gem. So I did "Spawner".

But I also vote for the Spawn.new or Spawn.run, particularly as that's cleaner to understand what is happening. In my case, though, I'd make it: Spawner.new or Spawner.run

I like "Spawner" because it's the thing that spawns... i.e. a Driver drives... a Coder codes.

@jgarber
Copy link

jgarber commented Nov 17, 2011

I like Spawn.new or Spawn.run

@avitus
Copy link

avitus commented Nov 21, 2011

+1 for Spawn.run

Is the gem completely broken under Ruby 1.9? I tried to make the necessary name changes but couldn't seem to get it working ...

@asarig
Copy link

asarig commented Nov 25, 2011

whatever name it is, can it be implemented soon please? :-)
right now because of the name hijack, I get "wrong number of arguments" ...

@avitus
Copy link

avitus commented Nov 28, 2011

I tried to fork the 'edge' branch and change the name but I can't seem to get it to work. Has anyone else had any luck?

@tra tra closed this as completed Dec 9, 2011
@tra
Copy link
Owner Author

tra commented Dec 9, 2011

I'm going with Spawn.run

@drsharp
Copy link
Contributor

drsharp commented Dec 9, 2011

Good call, tra. +1 for Spawn.run

I look forward to seeing it work. :-)

@jagthedrummer
Copy link
Contributor

Is there an ETA on the change to Spawn.run? The gem seems to be completely broken under 1.9.2.

@tra
Copy link
Owner Author

tra commented Feb 4, 2012

ETA = whenever I stop being so damned lazy!

@drsharp
Copy link
Contributor

drsharp commented Feb 6, 2012

tra, I posted a pull request for this, hopefully that'll make it easier on you. :-)

@tra
Copy link
Owner Author

tra commented Apr 4, 2013

Spawn.new is what I settled on. I chose that because it returns an object which you can use to monitor the spawned process. Unfortunately, the name "spawn" is already used in another gem which doesn't actually spawn anything. So the gem is called "spawn-block" for now. If that's too confusing I may go with a name change after all but we'll see how this goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants