00:00
fenicks has quit [Read error: Connection reset by peer]
00:04
_jpb_ has joined #ruby-lang
00:06
duphus has joined #ruby-lang
00:06
mbj_ has joined #ruby-lang
00:07
flip_digits has quit [Remote host closed the connection]
00:08
flip_digits has joined #ruby-lang
00:08
realDAB has quit [Quit: realDAB]
00:09
_jpb__ has joined #ruby-lang
00:09
_jpb_ has quit [Ping timeout: 248 seconds]
00:17
_jpb__ has quit [Ping timeout: 248 seconds]
00:17
_jpb_ has joined #ruby-lang
00:18
woollyams has joined #ruby-lang
00:24
_jpb_ has quit [Ping timeout: 276 seconds]
00:24
cored has quit [Ping timeout: 264 seconds]
00:24
rickruby has joined #ruby-lang
00:24
_jpb_ has joined #ruby-lang
00:25
mistym has quit [Remote host closed the connection]
00:29
kstuart has quit [Ping timeout: 260 seconds]
00:30
mbj has joined #ruby-lang
00:33
mbj_ has quit [Ping timeout: 256 seconds]
00:33
gregmoreno has quit [Remote host closed the connection]
00:36
wmoxam has joined #ruby-lang
00:37
mbj has quit [Ping timeout: 264 seconds]
00:40
_jpb_ has quit [Ping timeout: 240 seconds]
00:41
_jpb_ has joined #ruby-lang
00:43
Voker57 has quit [Ping timeout: 246 seconds]
00:44
duphus has quit [Quit: Leaving.]
00:44
hahuang65 has joined #ruby-lang
00:46
rickruby has quit [Remote host closed the connection]
00:47
mushky has joined #ruby-lang
00:47
elia has quit [Quit: Computer has gone to sleep.]
00:48
mistym has joined #ruby-lang
00:48
tkuchiki has joined #ruby-lang
00:48
hashkey has quit [Quit: Leaving]
00:48
mbj has joined #ruby-lang
00:49
mushky has quit [Client Quit]
00:50
mrsolo has quit [Quit: Leaving]
00:50
mushky has joined #ruby-lang
00:50
rodrigo has joined #ruby-lang
00:51
mushky has quit [Remote host closed the connection]
00:51
therod has quit [Read error: Connection reset by peer]
00:52
donkey_ has joined #ruby-lang
00:52
donkey_ has quit [Client Quit]
00:53
mushky has joined #ruby-lang
00:54
_jpb_ has quit [Ping timeout: 240 seconds]
00:54
_jpb_ has joined #ruby-lang
00:57
Voker57 has joined #ruby-lang
00:58
wallerdev has quit [Quit: wallerdev]
01:01
wallerdev has joined #ruby-lang
01:02
hogeo has joined #ruby-lang
01:04
gregmoreno has joined #ruby-lang
01:06
duphus has joined #ruby-lang
01:08
vlad_starkov has joined #ruby-lang
01:08
_jpb_ has quit [Ping timeout: 268 seconds]
01:09
ilyam has quit [Quit: ilyam]
01:09
_jpb_ has joined #ruby-lang
01:11
sepp2k has quit [Quit: Leaving.]
01:12
gregmoreno has quit [Ping timeout: 248 seconds]
01:13
vlad_starkov has quit [Ping timeout: 256 seconds]
01:14
wallerdev has quit [Quit: wallerdev]
01:15
pkrnj has quit [Quit: Computer has gone to sleep.]
01:15
wallerdev has joined #ruby-lang
01:17
_jpb_ has quit [Ping timeout: 240 seconds]
01:17
fosky has quit [Ping timeout: 260 seconds]
01:17
joshuawscott has joined #ruby-lang
01:18
pkrnj has joined #ruby-lang
01:18
_jpb_ has joined #ruby-lang
01:19
bzalasky has joined #ruby-lang
01:19
jsullivandigs has quit [Remote host closed the connection]
01:20
jsullivandigs has joined #ruby-lang
01:20
henrikhodne has quit [Ping timeout: 240 seconds]
01:23
ilyam has joined #ruby-lang
01:24
dhruvasagar has joined #ruby-lang
01:24
jsullivandigs has quit [Ping timeout: 240 seconds]
01:25
joast has quit [Quit: Leaving.]
01:29
ilyam has quit [Quit: ilyam]
01:29
anonymuse has joined #ruby-lang
01:31
hogeo_ has joined #ruby-lang
01:31
mushky has quit [Quit: mushky]
01:32
dhruvasagar has quit [Ping timeout: 240 seconds]
01:34
hogeo has quit [Ping timeout: 240 seconds]
01:34
glebm has joined #ruby-lang
01:36
arooni-mobile has quit [Read error: Operation timed out]
01:41
_jpb_ has quit [Ping timeout: 240 seconds]
01:42
kurko__ has joined #ruby-lang
01:45
heftig has quit [Quit: Quitting]
01:47
woollyams has quit [Ping timeout: 252 seconds]
01:48
_jpb_ has joined #ruby-lang
01:49
tenderlove has joined #ruby-lang
01:51
Domon_ has joined #ruby-lang
01:52
tkuchiki has quit [Remote host closed the connection]
01:53
tkuchiki has joined #ruby-lang
01:58
bzalasky has quit [Remote host closed the connection]
01:58
dhruvasagar has joined #ruby-lang
01:59
_jpb_ has quit [Ping timeout: 240 seconds]
01:59
jacktrick has quit [Quit: Leaving]
02:00
LauraE has joined #ruby-lang
02:01
_jpb_ has joined #ruby-lang
02:04
flip_digits has quit [Remote host closed the connection]
02:05
flip_digits has joined #ruby-lang
02:05
joshuawscott has quit [Quit: Leaving.]
02:06
nathanstitt has joined #ruby-lang
02:08
wmoxam has quit [Ping timeout: 246 seconds]
02:08
KillerFox has joined #ruby-lang
02:11
henrikhodne has joined #ruby-lang
02:11
snk has quit [Ping timeout: 240 seconds]
02:11
snk has joined #ruby-lang
02:12
hahuang65 has quit [Quit: Reconnecting]
02:12
hahuang65 has joined #ruby-lang
02:13
<
zzak >
drbrain: are you alive?
02:13
_jpb_ has quit [Ping timeout: 264 seconds]
02:13
_jpb_ has joined #ruby-lang
02:15
wmoxam has joined #ruby-lang
02:16
ledestin has joined #ruby-lang
02:16
ffio has joined #ruby-lang
02:20
rodrigo has quit [Quit: Leaving...]
02:21
shinnya has quit [Ping timeout: 248 seconds]
02:22
henrikhodne has quit [Ping timeout: 240 seconds]
02:26
glebm has quit [Quit: Computer has gone to sleep.]
02:26
joast has joined #ruby-lang
02:27
rickruby has joined #ruby-lang
02:33
nathanstitt has quit [Read error: Connection reset by peer]
02:38
UziMonkey___ has left #ruby-lang [#ruby-lang]
02:39
UziMonkey has joined #ruby-lang
02:39
havenwood has quit [Remote host closed the connection]
02:40
glebm has joined #ruby-lang
02:43
Boohbah_ has left #ruby-lang [#ruby-lang]
02:46
hahuang65 has quit [Ping timeout: 268 seconds]
02:47
_jpb_ has quit [Ping timeout: 240 seconds]
02:47
_jpb_ has joined #ruby-lang
02:47
glebm has quit [Quit: Computer has gone to sleep.]
02:53
ffio has quit [Quit: WeeChat 0.4.1]
02:55
GeissT has joined #ruby-lang
02:57
GeissT has quit [Read error: Connection reset by peer]
02:57
GeissT has joined #ruby-lang
02:58
io_syl has quit [Ping timeout: 240 seconds]
02:59
Oak_ has joined #ruby-lang
03:00
duphus has quit [Quit: Leaving.]
03:02
wmoxam has quit [Ping timeout: 264 seconds]
03:03
duphus has joined #ruby-lang
03:03
Boohbah has joined #ruby-lang
03:09
dhruvasagar has quit [Ping timeout: 264 seconds]
03:10
<
zzak >
drbrain: thinking of writing a fiddle for difftime(3), not sure what else to do
03:11
<
drbrain >
difftime sounds neat
03:11
<
zzak >
thought of rand but that is too boring
03:12
<
drbrain >
I think Kernel#rand has higher quality than libc rand
03:13
<
zzak >
it is very complex
03:14
<
drbrain >
is this for examples?
03:14
<
zzak >
my stdlib talk
03:14
<
zzak >
it might make its way into fiddle docs tho
03:15
<
drbrain >
then difftime() should be simple enough
03:16
_jpb_ has quit [Ping timeout: 264 seconds]
03:17
_jpb_ has joined #ruby-lang
03:21
nisstyre has quit [Quit: Leaving]
03:29
<
zzak >
drbrain: where can i find the header files?
03:31
<
zzak >
nvm, i forgot where osx puts things
03:32
_jpb_ has quit [Ping timeout: 268 seconds]
03:32
_jpb_ has joined #ruby-lang
03:33
<
erikh >
there's a gcc flag to output the default -I I think
03:33
<
erikh >
but I can't remember it now
03:35
hahuang65 has joined #ruby-lang
03:37
<
drbrain >
zzak: man difftime() will show you which file the header lives in
03:38
mistym has quit [Remote host closed the connection]
03:38
<
erikh >
that can be weird on glibc especially though
03:38
<
erikh >
macros upon macros upon..
03:38
<
erikh >
dunno. i'm mid-outage, wait state, making noise
03:38
<
erikh >
I will return to not talking
03:39
kurko__ has quit [Quit: Computer has gone to sleep.]
03:40
<
zzak >
i get that it's in time.h but i had to figure out that it's in "/usr/lib/libc.dylib"
03:43
ilyam has joined #ruby-lang
03:44
anonymuse has quit [Remote host closed the connection]
03:44
_jpb_ has quit [Remote host closed the connection]
03:47
charliesome has quit [Read error: Connection reset by peer]
03:52
_jpb_ has joined #ruby-lang
03:53
cd has joined #ruby-lang
03:53
cd is now known as Guest47102
03:58
yfeldblum has quit [Ping timeout: 260 seconds]
04:00
fosky has joined #ruby-lang
04:01
nignaztic has quit [Read error: Connection reset by peer]
04:01
nignaztic has joined #ruby-lang
04:02
vlad_sta_ has joined #ruby-lang
04:07
vlad_sta_ has quit [Ping timeout: 268 seconds]
04:07
_jpb_ has quit [Ping timeout: 268 seconds]
04:07
_jpb_ has joined #ruby-lang
04:13
yfeldblum has joined #ruby-lang
04:18
_jpb_ has quit [Remote host closed the connection]
04:18
_jpb_ has joined #ruby-lang
04:19
LauraE has left #ruby-lang [#ruby-lang]
04:20
vlad_starkov has joined #ruby-lang
04:21
vlad_starkov has quit [Remote host closed the connection]
04:21
mistym has joined #ruby-lang
04:26
_jpb_ has quit [Ping timeout: 240 seconds]
04:26
jsullivandigs has joined #ruby-lang
04:27
_jpb_ has joined #ruby-lang
04:33
jsullivandigs has quit [Remote host closed the connection]
04:33
jsullivandigs has joined #ruby-lang
04:34
dhruvasagar has joined #ruby-lang
04:37
vlad_starkov has joined #ruby-lang
04:38
jsullivandigs has quit [Ping timeout: 260 seconds]
04:41
inomataj has joined #ruby-lang
04:44
face has joined #ruby-lang
04:45
inomataj has quit [Remote host closed the connection]
04:45
vlad_starkov has quit [Read error: Connection reset by peer]
04:45
vlad_sta_ has joined #ruby-lang
04:45
faces has quit [Ping timeout: 264 seconds]
04:49
_jpb_ has quit [Ping timeout: 248 seconds]
04:49
_jpb_ has joined #ruby-lang
04:52
jonahR has quit [Quit: jonahR]
04:53
jonahR has joined #ruby-lang
04:54
kellsn has joined #ruby-lang
05:03
mbj has quit [Ping timeout: 260 seconds]
05:05
mbj has joined #ruby-lang
05:07
vlad_sta_ has quit [Remote host closed the connection]
05:08
wallerdev has quit [Quit: wallerdev]
05:11
havenwood has joined #ruby-lang
05:12
rue_XIV has quit [Remote host closed the connection]
05:12
_jpb_ has quit [Ping timeout: 276 seconds]
05:12
mistym has quit [Remote host closed the connection]
05:13
_jpb_ has joined #ruby-lang
05:15
Domon_ has quit [Remote host closed the connection]
05:19
duphus has quit [Quit: Leaving.]
05:21
fosky has quit [Ping timeout: 260 seconds]
05:22
tomzx_mac has quit [Ping timeout: 260 seconds]
05:23
vlad_starkov has joined #ruby-lang
05:25
xxaM has joined #ruby-lang
05:26
mdedetrich has quit [Quit: Computer has gone to sleep.]
05:27
mistym has joined #ruby-lang
05:30
henrikhodne has joined #ruby-lang
05:31
mistym has quit [Remote host closed the connection]
05:35
_jpb_ has quit [Ping timeout: 240 seconds]
05:35
yatish27 has joined #ruby-lang
05:36
mdedetrich has joined #ruby-lang
05:36
rue has joined #ruby-lang
05:36
_jpb_ has joined #ruby-lang
05:37
kellsn has quit [Quit: Leaving.]
05:46
Domon_ has joined #ruby-lang
05:47
io_syl has joined #ruby-lang
05:48
apeiros_ has joined #ruby-lang
05:48
ffio has joined #ruby-lang
05:49
apeiros has quit [Read error: Connection reset by peer]
05:50
flip_digits has quit [Remote host closed the connection]
05:50
kstuart has joined #ruby-lang
05:53
hahuang65 has quit [Quit: leaving]
05:54
<
freedrull >
drbrain x0f thanks for your responses, sorry i had to run
05:56
joast has quit [Ping timeout: 256 seconds]
05:57
_jpb_ has quit [Ping timeout: 256 seconds]
05:58
ledestin has quit [Quit: ledestin]
05:58
<
freedrull >
drbrain: isnt that book by michael feathers?
06:00
apeiros_ has quit [Remote host closed the connection]
06:00
gnufied has joined #ruby-lang
06:02
Guest47102 has quit [Ping timeout: 240 seconds]
06:02
riotbit has joined #ruby-lang
06:03
Guest47102 has joined #ruby-lang
06:03
_jpb_ has joined #ruby-lang
06:06
mdedetrich has quit [Quit: Computer has gone to sleep.]
06:07
mdedetrich has joined #ruby-lang
06:10
mdedetri_ has joined #ruby-lang
06:11
mdedetrich has quit [Read error: Connection reset by peer]
06:17
mdedetri_ has quit [Ping timeout: 256 seconds]
06:17
joast has joined #ruby-lang
06:19
workmad3 has joined #ruby-lang
06:20
yatish27 has quit [Remote host closed the connection]
06:22
ffio has quit [Ping timeout: 256 seconds]
06:26
_jpb_ has quit [Remote host closed the connection]
06:27
riotbit has quit [Quit: riotbit]
06:27
_jpb_ has joined #ruby-lang
06:28
apeiros has joined #ruby-lang
06:28
mdedetrich has joined #ruby-lang
06:29
heftig has joined #ruby-lang
06:29
tenderlove has quit [Remote host closed the connection]
06:34
mdedetrich has quit [Ping timeout: 264 seconds]
06:35
tris has quit [Ping timeout: 266 seconds]
06:36
mdedetrich has joined #ruby-lang
06:38
charliesome has joined #ruby-lang
06:39
JohnBat26 has joined #ruby-lang
06:40
ledestin has joined #ruby-lang
06:46
mbj has quit [Read error: Connection reset by peer]
06:47
workmad3 has quit [Ping timeout: 256 seconds]
06:48
hogeo has joined #ruby-lang
06:51
_jpb_ has quit [Ping timeout: 256 seconds]
06:51
hogeo_ has quit [Ping timeout: 268 seconds]
06:51
mytrile has joined #ruby-lang
06:51
mbj has joined #ruby-lang
06:52
_jpb_ has joined #ruby-lang
06:53
ffio has joined #ruby-lang
06:56
ledestin has quit [Quit: ledestin]
06:57
benlovell has joined #ruby-lang
07:03
GeissT has quit [Ping timeout: 276 seconds]
07:04
io_syl has quit [Quit: io_syl]
07:06
zomgbie has joined #ruby-lang
07:08
mdedetrich has quit [Quit: Computer has gone to sleep.]
07:13
_jpb_ has quit [Ping timeout: 240 seconds]
07:14
_jpb_ has joined #ruby-lang
07:18
mdedetrich has joined #ruby-lang
07:25
Guest47102 has quit [Quit: This computer has gone to sleep]
07:27
_jpb_ has quit [Ping timeout: 264 seconds]
07:27
_jpb_ has joined #ruby-lang
07:32
judofyr has joined #ruby-lang
07:32
fosky has joined #ruby-lang
07:33
maxmanders has joined #ruby-lang
07:36
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
07:37
arooni-mobile has joined #ruby-lang
07:37
_jpb_ has quit [Ping timeout: 264 seconds]
07:38
_jpb_ has joined #ruby-lang
07:39
<
henrikhodne >
judofyr: …wow.
07:39
<
judofyr >
henrikhodne: it's not that complex. I'm using the same logic for all of the lines; it's just one "trick"
07:41
mytrile has quit [Remote host closed the connection]
07:43
Pupeno has joined #ruby-lang
07:43
Pupeno has joined #ruby-lang
07:43
Pupeno has quit [Changing host]
07:43
solars has joined #ruby-lang
07:44
<
judofyr >
henrikhodne: but yeah, you'll have some fun if you want to untangle it :)
07:45
<
henrikhodne >
I think I see what's going on there now, although I don't think I'll attempt to completely untangle it.
07:46
<
judofyr >
it was fun writing
07:48
Pupeno has quit [Ping timeout: 245 seconds]
07:48
_jpb_ has quit [Remote host closed the connection]
07:48
marr has joined #ruby-lang
07:48
tbuehlmann has joined #ruby-lang
07:49
cd has joined #ruby-lang
07:50
cd is now known as Guest81068
07:56
_jpb_ has joined #ruby-lang
08:00
<
hakunin >
well, no need to explain, i know what's going on, i just think it's scary
08:01
joonty has joined #ruby-lang
08:02
minivan1 has joined #ruby-lang
08:03
arooni-mobile has quit [Ping timeout: 248 seconds]
08:04
joonty has quit [Client Quit]
08:05
joonty has joined #ruby-lang
08:07
henrikhodne has quit [Ping timeout: 268 seconds]
08:12
heftig has quit [Quit: Quitting]
08:12
heftig has joined #ruby-lang
08:13
<
judofyr >
hakunin: well, that's the trade-off of method calls without self.
08:13
<
hakunin >
judofyr: great article btw, read this morning, awesome work
08:14
<
hakunin >
judofyr: the twitter one
08:14
Pupeno has joined #ruby-lang
08:16
<
yorickpeterse >
morning
08:16
<
yorickpeterse >
judofyr: what have you been drinking, hello world using flip-flops?
08:16
ffio has quit [Ping timeout: 276 seconds]
08:16
<
judofyr >
yorickpeterse: I needed something clear up my mind after the twitter post
08:20
<
hakunin >
judofyr: must've been difficult
08:20
<
judofyr >
a bit time consuming. after I figured out the approach it was all fine.
08:21
<
hakunin >
judofyr: that too, i meant dealing with outcome of controversial post
08:23
Mon_Ouie has joined #ruby-lang
08:23
_jpb_ has quit [Ping timeout: 264 seconds]
08:26
elia has joined #ruby-lang
08:29
sia_solati has quit [Ping timeout: 256 seconds]
08:30
<
drbrain >
freedrull: yes, oops!
08:30
jonahR has quit [Quit: jonahR]
08:31
ffio has joined #ruby-lang
08:32
sia_solati has joined #ruby-lang
08:37
_jpb_ has joined #ruby-lang
08:40
jsullivandigs has joined #ruby-lang
08:41
mbj has quit [Ping timeout: 264 seconds]
08:42
mbj has joined #ruby-lang
08:44
faces has joined #ruby-lang
08:45
face has quit [Ping timeout: 240 seconds]
08:45
jsullivandigs has quit [Ping timeout: 264 seconds]
08:45
riotbit has joined #ruby-lang
08:48
_jpb_ has quit [Ping timeout: 268 seconds]
08:48
kstuart has quit [Ping timeout: 248 seconds]
08:48
_jpb_ has joined #ruby-lang
08:48
zomgbie has quit [Ping timeout: 268 seconds]
08:50
flip_digits has joined #ruby-lang
08:55
flip_digits has quit [Ping timeout: 264 seconds]
08:55
stamina has joined #ruby-lang
08:57
mytrile has joined #ruby-lang
08:58
fosky has quit [Ping timeout: 276 seconds]
09:00
<
gnufied >
drbrain: hey
09:00
<
gnufied >
OpenSSL::Cipher::CipherError: unsupported cipher algorithm (aes256)
09:00
<
gnufied >
when trying to use rubygems master with jruby
09:01
<
_tockitj >
gnufied, try aes128
09:01
<
_tockitj >
this is jvm limitation
09:01
<
gnufied >
cool. problem is rubygems is using that algorithm
09:02
<
gnufied >
so, I can't just switch to another algorithm
09:02
<
_tockitj >
you are jusing oracle jvm ?
09:02
<
_tockitj >
try icetea
09:02
<
_tockitj >
it should work
09:02
<
gnufied >
will majority of rubygems users use icedtea?
09:03
<
_tockitj >
on oracle you'll need to install policy for stronger encryption methods
09:03
<
_tockitj >
this is funny named 'unlimited strength policy' (:
09:04
<
gnufied >
okay. I am just going to open a bug for rubygems.
09:04
<
_tockitj >
it is not rubygems issue
09:04
<
_tockitj >
though it could be solved by using weaker encryption (:
09:04
<
gnufied >
dunno mate. rubygems 1.8.x and jruby works without problems
09:05
<
gnufied >
and rubygems master introduces this change.
09:05
<
gnufied >
So, somebody here is wrong. either jruby or rubygems
09:05
<
gnufied >
or not wrong per se. but painful for users defenitely
09:06
<
gnufied >
I don't develop for JRuby beyond some primilimiary testing of gems I work on, so it is not in my interest to install icetea
09:08
<
injekt >
good morning
09:09
adambeynon has joined #ruby-lang
09:15
sia_solati has quit [Ping timeout: 264 seconds]
09:17
riotbit has quit [Quit: riotbit]
09:18
_jpb_ has quit [Ping timeout: 264 seconds]
09:18
ffio has quit [Ping timeout: 268 seconds]
09:19
rohit has joined #ruby-lang
09:19
_jpb_ has joined #ruby-lang
09:19
canton7 has quit [Ping timeout: 248 seconds]
09:23
rohit has quit [Client Quit]
09:23
skade has joined #ruby-lang
09:25
ilyam has quit [Quit: ilyam]
09:27
mbj_ has joined #ruby-lang
09:27
riotbit has joined #ruby-lang
09:29
<
yorickpeterse >
injekt: oi, secret Rails sauce wise, do you even load Rails in your tests or not?
09:31
<
andrewvos >
Do you even lift
09:34
<
yorickpeterse >
also jesus, not using database cleaner in this one test saves 4 seconds
09:34
<
andrewvos >
yorickpeterse: Yeah man I feel your pain :/
09:35
<
andrewvos >
yorickpeterse: Are you using factorygirl?
09:35
<
andrewvos >
yorickpeterse: I HATE factorygirl
09:35
<
injekt >
yorickpeterse: the one that loads rails runs in 3 seconds, the suite that does not runs in around 1
09:35
<
yorickpeterse >
andrewvos: yeah
09:35
Oak_ has quit [Remote host closed the connection]
09:35
<
andrewvos >
It's not just the rope you hang yourself with. Factorygirl kicks the chair for you.
09:35
<
injekt >
but yes that is one of the secrets
09:35
<
yorickpeterse >
injekt: how the hell, Rails itself takes like 8-10 seconds to start up with a decent set of gems
09:35
<
yorickpeterse >
Problem is that I have quite some AR model code that I need to test
09:35
<
injekt >
yorickpeterse: well, it loads when it needs
09:35
<
yorickpeterse >
and I need Rails/AR for that
09:36
<
injekt >
you need "ar"
09:36
_jpb_ has quit [Ping timeout: 264 seconds]
09:36
<
injekt >
not "Rails/AR"
09:36
<
yorickpeterse >
hmm
09:36
_jpb_ has joined #ruby-lang
09:36
<
injekt >
one thing that IS messy is the requires I have, they're not ideal
09:36
<
yorickpeterse >
First lets see how much I can gain by removing database cleaner
09:36
<
yorickpeterse >
if I can ditch factory girl that might be another option
09:37
<
andrewvos >
Unless it already has its claws on your codebase
09:39
<
injekt >
fwiw ditching factory girl is one of the major ground breaking changes I had in the way I wrote my tests
09:39
<
injekt >
factory girl isn't bad, but it makes it much much easier to be bad
09:41
zmike123 has joined #ruby-lang
09:41
<
yorickpeterse >
tbh in most of the tests here it really doesn't offer anything extra so I can probably just ditch it
09:41
<
yorickpeterse >
otherwise I can just create a method called something like `create_user` which just returns a new User instance
09:41
<
yorickpeterse >
(effectively mimicking FactoryGirl without the bloat)
09:42
<
yorickpeterse >
I hate you
09:42
<
yorickpeterse >
wait, you have two separate spec directories?
09:43
<
injekt >
for the sake of getting pre 1 second test durations, yes
09:43
<
yorickpeterse >
hmm
09:43
<
injekt >
well, for the sake of demoing
09:43
<
injekt >
they have have the same structure and files
09:44
<
injekt >
both have*
09:45
Maax has joined #ruby-lang
09:45
xxaM has quit [Disconnected by services]
09:46
Maax has left #ruby-lang [#ruby-lang]
09:46
xxaM has joined #ruby-lang
09:50
<
yorickpeterse >
well, removing database cleaner from this directory gave me 24 seconds
09:50
<
yorickpeterse >
now I just need to fix all the tests
09:50
<
injekt >
whitequark: pushed a new slop gem with a fix for your bug
09:50
<
injekt >
whitequark: let me know if everything is ok
09:50
<
injekt >
yorickpeterse: 24 seconds? what in the shit
09:50
<
injekt >
I can run my tests 24 times
09:51
<
yorickpeterse >
yah, and I even ran DB cleaner at the start of an entire describe block
09:51
<
yorickpeterse >
but now everything fails because it re-uses the same user email
09:51
<
injekt >
fwiw im using db cleaner in my tests
09:51
<
yorickpeterse >
wat
09:53
<
yorickpeterse >
ttp://hastebin.com/kobicadaqe.rb
09:54
<
yorickpeterse >
heh, ttp
09:54
zomgbie has joined #ruby-lang
09:54
<
yorickpeterse >
errr forgot the config
09:54
<
injekt >
fuck I tried to click that like 100 times
09:54
<
yorickpeterse >
haha
09:54
<
whitequark >
injekt: thanks
09:54
<
whitequark >
lemme check
09:55
<
injekt >
yorickpeterse: is line 10 necessary?
09:55
<
yorickpeterse >
Yes
09:55
<
yorickpeterse >
For Rails engines it is
09:56
<
yorickpeterse >
Otherwise, for whatever reason, it shits up all over the place when using the routing helpers
09:56
<
injekt >
why before each though? why not store it once
09:56
<
yorickpeterse >
Not sure, I'll give that a try too
09:56
<
injekt >
it wont help much but yeah, fine comb and all that
09:57
<
yorickpeterse >
bs AR, this Email isn't already taken
09:57
<
yorickpeterse >
it's supposed to be random
09:57
<
yorickpeterse >
maybe SecureRandom.random_bytes isn't as random as expected
09:57
<
whitequark >
injekt: hmmm there is not a new slop gem
09:57
<
yorickpeterse >
fuckit, I'll use the current timestamp
09:58
<
injekt >
whitequark: oh oops one sec
09:58
<
yorickpeterse >
Time.now.to_f for true randomness
09:58
<
injekt >
fucking forgot my rubygems credentials
09:58
<
yorickpeterse >
Node.js approved
09:59
zomgbie has quit [Ping timeout: 260 seconds]
09:59
<
injekt >
Enter your credentials.
09:59
<
injekt >
Don't have an account yet? Create one at https:///sign_up
09:59
<
yorickpeterse >
OH WAIT DERP
09:59
<
yorickpeterse >
of course fucking factory girl evaluates the block upon loading
09:59
<
yorickpeterse >
not upon creating the user
09:59
<
injekt >
whitequark: should be there now
10:00
<
injekt >
yorickpeterse: just use sequence?
10:00
<
yorickpeterse >
email { ... } # should do it
10:00
<
injekt >
then it'll always be random
10:01
<
injekt >
and only requires += not some kind of super secure lolstring
10:01
gja has joined #ruby-lang
10:01
<
yorickpeterse >
email { "#{Time.now.to_f}@olery.com" } # websccale
10:01
<
yorickpeterse >
* webscale
10:02
maxmanders has quit [Ping timeout: 246 seconds]
10:02
<
injekt >
sequence(:email) { |i| "#{i}@example.com" } # roflscale
10:02
<
whitequark >
injekt: btw if I do -Ey, then it barfs with Unknown options -y
10:02
zomgbie has joined #ruby-lang
10:02
<
whitequark >
but if I do -yE, then it's Unknown options -yE
10:02
<
whitequark >
is that expected?
10:03
<
injekt >
whitequark: no that's interestingly funny, what about -ye and -YE
10:03
<
whitequark >
well -E exists but -y does not
10:03
<
whitequark >
that's it
10:03
<
whitequark >
-E doesn't accept a param
10:04
<
yorickpeterse >
well, this dir now runs in 17 seconds with some failures
10:05
<
injekt >
whitequark: just going into a meeting so I can't look at it now, could you reopen the issue with another repro? I'll fix it at lunch
10:05
<
injekt >
(lol going into a meeting) this means turning on skype
10:06
_jpb_ has quit [Ping timeout: 240 seconds]
10:07
maxmanders has joined #ruby-lang
10:07
_jpb_ has joined #ruby-lang
10:07
zmike123 has quit [Ping timeout: 264 seconds]
10:09
<
yorickpeterse >
make sure you're wearing pants
10:10
dagobah has joined #ruby-lang
10:11
zomgbie has quit [Ping timeout: 256 seconds]
10:13
MaddinXx has joined #ruby-lang
10:13
Pupeno_ has joined #ruby-lang
10:15
vlad_starkov has quit [Ping timeout: 256 seconds]
10:15
Pupeno has quit [Read error: Operation timed out]
10:15
gja has quit [Quit: This computer has gone to sleep]
10:17
maxmanders has quit [Max SendQ exceeded]
10:19
<
yorickpeterse >
holy gripes, DB cleaner is slow
10:19
<
yorickpeterse >
removing it makes my tests seriously faster
10:19
mytrile has quit [Read error: Connection reset by peer]
10:19
_jpb_ has quit [Ping timeout: 248 seconds]
10:19
mytrile has joined #ruby-lang
10:19
_jpb_ has joined #ruby-lang
10:21
gja has joined #ruby-lang
10:21
gja has quit [Changing host]
10:21
gja has joined #ruby-lang
10:21
vlad_starkov has joined #ruby-lang
10:23
tbuehlmann has quit [Remote host closed the connection]
10:23
<
whitequark >
injekt: can't reopen
10:24
maxmanders has joined #ruby-lang
10:26
<
erikh >
doesn't db_cleaner wrap everything in a big ass transaction and rollback each test method?
10:26
<
erikh >
or is that something else
10:27
<
erikh >
they are a thing
10:27
<
whitequark >
I think it does
10:28
<
whitequark >
well, it has several settings. transaction, truncate, deletefrom
10:28
<
erikh >
although a sequence shouldn't be much slower
10:28
<
erikh >
whitequark: ah
10:28
<
erikh >
yorickpeterse: does it bleed all over your database?
10:28
<
yorickpeterse >
It does use it, but I can't get rid of those parts sadly
10:28
enaqxx has joined #ruby-lang
10:28
<
erikh >
if so, enjoy your heisenbugs
10:28
<
yorickpeterse >
Since it actually tests some AR models code
10:28
ffio has joined #ruby-lang
10:28
<
yorickpeterse >
The DB is cleared upon starting though
10:29
<
erikh >
yeah, that's usually not a full solution
10:29
<
erikh >
because your data is transient, and stateful, between unit tests
10:29
<
erikh >
that's bleed.
10:29
maxmanders has quit [Ping timeout: 240 seconds]
10:29
<
yorickpeterse >
There's room for improvements, but I did make modifications so that the tests don't rely on, for example, a specific number of rows
10:29
<
yorickpeterse >
just that what they just created is there
10:30
<
erikh >
well, your foot I guess. I'm just trying to save it.
10:30
<
yorickpeterse >
If you care about my foot feel free to suggest something
10:30
<
erikh >
I am, put it back in and deal with slow tests
10:31
<
erikh >
inaccurate tests aren't useful even if they run quickly
10:31
<
yorickpeterse >
Except they are accurate
10:31
<
yorickpeterse >
they still test what they are supposed to test, just in a less dumb way
10:31
<
erikh >
if there are writes in the tests and the DB is not being cleaned between test methods, they aren't
10:32
<
whitequark >
yorickpeterse: hint: there are better ways to speed up DB-backed tests
10:32
<
whitequark >
for example try postgres-on-tmpfs
10:32
<
whitequark >
amazing results.
10:32
<
yorickpeterse >
The point is here that these tests don't require an empty database (table)
10:32
<
erikh >
sqlite can run fully in memory too
10:32
<
yorickpeterse >
So there's no need in cleaning it between tests
10:32
<
erikh >
another option.
10:32
<
yorickpeterse >
erikh: the migrations don't reside in this app sadly, otherwise I would've done that
10:32
<
whitequark >
erikh: I did not see many big applications which could be freely switched between DBs
10:32
<
whitequark >
if you use postgres you prolly use it for a reason
10:32
<
erikh >
whitequark: that's quite fair
10:33
<
yorickpeterse >
plus there's some MySQL specific stuff here and there
10:33
<
erikh >
mysql has an embedded version too.
10:33
zmike123 has joined #ruby-lang
10:33
<
whitequark >
or you can simply move /var/lib/mysql to tmpfs.
10:33
<
yorickpeterse >
ooooh, forgot some DB cleaner code. Lets see how much more I can get
10:34
<
erikh >
not sure if trolling or just stupid
10:38
ffio has quit [Quit: WeeChat 0.4.1]
10:38
_jpb_ has quit [Ping timeout: 276 seconds]
10:39
vlad_starkov has quit [Remote host closed the connection]
10:42
maxmanders has joined #ruby-lang
10:43
maxmanders has quit [Client Quit]
10:45
maxmanders has joined #ruby-lang
10:46
_jpb_ has joined #ruby-lang
10:46
postmodern has quit [Quit: Leaving]
10:49
ledestin has joined #ruby-lang
10:50
<
injekt >
one should never bleed
10:50
<
injekt >
yorickpeterse: 27 seconds? not bad
10:55
_jpb_ has quit [Ping timeout: 268 seconds]
10:56
_jpb_ has joined #ruby-lang
10:56
Domon_ has quit [Remote host closed the connection]
11:00
glebm has joined #ruby-lang
11:03
skade has quit [Quit: Computer has gone to sleep.]
11:04
mbj has quit [Remote host closed the connection]
11:04
mbj_ has quit [Remote host closed the connection]
11:06
Pupeno_ has quit [Remote host closed the connection]
11:06
smull has quit [Ping timeout: 264 seconds]
11:07
_jpb_ has quit [Ping timeout: 260 seconds]
11:08
_jpb_ has joined #ruby-lang
11:11
banister`sleepy has joined #ruby-lang
11:17
zomgbie has joined #ruby-lang
11:17
_jpb_ has quit [Ping timeout: 248 seconds]
11:19
_jpb_ has joined #ruby-lang
11:22
zomgbie has quit [Ping timeout: 240 seconds]
11:25
benlovell has quit [Ping timeout: 260 seconds]
11:25
scholar01 has joined #ruby-lang
11:25
scholar01 has joined #ruby-lang
11:34
_jpb_ has quit [Ping timeout: 268 seconds]
11:34
_jpb_ has joined #ruby-lang
11:38
benlovell has joined #ruby-lang
11:39
vlad_starkov has joined #ruby-lang
11:44
vlad_starkov has quit [Ping timeout: 240 seconds]
11:45
yatish27 has joined #ruby-lang
11:46
gja has quit [Quit: This computer has gone to sleep]
11:47
jvrmaia has joined #ruby-lang
11:47
gja has joined #ruby-lang
11:48
retro|cz has quit [Ping timeout: 246 seconds]
11:48
hogeo has quit [Remote host closed the connection]
11:53
RickHull has quit [Quit: Leaving.]
11:54
_jpb_ has quit [Ping timeout: 240 seconds]
11:54
_jpb_ has joined #ruby-lang
11:55
jxie has quit [Quit: leaving]
11:59
mytrile has quit [Remote host closed the connection]
11:59
beerdy has joined #ruby-lang
11:59
xxaM has quit [Ping timeout: 256 seconds]
12:02
vlad_starkov has joined #ruby-lang
12:03
gja has quit [Quit: This computer has gone to sleep]
12:04
chimkan has joined #ruby-lang
12:05
gja has joined #ruby-lang
12:05
gja has quit [Remote host closed the connection]
12:06
realDAB has joined #ruby-lang
12:07
joshuawscott has joined #ruby-lang
12:11
_jpb_ has quit [Remote host closed the connection]
12:11
_jpb_ has joined #ruby-lang
12:13
chimkan has quit [Ping timeout: 256 seconds]
12:14
chimkan has joined #ruby-lang
12:15
ZOGM_ has quit [Remote host closed the connection]
12:15
benlovell has quit [Ping timeout: 264 seconds]
12:16
flip_digits has joined #ruby-lang
12:18
ZOGM has joined #ruby-lang
12:18
ldnunes has joined #ruby-lang
12:19
dhruvasagar has quit [Ping timeout: 256 seconds]
12:21
ledestin has quit [Quit: ledestin]
12:22
skade has joined #ruby-lang
12:23
glebm has quit [Quit: Computer has gone to sleep.]
12:24
kstuart has joined #ruby-lang
12:26
malev has joined #ruby-lang
12:27
kirin` has quit [Ping timeout: 260 seconds]
12:27
_jpb_ has quit [Ping timeout: 264 seconds]
12:28
kirin` has joined #ruby-lang
12:28
_jpb_ has joined #ruby-lang
12:28
flip_digits has quit [Remote host closed the connection]
12:31
enebo has joined #ruby-lang
12:32
flip_digits has joined #ruby-lang
12:32
scholar01 has quit [Quit: Leaving.]
12:33
cored has joined #ruby-lang
12:33
ZOGM has quit [Remote host closed the connection]
12:34
scampbell has joined #ruby-lang
12:38
banister`sleepy has quit [Remote host closed the connection]
12:38
fbernier has joined #ruby-lang
12:39
<
fbernier >
oops ...
12:39
<
yorickpeterse >
basecamp
12:40
cjs226 has quit [Ping timeout: 246 seconds]
12:44
_jpb_ has quit [Ping timeout: 256 seconds]
12:44
_jpb_ has joined #ruby-lang
12:45
tkuchiki has quit [Ping timeout: 240 seconds]
12:45
mdedetrich has quit [Quit: Computer has gone to sleep.]
12:47
canton7 has joined #ruby-lang
12:48
yalue has joined #ruby-lang
12:49
realDAB has quit [Quit: realDAB]
12:50
yatish27 has quit [Remote host closed the connection]
12:51
anonymuse has joined #ruby-lang
12:51
tkuchiki has joined #ruby-lang
12:53
_jpb_ has quit [Ping timeout: 240 seconds]
12:54
_jpb_ has joined #ruby-lang
12:56
riotbit_ has joined #ruby-lang
12:56
io_syl has joined #ruby-lang
12:57
tkuchiki_ has joined #ruby-lang
12:57
tkuchiki has quit [Read error: Connection reset by peer]
12:57
breakingthings has joined #ruby-lang
12:57
cored has quit [Ping timeout: 260 seconds]
12:58
riotbit has quit [Ping timeout: 276 seconds]
12:58
riotbit_ is now known as riotbit
12:59
enaqxx has quit [Remote host closed the connection]
13:00
chendo has quit [Ping timeout: 256 seconds]
13:00
enaqxx has joined #ruby-lang
13:00
kurko__ has joined #ruby-lang
13:00
_jpb_ has quit [Ping timeout: 268 seconds]
13:02
_jpb_ has joined #ruby-lang
13:04
enebo has quit [Quit: enebo]
13:05
cHarNe2 has joined #ruby-lang
13:05
cHarNe2 has left #ruby-lang [#ruby-lang]
13:05
wallerdev has joined #ruby-lang
13:06
diegoviola has joined #ruby-lang
13:06
ruby-lang081 has joined #ruby-lang
13:07
cored has joined #ruby-lang
13:07
ruby-lang081 has quit [Client Quit]
13:08
benlovell has joined #ruby-lang
13:10
maximveksler has joined #ruby-lang
13:12
glebm has joined #ruby-lang
13:12
cjs226 has joined #ruby-lang
13:14
tbuehlmann has joined #ruby-lang
13:14
chendo has joined #ruby-lang
13:15
Bosak has joined #ruby-lang
13:16
Bosak has quit [Client Quit]
13:16
ruby-lang833 has joined #ruby-lang
13:16
<
flip_digits >
How can I find out what class a method live in?
13:18
_jpb__ has joined #ruby-lang
13:18
sstrickl has quit [Quit: sstrickl]
13:18
_jpb_ has quit [Ping timeout: 264 seconds]
13:22
<
GarethAdams >
flip_digits: e.g. 3.class # => Fixnum; 3.method(:floor).owner # => Integer
13:23
<
flip_digits >
GarethAdams: Thank you exactly what I was looking for!
13:23
Guest81068 has quit [Read error: Connection reset by peer]
13:25
tomzx_mac has joined #ruby-lang
13:28
fuhgeddaboudit has joined #ruby-lang
13:28
grumpwork has joined #ruby-lang
13:30
wmoxam has joined #ruby-lang
13:31
_jpb__ has quit [Ping timeout: 256 seconds]
13:31
jxpx777 has joined #ruby-lang
13:32
_jpb_ has joined #ruby-lang
13:32
riotbit has quit [Ping timeout: 246 seconds]
13:33
riotbit has joined #ruby-lang
13:33
Guest81068 has joined #ruby-lang
13:36
MaddinXx has quit [Remote host closed the connection]
13:36
mdedetrich has joined #ruby-lang
13:41
malev has quit [Remote host closed the connection]
13:41
tris has joined #ruby-lang
13:42
judofyr has quit [Remote host closed the connection]
13:43
_jpb_ has quit [Ping timeout: 240 seconds]
13:44
malev has joined #ruby-lang
13:45
_jpb_ has joined #ruby-lang
13:46
havenwood has quit [Remote host closed the connection]
13:47
eugenejen has joined #ruby-lang
13:49
sstrickl has joined #ruby-lang
13:54
vlad_starkov has quit [Remote host closed the connection]
13:54
grumpwork is now known as pimpwork
13:54
pimpwork is now known as pipework
13:56
chimkan has quit [Ping timeout: 268 seconds]
13:56
havenwood has joined #ruby-lang
13:56
nathanstitt has joined #ruby-lang
13:57
chimkan has joined #ruby-lang
14:02
_jpb_ has quit [Remote host closed the connection]
14:02
_jpb_ has joined #ruby-lang
14:07
tkuchiki_ has quit [Remote host closed the connection]
14:08
spike|spiegel has quit [Quit: WeeChat 0.4.1]
14:09
spike|spiegel has joined #ruby-lang
14:13
tomzx_mac has quit [Ping timeout: 246 seconds]
14:15
stamina has quit [Ping timeout: 264 seconds]
14:17
rwilcox has joined #ruby-lang
14:20
Kabaka has quit [Remote host closed the connection]
14:23
Kabaka has joined #ruby-lang
14:23
realDAB has joined #ruby-lang
14:26
dhruvasagar has joined #ruby-lang
14:28
yfeldblum has quit [Ping timeout: 248 seconds]
14:29
tkuchiki has joined #ruby-lang
14:30
MaddinXx has joined #ruby-lang
14:30
_elia has joined #ruby-lang
14:31
eugenejen has quit [Ping timeout: 248 seconds]
14:31
_jpb_ has quit [Ping timeout: 276 seconds]
14:32
_jpb_ has joined #ruby-lang
14:33
elia has quit [Ping timeout: 260 seconds]
14:37
retro|cz has joined #ruby-lang
14:38
eugenejen has joined #ruby-lang
14:39
cored has quit [Ping timeout: 260 seconds]
14:39
riotbit has quit [Ping timeout: 246 seconds]
14:40
enebo has joined #ruby-lang
14:41
riotbit has joined #ruby-lang
14:41
benlovell has quit [Ping timeout: 264 seconds]
14:43
yfeldblum has joined #ruby-lang
14:47
_jpb_ has quit [Ping timeout: 276 seconds]
14:47
_jpb_ has joined #ruby-lang
14:47
<
yorickpeterse >
injekt: down to 25 seconds for the entire suite
14:47
<
yorickpeterse >
instead of around 1m30
14:47
<
yorickpeterse >
pretty sure I can get it lower too
14:48
riotbit has quit [Ping timeout: 264 seconds]
14:49
riotbit has joined #ruby-lang
14:49
killthe|afk is now known as killtheliterate
14:52
shinnya has joined #ruby-lang
14:54
yxhuvud2 has quit [Ping timeout: 248 seconds]
14:55
vlad_starkov has joined #ruby-lang
14:55
io_syl has quit [Quit: io_syl]
14:56
kstuart has quit [Ping timeout: 240 seconds]
14:57
dernise has joined #ruby-lang
14:59
vlad_starkov has quit [Ping timeout: 240 seconds]
15:02
javajax has joined #ruby-lang
15:04
<
yorickpeterse >
heh, fucking Rails boot time
15:04
<
yorickpeterse >
test suite runs in 24 seconds, total time is 46 seconds
15:04
solars has quit [Ping timeout: 264 seconds]
15:05
<
lianj >
yorickpeterse: yea
15:05
<
lianj >
best you can do is use guard
15:05
<
lianj >
(for some cases it works fine)
15:05
<
yorickpeterse >
ok dayum, it seems my solution of calling destroy_all on all models is actually pretty slow
15:05
<
yorickpeterse >
booo
15:07
riotbit_ has joined #ruby-lang
15:08
riotbit has quit [Ping timeout: 240 seconds]
15:08
riotbit_ is now known as riotbit
15:08
dhsmith has joined #ruby-lang
15:11
<
dernise >
Do you think there's a way to stream your screen in Ruby ? On a linux desktop
15:11
<
dernise >
Like a VNC server in ruby
15:11
<
dernise >
(For linux and mac desktops only)
15:12
_jpb_ has quit [Ping timeout: 276 seconds]
15:12
_jpb_ has joined #ruby-lang
15:15
io_syl has joined #ruby-lang
15:15
benlovell has joined #ruby-lang
15:15
<
ddfreyne >
yorickpeterse: Have a Ruby process that loads all rails stuff on startup, listens to test requests and forks itself and runs the tests when a request is received
15:16
<
yorickpeterse >
Preferrably I'd use as little of zeus/guard as possible
15:16
<
yorickpeterse >
They add potential problems and I feel like it's putting lipstick on a pig
15:17
yxhuvud has joined #ruby-lang
15:19
mistym has joined #ruby-lang
15:19
stamina has joined #ruby-lang
15:19
_jpb_ has quit [Ping timeout: 240 seconds]
15:20
_jpb_ has joined #ruby-lang
15:25
dhruvasagar has quit [Ping timeout: 256 seconds]
15:27
flori has quit [Read error: Operation timed out]
15:28
flori has joined #ruby-lang
15:28
s_s_l has joined #ruby-lang
15:29
setmeaway2 has joined #ruby-lang
15:31
maximveksler has quit [Read error: Connection reset by peer]
15:31
_jpb_ has quit [Ping timeout: 240 seconds]
15:31
s_s_l has quit [Remote host closed the connection]
15:32
_jpb_ has joined #ruby-lang
15:32
dernise has quit [Remote host closed the connection]
15:32
minivan1 has quit [Ping timeout: 260 seconds]
15:32
setmeaway has quit [Read error: Connection reset by peer]
15:35
maximveksler has joined #ruby-lang
15:35
cored has joined #ruby-lang
15:36
henrikhodne has joined #ruby-lang
15:36
<
injekt >
yorickpeterse: awesome!
15:37
dernise has joined #ruby-lang
15:37
zomgbie has joined #ruby-lang
15:38
<
injekt >
yorickpeterse: destroy_all instantiates each record
15:38
<
injekt >
use delete_all if you can
15:38
ffio has joined #ruby-lang
15:38
skade has joined #ruby-lang
15:39
<
andrewvos >
yorickpeterse: Care to document what you've been doing?
15:39
<
yorickpeterse >
jesus, 35 seconds to get Rails to boot up using 'runner'
15:39
<
yorickpeterse >
andrewvos: basically I just removed all use of database_cleaner
15:39
<
yorickpeterse >
that's really it
15:39
<
yorickpeterse >
It's only used in a config.before(:suite) block now
15:39
Voker57 has quit []
15:39
<
yorickpeterse >
I'm now trying to find out what fucker makes Rails so slow during boot
15:40
saarinen has joined #ruby-lang
15:40
<
injekt >
yorickpeterse: database cleaner in just a before suite is almost like having no database cleaner
15:41
<
yorickpeterse >
yeah
15:41
<
andrewvos >
Yeah that's not a good idea
15:41
apeiros has quit [Remote host closed the connection]
15:41
<
yorickpeterse >
eh no it is
15:41
<
yorickpeterse >
because my tests were fixed so that they don't impose DB pedantics
15:41
<
yorickpeterse >
e.g. they only take into account what they should
15:42
<
yorickpeterse >
which is actually a much closer representation of the real world
15:42
<
injekt >
next step: stop hitting the db where you can
15:42
<
yorickpeterse >
well yeah, but I have quite a bit of AR model code
15:42
<
yorickpeterse >
(that requires a DB query at some point)
15:42
_jpb_ has quit [Ping timeout: 240 seconds]
15:42
io_syl has quit [Quit: io_syl]
15:42
<
yorickpeterse >
also god damn it, of course that one time I actually want to profile Kernel#require I removed the snippet from Gist
15:44
ffio has quit [Quit: WeeChat 0.4.1]
15:44
rwilcox has quit [Ping timeout: 240 seconds]
15:45
<
yorickpeterse >
found something that does it too, yay
15:46
henrikhodne has quit [Ping timeout: 246 seconds]
15:47
arooni-mobile has joined #ruby-lang
15:49
_jpb_ has joined #ruby-lang
15:51
mdedetrich has quit [Quit: Computer has gone to sleep.]
15:51
tdm00 has joined #ruby-lang
15:51
dhruvasagar has joined #ruby-lang
15:52
mistym has quit [Remote host closed the connection]
15:52
ruby-lang833 has quit [Ping timeout: 250 seconds]
15:54
<
yorickpeterse >
Hmpf, I'd reckon not loading Pry could save some time
15:54
<
yorickpeterse >
doesn't make sense to load it outside of a console or unless explicitly required
15:54
<
yorickpeterse >
WHAT TEH FUCK
15:54
skade has quit [Quit: Computer has gone to sleep.]
15:54
<
yorickpeterse >
28 SECONDS FOR TZINFO?
15:54
<
yorickpeterse >
WHAT
15:54
<
yorickpeterse >
0.080000 0.010000 0.090000 ( 28.524497): tzinfo
15:54
<
yorickpeterse >
WHAT
15:55
javajax has quit [Quit: Leaving.]
15:55
<
matti >
28 s of what?
15:55
<
yorickpeterse >
There's a require call to `tzinfo` which takes 28 seconds somehow
15:56
<
yorickpeterse >
matti: nfi
15:56
<
yorickpeterse >
wait, I can abuse `caller` for that
15:56
<
matti >
What gem is nfi?
15:56
<
injekt >
'no fucking idea'
15:56
_jpb_ has quit [Ping timeout: 256 seconds]
15:57
TheNotary has joined #ruby-lang
15:57
_jpb_ has joined #ruby-lang
15:58
saarinen has quit [Quit: saarinen]
15:59
kurko__ has quit [Ping timeout: 276 seconds]
15:59
fbernier has quit [Ping timeout: 248 seconds]
16:01
dtcrshr has joined #ruby-lang
16:01
<
yorickpeterse >
wait wtf, this is some serious weird stuff, now it takes no time but webrick is slow
16:01
<
yorickpeterse >
what on earth
16:02
dtcrshr has left #ruby-lang ["tchau"]
16:02
kurko__ has joined #ruby-lang
16:02
benlovell has quit [Ping timeout: 246 seconds]
16:02
dwknoxy has quit [Quit: Computer has gone to sleep.]
16:04
jxpx777 has quit [Quit: Leaving...]
16:06
mistym has joined #ruby-lang
16:06
zomgbie has quit [Ping timeout: 240 seconds]
16:07
<
yorickpeterse >
haha wow, loading the webrick Gem does slow things down quite a bit
16:07
<
yorickpeterse >
about 6 seconds
16:07
<
yorickpeterse >
and it appears that the lucky motherfucker to get shot is database_cleaner
16:07
<
matti >
yorickpeterse: Young man, what on Earth are you doing?
16:08
<
yorickpeterse >
matti: fixing my Rails startup times
16:08
<
yorickpeterse >
secret sauce
16:09
<
matti >
yorickpeterse: Just do what Java dudes do.
16:09
<
matti >
yorickpeterse: They do not care about how long it takes to bootstrap JVM ;p
16:09
<
yorickpeterse >
ok and now it's down to 15seconds. What the hell
16:09
<
andrewvos >
How many gems yorickpeterse?
16:09
<
matti >
yorickpeterse: 15s?! Oops.
16:10
<
yorickpeterse >
in previous runs it took around 30 seconds to run `rails r ''`
16:10
saarinen has joined #ruby-lang
16:10
realDAB has quit [Quit: realDAB]
16:10
<
yorickpeterse >
I feal that other processes are affecting it
16:10
<
yorickpeterse >
* feel
16:10
<
yorickpeterse >
andrewvos: 79 in total
16:10
<
yorickpeterse >
that's all the deps and such
16:11
<
yorickpeterse >
(as in, deeply nested deps, etc)
16:11
<
andrewvos >
yorickpeterse: I have 101 last time I checked and it's quicker than that to boot
16:11
<
yorickpeterse >
oh that shit, meh
16:11
<
yorickpeterse >
well there we go, 7 seconds
16:11
<
yorickpeterse >
bye webrick, bye database cleaner
16:11
dagobah has quit [Remote host closed the connection]
16:12
ffio has joined #ruby-lang
16:12
apeiros has joined #ruby-lang
16:13
<
yorickpeterse >
if I had a penny for every time I said something naughty in here I'd be rich
16:14
ffio has quit [Client Quit]
16:14
dernise has quit [Ping timeout: 268 seconds]
16:14
retro|cz has quit [Ping timeout: 268 seconds]
16:15
dhruvasagar has quit [Ping timeout: 264 seconds]
16:19
<
yorickpeterse >
home tiem
16:22
MaddinXx has quit [Remote host closed the connection]
16:23
ffio has joined #ruby-lang
16:24
zomgbie has joined #ruby-lang
16:24
anonymuse has quit [Remote host closed the connection]
16:27
anonymus_ has joined #ruby-lang
16:28
cored has quit [Ping timeout: 264 seconds]
16:28
gregmoreno has joined #ruby-lang
16:28
duphus has joined #ruby-lang
16:33
eugenejen has quit [Quit: eugenejen]
16:34
_jpb_ has quit [Ping timeout: 240 seconds]
16:35
_jpb_ has joined #ruby-lang
16:35
jsullivandigs has joined #ruby-lang
16:36
jsullivandigs has quit [Read error: Connection reset by peer]
16:36
jsullivandigs has joined #ruby-lang
16:37
eugenejen has joined #ruby-lang
16:45
_jpb_ has quit [Ping timeout: 240 seconds]
16:46
_jpb_ has joined #ruby-lang
16:48
mbj has joined #ruby-lang
16:48
rshetty has joined #ruby-lang
16:49
henrikhodne has joined #ruby-lang
16:49
rshetty has quit [Client Quit]
16:50
TheNotary has quit [Ping timeout: 276 seconds]
16:50
diegoviola has quit [Quit: WeeChat 0.4.1]
16:50
io_syl has joined #ruby-lang
16:50
skade has joined #ruby-lang
16:51
_elia has quit [Ping timeout: 240 seconds]
16:52
glebm has quit [Quit: Computer has gone to sleep.]
16:53
ffio has quit [Quit: WeeChat 0.4.1]
16:53
duphus has quit [Quit: Leaving.]
16:54
pipework has quit [Remote host closed the connection]
16:54
sepp2k has joined #ruby-lang
16:55
eugenejen has quit [Quit: eugenejen]
16:55
skade has quit [Ping timeout: 276 seconds]
16:56
__butch__ has joined #ruby-lang
16:57
jxie has joined #ruby-lang
16:57
maxmanders has quit [Quit: Computer has gone to sleep.]
16:58
skade has joined #ruby-lang
16:58
ffio has joined #ruby-lang
16:59
dhruvasagar has joined #ruby-lang
17:01
mbj_ has joined #ruby-lang
17:02
TheNotary has joined #ruby-lang
17:02
mbj has quit [Ping timeout: 276 seconds]
17:02
<
yorickpeterse >
6 seconds to rails r, not bad
17:03
<
yorickpeterse >
removing `Bundler.require` was the best little tweak I've made on this train ride so far
17:03
Nilium has quit [Ping timeout: 276 seconds]
17:03
<
yorickpeterse >
No point in loading YARD, Kramdown, etc, etc if you don't use it during development all the time
17:04
arooni-mobile has quit [Ping timeout: 276 seconds]
17:05
beerdy has quit [Remote host closed the connection]
17:06
<
andrewvos >
Yeah fuck Bundler.require
17:09
realDAB has joined #ruby-lang
17:10
<
chris2 >
fuck bundler :P
17:10
steve0341 has joined #ruby-lang
17:10
steve0341 has quit [Client Quit]
17:11
<
zzak >
you can just add require: false to your Gemfile too
17:11
_jpb_ has quit [Remote host closed the connection]
17:11
_jpb_ has joined #ruby-lang
17:11
<
andrewvos >
Bundle.require(:your_mom)
17:12
<
andrewvos >
Probably a better bet (zzak)
17:12
<
andrewvos >
Surprised you have all your test passing yorickpeterse, to be honest.
17:12
<
andrewvos >
After removing Bundler.require
17:13
<
andrewvos >
Right I'm out peace
17:13
ffio has quit [Quit: WeeChat 0.4.1]
17:13
dc5ala has joined #ruby-lang
17:15
Nilium has joined #ruby-lang
17:17
_jpb_ has quit [Ping timeout: 264 seconds]
17:17
_jpb_ has joined #ruby-lang
17:19
<
tubbo >
is there a way to notate raw bytes in ruby?
17:20
<
tubbo >
just trying to write a test for sending raw video frame data into a ZMQ 3 socket
17:20
ilyam has joined #ruby-lang
17:21
eugenejen has joined #ruby-lang
17:21
mbj_ has quit [Ping timeout: 240 seconds]
17:21
<
lianj >
tubbo: set the encoding to binary?
17:22
skade has quit [Ping timeout: 264 seconds]
17:22
<
spike|spiegel >
Encoding::BINARY/ASCII-8BIT
17:23
bgant has joined #ruby-lang
17:23
jxpx777 has joined #ruby-lang
17:23
Sarcophabus has joined #ruby-lang
17:25
<
tubbo >
lianj: is that globally set? or just the encoding on the string?
17:25
arooni-mobile has joined #ruby-lang
17:26
<
spike|spiegel >
every string gets encoding
17:26
<
spike|spiegel >
and there's all sorts of default encodings
17:27
_jpb_ has quit [Ping timeout: 240 seconds]
17:27
<
spike|spiegel >
if you are reading from an IO you can set I objects internal/external encodings
17:27
eugenejen has quit [Quit: eugenejen]
17:27
jxpx777 has quit [Ping timeout: 256 seconds]
17:27
kstuart has joined #ruby-lang
17:28
_jpb_ has joined #ruby-lang
17:28
mbj has joined #ruby-lang
17:28
<
zzak >
>> Encoding.default_external
17:28
<
zzak >
>> Encoding.default_external.ascii_compatible?
17:28
<
tubbo >
spike|spiegel: i'm actually writing raw frame data from Cairo into a ZMQ::Socket
17:28
<
tubbo >
>> Encoding::BINARY
17:29
<
zzak >
>> RUBY_DESCRIPTION
17:29
<
yorickpeterse >
zzak: doesn't work if the deps are not in the Gemfile but in a gemspec
17:29
<
zzak >
it was binary
17:29
<
yorickpeterse >
(e.g. rails engines)
17:29
<
spike|spiegel >
tubbo: what's so wrong with that?
17:29
<
zzak >
yorickpeterse: oh true
17:29
<
spike|spiegel >
ascii-8bit is raw 8bit
17:30
<
spike|spiegel >
(with benefits)
17:30
TheNotary has quit [Quit: Leaving]
17:30
anonymus_ has quit [Remote host closed the connection]
17:31
skade has joined #ruby-lang
17:32
<
tubbo >
spike|spiegel: nothing's wrong with it haha
17:32
banister`sleepy has joined #ruby-lang
17:33
<
tubbo >
spike|spiegel: i just didn't write this portion of my program and i believe the dude who did just left for the day
17:33
<
tubbo >
spike|spiegel: so basically i want to make a String, then set its encoding to binary, and then that's basically the kind of object i'm dealing with in production?
17:33
_jpb_ has quit [Ping timeout: 264 seconds]
17:33
anonymuse has joined #ruby-lang
17:34
_jpb_ has joined #ruby-lang
17:34
<
tubbo >
because in production it reads from a Cairo surface which is generating raw frame data. it would be a lot of work right now to actually run Cairo and see the data notated myself
17:34
<
spike|spiegel >
if you already have a string and it didn't blow up...:)
17:35
<
zzak >
i think it should just work with utf
17:35
<
zzak >
or whatever your default is
17:36
<
spike|spiegel >
nawww, utf8 will blow up
17:38
eugenejen has joined #ruby-lang
17:40
enaqxx has quit [Remote host closed the connection]
17:40
enaqxx has joined #ruby-lang
17:42
<
tubbo >
yeah and it's not really what i want to test
17:44
ffio has joined #ruby-lang
17:45
workmad3 has joined #ruby-lang
17:45
eugenejen has quit [Quit: eugenejen]
17:47
mbr_ has left #ruby-lang [#ruby-lang]
17:48
mbr has joined #ruby-lang
17:48
jxpx777 has joined #ruby-lang
17:48
enaqxx has quit [Remote host closed the connection]
17:49
enaqxx has joined #ruby-lang
17:52
skade has quit [Ping timeout: 246 seconds]
17:56
_jpb_ has quit [Ping timeout: 248 seconds]
17:56
_jpb_ has joined #ruby-lang
17:56
Shayan has joined #ruby-lang
17:57
hahuang65 has joined #ruby-lang
17:57
RickHull has joined #ruby-lang
17:58
hahuang65 has quit [Client Quit]
17:58
hahuang65 has joined #ruby-lang
17:58
hahuang65 has quit [Client Quit]
17:58
hahuang65 has joined #ruby-lang
18:01
imperator has joined #ruby-lang
18:02
skade has joined #ruby-lang
18:02
breakingthings has quit [Quit: breakingthings]
18:03
realDAB has quit [Quit: realDAB]
18:05
<
imperator >
greetings programs
18:05
tkuchiki has quit [Remote host closed the connection]
18:05
jsullivandigs has quit [Remote host closed the connection]
18:06
jsullivandigs has joined #ruby-lang
18:07
hashkey has joined #ruby-lang
18:07
pipework has joined #ruby-lang
18:08
eugenejen has joined #ruby-lang
18:09
nrk has quit [Quit: WeeChat 0.3.2]
18:10
jsullivandigs has quit [Ping timeout: 240 seconds]
18:10
tkuchiki has joined #ruby-lang
18:11
breakingthings has joined #ruby-lang
18:12
arooni-mobile has quit [Ping timeout: 276 seconds]
18:13
banister`sleepy has quit [Remote host closed the connection]
18:15
_jpb_ has quit [Ping timeout: 264 seconds]
18:15
arooni-mobile has joined #ruby-lang
18:15
tkuchiki has quit [Ping timeout: 276 seconds]
18:16
_jpb_ has joined #ruby-lang
18:18
JoL1hAHN has joined #ruby-lang
18:19
workmad3 has quit [Ping timeout: 256 seconds]
18:19
eugenejen has quit [Quit: eugenejen]
18:20
firstdayonthejob has joined #ruby-lang
18:22
<
apeiros >
but… I'm a user!
18:24
hahuang65 has quit [Quit: leaving]
18:25
_jpb_ has quit [Ping timeout: 256 seconds]
18:25
_jpb_ has joined #ruby-lang
18:25
symm- has joined #ruby-lang
18:29
digs has joined #ruby-lang
18:29
pkrnj has joined #ruby-lang
18:29
digs is now known as Guest76718
18:34
eugenejen has joined #ruby-lang
18:34
kstuart has quit [Ping timeout: 256 seconds]
18:37
JohannHann has joined #ruby-lang
18:38
JohannHann has left #ruby-lang [#ruby-lang]
18:40
<
imperator >
apeiros, religious fanatic!
18:41
retro|cz has joined #ruby-lang
18:44
skade has quit [Ping timeout: 240 seconds]
18:45
arooni-mobile has quit [Ping timeout: 264 seconds]
18:45
rickruby has quit [Remote host closed the connection]
18:46
Squarepy has joined #ruby-lang
18:50
ffio has quit [Ping timeout: 240 seconds]
18:51
ffio_ has joined #ruby-lang
18:51
sstrickl has quit [Quit: sstrickl]
18:55
skade has joined #ruby-lang
18:55
Avatar[01] has quit [Remote host closed the connection]
18:56
LauraE has joined #ruby-lang
18:56
_jpb_ has quit [Ping timeout: 240 seconds]
18:58
_jpb_ has joined #ruby-lang
19:01
LauraE has quit [Quit: Leaving]
19:05
mbj has quit [Quit: leaving]
19:05
havenwood has quit [Remote host closed the connection]
19:05
saarinen has quit [Quit: saarinen]
19:08
_jpb_ has quit [Ping timeout: 268 seconds]
19:08
_jpb_ has joined #ruby-lang
19:08
wallerdev has quit [Quit: wallerdev]
19:09
workmad3 has joined #ruby-lang
19:09
Avatar[01] has joined #ruby-lang
19:09
realDAB has joined #ruby-lang
19:10
skade has quit [Ping timeout: 240 seconds]
19:11
saarinen has joined #ruby-lang
19:12
hashkey has quit [Read error: Connection reset by peer]
19:12
hashkey has joined #ruby-lang
19:13
hashkey is now known as Guest27467
19:13
hahuang65 has joined #ruby-lang
19:14
arooni-mobile has joined #ruby-lang
19:15
havenwood has joined #ruby-lang
19:17
canton7 has quit [*.net *.split]
19:17
scampbell has quit [*.net *.split]
19:17
zmike123 has quit [*.net *.split]
19:17
joast has quit [*.net *.split]
19:17
scottschecter has quit [*.net *.split]
19:17
ruskie has quit [*.net *.split]
19:17
Silex^^ has quit [*.net *.split]
19:17
dabradley has quit [*.net *.split]
19:17
djinni` has quit [*.net *.split]
19:17
ericwood has quit [*.net *.split]
19:17
eleanor has quit [*.net *.split]
19:17
perry has quit [*.net *.split]
19:17
jarib has quit [*.net *.split]
19:17
jinie has quit [*.net *.split]
19:17
jwollert- has quit [*.net *.split]
19:17
rebelcan has quit [*.net *.split]
19:17
wnd has quit [*.net *.split]
19:17
maloik has quit [*.net *.split]
19:17
Guest30040 has quit [*.net *.split]
19:17
cout has quit [*.net *.split]
19:17
kennyvb has quit [*.net *.split]
19:18
skade has joined #ruby-lang
19:18
hahuang65 has quit [Client Quit]
19:18
dLog_ has joined #ruby-lang
19:18
canton7 has joined #ruby-lang
19:18
joast has joined #ruby-lang
19:18
zmike123 has joined #ruby-lang
19:18
eleanor has joined #ruby-lang
19:18
scampbell has joined #ruby-lang
19:18
kennyvb has joined #ruby-lang
19:18
ruskie has joined #ruby-lang
19:18
rebelcan has joined #ruby-lang
19:18
jwollert- has joined #ruby-lang
19:18
djinni` has joined #ruby-lang
19:18
maloik has joined #ruby-lang
19:18
ericwood has joined #ruby-lang
19:18
wnd has joined #ruby-lang
19:18
scottschecter has joined #ruby-lang
19:18
cout has joined #ruby-lang
19:18
perry has joined #ruby-lang
19:18
Guest30040 has joined #ruby-lang
19:18
dabradley has joined #ruby-lang
19:18
jinie has joined #ruby-lang
19:18
jarib has joined #ruby-lang
19:18
Silex^^ has joined #ruby-lang
19:19
hahuang65 has joined #ruby-lang
19:19
<
apeiros >
imperator: please, I'm not in the least religious!
19:19
hahuang65 has quit [Client Quit]
19:19
workmad3 has quit [Ping timeout: 243 seconds]
19:20
firstdayonthejob has quit [*.net *.split]
19:20
kurko__ has quit [*.net *.split]
19:20
shinnya has quit [*.net *.split]
19:20
enebo has quit [*.net *.split]
19:20
nathanstitt has quit [*.net *.split]
19:20
charliesome has quit [*.net *.split]
19:20
marr has quit [*.net *.split]
19:20
jbsan has quit [*.net *.split]
19:20
oddmunds has quit [*.net *.split]
19:20
joschi has quit [*.net *.split]
19:20
Cremno has quit [*.net *.split]
19:20
crankharder has quit [*.net *.split]
19:20
DEac-_ has quit [*.net *.split]
19:20
jaimef has quit [*.net *.split]
19:20
segy has quit [*.net *.split]
19:20
EvilAww has quit [*.net *.split]
19:20
Kabaka has quit [*.net *.split]
19:20
coloss4l has joined #ruby-lang
19:20
ilyam has quit [Quit: ilyam]
19:21
nathanstitt has joined #ruby-lang
19:21
marr has joined #ruby-lang
19:21
enebo has joined #ruby-lang
19:21
shinnya has joined #ruby-lang
19:21
firstdayonthejob has joined #ruby-lang
19:21
jbsan has joined #ruby-lang
19:21
kurko__ has joined #ruby-lang
19:21
joschi has joined #ruby-lang
19:21
Cremno has joined #ruby-lang
19:21
oddmunds has joined #ruby-lang
19:21
jaimef has joined #ruby-lang
19:21
charliesome has joined #ruby-lang
19:21
segy has joined #ruby-lang
19:21
DEac-_ has joined #ruby-lang
19:21
crankharder has joined #ruby-lang
19:21
coloss4l has quit [Write error: Connection reset by peer]
19:21
Aww_ has joined #ruby-lang
19:21
jaimef has quit [Max SendQ exceeded]
19:22
dickson66 has quit [*.net *.split]
19:22
dLog has quit [Ping timeout: 276 seconds]
19:22
dickson66 has joined #ruby-lang
19:22
Aww_ is now known as EvilAww
19:23
jaimef has joined #ruby-lang
19:23
sstrickl has joined #ruby-lang
19:23
eugenejen has quit [*.net *.split]
19:23
JoL1hAHN has quit [*.net *.split]
19:23
enaqxx has quit [*.net *.split]
19:23
gregmoreno has quit [*.net *.split]
19:23
stamina has quit [*.net *.split]
19:23
ammar__ has quit [*.net *.split]
19:23
jmeeuwen has quit [*.net *.split]
19:23
s0ber has quit [*.net *.split]
19:23
rondale_sc has quit [*.net *.split]
19:23
wudofyr has quit [*.net *.split]
19:23
vivekrai has quit [*.net *.split]
19:23
danrabinowitz has quit [*.net *.split]
19:23
Kuukunen has quit [*.net *.split]
19:23
sindork_ has quit [*.net *.split]
19:23
Olipro has quit [*.net *.split]
19:23
akahn has quit [*.net *.split]
19:23
wycats_ has quit [*.net *.split]
19:23
fumduq- has quit [*.net *.split]
19:23
ahf has quit [*.net *.split]
19:23
khaase_ has quit [*.net *.split]
19:24
zomgbie has quit [Read error: Connection reset by peer]
19:25
Kabaka has joined #ruby-lang
19:25
zomgbie has joined #ruby-lang
19:25
jonahR has joined #ruby-lang
19:26
s0ber has joined #ruby-lang
19:28
dc5ala has quit [Quit: Ex-Chat]
19:29
ammar has joined #ruby-lang
19:29
Kuukunen has joined #ruby-lang
19:29
rondale_sc has joined #ruby-lang
19:29
ahf has joined #ruby-lang
19:29
ahf has quit [Changing host]
19:29
ahf has joined #ruby-lang
19:30
skade has quit [Ping timeout: 264 seconds]
19:31
skade has joined #ruby-lang
19:31
ndrst has quit [Ping timeout: 261 seconds]
19:34
danrabinowitz has joined #ruby-lang
19:35
zalmoxe has joined #ruby-lang
19:35
eugenejen has joined #ruby-lang
19:35
stamina has joined #ruby-lang
19:35
wudofyr has joined #ruby-lang
19:35
vivekrai has joined #ruby-lang
19:35
fumduq- has joined #ruby-lang
19:35
JoL1hAHN has joined #ruby-lang
19:35
jmeeuwen has joined #ruby-lang
19:35
akahn has joined #ruby-lang
19:35
sindork_ has joined #ruby-lang
19:35
enaqxx has joined #ruby-lang
19:35
khaase_ has joined #ruby-lang
19:35
wycats_ has joined #ruby-lang
19:35
danrabinowitz has left #ruby-lang [#ruby-lang]
19:36
minivan1 has joined #ruby-lang
19:36
gregmoreno has joined #ruby-lang
19:36
zalmoxe has left #ruby-lang [#ruby-lang]
19:36
Olipro has joined #ruby-lang
19:37
blanoz has joined #ruby-lang
19:39
hahuang65 has joined #ruby-lang
19:40
henrikhodne has quit [Changing host]
19:40
henrikhodne has joined #ruby-lang
19:42
zmike123 has quit [Quit: ~]
19:42
hahuang65 has quit [Client Quit]
19:43
Guest81068 has quit [Quit: This computer has gone to sleep]
19:48
_jpb_ has quit [Ping timeout: 276 seconds]
19:49
_jpb_ has joined #ruby-lang
19:49
retro|cz has quit [Remote host closed the connection]
19:50
sepp2k1 has joined #ruby-lang
19:51
sepp2k has quit [Ping timeout: 264 seconds]
19:51
hahuang65 has joined #ruby-lang
19:51
hahuang65 has quit [Client Quit]
19:52
elia has joined #ruby-lang
19:52
hahuang65 has joined #ruby-lang
19:53
peeyek has joined #ruby-lang
19:54
hahuang65 has quit [Client Quit]
19:54
mistym is now known as mistym_lunch
19:54
hahuang65 has joined #ruby-lang
19:54
hahuang65 has quit [Client Quit]
19:55
chimkan has quit [Ping timeout: 240 seconds]
19:56
hahuang65 has joined #ruby-lang
19:56
chimkan has joined #ruby-lang
19:56
vlad_starkov has joined #ruby-lang
19:57
jxpx777 has quit [Quit: Leaving...]
19:58
<
matti >
The Church of Apeiros
19:58
<
apeiros >
good, that's separation of concerns - you're the religious, I'm the fanatic
20:01
saarinen has quit [Quit: saarinen]
20:01
vlad_starkov has quit [Ping timeout: 256 seconds]
20:03
jroesch has joined #ruby-lang
20:03
AM7 has joined #ruby-lang
20:04
yalue has quit [Quit: Leaving]
20:04
_jpb__ has joined #ruby-lang
20:04
henrikhodne has quit [Ping timeout: 248 seconds]
20:05
s1n4 has joined #ruby-lang
20:05
s1n4 is now known as Guest8911
20:05
<
matti >
apeiros: If you get your own church, you can get tax relief.
20:05
<
matti >
apeiros: ;p
20:06
<
apeiros >
not in this country, I think
20:06
<
apeiros >
not sure actually
20:06
AM7 has quit [Client Quit]
20:06
AM7 has joined #ruby-lang
20:07
<
matti >
I state "Jedi" as my religion every year in the UK's Census form :)
20:09
MaddinXx has joined #ruby-lang
20:10
<
drbrain >
matti: why haven't I heard of the Sith purge of Jedi?
20:10
_jpb__ has quit [Quit: leaving]
20:10
<
drbrain >
down to 176,632 from 390,000 in a decade!
20:10
arooni-mobile has quit [Ping timeout: 240 seconds]
20:10
_jpb__ has joined #ruby-lang
20:10
<
drbrain >
that's 20,000 Jedi per year!
20:10
* matti
hides under the bed.
20:11
<
matti >
drbrain: That's a true Jedicide.
20:12
_jpb_ has quit [Ping timeout: 264 seconds]
20:12
_jpb_ has joined #ruby-lang
20:15
elia has quit [Quit: Computer has gone to sleep.]
20:16
Shayan has quit [Remote host closed the connection]
20:18
AM7 has quit [Quit: Computer has gone to sleep.]
20:19
Squarepy has quit [Quit: Leaving]
20:19
_jpb_ has quit [Remote host closed the connection]
20:20
_jpb_ has joined #ruby-lang
20:20
peeyek has quit [Read error: Connection reset by peer]
20:22
workmad3 has joined #ruby-lang
20:22
isomorphismes has left #ruby-lang [#ruby-lang]
20:26
henrikhodne has joined #ruby-lang
20:28
Guest8911 has quit [Quit: leaving]
20:29
AM7 has joined #ruby-lang
20:29
scampbell has quit [Read error: Connection reset by peer]
20:29
singpolyma has quit [Quit: Lost terminal]
20:29
AM7 has quit [Client Quit]
20:29
singpolyma has joined #ruby-lang
20:30
AM7 has joined #ruby-lang
20:31
AM7 has quit [Client Quit]
20:32
_jpb_ has quit [Remote host closed the connection]
20:34
mbj has joined #ruby-lang
20:34
mrsolo has joined #ruby-lang
20:34
mrsolo has quit [Remote host closed the connection]
20:35
stamina has quit [Ping timeout: 246 seconds]
20:36
saarinen has joined #ruby-lang
20:36
yankov has joined #ruby-lang
20:37
_jpb_ has joined #ruby-lang
20:37
yankov has quit [Client Quit]
20:40
minivan1 has quit [Ping timeout: 268 seconds]
20:41
fuhgeddaboudit has quit [Remote host closed the connection]
20:41
Guest27467 is now known as hashkey
20:43
workmad3 has quit [Ping timeout: 240 seconds]
20:45
arooni-mobile has joined #ruby-lang
20:46
dhsmith_ has joined #ruby-lang
20:47
MaddinXx has quit [Remote host closed the connection]
20:48
ilyam has joined #ruby-lang
20:48
mbj has quit [Ping timeout: 264 seconds]
20:49
dhsmith has quit [Ping timeout: 240 seconds]
20:49
_jpb_ has quit [Ping timeout: 268 seconds]
20:50
nofxx_ has joined #ruby-lang
20:50
nofxx_ has joined #ruby-lang
20:50
_jpb_ has joined #ruby-lang
20:52
nofxx has quit [Ping timeout: 268 seconds]
20:52
fuhgeddaboudit has joined #ruby-lang
20:52
peeyek has joined #ruby-lang
20:54
fuhgeddaboudit has quit [Remote host closed the connection]
20:57
<
whitequark >
TIL: you can use literal \0's in ruby in a lot of contexts
20:57
<
whitequark >
such as, for example, heredoc delimiters. <<"x\0"+\nfoo\nx\0\n"1"
20:57
* whitequark
silently weeps
20:59
breakingthings has quit [Quit: breakingthings]
21:01
_jpb_ has quit [Ping timeout: 264 seconds]
21:02
beawesomeinstead has quit [Ping timeout: 256 seconds]
21:02
nisstyre has joined #ruby-lang
21:03
_jpb_ has joined #ruby-lang
21:03
<
drbrain >
>> eval "%q\0a b c\0"
21:04
<
yorickpeterse >
whitequark: I'm glad you don't have a gun
21:04
beawesomeinstead has joined #ruby-lang
21:04
__butch__ has quit [Remote host closed the connection]
21:04
<
yorickpeterse >
bad things would happen if you did
21:04
__butch__ has joined #ruby-lang
21:05
mistym_lunch is now known as mistym
21:05
jonahR has quit [Ping timeout: 268 seconds]
21:05
<
ericwood >
hahahahahaha
21:05
<
ericwood >
that's awesome, good find whitequark
21:09
setmeaway2 has quit [Ping timeout: 240 seconds]
21:11
jonahR has joined #ruby-lang
21:12
* whitequark
slaps himself around a bit with a large trout
21:12
symm- has quit [Ping timeout: 276 seconds]
21:13
hahuang65 has quit [Quit: leaving]
21:13
* yorickpeterse
slaps whitequark and starts getting carried away
21:14
hahuang65 has joined #ruby-lang
21:14
_jpb_ has quit [Ping timeout: 256 seconds]
21:14
_jpb_ has joined #ruby-lang
21:16
arooni-mobile has quit [Ping timeout: 264 seconds]
21:17
<
yxhuvud >
whitequark: you can also use whitespace:
21:17
<
yxhuvud >
>> %q hello .upcase
21:17
hahuang65 has quit [Client Quit]
21:17
ldnunes has quit [Quit: Leaving]
21:18
<
yxhuvud >
or linebreaks for that matter
21:21
ilyam has quit [Quit: ilyam]
21:21
bgant has quit [Quit: Leaving.]
21:22
<
yxhuvud >
I'd expect extra fun if used with the unicode mirroring sign :P
21:23
<
yorickpeterse >
>> %q☃hello☃
21:23
<
yorickpeterse >
booo
21:25
pskosinski has joined #ruby-lang
21:27
<
whitequark >
yxhuvud: dude I know
21:27
Guest76718 has quit [Remote host closed the connection]
21:27
<
whitequark >
my parser
*almost* parses the entire rubygems corpus
21:27
<
drbrain >
whitequark: \o/
21:28
saarinen has quit [Quit: saarinen]
21:28
jsullivandigs has joined #ruby-lang
21:28
<
whitequark >
drbrain: yeah! have this last bug (\0 in middle of string) and also broken encodings
21:28
<
whitequark >
but I can't do anything with encodings really
21:28
jsullivandigs has quit [Read error: Connection reset by peer]
21:28
wmoxam has quit [Ping timeout: 246 seconds]
21:29
eugenejen has quit [Quit: eugenejen]
21:29
<
yorickpeterse >
"C++ templates are the most powerful generics system in any language as far as I know."
21:29
<
yorickpeterse >
lel
21:29
_jpb_ has quit [Remote host closed the connection]
21:29
jsullivandigs has joined #ruby-lang
21:29
hahuang65 has joined #ruby-lang
21:29
_jpb_ has joined #ruby-lang
21:29
<
yxhuvud >
well, once you hit turing completeness the question shifts from power to expressiveness
21:29
chimkan has quit [Quit: chimkan]
21:29
<
whitequark >
yorickpeterse: as far as he knows
21:29
ruby-lang711 has joined #ruby-lang
21:30
<
whitequark >
yxhuvud: also C++ templates aren't turing complete in reality
21:30
arooni-mobile has joined #ruby-lang
21:30
<
whitequark >
because limited number of iterations
21:31
duper has joined #ruby-lang
21:31
<
yxhuvud >
sure, but by that reasoning normal computers are not complete either, due to finite memory. it's close enough for most purposes.
21:31
cjs226 has quit [Quit: cjs226]
21:31
<
_tockitj >
>> %w 1 2 3 .upcase
21:31
<
eval-in >
_tockitj => /tmp/execpad-6ab247f1d449/source-6ab247f1d449:2: unterminated string meets end of file ... (
https://eval.in/39040)
21:31
<
_tockitj >
>> %w 1,2,3 .upcase
21:31
<
eval-in >
_tockitj => /tmp/execpad-18eb14b476da/source-18eb14b476da:2: unterminated string meets end of file ... (
https://eval.in/39041)
21:31
<
whitequark >
yxhuvud: no, not really
21:32
<
whitequark >
you exhaust the template expansion depth pretty quickly if you want to perform certain practical things
21:32
<
whitequark >
it's about 10k or so on contemporary compilers
21:32
<
whitequark >
so if I want to compute a list of 20k values... I'm screwed
21:32
chimkan has joined #ruby-lang
21:33
jacktrick has joined #ruby-lang
21:33
hahuang65 has quit [Client Quit]
21:33
duper has left #ruby-lang [#ruby-lang]
21:33
<
yorickpeterse >
guys
21:33
<
yorickpeterse >
why are you even talking about template driven programming?
21:33
<
yxhuvud >
fine, adjust my claim to 'most purpose a sane person would want to use it for, as limited as the language is' :P
21:34
ruby-lang711 has quit [Ping timeout: 250 seconds]
21:34
hahuang65 has joined #ruby-lang
21:38
tbuehlmann has quit [Remote host closed the connection]
21:38
_jpb_ has quit [Remote host closed the connection]
21:38
_jpb_ has joined #ruby-lang
21:39
chimkan_ has joined #ruby-lang
21:39
chimkan has quit [Ping timeout: 248 seconds]
21:39
chimkan_ is now known as chimkan
21:40
x0f_ has joined #ruby-lang
21:41
peeyek has quit [Ping timeout: 268 seconds]
21:42
dhruvasagar has quit [Ping timeout: 264 seconds]
21:44
x0f has quit [Ping timeout: 256 seconds]
21:45
pskosinski has quit [Quit: Til rivido Idisti!]
21:46
pipework has quit [Remote host closed the connection]
21:46
test has joined #ruby-lang
21:49
_jpb_ has quit [Ping timeout: 256 seconds]
21:50
_jpb_ has joined #ruby-lang
21:52
test has left #ruby-lang [#ruby-lang]
21:52
saarinen has joined #ruby-lang
21:55
jsullivandigs has quit [Read error: Connection reset by peer]
21:55
digs has joined #ruby-lang
21:55
digs is now known as Guest57437
21:56
D-Nizzle has joined #ruby-lang
21:58
nathanstitt has quit [Quit: I growing sleepy]
21:59
realDAB has quit [Quit: realDAB]
21:59
joshuawscott has quit [Quit: Leaving.]
21:59
realDAB has joined #ruby-lang
22:00
realDAB has quit [Client Quit]
22:05
enebo has quit [Quit: enebo]
22:07
glebm has joined #ruby-lang
22:08
cjs226 has joined #ruby-lang
22:08
nisstyre has quit [Quit: Leaving]
22:08
dhsmith_ has quit [Remote host closed the connection]
22:10
_jpb_ has quit [Ping timeout: 248 seconds]
22:11
_jpb_ has joined #ruby-lang
22:12
x0f_ has quit [Ping timeout: 264 seconds]
22:12
glebm has quit [Ping timeout: 276 seconds]
22:13
x0f has joined #ruby-lang
22:13
Guest30040 has left #ruby-lang [#ruby-lang]
22:14
tdm00 has quit [Quit: Computer has gotten very, very sleepy.]
22:17
x0f has quit [Ping timeout: 240 seconds]
22:18
peeyek has joined #ruby-lang
22:18
x0f has joined #ruby-lang
22:20
dhsmith has joined #ruby-lang
22:21
_jpb__ has quit [Ping timeout: 256 seconds]
22:22
glebm has joined #ruby-lang
22:24
saarinen has quit [Quit: saarinen]
22:24
_jpb_ has quit [Ping timeout: 248 seconds]
22:25
_jpb_ has joined #ruby-lang
22:27
apeiros has quit [Remote host closed the connection]
22:27
apeiros has joined #ruby-lang
22:30
hakunin_ has joined #ruby-lang
22:31
havenwood has quit [Remote host closed the connection]
22:32
musl_ has joined #ruby-lang
22:33
matti_ has joined #ruby-lang
22:33
ndrst has joined #ruby-lang
22:33
doki_pen has joined #ruby-lang
22:33
zzak_ has joined #ruby-lang
22:33
neilc has joined #ruby-lang
22:33
antbody has joined #ruby-lang
22:34
brownies_ has joined #ruby-lang
22:34
brownies_ has joined #ruby-lang
22:34
brownies_ has quit [Changing host]
22:34
thang_ has joined #ruby-lang
22:34
[dmp]_ has joined #ruby-lang
22:34
fallenhi1okiri has joined #ruby-lang
22:34
ddd has joined #ruby-lang
22:34
injekt_ has joined #ruby-lang
22:34
felipe has quit [Ping timeout: 248 seconds]
22:34
Guest85414__ has quit [Ping timeout: 248 seconds]
22:34
kuja has quit [Ping timeout: 248 seconds]
22:34
mame3 has quit [Ping timeout: 248 seconds]
22:34
a3li has quit [Ping timeout: 248 seconds]
22:34
hakunin has quit [Ping timeout: 248 seconds]
22:34
musl has quit [Ping timeout: 248 seconds]
22:34
injekt has quit [Ping timeout: 248 seconds]
22:34
zzak has quit [Ping timeout: 248 seconds]
22:34
spuk has quit [Ping timeout: 248 seconds]
22:34
[dmp] has quit [Ping timeout: 248 seconds]
22:34
brownies has quit [Ping timeout: 248 seconds]
22:34
fallenhitokiri has quit [Ping timeout: 248 seconds]
22:34
doki_pen_ has quit [Ping timeout: 248 seconds]
22:34
Guu has quit [Ping timeout: 248 seconds]
22:34
KillerFox has quit [Ping timeout: 248 seconds]
22:34
matti has quit [Ping timeout: 248 seconds]
22:34
lianj has quit [Ping timeout: 248 seconds]
22:34
thang has quit [Ping timeout: 248 seconds]
22:34
FastJack has quit [Ping timeout: 248 seconds]
22:34
ddd__ has quit [Ping timeout: 248 seconds]
22:34
lianj has joined #ruby-lang
22:34
KillerFox has joined #ruby-lang
22:34
mame3 has joined #ruby-lang
22:34
kuja_ has joined #ruby-lang
22:34
Boohbah has quit [Remote host closed the connection]
22:34
lianj has joined #ruby-lang
22:34
lianj has quit [Changing host]
22:34
Boohbah_ has joined #ruby-lang
22:34
spuk has joined #ruby-lang
22:34
matti_ is now known as matti
22:34
ddd is now known as Guest44466
22:35
Boohbah_ is now known as Guest85546
22:35
FastJack has joined #ruby-lang
22:35
a3li has joined #ruby-lang
22:36
mame3 has quit [*.net *.split]
22:36
KillerFox has quit [*.net *.split]
22:36
lianj has quit [*.net *.split]
22:39
_jpb_ has quit [Ping timeout: 264 seconds]
22:39
hahuang65 has quit [Quit: WeeChat 0.4.1]
22:39
_jpb_ has joined #ruby-lang
22:39
hahuang65 has joined #ruby-lang
22:42
fosky has joined #ruby-lang
22:43
lianj has joined #ruby-lang
22:44
hahuang65 has quit [Client Quit]
22:45
postmodern has joined #ruby-lang
22:45
_jpb_ has quit [Ping timeout: 256 seconds]
22:46
_jpb_ has joined #ruby-lang
22:47
hahuang65 has joined #ruby-lang
22:48
hahuang65 has quit [Client Quit]
22:51
hahuang65 has joined #ruby-lang
22:51
hahuang65 has quit [Client Quit]
22:51
hahuang65 has joined #ruby-lang
22:56
_jpb_ has quit [Ping timeout: 256 seconds]
22:57
jvrmaia has quit [Quit: Leaving]
22:58
<
postmodern >
why doesn't Nokogiri::XML::Attr#value un-escape the text value?
22:58
scottschecter has quit [Ping timeout: 241 seconds]
22:59
havenwood has joined #ruby-lang
23:00
ruby-lang224 has joined #ruby-lang
23:00
singpolyma has quit [Quit: Lost terminal]
23:00
_jpb__ has joined #ruby-lang
23:00
ruby-lang224 has quit [Changing host]
23:00
ruby-lang224 has joined #ruby-lang
23:00
solars has joined #ruby-lang
23:01
singpolyma has joined #ruby-lang
23:01
ruby-lang224 has left #ruby-lang [#ruby-lang]
23:02
KillerFox has joined #ruby-lang
23:02
grrd231222jaa has joined #ruby-lang
23:03
anonymuse has quit [Remote host closed the connection]
23:03
mame3 has joined #ruby-lang
23:05
grrd231222jaa has quit [Client Quit]
23:08
ruby-lang633335 has joined #ruby-lang
23:16
__butch__ has quit [Quit: Leaving.]
23:16
Guest85546 has quit [Changing host]
23:16
Guest85546 has joined #ruby-lang
23:16
Guest85546 has quit [Changing host]
23:16
Guest85546 has joined #ruby-lang
23:17
Guest85546 is now known as Boohbah
23:17
chimkan has quit [Ping timeout: 240 seconds]
23:19
_jpb__ has quit [Ping timeout: 264 seconds]
23:20
_jpb_ has joined #ruby-lang
23:25
r0bgleeson has joined #ruby-lang
23:29
iliketurtles has joined #ruby-lang
23:31
brownies_ is now known as brownies
23:33
imperator has quit [Quit: Valete!]
23:35
_jpb_ has quit [Remote host closed the connection]
23:35
_jpb_ has joined #ruby-lang
23:36
sluukkonen1 has left #ruby-lang [#ruby-lang]
23:38
sluukkonen has joined #ruby-lang
23:41
jacktrick has quit [Quit: Leaving]
23:42
dhsmith has quit [Remote host closed the connection]
23:42
dhsmith has joined #ruby-lang
23:43
scottschecter has joined #ruby-lang
23:43
solars has quit [Ping timeout: 276 seconds]
23:45
x0f has quit [Ping timeout: 264 seconds]
23:45
_jpb_ has quit [Ping timeout: 248 seconds]
23:46
_jpb_ has joined #ruby-lang
23:47
x0f has joined #ruby-lang
23:47
tdm00 has joined #ruby-lang
23:47
malev has quit [Read error: Connection reset by peer]
23:49
x0f has quit [Read error: Operation timed out]
23:53
x0f has joined #ruby-lang
23:55
felipe has joined #ruby-lang
23:56
_jpb_ has quit [Ping timeout: 256 seconds]
23:57
hahuang65 has quit [Ping timeout: 264 seconds]
23:57
_jpb_ has joined #ruby-lang
23:58
x0f has quit [Ping timeout: 268 seconds]
23:59
joshuawscott has joined #ruby-lang
23:59
x0f has joined #ruby-lang