<brianpWins>
banisterfiend: 1 more question. So the code you gist. In layman's terms would that be a piece of the eval in REPL? After it gets a pointer ruby does the inspect?
MehLaptop has joined #ruby-lang
Averna has joined #ruby-lang
wmoxam has quit [Quit: leaving]
Guest31807 has quit [Quit: Leaving]
pkrnj has joined #ruby-lang
poga has quit [Remote host closed the connection]
Vektur has quit []
mjio has quit []
sebasoga has quit [Quit: Computer has gone to sleep.]
JoelMcCracken has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
beho_ has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
skade has joined #ruby-lang
wallcloc_ has quit [Remote host closed the connection]
xalei has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
amerine has quit [Read error: Connection reset by peer]
<zenspider>
charliesome: is that your bot?
<zenspider>
yup. looks like it.
<zenspider>
corundum is the only bot in here
wallerdev has quit [Quit: wallerdev]
Weems has quit []
mbull9 has quit [Remote host closed the connection]
<apeiros_>
zenspider: drbrain agreed to give it a try
beho has joined #ruby-lang
chekcmate has joined #ruby-lang
* zenspider
sighs
<zenspider>
the times... they change
srbaker has quit [Quit: Computer has gone to sleep.]
<apeiros_>
is #ruby-lang still `register to speak`?
mixandgo has joined #ruby-lang
<chekcmate>
yes
<rking>
zenspider: Oh, random thing. Several months ago I asked you if you'd entertain a multi_stub for minitest that didn't require nesting blocks. I wanted to say that I've not forgotten about the idea, or even stopped wanting it -- but my issue is I'm not sure if it's encouraging the wrong things.
<rking>
Maybe each stub should cost you one tooth and when you lose all your teeth you just have to eat applesauce for the rest of that test file.
<rking>
(But I do a lot of legacy coding, so the ridiculously powerful mock libs are a way out for me)
maxmanders has joined #ruby-lang
<zenspider>
apeiros_: yeah. keeps the spammers out
<apeiros_>
also makes the bot a lesser problem
<zenspider>
rking: agreed
<zenspider>
on both counts
<rking>
Which of the two directions would you rather see MiniTest's mocks go?
<rking>
What about a thing like i_suck_and_my_tests_are_order_dependent
<charliesome>
zenspider: ah yep that's my bot. it's of the less spammy variety so i'm hoping it's ok
rue_XIV has joined #ruby-lang
<apeiros_>
rking: don't. sanity is dull.
<rking>
Oh? You like insanity? Perhaps you would like to apply for a position as "Rails Developer at <my company".
<rking>
+>
<apeiros_>
depends. my insanity has a high upkeep :D
<jaska>
sanity scmanity
rue has quit [Ping timeout: 256 seconds]
<yorickpeterse>
whitequark: re: diamondback, wasn't that done using source code annotations?
brianpWins has quit [Quit: brianpWins]
hasimo has quit [Remote host closed the connection]
psycho_one has quit [Remote host closed the connection]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
simi has quit [Ping timeout: 258 seconds]
<zenspider>
aaaand that's why I don't like bots
hasimo has joined #ruby-lang
blacktulip has joined #ruby-lang
judofyr has joined #ruby-lang
<yorickpeterse>
zenspider: little to do with bots and everything to do with a shitty network
<charliesome>
yorickpeterse: not a shitty network, cowboy coding in production
<charliesome>
it's all good now
zmack has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 245 seconds]
alessio_rocco has joined #ruby-lang
dr_bob has joined #ruby-lang
darix has quit [Ping timeout: 264 seconds]
<yorickpeterse>
pffff, change your nick fgt
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
<yorickpeterse>
/nick charlie-cowboy
<charliesome>
hehe
xxaM has quit [Remote host closed the connection]
<andrewvos>
cone to candy mountain charlie
thebastl has quit [Ping timeout: 245 seconds]
<tbuehlmann>
charliesome, is the bot code available somewhere for me?
<charliesome>
nope
<charliesome>
it just uses the eval.in api anyway so it's pretty straight forward
adambeynon has joined #ruby-lang
<yorickpeterse>
y u no open sores it
<charliesome>
something about security and obscurity
hasimo has quit [Remote host closed the connection]
<charliesome>
also it was open source at one point and then i decided that it'd be easier for me if i could just bung the config in the repo so i closed it
<Paradox>
cinch+httparty=done
<Paradox>
not hard to do
<charliesome>
yeah waht Paradox said
<Paradox>
charliesome, its a cinchbot?
<charliesome>
Paradox: yeah
<Paradox>
heh
mbull9 has quit [Remote host closed the connection]
<Paradox>
i've played with cinch
<charliesome>
cinch is really good
<Paradox>
i keep meaning to build a nice full oper bot that does timed bans
<Paradox>
but the most ive done is a bot that looks up reddit crap
<Paradox>
i started building one with mongo
<Paradox>
lost interest
<Paradox>
few months later started one with activerecord
<Paradox>
attempted to swap to sequel
<Paradox>
lost interest
<chekcmate>
you need more crazy ideas
mbull9 has joined #ruby-lang
<Paradox>
i made a ruby script that slaves computers into a giant pong game screensaver
<chekcmate>
eventually it won't get boring
<Paradox>
i've got a shitload of shit on my github
<Paradox>
but very little of it is relevant
<judofyr>
I've got too many projects that I find interesting :(
<charliesome>
judofyr: same problem. too many ideas, too little time
<yorickpeterse>
whitequark: my approach doesn't and using diamondback's approach wouldn't gain me a lot
<apeiros_>
or know it a bit at least
<zenspider>
fuck me running... this talk is gonna kill me
<zenspider>
apeiros_: gah. I try not to
<Paradox>
oh yeah
<apeiros_>
zenspider: know any good resources for x86-64 ASM?
<Paradox>
i wrote a sinatra-powered tea timer
<Paradox>
lol
<zenspider>
apeiros_: I got nothing for 64
<whitequark>
yorickpeterse: discover sed
<yorickpeterse>
get out
<whitequark>
yorickpeterse: wat?
tms has left #ruby-lang [#ruby-lang]
<whitequark>
I've suggested you a way to get thousands of annotations for free
<whitequark>
so, I should now "get out"? huh.
mbull9 has quit [Remote host closed the connection]
<yorickpeterse>
In the time it takes me to get the source code, figure out where the fuck it all is and write some crazy Bash for it I can do the entire stdlib/core myself
<apeiros_>
right now I use nothing at all. I'd want it to run on osx.
<apeiros_>
whitequark: shits and giggles :)
* apeiros_
probably shouldn't research such stuff at work, but jquery just bored me out
<manveru>
nasm works on osx afaik
<whitequark>
apeiros_: the simplest way to write asm I know yet is to write LLVM assembly
<whitequark>
and then let the thing figure out the details of the platform
huydx has quit [Quit: huydx]
<zenspider>
I used nasm to build wilson
<apeiros_>
whitequark: llvm assembly looks very different from other assemblies, no?
<zenspider>
but that was 32 bit land at the time
<yorickpeterse>
assembly in general differs based on the architecture/platform
<whitequark>
apeiros_: yes
<apeiros_>
yorickpeterse: sure, but most assemblies look very similar. llvm assembly does not.
<whitequark>
mostly because it operates 0.5 levels of abstraction higher
<yorickpeterse>
ah
havenwood has quit [Remote host closed the connection]
<apeiros_>
llvm assembly… I might give it another try. last time I tried 2 different tutorials, and got stuck at the very first examples (which were ought to just run/work)
barttenbrinke has quit [Remote host closed the connection]
beiter has joined #ruby-lang
<zenspider>
ddfreyne: no. I should fix that
Wildhoney has quit []
alessio_rocco has quit [Ping timeout: 256 seconds]
alessio_rocco has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
cultureulterior has joined #ruby-lang
nkr has joined #ruby-lang
realDAB has joined #ruby-lang
kith_ is now known as kith
lcdhoffman has quit [Quit: lcdhoffman]
maxmanders has quit [Ping timeout: 256 seconds]
joe212 has quit [Quit: Sto andando via]
<antbody>
zenspider: You should do it University style, first 20 slides you go through with great detail. Then mumble something random and skip the last 80 slides in 5 minutes.
<antbody>
Then ask "any questions?" while you walk out of the door.
david1 has joined #ruby-lang
david1 has left #ruby-lang [#ruby-lang]
david3 has joined #ruby-lang
david3 has left #ruby-lang [#ruby-lang]
simi has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
retro|cz has joined #ruby-lang
maxmanders has joined #ruby-lang
Honeycomb has quit [Quit: Leaving.]
charliesome has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
cultureulterior has quit [Ping timeout: 260 seconds]
fsvehla has joined #ruby-lang
Stilo has joined #ruby-lang
Bwild has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
alessio_rocco has quit [Ping timeout: 255 seconds]
Cherrum has quit [Read error: Connection reset by peer]
Cherrum has joined #ruby-lang
alessio_rocco has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
_whitelogger has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni_ has joined #ruby-lang
Bwild has joined #ruby-lang
GarethAdams has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
martynas has joined #ruby-lang
srbaker has joined #ruby-lang
martynas is now known as Guest34045
Guest34045 has left #ruby-lang [#ruby-lang]
kgrz has joined #ruby-lang
Bwild has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
Bwild has joined #ruby-lang
dhruvasagar has joined #ruby-lang
stardiviner has joined #ruby-lang
banisterfiend has joined #ruby-lang
realDAB has quit [Quit: realDAB]
cultureulterior_ has quit [Ping timeout: 264 seconds]
chekcmate has joined #ruby-lang
barttenbrinke has joined #ruby-lang
<chekcmate>
why do I get a SSL error, although I edited the gem source? :(
<injekt>
chekcmate: what?
<chekcmate>
I started to take a look at rails
<chekcmate>
installed ruby 1.9.3 on a fresh machine
<chekcmate>
and followed the steps to get rails
<chekcmate>
no problems until rails new *name*
<injekt>
what's your gem -v
<chekcmate>
2.0.3
<injekt>
and bundle --version?
barttenbrinke has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Remote host closed the connection]
<chekcmate>
There is a chance you are experiencing a mitm attack, but most likely your system doesn't have the CA certs needed for ver. For inf about oSSL certs, see bit.ly/ssl-certs. To connect without using SSL, edit your Gemfile sourches and change 'https' to 'http'.
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
banisterfiend has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<chekcmate>
also got to install a JS runtime, right?
<chekcmate>
does it matter for starters which of them?
<whitequark>
no
<chekcmate>
hu? but rake complains about not having one
kgrz has quit [Ping timeout: 260 seconds]
<chekcmate>
whitequark: your "no" was for the first or second question? heh
<chekcmate>
second one I guess
<yorickpeterse>
One a Cold Thursday Afternoon
<yorickpeterse>
GitHub is acting stupid
<yorickpeterse>
Yorick quietly weeps in the corner
<yorickpeterse>
it seems that every odd `git clone` it fails
|Vargas| has quit [Ping timeout: 252 seconds]
realDAB has joined #ruby-lang
<whitequark>
yorickpeterse: that's not 5-7-5 :/
scampbell has joined #ruby-lang
<yorickpeterse>
Ah shit that's right
<yorickpeterse>
let me fix that
<yorickpeterse>
On a cold Thursday afternoon
<yorickpeterse>
GitHub is acting like a fucking cunt
glebm has quit [Quit: Computer has gone to sleep.]
barttenbrinke has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 240 seconds]
davidbalbert is now known as davidbalber|away
s1n4 has quit [Quit: leaving]
s1n4 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
MehLaptop has joined #ruby-lang
yankeefan04 has quit [Remote host closed the connection]
<MartynKeigher>
hey all
<MartynKeigher>
I'm adding an rb file to my Thin app and I'm getting a syntax error. any ideas?
yankeefan04 has joined #ruby-lang
<MartynKeigher>
i can run sudo start thin & stop thin just fine, but when i run dashing start, then it fails with error msg
<breakingthings>
You probably have a syntax error.
* breakingthings
escorts himself out
<MartynKeigher>
lol
<MartynKeigher>
but i did this on server, and it worked fine…and I'm having issues on second one
droptone_ has joined #ruby-lang
<MartynKeigher>
typically…its working on test server, it fails on live
<breakingthings>
any trace?
<MartynKeigher>
how do u mean?
yankeefan04 has quit [Remote host closed the connection]
<breakingthings>
stack trace? error logging?
<droptone_>
I have a question, that might be fairly basic, as I'm relatively new to Ruby but am currently at exercise 45 on "Learn Ruby the Hard Way". I am trying to set a function inside of a Module (located in a seperate file from the main file, included with the require statement) so that it returns an array, and while it works fine when I execute the file on its own, when I reference it from within the main ruby file and attempt to execute the function, I g
<droptone_>
This is in regards a little game I'm creating to complete this exercise.
<whitequark>
droptone_: your first message was truncated by irc
<whitequark>
after "attempt to execute the function, I g"
<droptone_>
oh, sorry
<droptone_>
I get "unknown variable" errors.
jigfox has joined #ruby-lang
wobblini has joined #ruby-lang
<droptone_>
here's the main file, which calls the function within the enemies.rb file: http://pastebin.com/2d2ekPYj
<droptone_>
and here's the error I get when I try to execute the main file:
<droptone_>
enemies.rb:22:in `block in getEnemies': undefined local variable or method `enemy_array' for EnemyModule:Module (NameError) from /home/vic/projects/ruby_adventure/lib/enemies.rb:22:in `each_line'
<droptone_>
from /home/vic/projects/ruby_adventure/lib/enemies.rb:22:in `getEnemies'
<droptone_>
from ./ruby_adventure.rb:10:in `<main>'
<droptone_>
I don't get this error if I execute enemies.rb on its own, it works fine, and I've tested that its working properly by printing each array element
<droptone_>
I've been googling everywhere, and I don't understand why this variable would fail. I've tried adding @ to the variable name to make it part of the module, no luck.
<droptone_>
normally I'm on the nick "droptone" but my password to verify it is on a spreadsheet on a computer at home, so I'm on this alternate nick for now.
forrest has joined #ruby-lang
<breakingthings>
droptone_: looks like enemies.each_line isn't running at least 1 time, therefore enemy_array doesn't exist when it gets to enemy_array.each
<breakingthings>
at a glance, anyway.
<breakingthings>
which makes sense given allEnemies=[]; in main
<breakingthings>
wait that doesn't have to do with it
<breakingthings>
i'm drank
<breakingthings>
the rest of it though makes sense I think.
dustint has quit [Remote host closed the connection]
<droptone_>
hmm, ok
dustint has joined #ruby-lang
<breakingthings>
droptone_: you could probably solve this problem by instantiating that as an empty array before the block
<breakingthings>
(you might want to do that for allEnemies too)
<droptone_>
I tried that, I got the same error
<droptone_>
I'll try again
<droptone_>
bearing in mind that this works fine when I execute enemies.rb on its own
<droptone_>
it only returns this exception when I execute the main file, which calls EnemyModule.getEnemies
<breakingthings>
right
<breakingthings>
I'm thinking it might be that 'open' call
<breakingthings>
perhaps ENEMY_URL isn't working from main for some reason
<breakingthings>
is it a relative path from enemies.rb?
wizonesolutions has quit [Ping timeout: 260 seconds]
<droptone_>
no, all that works
<droptone_>
enemies.rb, when executed on its own, works fine
marr has quit [Ping timeout: 246 seconds]
<breakingthings>
Right, but that's what I'm saying
<breakingthings>
enemies.rb executed works, but if say ENEMY_URL was a relative path from enemies.rb, and main.rb is in another location, that would presumably break it.
* breakingthings
is not an expert, but he figures a hunch is better than nothing
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
<droptone_>
yeah, that's all fine, thank you though.
<droptone_>
and declaring the variables outside of the block didn't help either.
miquella has quit [Remote host closed the connection]
<breakingthings>
and it still gave the same exact 'block in getEnemies': undefined 'enemy_array' error?
yankeefan04 has joined #ruby-lang
<droptone_>
I tried placing the variable decleration first outisde of the method, but still within the module, then I tried placing the variable decleration outside of the module itself
<droptone_>
the variable declerations need to be within the method
<droptone_>
thank you, very nice
<breakingthings>
yeah
sockmonk has quit [Quit: meeting]
vlad_starkov has quit [Remote host closed the connection]
<breakingthings>
basically, because open(ENEMY_URL) wasn't pulling anything back, enemies.each_line never ran to create enemy_array
<breakingthings>
ruby's smart and auto-instantiated enemy_array when you called array#push
davidbalber|away is now known as davidbalbert
<breakingthings>
but if it never ran #push, it never instantiated enemy_array
<breakingthings>
:)
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
devoper has quit [Remote host closed the connection]
nkr has quit [Ping timeout: 245 seconds]
<breakingthings>
I'm not too sure how it managed to instantiate it inside the block, that's some magic right there, but that seems to be what it was doing.
jmeeuwen__ has joined #ruby-lang
dustint has quit [Remote host closed the connection]
<breakingthings>
Actually, I'm entirely not sure how running it on it's own worked :P
<breakingthings>
Some magic happened there that I'm not aware of.
<breakingthings>
oh… I think I know
<breakingthings>
Yeah, must be because it was defined in the module, but you weren't adding the module you were just calling it's function.
<breakingthings>
if you had a class and extended the module or something it would have worked fine.
* breakingthings
goes back to stumbling around in the dark with other things
<bawigga>
What's the difference between method_defined? and respond_to?
<bawigga>
From my understanding, messages get passed to objects. When the object receives a message it attempts to respond with a method. Is that correct?
<apeiros_>
bawigga: you check a class for wether an *instance* method is defined
<apeiros_>
you check an object, whether it itself responds to a method
<apeiros_>
i.e., String.method_defined? :gsub
<apeiros_>
"some string".respond_to? :gsub
<apeiros_>
(which is why the former is Module#method_defined?, and the latter Object#respond_to?)
Nisstyre-laptop has joined #ruby-lang
<bawigga>
so it's simply the difference between class methods and instance methods?
<apeiros_>
no
io_syl has quit [Ping timeout: 252 seconds]
<apeiros_>
it's the difference between asking the implementing class and the concrete object
<apeiros_>
String.respond_to? :new
workmad3 has joined #ruby-lang
<apeiros_>
classes are objects too, they respond to methods as well (class methods)
<bawigga>
ohhh right
<yorickpeterse>
andrewvos: holy shit, you're actually Richard Hammond?
<bawigga>
ok think i got it
<bawigga>
apeiros_: thanks for the explanation
<yorickpeterse>
andrewvos: that joke went into *puts on sunglasses* top gear
<droptone_>
the statement allEnemies.each { |x| puts x }, which is there only to test
<droptone_>
it prints out a series of statements like this:
<droptone_>
#<EnemyClass:0x00000000a919b0>
<apeiros_>
`p allEnemies`, or `p *allEnemies`
<apeiros_>
more useful for inspection of data
<apeiros_>
(since you say "only to test")
<droptone_>
ok
<droptone_>
so I should replace the statement allEnemies.each { |x| puts x }
<droptone_>
with
<droptone_>
p allEnemies
<droptone_>
?
<apeiros_>
yes. or p *allEnemies, if you prefer the enemies to be on separate lines
<droptone_>
allEnemies is an array of EnemyClass objects
<droptone_>
ok
<apeiros_>
ruby convention is all_enemies, btw.
<droptone_>
for an array, ok
<apeiros_>
no, for all naming (except constants/classes)
<apeiros_>
we use snake_case rather than camelCase
<droptone_>
gotcha
<droptone_>
so, it's working successfuly, but the question I have now is, I've presumably created an array of all_enemies, which is an array of EnemyClass objects
<droptone_>
and when I use your recommended p* statement, which works great
<droptone_>
FYI, the reason for the split statement was the enemy list is pulled from an HTML file where all the enemy names and parameters are seperated by /
<droptone_>
like 0/Evil Cat/20/4/6
<droptone_>
and so you have to split the string, and split returns an array
<apeiros_>
yeah, don't worry if it goes too fast right now. I'll just pound it on you. all steps are on github. you can take your time to go through the changes.
<droptone_>
right
<droptone_>
well thank you
pr0ton has joined #ruby-lang
<apeiros_>
instead of `enemy_array.each {|en| allEnemies << Enemy.deserialize(en) }`, you can use Array#map, that's step 5
<yorickpeterse>
String.new('foo', 'bar') # => ArgumentError: wrong number of arguments (2 for 0..1)
<yorickpeterse>
(this is discussed on the ML atm actually)
<matti>
LOL
<matti>
+1 yorickpeterse
<yorickpeterse>
jruby does that right I believe, at least according to headius
sailias has quit [Ping timeout: 252 seconds]
<apeiros_>
kekeke
<yorickpeterse>
rb_str_init(int argc, VALUE *argv, VALUE str)
<yorickpeterse>
GO HOME RUBY, YOU'RE DRUNK
<droptone_>
lmao
nazty has quit [Ping timeout: 245 seconds]
banisterpig has joined #ruby-lang
devoper has quit [Remote host closed the connection]
cstrahan has quit [Ping timeout: 252 seconds]
barttenbrinke has joined #ruby-lang
alessio_rocco has quit [Ping timeout: 264 seconds]
tenderlo_ has quit [Ping timeout: 264 seconds]
xalei has joined #ruby-lang
realDAB has quit [Quit: realDAB]
rsl has quit [Ping timeout: 272 seconds]
barttenbrinke has quit [Ping timeout: 258 seconds]
rsl has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<yorickpeterse>
holy shit. So my linter had some code to dynamically import stuff from the current Ruby runtime in a rather aggressive manner. Removing this and replacing it with code that defines these constants explicitly made my code *a lot* faster
<yorickpeterse>
(note that this is primarily because atm I define less)
wyhaines has quit [Remote host closed the connection]
__Big0__ has quit [Remote host closed the connection]
<yorickpeterse>
As in, from 3.86 seconds for the entire suite down to 0.20
yfeldblum has joined #ruby-lang
mwjcomputing has joined #ruby-lang
joevandyk has joined #ruby-lang
<joevandyk>
what's the simplest deployment option for heroku+jruby these days?
<joevandyk>
trinidad?
<headius>
joevandyk: probably
<headius>
or puma
<headius>
trinidad will try to spin up multiple JRuby instances in one process to avoid concurrency issues, so it can eat up more memory than you want without threadsafe mode
<headius>
trinidad + one instance across dynos might work fine, but that's basically the simplicity of puma
tenderlove has joined #ruby-lang
forrest has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
soypirate has joined #ruby-lang
<injekt>
andrewvos: :D
srbaker has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Read error: Operation timed out]
mixandgo has quit [Quit: mixandgo]
srbaker has joined #ruby-lang
ruby-lang541 has joined #ruby-lang
<joevandyk>
does doing a 'sleep' in a thread block other threads?
mixandgo has joined #ruby-lang
<andrewvos>
are you in a language with threads?
<injekt>
joevandyk: wouldn't that defeat the point of a thread?
<joevandyk>
andrewvos: ugh, thought i was in #jruby :)
<andrewvos>
heh
postmodern has joined #ruby-lang
s1n4 has quit [Quit: leaving]
<joevandyk>
trying to figure out why this silly load test of puma/jruby with a sleep of 2 and a bunch of threads doesn't seem to process as many connections per second as it should
<yorickpeterse>
joevandyk: yes
<yorickpeterse>
not in jruby though I believe
<yorickpeterse>
unless sleep means "Pause the entire VM" opposed to "Pause the current thread"
free_slave has joined #ruby-lang
<injekt>
pause yo life
dustint has quit [Quit: Leaving]
<free_slave>
hello every body
<andrewvos>
hey
<yorickpeterse>
wat
Wildhoney has left #ruby-lang [#ruby-lang]
Wildhoney has joined #ruby-lang
havenwood has joined #ruby-lang
<injekt>
anyone in here interested in helping out maintaining a large well known open source project?
<injekt>
i'd tell you the name of said project, but you'd say no so you have to agree to it first
<whitequark>
injekt: i can say yes and then deceive you
<yorickpeterse>
injekt: sounds like basically any given startup
<andrewvos>
slop
<yorickpeterse>
"I have this idea but it's so cool I won't tell you about it until you sign this NDA"
<injekt>
haha 'large and well known' cant be slop
<whitequark>
yeah I guess that's why NDAs are thrown
<yorickpeterse>
injekt: how about yo mamma?
<injekt>
yorickpeterse: ooo touche
<andrewvos>
yo momma is rails
<yorickpeterse>
I think I laughed harder about that than I should
<andrewvos>
hahah
<injekt>
:D
<injekt>
I think I'm more upset about 'yo momma is rails'
<injekt>
yo momma is omakase
<andrewvos>
yeh I crossed the line man, sorry
<injekt>
it's ok hammond
<andrewvos>
:(
<injekt>
so back to this open source project
srbaker has quit [Quit: Computer has gone to sleep.]
<injekt>
it's been around since 2006, and everyone knows it
<injekt>
I feel like im trying to sell it
free_slave has quit [Quit: free_slave]
<andrewvos>
just like yo mama
<yorickpeterse>
Rails?
<injekt>
hah
<andrewvos>
ok i stop now
<injekt>
yorickpeterse: you got me
<whitequark>
injekt: what is the point of the whole conversation?
<andrewvos>
injekt: what, how are you just handing out rails? you won it in a poker game or something
<yorickpeterse>
suspense and bad jokes
<injekt>
^
<injekt>
and someone to help maintain the shit i dont have time to maintain :D
<andrewvos>
why else are we here?
<injekt>
open source, it's complicated
<andrewvos>
going to open your gh page in a moment
<yorickpeterse>
injekt: JUST GIVE THE FUCKING GITHUB LINK ALREADY
<andrewvos>
wait wait, is it written with rails?
<injekt>
ok, ya'll like dealing with dates and times right?
<injekt>
:D:D:D:D
<andrewvos>
yeah love it idream of parsing dates
ruby-lang541 has quit [Ping timeout: 245 seconds]
<injekt>
sweet
<whitequark>
chronic...
<andrewvos>
Date, DateTime, Time etc.
<injekt>
whitequark: :D
<whitequark>
injekt: used it in the past
<whitequark>
I think it doesn't really work well with russian
<injekt>
nope but there's a pull request to add i18n
<injekt>
so it could!
<andrewvos>
You wrote chronic? I used it when I was just learning Ruby. You were my hero for a time injekt! Weird
<whitequark>
injekt: dunno not using it anymore for years
<injekt>
andrewvos: no i maintain it
<injekt>
andrewvos: tom wrote it
<andrewvos>
Oh ok
<andrewvos>
redacted
<injekt>
:(
<injekt>
although my 393 commits to his 41 says I sweat more!
<whitequark>
wow
<andrewvos>
true
<injekt>
I started rewriting the parser
<injekt>
then remember i suck at writing parsers
<injekt>
and lose the will to live easily
<andrewvos>
wheres that gif of homer disappearkng into a bush backwards
<andrewvos>
injekt: why not choose someone who has submitted multiple pull requests?
<injekt>
andrewvos: chronic is a ghetto
<injekt>
the code is bad and tbh I really would like to rewrite it (and I started with a library called relapse) but dont have time to continue with it right now
<injekt>
chronic still runs on 1.8.6
davidbalbert is now known as davidbalber|away
solars has quit [Ping timeout: 264 seconds]
<injekt>
and probably even lower
<yorickpeterse>
wat
<lightcap>
replase is an aweomse name for a rewrite
<yorickpeterse>
I actually had cases where Time.parse was way better than Chronic
<injekt>
lightcap: thank you :)
<lightcap>
should write it just cuz the name is so good.
<injekt>
yorickpeterse: me too, they're not supposed to do the same thing
Mon_Ouie has quit [Ping timeout: 246 seconds]
<injekt>
chronic will parse 'the third monday of next month' it's not really intended to parse timestamps
<injekt>
though in most cases I've added a lot of that functionality
maxmanders has quit [Quit: Computer has gone to sleep.]
Stilo has joined #ruby-lang
<postmodern>
question, do you think OpenStruct#method_missing should accept a block?
<postmodern>
currently it ignores the fact a block is given
<postmodern>
perhaps it could raise an ArgumentError?
headius has quit [Quit: headius]
banisterpig has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend>
postmodern: where the block behaves similarly to the Hash block?
<banisterfiend>
Hash.new
<postmodern>
banisterfiend, im more worried about OpenStructs being passed into other methods that call methods on it with blocks
lightcap has quit [Quit: Computer has gone to sleep.]
nXqd has quit [Ping timeout: 256 seconds]
<banisterfiend>
postmodern: what currently happens, it just silently ignores the block?
<postmodern>
banisterfiend, correct
<banisterfiend>
what's wrong with that out of interest? there's tonnes of methods that dont except blocks that just silently ignore it. In fact i think there's hardly any methods at all that raise when they receive blocks that they dont care about
<whitequark>
([].reverse)()
<whitequark>
(x=[].reverse)()
<whitequark>
[]
<banisterfiend>
accept*
<postmodern>
banisterfiend, hmm good point
<whitequark>
TypeError: Array.prototype.reverse called on null or undefined([].reverse)()
<whitequark>
(x=[].reverse)()
<whitequark>
[]
<whitequark>
um sorry for that
<whitequark>
paste by middle button is evil
Cherrum has quit [Remote host closed the connection]
alessio_rocco has quit [Remote host closed the connection]
sebasoga has quit [Quit: Computer has gone to sleep.]
hasimo has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]