apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
<Aloysius1> Well, that's what I'm dealing with. Might be worth it.
<rickhull> and the worker thread just blocks until it gets a full line
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rickhull> if you use the Queue class from stdlib's Thread, then you probably won't need any explicit synch/mutex
<rickhull> main thread blocks on empty queue
<rickhull> have to handle user input, probably have a thread blocking on $stdin.gets
<rickhull> and i'd shove it in the same queue, maybe with a special tag
<rickhull> because with 2 queues, the main thread blocking semantics get tricky
<Aloysius1> Something to play with for tomorrow.
<rickhull> also, heads up, 99% of my experience with this stuff has been with TCPSocket
<rickhull> files and $stdin behave differently in some nontrivial ways
andrewvos has quit [Ping timeout: 246 seconds]
<Aloysius1> Sure. I will make many grievous misassumptions, I have no doubt.
<Aloysius1> But, as I said, this is just a window dressing thing. So pain is part of the point.
Asher1 has quit [Read error: Operation timed out]
Asher has joined #ruby-lang
<Aloysius1> Thanks for all the feedback and help today, guys. Much appreciated.
znz_jp has quit [Quit: kill -QUIT $$]
nathanstitt has joined #ruby-lang
znz_jp has joined #ruby-lang
<rickhull> one thing i'm hitting with my toy select example. open an empty file for reading, pass it to select. select always returns it in the ready to read array
<rickhull> which i'm sure is "correct", i just expected it to not be returned since there is nothing to read
Asher has quit [Ping timeout: 264 seconds]
<drbrain> rickhull: use IO.pipe
<drbrain> then you can feed in bytes to see what select does
<rickhull> yeah, that's what the rdoc example shows :)
kstuart has joined #ruby-lang
<rickhull> just a question of file semantics i guess
<rickhull> makes me question if "everything is an IO" or "everything is a file" (Plan 9) is really a viable abstraction
marr has quit [Ping timeout: 264 seconds]
justinmb_ has joined #ruby-lang
rwk1 has joined #ruby-lang
chana has quit [Quit: chana]
stardiviner_ has quit [Ping timeout: 248 seconds]
kstuart has quit [Client Quit]
justinmburrous has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 256 seconds]
Asher has joined #ruby-lang
gregmoreno has quit [Read error: Operation timed out]
hogeo has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
davemaurakis has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
nathanstitt has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
nathanstitt has quit [Client Quit]
tkuchiki has joined #ruby-lang
nathanstitt has joined #ruby-lang
chana has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kstuart has joined #ruby-lang
stamina has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby-lang
nevill has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
saarinen has joined #ruby-lang
symm- has quit [Read error: Operation timed out]
tomzx_mac has joined #ruby-lang
kstuart has quit [Quit: kstuart]
arooni-mobile has joined #ruby-lang
GarethAdams has joined #ruby-lang
setmeaway has joined #ruby-lang
kstuart has joined #ruby-lang
kstuart has quit [Client Quit]
saarinen has quit [Quit: saarinen]
ezkl has joined #ruby-lang
kingcrawler has joined #ruby-lang
kingcrawler is now known as slowhands
GeissT has joined #ruby-lang
wmoxam has joined #ruby-lang
teleological has quit [Remote host closed the connection]
cstrahan has quit [Ping timeout: 276 seconds]
gregmoreno has joined #ruby-lang
teleological has joined #ruby-lang
<erikh> rickhull: around?
<erikh> i'll send you a text
teleological has quit [Remote host closed the connection]
<rickhull> around :)
<erikh> beeeeeeeeeer
<erikh> I also sent you a text which says that too
teleological has joined #ruby-lang
rwk1 has joined #ruby-lang
chana has quit [Quit: chana]
teleological has quit [Remote host closed the connection]
DomKM has joined #ruby-lang
davemaurakis has joined #ruby-lang
dankest has quit [Quit: Leaving...]
smook2 has joined #ruby-lang
swav has joined #ruby-lang
swav_ has quit [Ping timeout: 246 seconds]
DKnox_ has quit [Quit: Computer has gone to sleep.]
chana has joined #ruby-lang
arubin has joined #ruby-lang
rwk1 has quit [Read error: Connection reset by peer]
elia has quit [Quit: Computer has gone to sleep.]
swav_ has joined #ruby-lang
swav has quit [Ping timeout: 252 seconds]
<rickhull> where to pardner?
<rickhull> got a buddy from work interested. mission is fine, but if you want to come towards downtown or japan town, even better
teleological has joined #ruby-lang
swav has joined #ruby-lang
wallerdev has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
teleological has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby-lang
swav_ has quit [Ping timeout: 276 seconds]
lsegal has joined #ruby-lang
Domon has joined #ruby-lang
rwk1 has joined #ruby-lang
teleological has joined #ruby-lang
teleological has quit [Remote host closed the connection]
teleological has joined #ruby-lang
tomzx_ has joined #ruby-lang
rwilcox has quit [Ping timeout: 264 seconds]
tomzx_ has left #ruby-lang [#ruby-lang]
codejury has quit [Remote host closed the connection]
justinmb_ has quit [Remote host closed the connection]
teleological has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
dhruvasagar has joined #ruby-lang
codejury has joined #ruby-lang
smook3 has joined #ruby-lang
swav_ has joined #ruby-lang
smook2 has quit [Ping timeout: 255 seconds]
swav has quit [Ping timeout: 240 seconds]
teleological has joined #ruby-lang
hashkey has quit [Ping timeout: 276 seconds]
rwk1 has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
Nisstyre-laptop is now known as Nisstyre
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
hashkey has joined #ruby-lang
kstuart has joined #ruby-lang
chana has quit [Quit: chana]
ia___ has joined #ruby-lang
chana has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
sebastiansier has joined #ruby-lang
mossplix has quit [Quit: mossplix]
ia___ has quit [Client Quit]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
kstuart has quit [Quit: kstuart]
synthetix has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 252 seconds]
teleological has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
arooni-mobile has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
seydar has joined #ruby-lang
teleological has joined #ruby-lang
<seydar> do people generally employ alternatives to rvm, or is rvm still the big dog on the block?
<xuser> rbenv I think
<mistym> seydar: rbenv and chruby are both nice, depending on your needs
teleological has quit [Remote host closed the connection]
<seydar> ah, chruby. forgot about that one
<seydar> dammit, i kinda wish i had used that instead of rvm
jsullivandigs has joined #ruby-lang
teleological has joined #ruby-lang
parenjitsu has joined #ruby-lang
kstuart has joined #ruby-lang
teleological has quit [Remote host closed the connection]
seydar has quit [Quit: leaving]
fragamus has quit [Quit: Computer has gone to sleep.]
teleological has joined #ruby-lang
teleological has quit [Remote host closed the connection]
teleological has joined #ruby-lang
saarinen has joined #ruby-lang
teleological has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
teleological has joined #ruby-lang
teleological has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
sebastiansier has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Quit: I growing sleepy]
saarinen has quit [Quit: saarinen]
chana has quit [Quit: chana]
Aria has joined #ruby-lang
kstuart has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
gnufied has joined #ruby-lang
tenderlove has joined #ruby-lang
kstuart has joined #ruby-lang
gnufied has quit [Client Quit]
vlad_starkov has joined #ruby-lang
ruurd has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby-lang
slowhands has quit [Quit: Computer has gone to sleep]
Asher1 has joined #ruby-lang
Taranis has quit [Read error: Operation timed out]
Asher has quit [Ping timeout: 260 seconds]
cstrahan has joined #ruby-lang
crackity_jones has joined #ruby-lang
io_syl has quit [Ping timeout: 240 seconds]
sush24 has quit [Ping timeout: 276 seconds]
sush24_ has joined #ruby-lang
davemaurakis has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 252 seconds]
Taranis has joined #ruby-lang
drifton has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
sush24_ has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby-lang
dhruvasagar has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
sush24 has joined #ruby-lang
drifton has quit [Quit: WeeChat 0.3.0]
nevill has quit [Quit: nevill]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
Randroid has joined #ruby-lang
Domon has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
saarinen has quit [Quit: saarinen]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
sush24_ has joined #ruby-lang
kstuart has quit [Ping timeout: 246 seconds]
sush24 has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 252 seconds]
intellitech has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
cofin has quit [Quit: cofin]
Nisstyre has quit [Quit: Leaving]
sush24_ has quit [Quit: This computer has gone to sleep]
justinmb_ has joined #ruby-lang
arubin has quit [Ping timeout: 246 seconds]
justinmburrous has quit [Ping timeout: 240 seconds]
gja has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
dankest has joined #ruby-lang
naimrajib has joined #ruby-lang
arubin has joined #ruby-lang
naimrajib has quit [Ping timeout: 250 seconds]
cstrahan has quit [Ping timeout: 246 seconds]
henrikhodne has joined #ruby-lang
rolfb has joined #ruby-lang
nevill has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
Domon has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
Randroid has quit [Quit: Randroid]
Randroid has joined #ruby-lang
Randroid has quit [Client Quit]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
Domon has quit [Remote host closed the connection]
ffio_ has quit [Ping timeout: 240 seconds]
Domon has joined #ruby-lang
stringly_typed has joined #ruby-lang
krz has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
ffio_ has joined #ruby-lang
stringly_typed has quit [Quit: Computer has gone to sleep.]
tomzx_mac has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
io_syl has joined #ruby-lang
TvL2386 has joined #ruby-lang
hhatch has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
smook3 has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 245 seconds]
Defu has joined #ruby-lang
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
mbj has joined #ruby-lang
gregmoreno has joined #ruby-lang
faces has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
workmad3 has joined #ruby-lang
dankest has quit [Quit: Leaving...]
codejury has quit [Remote host closed the connection]
codejury has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
gregmoreno has quit [Ping timeout: 268 seconds]
solars has joined #ruby-lang
smook3 has joined #ruby-lang
justinmb_ has quit [Remote host closed the connection]
codejury has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
henrikhodne has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
<zzak> its easy to switch
Defu has quit [Remote host closed the connection]
Defu has joined #ruby-lang
tRAS has joined #ruby-lang
codeluggage has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
elia has joined #ruby-lang
Rizzle has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
jinie_ is now known as jinie
jinie is now known as jinie_
gja has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
judofyr has joined #ruby-lang
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
swav_ has quit [Remote host closed the connection]
andrewvos has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
skade has quit [Quit: Computer has gone to sleep.]
<manveru> just use .ruby-version and you can use either...
jinie_ is now known as jinie
elia has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
codejury has joined #ruby-lang
tbuehlmann has joined #ruby-lang
andrewvos has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
swav has joined #ruby-lang
mbj has quit [Ping timeout: 252 seconds]
<yorickpeterse> morning
dankest has joined #ruby-lang
dhruvasagar has joined #ruby-lang
personDo has joined #ruby-lang
xxxaM has joined #ruby-lang
xxaM has quit [Disconnected by services]
xxxaM has left #ruby-lang [#ruby-lang]
xxaM has joined #ruby-lang
personDo has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
stamina has joined #ruby-lang
ezkl has joined #ruby-lang
ezkl has quit [Max SendQ exceeded]
ezkl has joined #ruby-lang
mytrile has joined #ruby-lang
<yorickpeterse> I'm actually going back to rvm
<yorickpeterse> at least on my server
<yorickpeterse> not sure if I'll do it locally as well, but I probably will
nlv has joined #ruby-lang
<judofyr> yorickpeterse: why? chruby and ruby-install FOR LIFE!
kamilc__ has joined #ruby-lang
nlv has quit [Remote host closed the connection]
mossplix has joined #ruby-lang
nlv has joined #ruby-lang
nlv has quit [Client Quit]
nghialv has joined #ruby-lang
nghialv has quit [Remote host closed the connection]
swav has quit [Ping timeout: 276 seconds]
<yorickpeterse> because I cbf managing ruby installations myself, and getting chruby-exec to work with Monit was nothing but a nightmare
<yorickpeterse> and there also isn't a Debian package which means I have to install/update it myself
mossplix has quit [Client Quit]
<yorickpeterse> tl;dr: too much effort
<yorickpeterse> for something I ultimately don't give a fuck about (whether or not it hijacks `cd`)
rsync has quit [Quit: rsync]
<yorickpeterse> plus ruby-build's definition system is retarded too
swav has joined #ruby-lang
<judofyr> use ruby-install and install into /usr/local?
<yorickpeterse> ... that's exactly the problem.
<yorickpeterse> compare this: `rvm install 1.9.3` to this: `ruby-build 1.9.3-platestwhatever /opt/ruby/1.9.3-platestwhatever`
<yorickpeterse> also, you don't install that shit in to /usr/local
marr has joined #ruby-lang
<yorickpeterse> since /usr/local is more meant for applications
<yorickpeterse> which I believe rvm also does wrong in that regard, but at least I don't have to know about it
dhruvasagar has quit [Ping timeout: 252 seconds]
Nisstyre has joined #ruby-lang
<judofyr> yorickpeterse: I don't really see the big difference between those two, but then, I've never had problems with chruby either (and plenty with RVM)
<judofyr> yorickpeterse: also, I'm talking about this: https://github.com/postmodern/ruby-install
<judofyr> not ruby-build
<yorickpeterse> Oh, I misread that as ruby-build
<yorickpeterse> thing is, I'm lazy
<yorickpeterse> But the biggest problem was getting chruby-exec to play nice since it (at least used to) spawn a subshell
<yorickpeterse> which wouldn't get killed for some reason if the parent process (the one monit looks at) gets killed
dhruvasagar has joined #ruby-lang
<yorickpeterse> not to mention that because chruby primarily uses bash functions (opposed to executableS) you *have* to start some kind of login shell
<yorickpeterse> so you'll end up with something like this:
<judofyr> how is this different from RVM?
<yorickpeterse> sudo -H -u your-user bash -c -l "source /whatever/path/to/chruby.sh && chruby-exec 1.9.3 -- ruby yourstuff.rb"
<yorickpeterse> there are ways to get it to work nicer but again this requires manual work
<yorickpeterse> You can install chruby globally as well (e.g. put the sources in /etc/bash.bashrc) but that still doesn't solve the subshell problem
<yorickpeterse> Not sure if RVM will have the same issue in that regard, haven't hooked it up to monit yet
<judofyr> yorickpeterse: you can just use `chruby` there, no need to use chruby-exec. the point of chruby-exec is to avoid sourcing
GarethAdams has quit [Quit: Leaving...]
Criztian has joined #ruby-lang
<judofyr> source chruby.sh && chruby 1.9.3 && ruby myapp.rb
<yorickpeterse> judofyr: that is assuming you actually want a login shell
<yorickpeterse> https://github.com/postmodern/chruby/issues/127 and this would nullify the usefulness of chruby-exec in my opinion
<yorickpeterse> if chruby would be better at dealing with the sourcing (e.g. look for it in a default location) that would already make it more suitable
<yorickpeterse> (do note I happily use chruby locally)
<yorickpeterse> since I there don't need to run anything as daemons and what not
<judofyr> yorickpeterse: huh? sourcing chruby doesn't require a "login shell" :S
<judofyr> I just don't see how RVM makes of this any simpler
<yorickpeterse> judofyr: https://github.com/postmodern/chruby/blob/master/bin/chruby-exec#L36 this spawns a login shell
<yorickpeterse> it implies that that takes care of the sourcing
<yorickpeterse> I preferrably would not spawn a login shell if possible, but this means that at a low level that's already impossible
<postmodern> yorickpeterse, chruby-exec assumes you have configured chruby for your $SHELL
<judofyr> yorickpeterse: then don't use chruby-exec. use "source … && chruby"
<yorickpeterse> Preferrably what I'd do is this:
<postmodern> yorickpeterse, why do you not want to spawn a login shell?
<yorickpeterse> /usr/bin/chruby-whatever 1.9.3 -- myshit.rb # this would take care of sourcing for me
<yorickpeterse> postmodern: because it's not needed
<yorickpeterse> why do I need to start a bash login shell only to start some Ruby process?
supaiku has joined #ruby-lang
<postmodern> yorickpeterse, i thought about trying to source chruby.sh in chruby-exec
<yorickpeterse> this is very pedantic but I'm just not a fan of it
<postmodern> yorickpeterse, except the user could have installed chruby _anywhere_
<postmodern> yorickpeterse, so it's better to just rely on the shell's configuration
<yorickpeterse> I went as far as writing a `ruby-exec` which did that for me but then I bumped into the sub process nonsense
<postmodern> if nonsense works, than it's not nonsense :P
<yorickpeterse> that's the thing, it doesn't
<postmodern> yorickpeterse, how so?
<judofyr> yorickpeterse: what sub process nonsense? I've had no issues with "source chruby.sh && chruby 1.9.3 && ruby run.rb"
<yorickpeterse> I'm not sure what's causing it but for some reason killing the parent (whatever spawned chruby) would not kill whatever Ruby stuff it would run
ikrima has joined #ruby-lang
<yorickpeterse> Let me clarify:
<postmodern> yorickpeterse, sounds like something else is causing the shell to die
<judofyr> yorickpeterse: you can also use "exec" and there is no sub process
<yorickpeterse> I run a Campfire <-> IRC bridge (called camper_van) which is in Ruby. I put it on a leash using Monit because once in a while it goes rampant and sucks up all resources [...]
<yorickpeterse> When I tried out chruby using Monit the latter would kill the parent process (chruby-exec) but would ultimately fail to kill camper_van (even though it traps the right stuff)
<yorickpeterse> same happened with some custom Ruby stuff
<yorickpeterse> I just gave up after trying to make it work for 2 hours
<postmodern> yorickpeterse, can you repro this without monit?
<yorickpeterse> Yes
<postmodern> yorickpeterse, submit repro as an issue
<yorickpeterse> let me see if I can still repro it locally
<yorickpeterse> I can't rule out just having done something stupid either
<postmodern> i have plans to rewrite chruby-exec as a function, so it just uses the chruby already loaded into the shell
<postmodern> this would cause people to explicitly choose the shell
<postmodern> bash -c "chruby-exec ..."
<postmodern> also would prevent people from trying to run chruby-exec under dash (default shell for ubuntu cron)
<judofyr> postmodern: I don't quite see the usage of chruby-exec as a function. why not just use `chruby` then?
dr_bob has joined #ruby-lang
<postmodern> judofyr, the idea of chruby-exec is it wont change the current shells env
<postmodern> judofyr, spawn sub-shell, switch rubies, exec command to replace sub-shell
<judofyr> postmodern: ( chruby ; … )
<postmodern> judofyr, right pretty much that
<postmodern> judofyr, i actually wondered about just telling users to write that
<judofyr> postmodern: I felt it was "obvious", but I'm not sure how well people know unix/bash/shells
<postmodern> judofyr, or in the case of cron, bash -c "chruby ...; script.rb ..."
mytrile has quit [Remote host closed the connection]
<yorickpeterse> k, got a repro but I'm not sure if I'm just being stupid
hhatch has quit [Read error: Operation timed out]
swav has quit [Remote host closed the connection]
Karql has quit [Read error: Operation timed out]
<postmodern> yorickpeterse, submit it and we'll sort it out later
hhatch has joined #ruby-lang
Karql has joined #ruby-lang
andrewvos has joined #ruby-lang
<yorickpeterse> if I can fix that without writing an entire book full of Bash I'd happily use Chruby on my server
<postmodern> yorickpeterse, i have the sneaking suspicion, that this has something to do with bash
<yorickpeterse> well, in the end it does spawn 3 processes
<yorickpeterse> sudo -> chruby-exec (bash) -> ruby stuff
<yorickpeterse> so it's not surprising the signals are lost somewhere
<yorickpeterse> not sure if sudo would be the problem here, don't exactly need it for monit anyway
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse> nope, not sudo
<yorickpeterse> If I kill the chruby process nothing happens
<postmodern> yorickpeterse, i wonder if I have to explicitly trap those signals and kill the child process
swav has joined #ruby-lang
<yorickpeterse> Looking at chruby-exec I'm also unsure about starting the shell as interactive, though I understand why it's done
sepp2k has joined #ruby-lang
Voker57 has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
dankest has quit [Quit: Leaving...]
sush24 has joined #ruby-lang
<yorickpeterse> postmodern: should I make an issue about this?
<yorickpeterse> well as in, a GH issue since I'm already doing the former :)
vlad_starkov has joined #ruby-lang
<postmodern> yorickpeterse, sure, i assumed that killing the chruby-exec process would kill the sub-process
<postmodern> yorickpeterse, which is why i left the process there, instead of execing over it
Voker57 has joined #ruby-lang
Voker57 has quit [Changing host]
Voker57 has joined #ruby-lang
Voker57 has quit [Remote host closed the connection]
Voker57 has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
nevill has quit [Quit: nevill]
mossplix has joined #ruby-lang
lolmaus has joined #ruby-lang
<lolmaus> I've got a fairly large block of code with an `if foo` appended to the last `end`. https://gist.github.com/lolmaus/5780439 I'm worried that this if clause is difficult to notice when reading the code. But moving the if clause to the beginning will create another level of nesting, which will make code more complicated. Is there a recommended way to put the if clause to the beginning without
<lolmaus> creating extra indentation and extra `end`?
<yorickpeterse> done
andrewvo1 has joined #ruby-lang
<lolmaus> Which style is better?
<yorickpeterse> lolmaus: you can just put a `return unless sass_code` at the very top
<yorickpeterse> that saves you one indentation level
<yorickpeterse> also, the latter is more readable
Nisstyre has quit [Read error: Connection reset by peer]
<lolmaus> yorickpeterse, exactly what i wanted, thank you!
<yorickpeterse> np
Johz has joined #ruby-lang
Nisstyre has joined #ruby-lang
stef_204 has joined #ruby-lang
Lennier has joined #ruby-lang
nevill has joined #ruby-lang
mossplix has quit [Ping timeout: 240 seconds]
Guest____ has joined #ruby-lang
workmad3 has joined #ruby-lang
ericmathison has joined #ruby-lang
yourenext has joined #ruby-lang
GarethAdams has joined #ruby-lang
mossplix has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
codeluggage has quit [Quit: Leaving...]
mbj has joined #ruby-lang
Guest____ has quit [Quit: Textual IRC Client: www.textualapp.com]
TvL2386 has quit [Quit: Ex-Chat]
workmad3 has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
asellus has quit [Quit: WeeChat 0.4.0]
jsullivandigs has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gregmoreno has joined #ruby-lang
dagobah has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 264 seconds]
gregmoreno has quit [Ping timeout: 245 seconds]
Rizzle has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
nevill has quit [Quit: nevill]
tkuchiki has quit [Remote host closed the connection]
asellus has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
ikrima has quit [Read error: Connection reset by peer]
Asher has quit [Ping timeout: 240 seconds]
rsl has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby-lang
ikrima has joined #ruby-lang
nevill has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
kamilc__ has quit [Quit: Leaving...]
workmad3 has quit [Read error: Operation timed out]
henrikhodne has joined #ruby-lang
Lennier has quit [Quit: Lennier]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
mbj has quit [Remote host closed the connection]
Gues_____ has joined #ruby-lang
Gues_____ is now known as Guest89034
nevill has quit [Quit: nevill]
mytrile has quit [Remote host closed the connection]
tRAS has quit [Ping timeout: 260 seconds]
tRAS has joined #ruby-lang
jonahR has quit [Quit: jonahR]
sush24 has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
x0f has quit [Ping timeout: 252 seconds]
Asher has joined #ruby-lang
sush24 has quit [Ping timeout: 245 seconds]
x0f has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
tRAS has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
rsl has joined #ruby-lang
henrikhodne has joined #ruby-lang
sush24 has joined #ruby-lang
Domon has quit [Remote host closed the connection]
naquad has quit [Max SendQ exceeded]
naquad has joined #ruby-lang
sush24_ has joined #ruby-lang
machuga|away is now known as machuga
sush24 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
jbsan has quit [Quit: jbsan]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
atmosx has joined #ruby-lang
stamina has quit [Read error: Operation timed out]
cored has joined #ruby-lang
mdedetrich has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
hashkey has quit [Quit: Leaving]
chana has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
pellis has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
<pellis> hello
sush24_ has quit [Ping timeout: 240 seconds]
<pellis> I'm interesting to know what are the options for background processing out of plain queues such as kafka, beanstalk, kestrel, rabbitmq - and not really resque/sidekick/delayed_job
tRAS has joined #ruby-lang
<pellis> in those cases - do you build your own background workers and daemonize them each time and again?
<pellis> s/interesting/interested
nkr has joined #ruby-lang
andrewvos has quit [Remote host closed the connection]
andrewvo1 has quit [Quit: Reconnecting]
andrewvos has joined #ruby-lang
sush24_ has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
verto has joined #ruby-lang
smook3 has joined #ruby-lang
ldnunes has joined #ruby-lang
<judofyr> pellis: dunno, I just use Sidekiq
<pellis> how many messages/sec can you process?
<judofyr> dunno
<judofyr> enough
<pellis> :)
<judofyr> I don't have that many messages :)
<pellis> let's say you want to push a mobile message to millions of users in under 5 minutes
<judofyr> hah, the new JavaZone video is great: http://jz13.java.no/
sush24_ has quit [Ping timeout: 240 seconds]
chana has quit [Quit: chana]
postmodern has quit [Quit: Leaving]
mossplix has quit [Ping timeout: 240 seconds]
sush24_ has joined #ruby-lang
andrewvos has quit [Ping timeout: 264 seconds]
Defu has quit [Quit: wut]
justinmburrous has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby-lang
face has joined #ruby-lang
<cored> judofyr: haha
justinmburrous has quit [Remote host closed the connection]
<cored> judofyr: javazone video, very cool
Linkedipsoul__ has quit [Ping timeout: 252 seconds]
<judofyr> cored: ikr
<cored> ikr ?
<judofyr> i know right
retro|cz has joined #ruby-lang
<cored> hahah
<cored> got it
kamilc__ has joined #ruby-lang
<yorickpeterse> judofyr: oh man this is so bad
<judofyr> yorickpeterse: bad? it's one of the better one.
<judofyr> yorickpeterse: this is another good one: http://www.youtube.com/watch?v=8Px-GHPxB4I
<yorickpeterse> bad as in so bad it's good
<judofyr> ah, good
andrewvos has joined #ruby-lang
<yorickpeterse> and yeah, that one was good too
<judofyr> they have some videos that are just bad
jbsan has joined #ruby-lang
<cored> 'Oracle'
<cored> that just killed me
kstuart has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
vlad_starkov has joined #ruby-lang
kstuart has quit [Ping timeout: 268 seconds]
machuga is now known as machuga|away
Squarepy has joined #ruby-lang
tRAS has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
smook3 has joined #ruby-lang
jinie is now known as jinie_
krames has joined #ruby-lang
synthetix has quit [Read error: Operation timed out]
gja has quit [Quit: This computer has gone to sleep]
tRAS has joined #ruby-lang
sush24_ has quit [Ping timeout: 240 seconds]
Guest89034 has quit [Quit: Textual IRC Client: www.textualapp.com]
Gues_____ has joined #ruby-lang
Gues_____ is now known as Guest71038
carloslopes has joined #ruby-lang
sush24_ has joined #ruby-lang
<injekt> moin
<cored> I'm trying to find out the song at the end of the trailer
davemaurakis has joined #ruby-lang
<cored> do any of you know the name of it?
Asher has quit [Quit: Leaving.]
krz has quit [Quit: krz]
vbatts|work has joined #ruby-lang
<judofyr> nope
<judofyr> tried Shazam?
<tbuehlmann> The Turtles - Happy Together
<judofyr> oh, what trailer did you mean?
<tbuehlmann> you freshmen :p
<judofyr> tbuehlmann: I thought he was talking about jz13.java.no
sush24_ has quit [Read error: Connection reset by peer]
<judofyr> tbuehlmann: I know Happy Together :P
<tbuehlmann> you are promoted to an academic then :p
<judofyr> \o/
dhruvasagar has joined #ruby-lang
<cored> tbuehlmann: thanks
davemaurakis has quit [Remote host closed the connection]
thiagoborges has joined #ruby-lang
sush24_ has joined #ruby-lang
machuga|away is now known as machuga
mucker has joined #ruby-lang
<injekt> pellis: millions in under 5 minutes means you need some big hardware
<pellis> injekt, I'm doing this on 2 EC2-large machines
<injekt> pellis: I clear around 75k workers in 6 minutes on fairly minimal hardware with sidekiq
breakingthings has joined #ruby-lang
<injekt> they're hitting the db, though, so there's some overhead
rsl has quit [Read error: Connection reset by peer]
eval-in has quit [Ping timeout: 248 seconds]
<pellis> 75k workers ? or jobs?
vlad_starkov has joined #ruby-lang
jacknagel_ has quit [Read error: Operation timed out]
jacknagel_ has joined #ruby-lang
coffeeju1 has quit [Ping timeout: 248 seconds]
mbr has quit [Ping timeout: 248 seconds]
randym_ has quit [Ping timeout: 248 seconds]
rsl has joined #ruby-lang
eval-in has joined #ruby-lang
mbr has joined #ruby-lang
coffeeju1 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sush24_ has quit [Ping timeout: 268 seconds]
<yorickpeterse> I once looked at a makefile
<yorickpeterse> it had 63 tasks for cleaning up the repo
<yorickpeterse> this is why I hate autoconf/m4/all that crap
<whitequark> I thought that was because of a 600k configure script
mucker has quit [Read error: Connection reset by peer]
mucker has joined #ruby-lang
<yorickpeterse> that too
<yorickpeterse> Also, I never got why Make doesn't have something like `rake -T`
<yorickpeterse> Instead I have to use some awk script from SO to get a list of tasks
<yorickpeterse> and said script isn't exactly short either
faramir has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
yourenext has left #ruby-lang [#ruby-lang]
<whitequark> yorickpeterse: um, that basically extracts all lines by regex /^\w+:/
<yorickpeterse> yes, but it's not something I can remember
<yorickpeterse> "Oh Bob, if you want to see the Make targets just run <insert script written by a Unix wizard here>"
<yorickpeterse> opposed to "Oh Bob, if you want to see the Make targets just run `make -T`"
mbj has joined #ruby-lang
Caius has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
jonahR has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
Caius has joined #ruby-lang
rikai_ has joined #ruby-lang
synthetix has joined #ruby-lang
rikai has quit [Ping timeout: 252 seconds]
wmoxam has joined #ruby-lang
sush24 has quit [Ping timeout: 276 seconds]
sush24 has joined #ruby-lang
stamina has joined #ruby-lang
jinie_ is now known as jinie
dhruvasagar has quit [Ping timeout: 252 seconds]
ironcamel has quit [Ping timeout: 276 seconds]
vbatts|work has quit [Ping timeout: 240 seconds]
<injekt> pellis jobs
<pellis> injekt, so that's 200msg/sec
tomzx_mac has joined #ruby-lang
ffio_ has quit [Ping timeout: 240 seconds]
_ffio_ has joined #ruby-lang
retro|cz has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Read error: Operation timed out]
nkr has quit [Ping timeout: 246 seconds]
shinnya has joined #ruby-lang
vbatts|work has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
cstrahan has joined #ruby-lang
crackity_jones has joined #ruby-lang
pipework has joined #ruby-lang
lolmaus has quit []
vlad_starkov has quit [Ping timeout: 256 seconds]
<andrewvos> Hey has anyone seen `bundle install` being *really* slow on Debian, or anywhere really?
Johz has quit [Ping timeout: 240 seconds]
synthetix has quit [Remote host closed the connection]
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
sepp2k has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
pellis has quit [Quit: This computer has gone to sleep]
nathanstitt has joined #ruby-lang
<injekt> andrewvos: everywhere?
<andrewvos> *sigh*
<andrewvos> injekt: Can you make it faster plz
wallerdev has joined #ruby-lang
<injekt> andrewvos: what does your gemfile look like?
rolfb has quit [Ping timeout: 252 seconds]
<DefV_> mine is slow too, but my Gemfile alone 70 gems
<DefV_> has*
<andrewvos> injekt: It is big
<andrewvos> cat Gemfile |grep 'gem ' |wc -l #=> 101
<andrewvos> hahaha
stamina has quit [Ping timeout: 240 seconds]
smook3 has joined #ruby-lang
sepp2k has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
cmckni3 has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
alekst has joined #ruby-lang
<darix> andrewvos: and Gemfile.lock?
<darix> andrewvos: btw grep -c 'gem '
krombr has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
countdigi has quit [Ping timeout: 256 seconds]
countdigi has joined #ruby-lang
Guest71038 has quit [Quit: Textual IRC Client: www.textualapp.com]
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
rolfb has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 252 seconds]
pellis has joined #ruby-lang
<andrewvos> darix: What about it?
<darix> andrewvos: you can count just with grep
<andrewvos> darix: Oh yeah, i mean what about my Gemfile.lock do you want to know?
Kabaka has quit [Remote host closed the connection]
<darix> andrewvos: how many gems you have in the expanded list
vbatts|work has joined #ruby-lang
<andrewvos> Don't know how to count. There's 684 lines in lock
<andrewvos> Sorry I can't share it, I'm not sure if there's any sensitive information in there
<darix> no problem
<yorickpeterse> my current office: http://is.gd/qQII24
<yorickpeterse> it involves beer, helicopters and improvised kanban boards made out of duct tape
<apeiros> yorickpeterse: what? no cat? :)
<dominikh> I see zero work getting done :P
<yorickpeterse> dominikh: it's Friday, what did you expect?
<yorickpeterse> apeiros: sadly no office cat :<
<dominikh> hehe
<yorickpeterse> can't wait for the actual office to be done
<yorickpeterse> which should be done in about 3 weeks from now
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<crankharder> kanban boards :(
<andrewvos> brew install sl
Uranio has joined #ruby-lang
vbatts|work has quit [Ping timeout: 260 seconds]
<yorickpeterse> crankharder: well it's not entirely a kanban
Kabaka has joined #ruby-lang
jonahR has quit [Quit: jonahR]
apeiros has quit [Remote host closed the connection]
<crankharder> I've had bad experiences with kanban... let it burn
gregmoreno has joined #ruby-lang
io_syl has joined #ruby-lang
<yorickpeterse> in our case it's just a board with the 5 work days on it, combined with some notes about what to do that day
<yorickpeterse> that's just it
<crankharder> yea, burn
<yorickpeterse> so it's sort-of-like-kanban
<yorickpeterse> and it works quite well
carloslopes has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 240 seconds]
randym_ has joined #ruby-lang
prognostikos has joined #ruby-lang
<prognostikos> does anyone prefer/use the :: syntax for class methods?
<yorickpeterse> No, never
nkr has joined #ruby-lang
carloslopes has joined #ruby-lang
hashkey has joined #ruby-lang
<dominikh> don't.
stamina has joined #ruby-lang
<prognostikos> apparently my colleague does - 676 files worth
* prognostikos weeps
atmosx has joined #ruby-lang
jonahR has joined #ruby-lang
<prognostikos> wouldn't be so bad if gf in vim worked
arooni-mobile has quit [Ping timeout: 256 seconds]
vbatts|work has joined #ruby-lang
<cout> I don't think you can code a gf in vim
jsullivandigs has joined #ruby-lang
<prognostikos> weird science
<wmoxam> how can you specify which bundler config file to use inside a ruby script?
sush24 has quit [Ping timeout: 264 seconds]
<atmosx> what is a gf?
DomKM has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<cout> atmosx: a mythical creature that eats money
<atmosx> cout: I don't like it
<cout> hah
GeissT has quit [Read error: Connection reset by peer]
tRAS has quit [Quit: Mother, did it need to be so high?]
sush24 has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.4.0]
judofyr has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
scottschecter has joined #ruby-lang
andrewvos has quit [Ping timeout: 246 seconds]
<injekt> WAT
<injekt> without caps
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gues_____ has joined #ruby-lang
Gues_____ is now known as Guest89323
sustainableweb has joined #ruby-lang
sush24 has quit [Ping timeout: 246 seconds]
fragamus has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
Xzyx987X_ has quit [Read error: Connection reset by peer]
supaiku has quit [Read error: Connection reset by peer]
sustainableweb is now known as ivanoats
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
Paradox has joined #ruby-lang
justinmcp has joined #ruby-lang
melter has joined #ruby-lang
MartynKeigher has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
andrewvos has joined #ruby-lang
sush24 has joined #ruby-lang
Taranis has joined #ruby-lang
DEac- has joined #ruby-lang
mitchty has joined #ruby-lang
meise_ has joined #ruby-lang
bougyman_ has joined #ruby-lang
ericmath1son has joined #ruby-lang
tarruda has joined #ruby-lang
ericmathison has quit [Write error: Broken pipe]
bougyman has quit [Write error: Broken pipe]
tpope_ has joined #ruby-lang
DEac-_ has quit [Write error: Broken pipe]
pellis has quit [Quit: This computer has gone to sleep]
tylersmith has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
wmoxam has quit [Ping timeout: 252 seconds]
tpope has quit [Write error: Broken pipe]
meise has quit [Remote host closed the connection]
Y_Ichiro has joined #ruby-lang
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby-lang
rickhull has joined #ruby-lang
heftig has joined #ruby-lang
corundum has joined #ruby-lang
xuser has joined #ruby-lang
xuser has joined #ruby-lang
stringly_typed has joined #ruby-lang
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
stamina has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
skade has quit [Ping timeout: 276 seconds]
skade has joined #ruby-lang
rickhull has quit [Read error: Connection reset by peer]
rickhull has joined #ruby-lang
emmdeeess has joined #ruby-lang
wmoxam has joined #ruby-lang
<emmdeeess> can anyone tell me how to close a sequel connection?
<emmdeeess> that code keeps starting new processes until my CPU is maxed out
duckinator has joined #ruby-lang
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
<injekt> emmdeeess: db.disconnect
<emmdeeess> that's it?
<injekt> that closes the pool of connections
<emmdeeess> well, that was easy
<emmdeeess> thanks
gregmoreno has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
synthetix has joined #ruby-lang
apeiros has joined #ruby-lang
arooni-mobile has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Ping timeout: 276 seconds]
emmdeeess has quit []
Linkedipsoul has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
<Aloysius1> rickhull: Thanks!
Criztian has quit [Remote host closed the connection]
xxaM has quit [Ping timeout: 256 seconds]
dr_bob has quit [Quit: Leaving.]
stringly_typed has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Ping timeout: 252 seconds]
<MouseTheLuckyDog> Is there a way to save my environment and then reload it from another program?
stef_204 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
gnfisher has joined #ruby-lang
stamina has joined #ruby-lang
stef_204 has joined #ruby-lang
stringly_typed has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
<havenwood> MouseTheLuckyDog: Whatcha mean by environment?
dagobah has quit [Remote host closed the connection]
jinie is now known as jinie_
andrewvos has quit [Ping timeout: 276 seconds]
thanos has joined #ruby-lang
smook3 has joined #ruby-lang
andrewvos has joined #ruby-lang
thanos has quit [Client Quit]
DomKM has quit [Quit: Leaving.]
tsou has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<MouseTheLuckyDog> havenwood, the runtiem envoronment.
swav has quit [Remote host closed the connection]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<whitequark> MouseTheLuckyDog: no, not from within ruby
dhruvasagar has joined #ruby-lang
<havenwood> MouseTheLuckyDog: You might look at MagLev.
carloslopes has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
brianpWins has quit [Ping timeout: 252 seconds]
<whitequark> ^
<whitequark> but it's 1.8 only and based on proprietary tech which only runs on x86_64
<havenwood> head just went to 1.9, but yeah its alpha and still X86_64 constraint
intellitech has quit [Read error: Connection reset by peer]
intellitech has joined #ruby-lang
<Aloysius1> That's weird. Why would MagLev be hardware limited?
gnfisher has quit [Quit: Page closed]
<whitequark> proprietary tech
<whitequark> which is only compiled for x86_64
<Aloysius1> Not very Smalltalky.
<whitequark> huh?
<whitequark> real-world smalltalk is rather enterprisey in general.
<whitequark> regardless; I suppose they got some spare bits by requiring a 64-bit host
<Aloysius1> True.
<whitequark> and since there is no 64-bit ARMs yet on market, and MIPS64 and PPC64 are... marginal, that kind of makes sense
<whitequark> and that all x86 cpus for five years or so support x86_64, even if there's no immediate benefit to using it
<whitequark> heck, even Atoms in netbooks do
<havenwood> Aloysius1: If I recall, you can store as much as you want to the stone (disk persistent), but you have to license for shared-page cache over a couple gigabytes.
andrewvos has quit [Ping timeout: 252 seconds]
corundum has quit [Read error: Connection reset by peer]
<Aloysius1> Trying to think of a (personal) use for it other than "gee, that's cool..."
mucker has quit [Read error: Connection reset by peer]
mucker has joined #ruby-lang
corundum has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
atmosx has quit [Quit: And so the story goes…]
ruurd has quit [Quit: Leaving...]
apeiros has joined #ruby-lang
ruurd has joined #ruby-lang
saarinen has joined #ruby-lang
mikewintermute has joined #ruby-lang
mikewintermute has quit [Client Quit]
brianpWins has joined #ruby-lang
dvarrui has joined #ruby-lang
mikewintermute has joined #ruby-lang
znz_jp has joined #ruby-lang
jxie has joined #ruby-lang
havenn_ has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
kamilc__ has quit [Quit: Leaving...]
jxie_ has quit [Ping timeout: 252 seconds]
DomKM has joined #ruby-lang
stamina has quit [Ping timeout: 264 seconds]
rockpapergoat has joined #ruby-lang
tylersmith has joined #ruby-lang
jxie has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: Leaving...]
jxie has joined #ruby-lang
mytrile has joined #ruby-lang
pellis has joined #ruby-lang
havenn_ has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
<MouseTheLuckyDog> Is there a way to save binding?
<MouseTheLuckyDog> TO a file that is.
<whitequark> no.
<whitequark> neither a closure.
corundum has quit [Read error: Connection reset by peer]
<whitequark> what do you want to achieve?
corundum has joined #ruby-lang
<whitequark> (well, in maglev there is, but I'm assuming you're talking about mri/rbx/jr)
<apeiros> maglev!
<apeiros> somehow it got quite about maglev :(
<apeiros> *quiet
<MouseTheLuckyDog> whitequark, I've got a program I want to snapshot and pickup at a later time.
<dbussink> MouseTheLuckyDog: that's basically a full continuation, so it would need to capture all the state etc.
<dbussink> that's not possible on any ruby afaik
<whitequark> dbussink: I *think* maglev can do that
<whitequark> after you can transfer closures, there isn't much left
<dbussink> whitequark: it might be yeah
<whitequark> besides it's smalltalk. something something virtual image
<whitequark> so it can persist either way
justinmburrous has joined #ruby-lang
<dbussink> yeah, you wouldn't need this for that anyway then
<dbussink> just snapshot the whole vm
GarethAdams has joined #ruby-lang
<whitequark> MouseTheLuckyDog: maybe the OS can support that?
stringly_typed has quit [Quit: Computer has gone to sleep.]
<whitequark> wow I didn't think someone actually wrote that
<whitequark> it can even restore network connections
<whitequark> uber cool
ruurd has joined #ruby-lang
corundum has quit [Read error: Connection reset by peer]
corundum has joined #ruby-lang
<brixen> maglev should be able to do that
<brixen> it was demo'd in a debugger at pdx.rb
<brixen> ask in #maglev-ruby
ruurd has quit [Client Quit]
hahuang65 has joined #ruby-lang
corundum has quit [Read error: Connection reset by peer]
corundum has joined #ruby-lang
Guest89323 has quit [Quit: Textual IRC Client: www.textualapp.com]
Uranio has quit [Quit: while you reading this, a kitty dies]
workmad3 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
stringly_typed has joined #ruby-lang
stringly_typed has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
ruurd has joined #ruby-lang
marr has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
bgant has joined #ruby-lang
ivanoats has quit [Disconnected by services]
sustainableweb has joined #ruby-lang
zmike123 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
ruurd has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 260 seconds]
andrewvos has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
rikai has joined #ruby-lang
tonni has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
GarethAdams has joined #ruby-lang
rikai_ has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
workmad3 has quit [Ping timeout: 268 seconds]
firstdayonthejob has joined #ruby-lang
zmike123 has quit [Ping timeout: 252 seconds]
tdy has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
tdy has joined #ruby-lang
andrewvos has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby-lang
wesside has joined #ruby-lang
wesside has quit [Max SendQ exceeded]
wesside has joined #ruby-lang
jinie_ is now known as jinie
nathanstitt has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
zmike123 has joined #ruby-lang
elia has joined #ruby-lang
__butch__ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
dvarrui has quit [Quit: Ex-Chat]
elia has quit [Ping timeout: 246 seconds]
__butch__ has quit [Read error: Connection reset by peer]
zmike123 has quit [Quit: Выходжу]
jonahR has quit [Quit: jonahR]
__butch__ has joined #ruby-lang
zmike123 has joined #ruby-lang
diddlybop has joined #ruby-lang
vlad_starkov has joined #ruby-lang
symm- has joined #ruby-lang
saarinen has quit [Ping timeout: 264 seconds]
henrikhodne has joined #ruby-lang
saarinen has joined #ruby-lang
<diddlybop> hi, does anyone have experience with the pdf-reader gem?
vlad_starkov has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby-lang
Nisstyre has quit [Read error: Operation timed out]
nazgob has joined #ruby-lang
nazgob has quit [Client Quit]
randalla1ordon has joined #ruby-lang
randallagordon has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
cmckni3 has joined #ruby-lang
henrikhodne has quit [Quit: Goodbye.]
marr has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
arooni-mobile has joined #ruby-lang
__butch__ has quit [Read error: Connection reset by peer]
tenderlove has quit [Remote host closed the connection]
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
hahuang65 has quit [Quit: Textual IRC Client: www.textualapp.com]
mossplix has joined #ruby-lang
senseinerd has joined #ruby-lang
senseinerd has quit [Client Quit]
arooni-mobile has quit [Ping timeout: 276 seconds]
OnyxRaven has joined #ruby-lang
t_ has joined #ruby-lang
pellis has quit [Quit: This computer has gone to sleep]
nathanstitt has quit [Ping timeout: 241 seconds]
sepp2k1 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
pellis has joined #ruby-lang
knu1 has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
jinie is now known as jinie_
nathanstitt has joined #ruby-lang
sepp2k has quit [Ping timeout: 252 seconds]
forrest has joined #ruby-lang
pellis has quit [Client Quit]
Kabaka has quit [Max SendQ exceeded]
xuser has quit [Ping timeout: 261 seconds]
xuser has joined #ruby-lang
xuser has joined #ruby-lang
xuser has quit [Changing host]
Uranio has joined #ruby-lang
stamina has joined #ruby-lang
Uranio has quit [Client Quit]
andrewvos has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ironcamel has joined #ruby-lang
vlad_starkov has joined #ruby-lang
diddlybop has left #ruby-lang [#ruby-lang]
jsullivandigs has quit [Ping timeout: 252 seconds]
mossplix has quit [Read error: Connection reset by peer]
Kabaka has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby-lang
apeiros has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
__butch__ has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
postmodern has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 256 seconds]
smook3 has joined #ruby-lang
jinie_ is now known as jinie
rockpapergoat has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
verto has quit [Quit: Textual IRC Client: www.textualapp.com]
bgant has quit [Quit: bgant]
forrest has quit [Ping timeout: 248 seconds]
bgant has joined #ruby-lang
judofyr has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
<judofyr> is there a way to override a class' name/inspect such that an_instance.inspect includes that name?
<judofyr> >> class F; def self.inspect; "Foo" end end; F.new
<eval-in> judofyr => #<F:0x40efd02c> (https://eval.in/33599)
<judofyr> I want #<Foo:…>
arooni-mobile has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
__butch__ has joined #ruby-lang
<yorickpeterse> F.new here would call #inspect
<yorickpeterse> not .inspect
<yorickpeterse> so you'll want a regular instance method
<yorickpeterse> >> class Derp; def inspect; 'herro'; end; end; Derp.new.inspect
<eval-in> yorickpeterse => "herro" (https://eval.in/33601)
ikrima has joined #ruby-lang
<yorickpeterse> >> class Derp; def self.inspect; 'herro'; end; end; Derp.inspect
<eval-in> yorickpeterse => "herro" (https://eval.in/33602)
zmike123 has quit [Quit: Выходжу]
<judofyr> yorickpeterse: yes, I know
<judofyr> yorickpeterse: but it includes F in the input
forrest has joined #ruby-lang
<judofyr> yorickpeterse: I want to change that
<judofyr> yorickpeterse: without re-implementing it
<yorickpeterse> Ah, no, you have to re-implement the entire method
<judofyr> yorickpeterse: I guess I can override #inspect and .gsub, but it feels a bit hacky :/
<yorickpeterse> at least as far as I know
<judofyr> bummer
saarinen has joined #ruby-lang
<yorickpeterse> fun fact: there's some shit going on in MRI where it will basically call #to_s/#inspect even if it's not defined
<yorickpeterse> As in, somewhere deep down in the guts of MRI it gets that format out
pipework has quit [Remote host closed the connection]
Gues_____ has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
Gues_____ is now known as Guest48107
<judofyr> def inspect; super.sub(/\A#<#<(.*?)>:0x/, "#<#{self.class.name}:0x") end
<judofyr> hacky but works
<whitequark> judofyr: no, don't think you can
<whitequark> MRI accesses the class name directly
<judofyr> :(
<whitequark> judofyr: what you need that for?
jinie is now known as jinie_
justinmburrous has joined #ruby-lang
tenderlove has joined #ruby-lang
<judofyr> whitequark: in a web framework-thingie I have a method called "helper" that defines a method that's available on all controllers
<judofyr> whitequark: that's simple enough: subclass the controller and include the module with the method
<whitequark> rb_class_name.
<judofyr> whitequark: I don't want to extend every single instance
mossplix has joined #ruby-lang
<judofyr> whitequark: and you can instantiate an app multiple times with different helpers (but they use the same controller)
<judofyr> app1.helper(:db) { … }; app2.helper(:db) { … }
<judofyr> although I might need to rethink this approach
<judofyr> it has some flaws :(
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<judofyr> or: rethink the requirements
mbj has quit [Quit: leaving]
tbuehlmann has quit [Remote host closed the connection]
wallerdev has quit [Remote host closed the connection]
<whitequark> yeah
<whitequark> for example, replace inheritance with indirection
wallerdev has joined #ruby-lang
tenderlove has quit [Ping timeout: 245 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
mossplix has quit [Read error: Connection reset by peer]
kamilc__ has joined #ruby-lang
forrest has quit [Ping timeout: 260 seconds]
crackity_jones has joined #ruby-lang
justinmb_ has joined #ruby-lang
<judofyr> >> class Foo; end; Foo.method_defined?(:inspect)
<eval-in> judofyr => true (https://eval.in/33603)
tenderlove has joined #ruby-lang
LeomBurke has joined #ruby-lang
justinmburrous has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
justinmb_ has quit [Remote host closed the connection]
LeomBurke has quit [Quit: Bye]
<judofyr> whitequark: I found a better solution: now I just define a method on the main superclass that checks in a @helpers-hash
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
srji has joined #ruby-lang
stamina has quit [Ping timeout: 240 seconds]
LeomBurke has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
mikewintermute has quit [Quit: mikewintermute]
saarinen has joined #ruby-lang
<judofyr> thanks, this is much better
forrest has joined #ruby-lang
andrewvos has quit [Ping timeout: 252 seconds]
andrewvos has joined #ruby-lang
face has quit [Remote host closed the connection]
face has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Rizzle has quit [Ping timeout: 255 seconds]
hhatch has quit [Ping timeout: 246 seconds]
mikewintermute has joined #ruby-lang
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
LeomBurke has quit [Quit: Bye]
vlad_starkov has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby-lang
Rizzle has joined #ruby-lang
justinmburrous has joined #ruby-lang
saarinen has quit [Quit: saarinen]
mossplix has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
cored has quit [Ping timeout: 264 seconds]
hhatch has joined #ruby-lang
adambeynon has joined #ruby-lang
mikko has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby-lang
wesside has quit [Quit: Computer has gone to sleep.]
synthetix has quit [Ping timeout: 252 seconds]
bgant has quit [Quit: Leaving.]
nkr has quit [Quit: Linkinus - http://linkinus.com]
mucker has quit [Quit: leaving]
andrewvos has quit [Ping timeout: 260 seconds]
Rizzle has quit [Read error: Connection reset by peer]
arooni-mobile has joined #ruby-lang
Rizzle has joined #ruby-lang
philnyc has joined #ruby-lang
stamina has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
swav has joined #ruby-lang
ericmath1son has quit [Quit: leaving]
<judofyr> can anyone explain me how this can not be bug?
thiagoborges has quit [Remote host closed the connection]
<judofyr> the outer #any? defines the `spec` variable
<judofyr> but it's never used
<whitequark> likely just a bug
saarinen has joined #ruby-lang
justinmb_ has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
justinmburrous has quit [Ping timeout: 240 seconds]
nveselinov has quit [Ping timeout: 256 seconds]
nveselinov has joined #ruby-lang
mikko has joined #ruby-lang
duper is now known as a
a is now known as duper
dankest has joined #ruby-lang
<judofyr> WHY U NO TEST?
knu1 has joined #ruby-lang
<drbrain> judofyr: bundler has no unit tests
<drbrain> judofyr: which means adding any is nearly impossible
saarinen has quit [Quit: saarinen]
pskosinski has quit [Remote host closed the connection]
pskosinski has joined #ruby-lang
GarethAdams has quit [Read error: Connection reset by peer]
GarethAdams has joined #ruby-lang
LeomBurke has joined #ruby-lang
mikko has quit [Ping timeout: 260 seconds]
<judofyr> I find it amazing that Bundler actually works
mbj has joined #ruby-lang
<judofyr> in related news: I hate Gem::Specification#each :( /cc drbrain
havenwood has joined #ruby-lang
saarinen has joined #ruby-lang
<drbrain> why do you hate it?
<judofyr> drbrain: it's slooow
<judofyr> drbrain: I have an ugly monkey patch that gets rid of #each: https://github.com/judofyr/quickgem
faramir has quit [Ping timeout: 264 seconds]
<judofyr> drbrain: this test takes ~1s without quickgem and ~350ms with it
<judofyr> well, more like ~400ms
<judofyr> but still
vlad_starkov has joined #ruby-lang
<judofyr> that's very noticeable
<drbrain> there's a pull request I'll get to shortly that adds some caching
justinmb_ has quit [Remote host closed the connection]
mikewintermute has quit [Quit: mikewintermute]
<drbrain> I'm not sure how similar it is to yours as I've only glanced at each
justinmburrous has joined #ruby-lang
<judofyr> drbrain: oh. that's cool. I posted something on rubygems-developers but no-one answered :(
forrest has quit [Quit: Leaving]
<whitequark> bundler kills me on this project
<whitequark> $ time bundle
<drbrain> I am very behind on email
<whitequark> bla bla SIX MINUTES
<whitequark> *headdesk*
<judofyr> drbrain: link to PR?
t_ has quit [Remote host closed the connection]
<drbrain> I think https://github.com/rubygems/rubygems/pull/569 is what I was thinking about
havenwood has quit [Ping timeout: 256 seconds]
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
<zenspider> whitequark: SIX MINUTES?!?!?!
<zenspider> please tell me you're exaggerating
<whitequark> zenspider: don't think so
<whitequark> let me re-run it
<zenspider> holy shit
<whitequark> each Using gemname is for 1-1.5 seconds
<whitequark> and there are literally hundreds of them
<whitequark> yikes.
<zenspider> how long does it take for just `gem outdated` ?
<zenspider> I'm curious how much of it is latency on rubygems.org or not
<drbrain> I wouldn't be surprised that network latency is a decent chunk of that time
ffio has joined #ruby-lang
_ffio_ has quit [Ping timeout: 245 seconds]
<zenspider> I _thought_ there was talk that a CDN was set up in europe and/or asia... but I could be smoking something
<drbrain> for gems, but likely not for the bundler API
jonahR has quit [Quit: jonahR]
<whitequark> zenspider: gem outdated is super slow
<whitequark> still running
<zenspider> ooh ... good point.
<zenspider> whitequark: how many gems do you have? it'll be proportional to that
__butch__ has quit [Quit: Leaving.]
* whitequark goes off to make some tea
<whitequark> 314
<whitequark> $ gem list --local | wc -l
<zenspider> so time and then divide by `gem list | wc -l` or somesuch
workmad3 has joined #ruby-lang
<zenspider> wait.. wc -l won't be right if you have multiple versions installed
<zenspider> or... n/m. I'm an idiot
<zenspider> need more coffee
<whitequark> it won't indeed
breakingthings has quit [Quit: breakingthings]
<whitequark> ok. bundle: real 3m33.048s
<whitequark> gem outdated: real 4m29.650s
<whitequark> and I have a rather beefy notebook and 50mbit uplink
<zenspider> yeah. it's atlanta if I had to guess
Nuru has joined #ruby-lang
<zenspider> err... atlantic
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zenspider> jesus
<zenspider> well... you're hitting 0.86s / gem for outdated
<zenspider> that's on the old api
<zenspider> that's not terrible
<zenspider> mine is 0.24s / gem for reference
<zenspider> and taht's over LTE
<zenspider> I only have 11 gems installed globally :)
<zenspider> we should get tenderlove to do this
<whitequark> (LTE) dunno which you use, but LTE over here has a latency not much worse than landline!
<whitequark> dozens of ms
* whitequark <3 good LTE
<whitequark> zenspider: I think I have a lot of versions installed.
<whitequark> [3] pry(main)> `gem list --local`.scan(/\d\.\d\.\d/).count
<whitequark> => 459
<judofyr> whitequark: there's also Gem::Specification.count
<zenspider> that's inaccurate too.... # lines + number of commas :)
<yxhuvud> does it have to do a network roundtrip for each gem?
<whitequark> [4] pry(main)> Gem::Specification.count
<whitequark> => 513
natevick has joined #ruby-lang
<whitequark> even more
<whitequark> (I guess I've missed on beta/pre's)
<whitequark> so... is half of thousand of gems a problem for rubygems?
<judofyr> I have 481 here
<judofyr> Bundler isn't that slow here
natevick has quit [Client Quit]
<judofyr> but I guess it's a combination of a Gemfile with many gems?
natevick has joined #ruby-lang
<zenspider> whitequark: "1" is a valid version
<zenspider> 1.2 too
nveselinov_ has joined #ruby-lang
<whitequark> right
<zenspider> back when we could download an index and cache it it'd be much faster.. now everything is network bound
<whitequark> judofyr: well... this project uses 225 gems
<whitequark> and yes that's insane
<zenspider> and europe & asia are more fucked because it is lots of little requests
<whitequark> hm... I think I understand why this may happen
nveselinov_ has quit [Client Quit]
<whitequark> I have git & path gems, so it probably skips bundler resolution API
<judofyr> whitequark: does that happen *every* time you run `bundle`?
krombr has quit [Quit: krombr]
<whitequark> judofyr: if it changes anything, then yes
tonni has joined #ruby-lang
<whitequark> just `bundle` after it successfully built stuff is 2s
nveselinov has quit [Ping timeout: 248 seconds]
<whitequark> but if I dare to update as much as a single gem... I'm fucked
<judofyr> whitequark: you can run `DEBUG_RESOLVED=1 bundle` to see how it tries to resolve
<zenspider> tenderlove's numbers: 1.226495726s / gem on our cafe's shitty network
<zenspider> he's got 234 gems
<judofyr> whitequark: warning: lots of output, you want to pipe that
<judofyr> whitequark: would be interesting to see if something trips up the resolver
<judofyr> e.g. number of FAIL
<zenspider> I don't think rubygems uses net-http-persistant
<drbrain> it uses equivalent code
<zenspider> well that makes less sense then :(
<whitequark> what about... parallelizing downloads?
<judofyr> the resolver isn't parallel
<judofyr> so it doesn't know what to download
<judofyr> but I guess it could download more than required
<judofyr> and just discard if it made a bad guess
<judofyr> but I'm not touching that file
<drbrain> parallelizing downloads of .gem files is easier than hitting the bundler API
<judofyr> that is true, but is downloading the .gem files a problem?
Linkedipsoul has quit [Ping timeout: 264 seconds]
Guest48107 has quit [Quit: Textual IRC Client: www.textualapp.com]
arooni-mobile has quit [Read error: Operation timed out]
Linkedipsoul has joined #ruby-lang
LeomBurke has quit [Quit: Bye]
<drbrain> likely only when you have high bandwidth and latency
mossplix has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby-lang
<yxhuvud> how do yum and similar solve problems like this?
matti has quit [Quit: Oh dear...]
<whitequark> local dep resolution
<judofyr> Sequel takes 115ms to load here :(
<whitequark> no idea why rubygems stopped using it
<drbrain> ?
<judofyr> whitequark: because the index is huge?
<whitequark> judofyr: define huge
tomzx_mac has joined #ruby-lang
pellis has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
<whitequark> debian's got 30K packages and it's fine
<drbrain> there are 300,000 gems
<judofyr> and every gem has multiple versions
<whitequark> holy crap
<judofyr> s/every/most/
<judofyr> and those who *have* multiple versions, probably have dozens
<yxhuvud> would it be too complex to have a partial index for the 1% most popular gems and back off to the slow variant for the rest?
<drbrain> the average size of a gemspec for my gems is just under 2KB
natevick has quit [Quit: natevick]
<judofyr> you don't need the full gemspec though
<judofyr> only the requirements
<drbrain> that's not the full gemspec
<yxhuvud> also, gemspecs should look similar enough to zip awefully well.
philnyc has quit [Ping timeout: 256 seconds]
<yxhuvud> (maybe not if stripped to reqs)
<whitequark> yxhuvud: you still need RAM to unpack
<drbrain> André Arko is working on a new format that likely will use HTTP Range requests
<whitequark> sooo 2K gemspec * 300K gems = 600M of index data
<whitequark> which compresses say to 60M of stuff on disk, which you still need to load, unpack, and operate on
<drbrain> just the gem names and versions is 4.6MB uncompressed
<whitequark> don't forget that it will expand twice or so in ruby's heap
<judofyr> you might not need to store everything in-memory
<whitequark> and graph operations genereally tend to be quite nonlocal wrt/ memory, which means that you will very likely to load it completely.
<whitequark> *need to
<judofyr> whitequark: well, you rarely touch the whole graph
<whitequark> judofyr: point is, you can't seek the compressed graph
mossplix has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
<whitequark> neither you can seek the uncompressed one well
<whitequark> or at least I'm not aware of such algorithms
Nuru has quit [Quit: Bye bye]
<yxhuvud> sort the data (ouch), chunk it up in zipped chunks, create an index that says where each chunk start and end, stream through each matching chunk. Shouldn't take all that much memory, and each individual lookup should be reasonably fast. doing several hundred may not be the fastest operation around, but should not take minutes. especially not if queueing up several lookups so files can be read in parallell.
alekst has quit [Ping timeout: 246 seconds]
<yxhuvud> (or well, the files should not be read in parallel, but one can be read while another is streamed through.
<whitequark> yxhuvud: sure. however, graph resolution algorithms have poor spatial locality
firstdayonthejob has quit [Ping timeout: 264 seconds]
<whitequark> which means, your requests to the backing store will be distributed pretty evenly; in other words, you'll need to load a chunk for each gem.
<whitequark> given that linear reads are much faster than random, and CPUs are much, much faster than hard drives... it's very likely that it's faster to just load the whole thing
<judofyr> whitequark: still faster than network
<whitequark> or rather, that seeking over it is even slower than loading whole thing :)
<whitequark> judofyr: sure. the network was out of equation here
<judofyr> whitequark: well, it's also a trade-off of how much memory you want to use
<whitequark> judofyr: time<>RAM, yes
<judofyr> I love fast tests. in "real 0m0.387s" this test: loads the app, sets up the schema in SQLite in-memory, starts a HTTP server on a local port, connects to the server and asserts on the response.
* whitequark silently weeps
<judofyr> and 100ms of that is loading Sequel; 100ms is loading other Ruby code
<judofyr> s/loading/requiring/
<judofyr> my Rails test don't even start running until 4-5 seconds or so
hhatch has quit [Read error: Operation timed out]
<whitequark> $ time rspec... about four minutes
<drbrain> whitequark: you can operate zlib in a way that allows seeking to byte offsets in the uncompressed stream
<whitequark> no wonder I basically gave up writing tests for this app :/
<whitequark> drbrain: hm, does the ruby zlib binding allow it?
<drbrain> I forget if it does or not
<drbrain> it may only have partial support
x0f_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
verto has joined #ruby-lang
vlad_starkov has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
slowhands has joined #ruby-lang
matti has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
havenwood has joined #ruby-lang
<erikh> some of my vm testing has runs that are 10-20 minutes
<erikh> unfortunately necessary
<erikh> it's ... really tedious
<whitequark> erikh: rails and rspec. sigh
<whitequark> I would migrate this project to minitest but I don't work much on it anymore, thankfully/unfortunately
<erikh> either get friendly with mocks and accept the fact you're not going to get real test data back or .. yeah
vlad_starkov has quit [Ping timeout: 256 seconds]
<whitequark> and AR... we're stuck with AR. pretty much.
<erikh> I doubt @ four minutes
<erikh> rspec is the issue
<erikh> AR on the other hand might be
<whitequark> erikh: well, maybe not rspec itself is slow
solars has quit [Ping timeout: 260 seconds]
<whitequark> but it surely encourages the style of programming which is not very performant
<erikh> rspec is slow, but not *that* slow. :)
<erikh> not going to disagree with that, but I avoid rspec
<erikh> so it's been a while since I've had to use it
<whitequark> I think that various combinations of let/before(:each)/etc result in a LOT of unnecessary db roundtrips
<erikh> oh, very possible, yeah.
<whitequark> it helps a little bit to have the DB on tmpfs, but really not much
<whitequark> ruby is the bottlenech
<judofyr> as long as I can run a single test, I don't really care how long the whole suite takes
<erikh> tmpfs probably isn't getting you much if your database is ram-starved
<judofyr> but if it takes more then 10s to run a single test, I'm not going to run that test often…
<yxhuvud> One really has to avoid hitting the db whenever possible.
<whitequark> judofyr: when single test runs for more than 15 seconds, I get bored and switch to reddit
<whitequark> exactly
<whitequark> erikh: don't think it is. I used tmpfs to avoid sync() calls waiting the hard drive
<whitequark> (yeah, no SSD)
<erikh> sure, I get it
<erikh> but if you're using postgres, and depending on the mysql config, more ram == less disk writes
<whitequark> but, I suck at configuring postgres, suck hard
<erikh> just set shared_buffer_cache to the ceiling
<erikh> it'll go pretty far.
<whitequark> I've no idea how it works. I grok SQL, I grok the insides of the DB
<whitequark> but the config? impenetrable.
<whitequark> hmm
<erikh> there are other tunables for indexes and such, but they all pull from the shared buffers IIRC
<whitequark> it has like six config files in /etc -_-
<erikh> postgresql.conf likely
<whitequark> god I hate postgres's UI
<erikh> it's not my favorite either
<erikh> ok, back to scanner time
<whitequark> no shared_buffer_cache in either
<whitequark> ah. shared_buffers = 24MB
<erikh> yeah, heh
<erikh> 24MB
<erikh> oh my
<whitequark> 4G should be fine
<erikh> 4G should probably help a great deal
<erikh> but that page above will help if it's still not fast enough
<erikh> you'll have to adjust shm crap
<erikh> shmmax sysctl on linux IIRC
<whitequark> oh yes, it just barfed
OnyxRaven has quit [Ping timeout: 248 seconds]
<erikh> anyhow, gotta go back to what I was doing
<erikh> that page will help
<whitequark> yeah, thanks!
<erikh> memory for indexes and buffers are the big things.
<erikh> and watch your queries for temp table shit
<erikh> that's killing your prod perf too
<whitequark> prod's got about 30 req/s
<whitequark> it used to be bad... when each single hit on static resources did two db roundtrips
smook3 has joined #ruby-lang
<whitequark> but we deployed the fix just today. instagood
<erikh> 30 req/s is ... not exactly great
<whitequark> erikh: no no, 30 req/s is our traffic
<erikh> oh
<whitequark> down from... multiply 30 req/s to an average of three dozen assets
<erikh> CDN?
<erikh> oh, I didn't read
<erikh> ok, really gotta go now
<whitequark> can't. but I rewrote half of the infra to make nginx serve that
<whitequark> sure
symm- has quit [Ping timeout: 248 seconds]
Nisstyre has quit [Quit: Leaving]
arooni-mobile has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
<zenspider> man I love being able to do this: for f in *.el ; do of new emacs Blog about $f; done
judofyr has quit [Remote host closed the connection]
x0f_ has quit [Ping timeout: 260 seconds]
<zenspider> then I just organize in omnifocus and boom... shit gets done
x0f has joined #ruby-lang
srji has quit [Ping timeout: 248 seconds]
jsullivandigs has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
x0f has joined #ruby-lang
<whitequark> hahaha this rspec suite is awesome
<whitequark> Finished in 16 minutes 7.84 seconds
<whitequark> when coworker said he reduced the time wrt/ original 20 minutes he wasn't joking
gregmoreno has quit [Read error: Connection reset by peer]
gregmore_ has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
apeiros has joined #ruby-lang
DKnox has joined #ruby-lang
chana has joined #ruby-lang
mdedetrich has joined #ruby-lang
<zenspider> whitequark: how many tests?
DomKM has quit [Quit: Leaving.]
<whitequark> 551 examples, 2 failures, 20 pending
stamina has quit [Ping timeout: 246 seconds]
<zenspider> gah. that's just shitty tests then. damn.
cstrahan has quit [Ping timeout: 245 seconds]
<whitequark> yeah :/
<whitequark> practically every test does a LOT of persisting of factory-created objects
arubin has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
nathanstitt has quit [Quit: I growing sleepy]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
randalla1ordon has left #ruby-lang [#ruby-lang]
mossplix has quit [Quit: mossplix]
pellis has quit [Quit: Leaving]
srji has joined #ruby-lang
tenderlove has quit [Ping timeout: 260 seconds]
mbj has quit [Quit: leaving]
marr has quit [Ping timeout: 252 seconds]
setmeaway has joined #ruby-lang
nathanstitt has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
chana has quit [Quit: chana]
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]