clamstar has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
<dingus_khan>
i can't figure out how to pass values from an array to a Time.utc constructor...
|jemc| has quit [Ping timeout: 260 seconds]
saarinen has quit [Quit: saarinen]
vlad_starkov has quit [Ping timeout: 245 seconds]
<centrx>
dingus_khan, Time.utc(*array)
<centrx>
It is called the splat operator
<dingus_khan>
centrx: holy crap spackle, i would have never thought of that, thanks!
<tanema>
splat it wonderful magic you should try other things it does like
<dingus_khan>
oh man it works perfectly, hah--much appreciated!
hahuang65 has quit [Ping timeout: 252 seconds]
<tanema>
first, *center, end = [1,2,3,4,5,6]
VTLob has quit [Quit: VTLob]
michaeldeol has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
jsaak has quit [Quit: Lost terminal]
MindfulMonk has quit [Ping timeout: 260 seconds]
jtw has quit []
elliotec has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
elliotec_ has joined #ruby-lang
Quentin_ is now known as QuentinC_
ikrima has quit [Ping timeout: 245 seconds]
elliotec has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
ikrima has joined #ruby-lang
<dingus_khan>
tanema: end is a keyword, so i switched it for "last"; that's pretty neat, haven't really used the splat much, good to know what it can do!
nXqd has quit [Remote host closed the connection]
<tanema>
dingus_khan: you are very right I just knocked that example out without thinking
<dingus_khan>
for sure, figured it was on the fly, thanks for sharing!
mistym has quit [Ping timeout: 260 seconds]
symm- has joined #ruby-lang
elliotec_ has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
Cakey has joined #ruby-lang
tanema has quit [Remote host closed the connection]
tanema has joined #ruby-lang
tanema has quit [Ping timeout: 260 seconds]
bzalasky has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
diegoviola has joined #ruby-lang
dorei has quit []
bzalasky has joined #ruby-lang
knu has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
Cakey has joined #ruby-lang
RoxasShadowRS has quit [Quit: Leaving]
diegovio1 is now known as diegoviola
itsraining has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalehv has quit [Read error: Connection reset by peer]
kalehv_ has joined #ruby-lang
kalehv_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtw has quit []
phansch has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Barrin6 has quit [Quit: Leaving]
kiddorails has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rahul_j has joined #ruby-lang
rippa has joined #ruby-lang
RobertBirnie has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
bzalasky has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lun_ has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
mykoweb has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: Leaving]
CaptainJet has quit []
calica has quit [Ping timeout: 245 seconds]
RobertBirnie has joined #ruby-lang
mykoweb has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
AndroUser has joined #ruby-lang
AndroUser is now known as AngelofSilence
wallerdev has quit [Quit: wallerdev]
symm- has quit [Ping timeout: 260 seconds]
kalehv has joined #ruby-lang
mykoweb has quit []
mykoweb has joined #ruby-lang
kalehv has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
ndrst has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
symm- has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
ndrst has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
michaeldeol has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
achiu has joined #ruby-lang
rahul_j has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
dingus_khan has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
tkuchiki has quit [Ping timeout: 248 seconds]
Atw has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
phansch has quit [Quit: Leaving]
symm- has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
symm- has joined #ruby-lang
RoxasShadowRS has joined #ruby-lang
tylersmith has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
charliesome has joined #ruby-lang
<dingus_khan>
is there a way to make an object a hash? as in some instance of a class i've defined, made accessible like a hash? i'm not finding that answer, so i think i'm asking the wrong question..
solars has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
<pipework>
define #to_has
<pipework>
define #to_hash
hahuang65 has quit [Ping timeout: 245 seconds]
dc5ala has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
lun_ has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
lun_ has quit [Read error: Connection reset by peer]
lun_ has joined #ruby-lang
<dingus_khan>
pipework: didn't see this, you mean define my own #to_hash class method, right?
<pipework>
define #to_hash
<dingus_khan>
...
pyk has joined #ruby-lang
ndrst has quit [Ping timeout: 246 seconds]
tectonic has joined #ruby-lang
<pipework>
dingus_khan: # does not signify a class method in ruby...
<dingus_khan>
pipework: i didn't mean as an actual class method, but an instance method belonging to that class.
<pipework>
all instance methods stay on the classes they're defined on.
<dingus_khan>
i feel like you're trying to be un-helpful
<pyk>
question: what is different #ruby & #ruby-lang channel? which one is official? thanks
<pipework>
dingus_khan: You asked how to turn classes into hashes, I said define #to_hash.
<pipework>
Not sure what else you really need here.
<dingus_khan>
pipework: forget i asked.
<pipework>
dingus_khan: way ahead of you
<dingus_khan>
thanks for the troll i guess
<pipework>
k
michaeldeol has joined #ruby-lang
xIzIv has joined #ruby-lang
tris has quit [Ping timeout: 260 seconds]
xIzIv has quit [Quit: WeeChat 0.4.2]
michaeldeol has quit [Ping timeout: 260 seconds]
dingus_khan has quit [Remote host closed the connection]
marcdel has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kitak_ has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
lun_ has quit [Ping timeout: 248 seconds]
kiddorails has quit [Ping timeout: 248 seconds]
rahul_j has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
phansch has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
kitak_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
Elico has quit [Ping timeout: 256 seconds]
jsaak has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegovio1 is now known as diegoviola
michaeldeol has joined #ruby-lang
cnivolle has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest54397
rippa has quit [Ping timeout: 248 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
Coincidental has quit [Remote host closed the connection]
goatish_mound has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
sree has joined #ruby-lang
heftig has joined #ruby-lang
sree has quit []
kiddorails has quit [Quit: Leaving.]
benanne has joined #ruby-lang
tectonic has quit []
arBmind has joined #ruby-lang
imperator has joined #ruby-lang
sepp2k has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
toretore has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
pyk has left #ruby-lang [#ruby-lang]
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Read error: Connection reset by peer]
Andrevan has joined #ruby-lang
kotk has joined #ruby-lang
ndrst has joined #ruby-lang
michaeldeol has joined #ruby-lang
symm- has quit [Ping timeout: 260 seconds]
Mousse_ has quit [Quit: Computer has gone to sleep.]
Mousse_ has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
lun_ has joined #ruby-lang
VTLob has joined #ruby-lang
danijoo_ has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
retro|cz has joined #ruby-lang
imperator has quit [Quit: Leaving]
nisstyre has quit [Ping timeout: 248 seconds]
kitak_ has joined #ruby-lang
michaeldeol has quit [Ping timeout: 245 seconds]
nichtdiebohne has joined #ruby-lang
nichtdiebohne has quit [Client Quit]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
rsl has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
vlad_starkov has joined #ruby-lang
elliotec has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
marcdel has quit []
lun_ has quit []
mehlah has joined #ruby-lang
marr has joined #ruby-lang
mistym has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Coincidental has joined #ruby-lang
francisfish has joined #ruby-lang
Coincidental has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby-lang
elliotec has joined #ruby-lang
Mousse_ has quit [Read error: Connection reset by peer]
Mousse_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
elliotec has quit [Ping timeout: 246 seconds]
Mousse_ has quit [Client Quit]
Mousse_ has joined #ruby-lang
Mousse_ is now known as Mousse
Mousse is now known as Guest33562
jstemmer has joined #ruby-lang
Guest33562 is now known as Mousse_
vlad_starkov has joined #ruby-lang
michaeldeol has joined #ruby-lang
ndrst has quit [Ping timeout: 245 seconds]
nichtdiebohne has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
mehlah has quit [Quit: Leaving...]
vlad_starkov has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
MindfulMonk has joined #ruby-lang
MindfulMonk has quit [Remote host closed the connection]
MindfulMonk has joined #ruby-lang
cored has quit [Ping timeout: 260 seconds]
kiddorails has joined #ruby-lang
mehlah has joined #ruby-lang
mehlah has quit [Client Quit]
Guest54397 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kiddorails has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
prc has joined #ruby-lang
vermele has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
phansch has quit [Quit: Leaving]
arBmind1 has joined #ruby-lang
arBmind has quit [Read error: Operation timed out]
kiddorails has joined #ruby-lang
hackjoy has joined #ruby-lang
tkuchiki has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
benanne has quit [Quit: kbai]
michaeldeol has joined #ruby-lang
kalehv has joined #ruby-lang
ikrima has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 272 seconds]
kotk1 has joined #ruby-lang
kotk has quit [Ping timeout: 246 seconds]
kalehv has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 252 seconds]
ikrima has joined #ruby-lang
dragonkh has quit [Quit: Bye!]
bokafly has joined #ruby-lang
arBmind has joined #ruby-lang
bokafly has quit [Quit: bokafly]
ikrima has quit [Ping timeout: 248 seconds]
arBmind1 has quit [Ping timeout: 246 seconds]
ikrima has joined #ruby-lang
Coincidental has joined #ruby-lang
hackjoy has quit []
ItSANgo_ has quit [Quit: Leaving...]
Coincidental has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
ItSANgo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
danijoo_ has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
levifig has quit [Ping timeout: 265 seconds]
jsilver_ has joined #ruby-lang
jsilver has quit [Read error: Connection reset by peer]
levifig has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
chouhoulis has joined #ruby-lang
ndrst has joined #ruby-lang
michaeldeol has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
rahul_j has joined #ruby-lang
ndrst has quit [Ping timeout: 245 seconds]
dorei has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
ndrst has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
phansch has joined #ruby-lang
cnivolle has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
bin7me has joined #ruby-lang
RoxasShadowRS has quit [Read error: Connection reset by peer]
RoxasShadowRS has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ndrst has quit [Ping timeout: 272 seconds]
retro|cz has quit [Ping timeout: 252 seconds]
Mousse_ has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 246 seconds]
enebo has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Mousse_ has joined #ruby-lang
charliesome has joined #ruby-lang
yfeldblum has joined #ruby-lang
ndrst has joined #ruby-lang
ikrima has quit [Ping timeout: 260 seconds]
ruby-lang352 has joined #ruby-lang
async_prince has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
ruby-lang352 has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
chouhoulis has joined #ruby-lang
wallerdev has joined #ruby-lang
retro|cz has joined #ruby-lang
michaeldeol has joined #ruby-lang
tanema has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby-lang
marr has quit [Ping timeout: 260 seconds]
marr has joined #ruby-lang
tanema has quit [Ping timeout: 252 seconds]
marr has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
tanema has joined #ruby-lang
jtw has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
aef has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhass|off is now known as jhass
stef_204 has joined #ruby-lang
aef has quit [Remote host closed the connection]
alex-quiterio has joined #ruby-lang
aef has joined #ruby-lang
alex-quiterio has left #ruby-lang [#ruby-lang]
wallerdev has quit [Quit: wallerdev]
Coincidental has joined #ruby-lang
Cakey has joined #ruby-lang
Coincidental has quit [Ping timeout: 252 seconds]
mykoweb has joined #ruby-lang
yfeldblum has joined #ruby-lang
nathanstitt has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
|jemc| has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
prc has quit [Ping timeout: 246 seconds]
nisstyre has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
RoxasShadowRS has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
wallerdev has joined #ruby-lang
tanema has quit [Remote host closed the connection]
RoxasShadowRS has joined #ruby-lang
havenwood has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 245 seconds]
benanne has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
phansch has quit [Quit: Leaving]
mykoweb has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
nichtdiebohne has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
tanema has joined #ruby-lang
rahul_j has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
nisstyre_ has joined #ruby-lang
tanema has quit [Ping timeout: 252 seconds]
nichtdiebohne has quit [Quit: Leaving...]
skade has quit [Quit: Computer has gone to sleep.]
gix has joined #ruby-lang
vlad_starkov has joined #ruby-lang
apeiros has joined #ruby-lang
gix- has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby-lang
mykoweb has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
nichtdiebohne has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
bin7me has joined #ruby-lang
tylerkern has joined #ruby-lang
Coincidental has joined #ruby-lang
nisstyre_ has quit [Ping timeout: 248 seconds]
nisstyre_ has joined #ruby-lang
Coincidental has quit [Ping timeout: 252 seconds]
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
sree has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
jsilver_ has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 245 seconds]
prc has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
skade has joined #ruby-lang
DevDoo has quit [Remote host closed the connection]
DevDoo has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby-lang
kalehv has joined #ruby-lang
tylerkern has quit [Quit: tylerkern]
sree has quit []
skade has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
skade has quit [Ping timeout: 246 seconds]
hakunin has joined #ruby-lang
tanema has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
rnea has joined #ruby-lang
Cakey has joined #ruby-lang
bzalasky has joined #ruby-lang
centrx has joined #ruby-lang
DevDoo has quit [Ping timeout: 260 seconds]
bzalasky has quit [Remote host closed the connection]
tanema has quit [Ping timeout: 252 seconds]
jsullivandigs has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 260 seconds]
kalehv_ has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 252 seconds]
tanema has joined #ruby-lang
Barrin6 has joined #ruby-lang
houhoulis has joined #ruby-lang
kalehv_ has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby-lang
tanema has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
yfeldblum has joined #ruby-lang
DevDoo has joined #ruby-lang
michaeldeol has quit [Ping timeout: 248 seconds]
skade has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
araujo has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby-lang
ph1r0x has joined #ruby-lang
skade has joined #ruby-lang
Atw has joined #ruby-lang
ph1r0x has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
symm- has quit [Ping timeout: 260 seconds]
kalehv has joined #ruby-lang
kalehv has quit [Read error: Connection reset by peer]
DEac-_ has quit [Read error: Connection reset by peer]
benanne has quit [Quit: kbai]
kalehv has joined #ruby-lang
DEac- has joined #ruby-lang
kalehv has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
abstr4ct has joined #ruby-lang
tonni has joined #ruby-lang
vermele has quit [Quit: Leaving]
<abstr4ct>
got a bunch of defs defined, then i run them at the end. I tried using thread.new on each one like Thread.new {def1()} then Thread.new {def2()} and so on.. i observed that it interweaved them, with no difference in performance or system load..... Even mor interesting was after like 5 thread.new it seems to just skip running the defs but didnt give a error... Ruby 1.9.3p194 (2012-04-20)
<abstr4ct>
[i386-mingw32]
prc has quit [Ping timeout: 272 seconds]
<abstr4ct>
any ideas on any these points... btw this code calls internet rescources and outputs to a remote database...
<apeiros>
abstr4ct: MRI uses green threads.
bin7me has quit [Ping timeout: 260 seconds]
<apeiros>
that is, no true parallelism, only concurrency. unless your problem is IO bound, you won't get an increase in performance.
bin7me has joined #ruby-lang
<havenwood>
abstr4ct: Be sure to set #abort_on_exception = true
<abstr4ct>
well basically i am bound by how fast each def can makes calls to the net.. but this is not a throughput issue.
<abstr4ct>
so i wanted to be able to execute many defs at one time
marcdel has joined #ruby-lang
<abstr4ct>
its not a throughput issue on my end, it is on the remote end. so i wanted to able to run multiple defs at once...
skade has joined #ruby-lang
<abstr4ct>
not even sure what i want is possible. heh
<apeiros>
stop calling it "defs" please
<apeiros>
those things are methods
<abstr4ct>
gotcha methods...
<abstr4ct>
so, i wanted to be able to call multiple methods at the same time.
<apeiros>
"at the same time" is parallelism. as said before, MRI only offers concurrency (interleaved, "almost" at the same time)
<abstr4ct>
yes, i saw them interleave, but it changed absolutly nothing
<abstr4ct>
so i would need to call multiple ruby processes with seperate methods in them
<abstr4ct>
in that manner i would sort of be faking it.. if my assumption is correct
<abstr4ct>
for example, one that calls "ODD" methods and one that calls "even" methods... assuming that were applicable
<havenwood>
abstr4ct: You can use a Ruby implementation that doesn't have a GVL (global vm lock) like JRuby or Rubinius. Or use fork processes instead of threading.
<havenwood>
Or fork*
<abstr4ct>
so assuming i used jruby, i would use the thred.new which might have better performance?
marcdel has quit []
<havenwood>
abstr4ct: Yeah, Threads can run in parallel with JRuby if you've got the cores.
marcdel has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<abstr4ct>
so i have ruby and some gems installed i am using in my code... at a highlevel what do i need to do to get jruby up and going?
<abstr4ct>
i assuming i keep what i have installed...
<apeiros>
if you have rvm and your app is either a gem or has a Gemfile, all you need to do is `rvm install jruby`, `rvm use jruby` and then either reinstall your gem or run bundle
<havenwood>
abstr4ct: I use ruby-install to install and chruby to switch between them. There are various options.
<ddd>
rvm --install use jruby && gem install blah # this presupposes you're NOT using rvm gemsets. If you want a gemset do: rvm --install --create use jruby-1.7.9@mygemset && gem install blah
hplar has joined #ruby-lang
<ddd>
the --install tells rvm to install the particular ruby you're trying to use if it isn't already installed and --create means create the gemset if it doesn't already exist under that particular ruby
tanema has joined #ruby-lang
francisfish has joined #ruby-lang
tectonic has joined #ruby-lang
<abstr4ct>
hrm
<abstr4ct>
to be honest, i installed what i have now so long ago, i dont recall how i did it. i was following a tutorial
<ddd>
rvm list
<ddd>
shows what rubies are installed. I would highly suggest reading rvm.io's docs
<havenwood>
abstr4ct: What do you get with?: command -v ruby
michaeldeol has joined #ruby-lang
kiddorails has quit [Quit: Leaving.]
tanema has quit [Ping timeout: 252 seconds]
<abstr4ct>
you mean ruby -v?
<abstr4ct>
i have rubygems installed
<apeiros>
I think he literally means `command -v ruby`
<ddd>
no, exactly what he said. 'command' displays the full patht o whatever command would be run if you issuedthe command 'ruby'
<ddd>
ruby started including rubygems with 1.9.x iirc. 1.8 it was separate
michaeldeol has quit [Ping timeout: 248 seconds]
Cakey has quit [Ping timeout: 260 seconds]
rippa has joined #ruby-lang
Cakey has joined #ruby-lang
<abstr4ct>
oh, i must have done this a very long time ago
<abstr4ct>
well i am installing the window jruby... here we go.. :P
mehlah has joined #ruby-lang
<ddd>
to really make this easier on you, I would suggest installing the windows version of virtualbox (its an opensource vmware basically) and installing a linux virtual. A) you'll find development a lot easier and B) you'll find compatability better. do what you got to right now, but its something to think about in the immediate future
<centrx>
People still use Windows?
<ddd>
suggestion you can ignore, just one to make it easier for you in the future, and gives you the OS that ruby was built under/around
<ddd>
i do, but for windows specific stuff via a dual boot setup
* centrx
sends out notice entitled "Windows deprecated"
<ddd>
hehe
Cakey has quit [Ping timeout: 252 seconds]
<abstr4ct>
gotcha
<abstr4ct>
do i need to make an app first?
<abstr4ct>
i seem to recall having to do that before
<abstr4ct>
however it is not listed as a step in the "getting started"