00:00
mykoweb has joined #ruby-lang
00:00
hybristic has quit [Remote host closed the connection]
00:02
knu has quit [Ping timeout: 250 seconds]
00:02
tkuchiki has joined #ruby-lang
00:07
saarinen has joined #ruby-lang
00:09
agrinb_ has quit [Remote host closed the connection]
00:09
agrinb has joined #ruby-lang
00:10
vpretzel has quit [Quit: Adios!]
00:11
Fushi has quit [Quit: Connection closed for inactivity]
00:12
<
j`ey >
zenspider: sorry, just wanted to ping again before I have to go afk..
00:13
<
zenspider >
mike delassio. not tenderlove. tenderlove is aaron patterson
00:13
<
zenspider >
and yes, they are prolly releasing a fix soon
00:13
<
zenspider >
since it come out yesterday
00:13
agrinb has quit [Ping timeout: 240 seconds]
00:14
<
j`ey >
ok, so if I try gem install nokogiri in a few days it should work?
00:14
<
j`ey >
(at least, this fix should be in)
00:16
dik_dak has quit [Quit: Leaving]
00:16
mr-foobar has quit [Read error: Connection reset by peer]
00:17
mr-foobar has joined #ruby-lang
00:17
|jemc| has joined #ruby-lang
00:17
cnivolle_ has quit [Remote host closed the connection]
00:18
cnivolle has joined #ruby-lang
00:19
symm- has quit [Quit: Leaving...]
00:20
toastynerd has quit [Remote host closed the connection]
00:20
khaase has joined #ruby-lang
00:20
khaase has quit [Changing host]
00:20
khaase has joined #ruby-lang
00:21
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:22
cnivolle has quit [Ping timeout: 265 seconds]
00:23
fragamus has joined #ruby-lang
00:23
fragamus has quit [Max SendQ exceeded]
00:25
yfeldblum has quit [Remote host closed the connection]
00:25
<
zenspider >
whenever they release it. yeah. just watch ruby-talk
00:26
khaase has quit [Ping timeout: 265 seconds]
00:27
fezziwig has quit [Remote host closed the connection]
00:28
fezziwig has joined #ruby-lang
00:29
skade has joined #ruby-lang
00:29
arrubin has joined #ruby-lang
00:30
omosoj has joined #ruby-lang
00:30
Coincidental has quit [Remote host closed the connection]
00:32
fezziwig has quit [Ping timeout: 276 seconds]
00:33
saarinen has quit [Quit: saarinen]
00:33
djbkd has quit [Remote host closed the connection]
00:34
skade has quit [Ping timeout: 252 seconds]
00:39
ur5us has joined #ruby-lang
00:41
yfeldblum has joined #ruby-lang
00:47
dsp__ has quit [Remote host closed the connection]
00:54
marcdel has quit []
00:54
Rojo has quit [Quit: Leaving]
00:55
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:56
dsp__ has joined #ruby-lang
00:57
kitak_ has quit [Remote host closed the connection]
00:57
kitak_ has joined #ruby-lang
00:57
jhulten has quit [Remote host closed the connection]
00:57
mistym has quit [Quit: Leaving]
00:59
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:00
ddv has quit [Ping timeout: 245 seconds]
01:00
amsi has quit [Quit: Leaving]
01:01
ddv has joined #ruby-lang
01:05
shinnya has quit [Ping timeout: 245 seconds]
01:06
omosoj has quit [Ping timeout: 240 seconds]
01:07
Miphix has quit [Quit: Leaving]
01:11
diegoviola has joined #ruby-lang
01:15
lsegal has joined #ruby-lang
01:17
rails_smith1 has quit [Quit: Leaving.]
01:18
mistym has joined #ruby-lang
01:19
Cakey has quit [Ping timeout: 258 seconds]
01:20
agrinb has joined #ruby-lang
01:22
khaase has joined #ruby-lang
01:22
khaase has quit [Changing host]
01:22
khaase has joined #ruby-lang
01:24
agrinb has quit [Ping timeout: 264 seconds]
01:25
woollyams has joined #ruby-lang
01:27
khaase has quit [Ping timeout: 265 seconds]
01:28
charliesome has joined #ruby-lang
01:29
skade has joined #ruby-lang
01:30
woollyams has quit [Ping timeout: 252 seconds]
01:33
jmeeuwen has quit [Ping timeout: 240 seconds]
01:33
omosoj has joined #ruby-lang
01:34
skade has quit [Ping timeout: 240 seconds]
01:34
woollyams has joined #ruby-lang
01:38
mdub has joined #ruby-lang
01:39
woollyams has quit [Ping timeout: 252 seconds]
01:40
rails_smith has joined #ruby-lang
01:43
PLATOSCAVE has quit [Ping timeout: 240 seconds]
01:44
PLATOSCAVE has joined #ruby-lang
01:49
jmeeuwen has joined #ruby-lang
01:49
Coincidental has joined #ruby-lang
01:49
yfeldblum has quit [Ping timeout: 264 seconds]
01:51
wallerdev has quit [Quit: wallerdev]
01:51
pixelhandler has quit [Quit: pixelhandler]
01:56
ColdBlooder has joined #ruby-lang
01:58
knu has joined #ruby-lang
02:00
xcesariox has joined #ruby-lang
02:00
dRbiG has quit [Ping timeout: 252 seconds]
02:01
dRbiG has joined #ruby-lang
02:04
jsullivandigs has joined #ruby-lang
02:04
jsullivandigs has quit [Remote host closed the connection]
02:07
centrx has joined #ruby-lang
02:07
Coincidental has quit [Remote host closed the connection]
02:14
knu has quit [Ping timeout: 255 seconds]
02:18
centrx has quit [Quit: All this computer hacking is making me thirsty]
02:19
xcesariox has quit [Ping timeout: 240 seconds]
02:22
khaase has joined #ruby-lang
02:23
yfeldblum has joined #ruby-lang
02:24
khaase_ has joined #ruby-lang
02:24
mistym has quit [Remote host closed the connection]
02:27
khaase has quit [Ping timeout: 265 seconds]
02:28
khaase_ has quit [Ping timeout: 265 seconds]
02:29
franzip has quit [Quit: ...]
02:29
skade has joined #ruby-lang
02:32
Cakey has joined #ruby-lang
02:36
fezziwig has joined #ruby-lang
02:37
Barrin6 has joined #ruby-lang
02:39
tectonic has joined #ruby-lang
02:41
fostertheweb has joined #ruby-lang
02:42
sepp2k has quit [Quit: Leaving.]
02:47
insidious has joined #ruby-lang
02:54
arooni-mobile has joined #ruby-lang
02:58
mykoweb has quit [Remote host closed the connection]
02:58
yatish27 has joined #ruby-lang
02:58
skade has quit [Ping timeout: 265 seconds]
02:59
tectonic has quit []
03:02
zenojis has quit [Ping timeout: 240 seconds]
03:03
mistym has joined #ruby-lang
03:03
loincloth has joined #ruby-lang
03:04
fezziwig has quit [Remote host closed the connection]
03:05
fezziwig has joined #ruby-lang
03:05
vivekrai has joined #ruby-lang
03:06
momomomomo has quit [Quit: momomomomo]
03:06
zenojis has joined #ruby-lang
03:09
fezziwig has quit [Ping timeout: 240 seconds]
03:09
torresga has joined #ruby-lang
03:10
fezziwig has joined #ruby-lang
03:13
dsp__ has quit [Remote host closed the connection]
03:14
loincloth has quit [Remote host closed the connection]
03:17
yatish27 has quit []
03:17
yatish27 has joined #ruby-lang
03:19
tectonic has joined #ruby-lang
03:19
fostertheweb has quit [Read error: Connection reset by peer]
03:20
fostertheweb has joined #ruby-lang
03:21
ColdBlooder has quit [Remote host closed the connection]
03:22
fostertheweb has quit [Client Quit]
03:24
khaase has joined #ruby-lang
03:25
havenwood has quit [Remote host closed the connection]
03:25
pskosinski has quit [Remote host closed the connection]
03:25
danguita has quit [Write error: Connection reset by peer]
03:26
fezziwig has quit [Remote host closed the connection]
03:26
fezziwig has joined #ruby-lang
03:28
yfeldblum has quit [Ping timeout: 240 seconds]
03:29
khaase has quit [Ping timeout: 265 seconds]
03:30
fezziwig has quit [Ping timeout: 240 seconds]
03:31
dsp__ has joined #ruby-lang
03:34
insidious has quit []
03:34
pskosinski has joined #ruby-lang
03:35
nathanstitt has quit [Quit: I growing sleepy]
03:36
danguita has joined #ruby-lang
03:37
mykoweb has joined #ruby-lang
03:42
dsp__ has quit [Read error: Connection reset by peer]
03:43
dsp__ has joined #ruby-lang
03:45
mdub has quit [Ping timeout: 252 seconds]
03:48
dagthema1 has quit [Remote host closed the connection]
03:50
havenn has joined #ruby-lang
03:57
kitak_ has quit [Remote host closed the connection]
03:57
kitak_ has joined #ruby-lang
03:57
havenn is now known as havenwood
04:04
woollyams has joined #ruby-lang
04:05
amclain has joined #ruby-lang
04:08
torresga has quit [Quit: torresga]
04:10
knu has joined #ruby-lang
04:12
Barrin6 has quit [Quit: Leaving]
04:17
marcdel has joined #ruby-lang
04:19
marcdel_ has joined #ruby-lang
04:21
arooni-mobile has quit [Ping timeout: 276 seconds]
04:21
pixelhandler has joined #ruby-lang
04:22
marcdel has quit [Ping timeout: 276 seconds]
04:24
yfeldblum has joined #ruby-lang
04:26
khaase has joined #ruby-lang
04:28
yfeldblu_ has joined #ruby-lang
04:29
knu has quit [Ping timeout: 255 seconds]
04:29
yfeldblum has quit [Ping timeout: 258 seconds]
04:29
fezziwig has joined #ruby-lang
04:30
khaase has quit [Ping timeout: 265 seconds]
04:30
Cakey has quit [Ping timeout: 258 seconds]
04:37
_ht has joined #ruby-lang
04:40
toastynerd has joined #ruby-lang
04:56
xcesariox has joined #ruby-lang
04:57
bf4_ has quit [Read error: Connection reset by peer]
04:57
nertzy3 has quit [Read error: Connection reset by peer]
04:57
bf4 has joined #ruby-lang
04:58
nertzy3 has joined #ruby-lang
05:02
havenwood has quit [Remote host closed the connection]
05:02
havenwood has joined #ruby-lang
05:06
marcdel_ has quit []
05:06
nofxxx has joined #ruby-lang
05:07
relix has joined #ruby-lang
05:08
pixelhandler has quit [Quit: pixelhandler]
05:11
kitak_ has quit [Remote host closed the connection]
05:12
nofxxx has quit [Ping timeout: 252 seconds]
05:12
kitak_ has joined #ruby-lang
05:14
toastynerd has quit [Remote host closed the connection]
05:14
fezziwig has quit [Remote host closed the connection]
05:15
toastynerd has joined #ruby-lang
05:16
deg- has quit [Ping timeout: 245 seconds]
05:16
toastynerd has quit [Remote host closed the connection]
05:16
deg- has joined #ruby-lang
05:17
fezziwig has joined #ruby-lang
05:17
yfeldblu_ has quit [Remote host closed the connection]
05:18
pskosinski has quit [Quit: Til rivido Idisti!]
05:18
yfeldblum has joined #ruby-lang
05:21
dmitrykorotkov has joined #ruby-lang
05:24
matp has quit [Remote host closed the connection]
05:24
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:27
khaase has joined #ruby-lang
05:31
khaase has quit [Ping timeout: 265 seconds]
05:31
tkuchiki_ has joined #ruby-lang
05:32
wallerdev has joined #ruby-lang
05:33
Cakey has joined #ruby-lang
05:34
nofxxx has joined #ruby-lang
05:34
tkuchiki has quit [Ping timeout: 245 seconds]
05:37
fezziwig has quit [Remote host closed the connection]
05:38
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
05:38
toastynerd has joined #ruby-lang
05:40
vivekrai has quit [Quit: Connection closed for inactivity]
05:42
djbkd has joined #ruby-lang
05:43
relix has joined #ruby-lang
05:43
diegoviola has quit [Remote host closed the connection]
05:45
diegoviola has joined #ruby-lang
05:46
Burgestrand has joined #ruby-lang
05:47
kitak_ has quit [Remote host closed the connection]
05:47
relix has quit [Client Quit]
05:47
omosoj has quit [Ping timeout: 240 seconds]
05:49
matp has joined #ruby-lang
05:50
Dim_ has quit [Quit: Leaving]
05:50
fezziwig has joined #ruby-lang
05:51
kitak_ has joined #ruby-lang
05:52
dsp__ has quit [Remote host closed the connection]
05:56
djbkd has quit [Quit: Leaving...]
06:00
apeiros has quit [Remote host closed the connection]
06:00
Cakey has quit [Quit: Changing server]
06:00
Cakey has joined #ruby-lang
06:00
apeiros has joined #ruby-lang
06:01
tkuchiki_ has quit [Remote host closed the connection]
06:02
tkuchiki has joined #ruby-lang
06:04
relix has joined #ruby-lang
06:04
apeiros has quit [Ping timeout: 252 seconds]
06:05
tectonic has quit []
06:07
woollyams has quit [Ping timeout: 252 seconds]
06:09
tectonic has joined #ruby-lang
06:23
dsp__ has joined #ruby-lang
06:25
fezziwig has quit [Remote host closed the connection]
06:25
knu has joined #ruby-lang
06:25
fezziwig has joined #ruby-lang
06:27
dsp__ has quit [Ping timeout: 240 seconds]
06:27
khaase has joined #ruby-lang
06:29
Dim_ has joined #ruby-lang
06:30
fezziwig has quit [Ping timeout: 252 seconds]
06:30
knu has quit [Ping timeout: 252 seconds]
06:35
khaase has quit [Ping timeout: 265 seconds]
06:39
apeiros has joined #ruby-lang
06:42
robbyoconnor has joined #ruby-lang
06:43
Cakey has quit [Ping timeout: 264 seconds]
06:46
tectonic has quit []
06:49
amclain has quit [Quit: Leaving]
06:50
|jemc| has quit [Ping timeout: 255 seconds]
06:51
nagato has quit [Ping timeout: 264 seconds]
06:54
JaReAx has quit [Read error: Connection reset by peer]
06:59
ur5us has quit [Remote host closed the connection]
06:59
arBmind has joined #ruby-lang
07:00
solars has joined #ruby-lang
07:00
woollyams has joined #ruby-lang
07:01
tectonic has joined #ruby-lang
07:03
skade has joined #ruby-lang
07:03
mykoweb has quit [Remote host closed the connection]
07:04
nagato has joined #ruby-lang
07:04
mykoweb has joined #ruby-lang
07:07
mistym has quit [Remote host closed the connection]
07:08
mykoweb has quit [Ping timeout: 252 seconds]
07:10
Cakey has joined #ruby-lang
07:12
closer has quit [Ping timeout: 252 seconds]
07:13
closer has joined #ruby-lang
07:15
Hytosys has joined #ruby-lang
07:16
Fushi has joined #ruby-lang
07:18
Cakey has quit [Ping timeout: 255 seconds]
07:21
ohaidersxc has joined #ruby-lang
07:22
<
ohaidersxc >
Hey guys
07:22
<
ohaidersxc >
For some reason my loop isn't changing the words to ord
07:23
ohaidersxc has left #ruby-lang [#ruby-lang]
07:24
ohaidersxc has joined #ruby-lang
07:24
dsp has joined #ruby-lang
07:24
<
ohaidersxc >
Still here if anyone has suggestions
07:24
arBmind has quit [Quit: Leaving.]
07:25
cnivolle has joined #ruby-lang
07:26
<
DefV >
ohaidersxc: 1st answer seems about right
07:26
<
ohaidersxc >
Hey DefV! Have you tried to run it? When I call the function, I get the same string as the input
07:26
<
ohaidersxc >
the coded_message parameter, that is
07:28
dsp has quit [Ping timeout: 255 seconds]
07:29
ledestin has quit [Quit: ledestin]
07:30
<
DefV >
well, offcourse
07:30
<
DefV >
you're not overwriting anything
07:31
arBmind has joined #ruby-lang
07:31
<
DefV >
word = (word.ord - 4).chr
07:31
tectonic has quit []
07:31
<
DefV >
this just sets local word variable in your block
07:31
<
DefV >
doesn't change anything in your array
07:31
<
ohaidersxc >
I thought that overwrote
07:31
khaase has joined #ruby-lang
07:31
khaase has quit [Changing host]
07:31
khaase has joined #ruby-lang
07:31
<
ohaidersxc >
What method can I use to overwrite
07:31
wallerdev has quit [Quit: wallerdev]
07:32
<
DefV >
none, it's bad practice to change an array you're iterating
07:32
<
DefV >
use .map to create a new resulting array
07:32
<
ohaidersxc >
Gotcha
07:32
<
ohaidersxc >
So something like this
07:32
<
ohaidersxc >
array.map {|word| (word.ord-4).chr}
07:33
<
DefV >
new_array = array.map ...
07:33
<
ohaidersxc >
Thank you very much!
07:33
<
ohaidersxc >
Really appreciate it, man. Been working on this for hours
07:35
skade has quit [Ping timeout: 252 seconds]
07:36
michd is now known as MichD
07:37
tomkadwill has joined #ruby-lang
07:37
ironhide_604 has joined #ruby-lang
07:39
mykoweb has joined #ruby-lang
07:39
khaase has quit [Ping timeout: 265 seconds]
07:41
JaReAx has joined #ruby-lang
07:41
tbuehlmann has joined #ruby-lang
07:42
ledestin has joined #ruby-lang
07:45
JaRe_Ax has joined #ruby-lang
07:47
ledestin has quit [Quit: ledestin]
07:49
JaReAx has quit [Ping timeout: 276 seconds]
07:49
JaRe_Ax is now known as JaReAx
07:50
Cakey has joined #ruby-lang
07:54
nofxxx has quit [Remote host closed the connection]
07:54
crudson1 has left #ruby-lang [#ruby-lang]
07:55
m4t- has quit [Remote host closed the connection]
07:55
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:57
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:58
relix has joined #ruby-lang
08:00
relix has quit [Client Quit]
08:00
arBmind has quit [Quit: Leaving.]
08:02
skade has joined #ruby-lang
08:02
marr has joined #ruby-lang
08:04
khaase has joined #ruby-lang
08:04
khaase has quit [Changing host]
08:04
khaase has joined #ruby-lang
08:07
toastynerd has quit [Remote host closed the connection]
08:08
<
j`ey >
zenspider: thanks, that fixed it!
08:08
<
ljarvis >
ohaidersxc: also you should use a set not an array
08:08
<
ohaidersxc >
A set? I've never heard of that before
08:09
<
ohaidersxc >
You don't mean a hash, do you?
08:10
<
ohaidersxc >
Yeah.. Just looked it up
08:10
<
ohaidersxc >
Why should I use a set?
08:10
<
ljarvis >
because you have a unique set of values that you're doing lots of lookups on
08:10
heftig has joined #ruby-lang
08:11
<
ljarvis >
a set is way faster
08:11
<
ohaidersxc >
Gotcha
08:11
<
DefV >
for what? for the member? thing
08:11
<
yorickpeterse >
morning
08:11
<
DefV >
I was thinking of doing a regexp (word =~ /[@#...]/)
08:12
<
ohaidersxc >
Uh huh
08:12
herpless has joined #ruby-lang
08:14
tkuchiki has quit [Ping timeout: 255 seconds]
08:15
nofxxx has joined #ruby-lang
08:16
relix has joined #ruby-lang
08:18
mamut_ has joined #ruby-lang
08:18
<
ljarvis >
set'll still be faster
08:18
<
ljarvis >
but yeah either works
08:18
mamut_ has quit [Client Quit]
08:19
mamut_ has joined #ruby-lang
08:19
mamut_ has quit [Client Quit]
08:19
<
DefV >
I'm on the fence on this one. I'm sure set'll be faster but regexp feels more clear
08:19
mamut_ has joined #ruby-lang
08:19
<
DefV >
a shorthand for creating a set would be great too
08:20
<
ljarvis >
a shorthand? Set["foo", "bar"] isn't short enough? :D
08:20
<
DefV >
%S(foo bar) would be better :-)
08:20
<
yorickpeterse >
Set's performance varies on the size of the set
08:20
<
ohaidersxc >
How do you guys feel about this?
08:21
<
yorickpeterse >
e.g. for small amounts it won't make much of a difference compared to Array
08:21
<
ohaidersxc >
Different approach
08:21
<
ljarvis >
yorickpeterse: that's really arrays performance?
08:21
<
ljarvis >
ohaidersxc: letters = 'a' .. 'z'
08:21
<
ohaidersxc >
If I can turn the code variable into their indexes, I can display coded_message[code], right?
08:22
<
yorickpeterse >
ljarvis: eh?
08:22
<
ohaidersxc >
thanks
08:22
<
DefV >
ohaidersxc: I don't get why you're doing the double loop
08:22
<
ljarvis >
yorickpeterse: set and array perf are similar because the array is smaller, not because the set is
08:22
skade has quit [Ping timeout: 240 seconds]
08:22
<
ohaidersxc >
Aren't my loops commented out right now?
08:22
mamut_ has quit [Client Quit]
08:22
<
ljarvis >
also dat 4 space indent
08:23
mykoweb has quit [Remote host closed the connection]
08:23
<
ohaidersxc >
Sorry, it's 2 spaces in sublime, which is where I copied it from
08:23
<
yorickpeterse >
ljarvis: For the same size Set and Array the performance is similar
08:23
mykoweb has joined #ruby-lang
08:23
mikecmpbll has joined #ruby-lang
08:24
<
ljarvis >
yorickpeterse: right but you made it sound like set is fast because it's small "sets performance varies on the size of the set"
08:24
<
yorickpeterse >
I never said that
08:24
<
yorickpeterse >
nor did I imply that
08:24
<
ljarvis >
yorickpeterse> Set's performance varies on the size of the set
08:24
dsp has joined #ruby-lang
08:24
<
ljarvis >
that implies is slow when larger
08:24
<
yorickpeterse >
<yorickpeterse> e.g. for small amounts it won't make much of a difference compared to Array
08:25
<
ljarvis >
right, im saying that ^ is talking about arrays performance, not sets
08:25
<
yorickpeterse >
it states that for small amounts of values in both the difference is not that big
08:25
<
DefV >
OK! everybody understands what's being said
08:25
<
yorickpeterse >
DefV: ssssh we're argueing
08:25
<
DefV >
stop going on about who understood what
08:26
<
ljarvis >
yeah c'mon
08:26
fezziwig has joined #ruby-lang
08:26
<
DefV >
nobody is wrong on the internet anymore
08:26
<
DefV >
at least not here.
08:26
<
yorickpeterse >
Meanwhile I'm trying to read 800MB of XML in VIm
08:26
<
yorickpeterse >
* Vim
08:26
<
ljarvis >
yorickpeterse: better than most editors probably
08:26
<
DefV >
yorickpeterse: :syn off
08:26
<
ljarvis >
also 800mb is a ghastly amount of xml
08:27
<
yorickpeterse >
Yeah this is a DB dump of $SOME_TRAVEL_WEBSITE
08:27
<
yorickpeterse >
what's an API?
08:27
canton7-mac has joined #ruby-lang
08:27
<
ljarvis >
to be fair, we use soap apis at $work and some of their xml responses are stupid large
08:27
mykoweb has quit [Ping timeout: 252 seconds]
08:28
<
yorickpeterse >
no no no
08:28
<
yorickpeterse >
This is literally a dump you have to access via a URL
08:28
<
yorickpeterse >
You put the username/password in the URL
08:28
<
yorickpeterse >
as segments
08:28
<
yorickpeterse >
srsly
08:28
<
ljarvis >
yeah I was saying that against your "what's an API?" as in "they can suck too"
08:28
<
yorickpeterse >
Oh true
08:28
<
yorickpeterse >
we have a certain API from a certain $BIG_TRAVEL_WEBSITE that is less than ideal
08:29
<
ljarvis >
it's always travel websites
08:29
<
yorickpeterse >
Yeah they're wack
08:29
<
ljarvis >
or... train websites
08:29
<
yorickpeterse >
e.g. they inject microformats into their website but actually forget to fill in half of the required stuff
08:29
dsp has quit [Ping timeout: 264 seconds]
08:29
<
yorickpeterse >
or they literally use 3 different date formats per page
08:29
<
yorickpeterse >
with no clear pattern
08:29
<
yorickpeterse >
yay scraping
08:29
<
ljarvis >
we use a spanish one that has 0 documentation and everything is in spanish
08:30
elia has joined #ruby-lang
08:30
<
yorickpeterse >
hablas API?
08:30
arBmind has joined #ruby-lang
08:30
fezziwig has quit [Ping timeout: 265 seconds]
08:31
<
DefV >
endpoints aren't .json but .alfonso because jason isn't a common spanish name?
08:32
<
yorickpeterse >
haha
08:33
joonty has quit [Quit: WeeChat 0.4.2]
08:34
tomkadwill has quit [Remote host closed the connection]
08:35
skade has joined #ruby-lang
08:37
<
yorickpeterse >
ok lets see if Oga can stream parse 800 MB of XML
08:37
<
yorickpeterse >
ignoring that it reads the entire thing into memory first
08:37
<
yorickpeterse >
because I don't support IO input yet
08:37
<
yorickpeterse >
lel
08:37
kirin` has joined #ruby-lang
08:37
workmad3 has joined #ruby-lang
08:37
<
yorickpeterse >
hey I'm using a Set too
08:37
* yorickpeterse
runs
08:38
ledestin has joined #ruby-lang
08:40
<
yorickpeterse >
at least memory usage is consistent at 830MB (of which 800 is of the file itself)
08:40
joost_like_toast has joined #ruby-lang
08:41
freedn has joined #ruby-lang
08:41
skade has quit [Ping timeout: 240 seconds]
08:41
TvL2386 has joined #ruby-lang
08:42
tomkadwill has joined #ruby-lang
08:47
ohaidersxc has quit [Ping timeout: 240 seconds]
08:47
<
yorickpeterse >
Hm, 8,5 minutes to parse 830MB
08:47
freedn has quit [Quit: Ex-Chat]
08:52
woollyams has quit [Ping timeout: 252 seconds]
08:52
Mon_Ouie has joined #ruby-lang
08:55
kitak_ has quit [Remote host closed the connection]
08:58
kitak_ has joined #ruby-lang
09:00
ur5us has joined #ruby-lang
09:02
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
09:05
jeer_ has joined #ruby-lang
09:05
zenspider_ has joined #ruby-lang
09:06
zenspider has quit [Ping timeout: 250 seconds]
09:08
kitak_ has quit [Remote host closed the connection]
09:08
<
maloik >
"could you give me your xip.io url, I want to compare some css through developer console with my feature branch" - "you could use live too you know" - "oh..."
09:08
<
maloik >
it's one of those days
09:09
kitak_ has joined #ruby-lang
09:14
Cakey has quit [Ping timeout: 258 seconds]
09:16
Nilium has quit [Ping timeout: 252 seconds]
09:18
<
yorickpeterse >
always test in production
09:18
<
yorickpeterse >
best test is production test
09:18
<
maloik >
I'm not testing, I'm comparing markup/css
09:19
xcesariox has joined #ruby-lang
09:19
xcesariox has quit [Max SendQ exceeded]
09:21
diegoviola has quit [Quit: WeeChat 0.4.3]
09:21
<
ljarvis >
best test is production test
09:22
Nilium has joined #ruby-lang
09:23
<
ndrst >
whats a propper way of temporarily silencing warnings?
09:25
dsp has joined #ruby-lang
09:27
Miphix has joined #ruby-lang
09:27
<
yorickpeterse >
Review comment: "This hotel had no roomservice after 23:30"
09:27
<
yorickpeterse >
GEE
09:30
dsp has quit [Ping timeout: 264 seconds]
09:30
<
ljarvis >
ndrst: change the value of $VERBOSE, then change it back
09:31
<
ljarvis >
something like def nowarnings; o = $VERBOSE; $VERBOSE = nil; yield; ensure $VERBOSE = o; end
09:31
mehlah has joined #ruby-lang
09:32
<
ljarvis >
or if you want to do it for running code, ruby has a -W flag
09:32
<
ljarvis >
I think it's -W
09:32
xcesariox has joined #ruby-lang
09:34
<
ndrst >
mhh ljarvis the ruby flag seems like a way to go. I don't want to change the code just to be able to see stuff in all this clutter
09:36
<
ndrst >
only works tough when the used library uses $VERBOSE ^^
09:44
workmad3 is now known as wm3|busy
09:47
sarkyniin has joined #ruby-lang
09:49
Hytosys has quit [Quit: Hytosys]
09:55
<
ljarvis >
ndrst: how so?
09:55
<
ljarvis >
(they should be using 'warn' not 'puts' for example)
09:56
<
ljarvis >
>> $VERBOSE=nil; warn "omg"
09:56
<
ljarvis >
>> $VERBOSE=nil; puts "omg"
09:56
Nico_ita has joined #ruby-lang
09:56
<
yorickpeterse >
zzzzzzz deleting data in Mongo takes forever
09:56
<
yorickpeterse >
Removing fucking 250000 documents takes a decade
09:58
<
ljarvis >
a decade?
09:58
<
ljarvis >
you'll be done in 10 years?
09:58
<
yorickpeterse >
Didn't actually measure it but it's slow as sin
09:59
<
yorickpeterse >
Then again it's a collection of 45 million
10:02
kitak_ has quit [Remote host closed the connection]
10:03
stamina has joined #ruby-lang
10:07
<
yorickpeterse >
it also doesn't help if your scrapers automatically start up because you already scheduled the data you were trying to remove
10:07
<
yorickpeterse >
derp
10:07
<
yorickpeterse >
"why does the amount of documents not go down...oh"
10:08
<
ljarvis >
what's the % of useless shit you scrape?
10:08
<
yorickpeterse >
Hard to tell. We only scrape data for active contracts but a lot of the shit we scrape 404s
10:08
<
yorickpeterse >
Currently working on a system that automatically disables those URLs
10:08
<
yorickpeterse >
But it needs some further testing in case it disables everything
10:09
<
ljarvis >
sounds interesting
10:09
<
ljarvis >
maloik: are you going to bacon?
10:09
<
yorickpeterse >
We only scrape about a 1/12th of our list of "connections" as we call them (basically profile pages to scrape all data from)
10:09
<
yorickpeterse >
The rest is either expired contracts, one-time reports, etc
10:12
ironhide_604 has quit [Ping timeout: 245 seconds]
10:14
<
yorickpeterse >
Grrrr, bitten by the venerable timezones
10:14
<
yorickpeterse >
If you query shit as UTC but set it to UTC+2 then you're going to have a bad time
10:14
<
yorickpeterse >
(hehehehe)
10:15
ironhide_604 has joined #ruby-lang
10:18
<
yorickpeterse >
actually I'll be, hopefully, doing a scraping talk at Arrrcamp
10:18
<
ljarvis >
should come to brighton ruby
10:19
<
yorickpeterse >
I might be in South Korea around that time, not sure yet
10:19
<
yorickpeterse >
South Korea > Brighton
10:22
riffraff has joined #ruby-lang
10:23
face has quit [Ping timeout: 252 seconds]
10:24
skade has joined #ruby-lang
10:24
kyb3r_ has quit [Read error: Connection reset by peer]
10:26
fezziwig has joined #ruby-lang
10:26
dsp has joined #ruby-lang
10:27
knu has joined #ruby-lang
10:30
fezziwig has quit [Ping timeout: 240 seconds]
10:31
dsp has quit [Ping timeout: 265 seconds]
10:33
futilegames has joined #ruby-lang
10:37
kitak_ has joined #ruby-lang
10:38
frobrob has joined #ruby-lang
10:45
toretore has joined #ruby-lang
10:45
nofxxx has quit [Remote host closed the connection]
10:48
yatish27 has quit [Remote host closed the connection]
10:49
yatish27 has joined #ruby-lang
10:50
yfeldblum has quit [Remote host closed the connection]
11:01
stamina has quit [Quit: WeeChat 0.4.3]
11:05
<
maloik >
ljarvis: yep!
11:07
kitak_ has quit [Ping timeout: 240 seconds]
11:09
JaRe_Ax has joined #ruby-lang
11:10
<
ljarvis >
maloik: how long are you here for?
11:10
kitak_ has joined #ruby-lang
11:11
JaReAx has quit [Ping timeout: 240 seconds]
11:11
JaRe_Ax is now known as JaReAx
11:12
<
maloik >
I think we leave sunday morning
11:12
<
maloik >
(arriving tomorrow afternoon or so)
11:15
ur5us has quit [Remote host closed the connection]
11:15
frobrob_ has joined #ruby-lang
11:17
<
yorickpeterse >
ok random question: does anybody know of a CLI tool that can scan a dir for naughty words? I can grep/ag myself but meh
11:19
frobrob has quit [Ping timeout: 240 seconds]
11:19
riffraff has quit [Quit: Leaving]
11:23
jeer_ is now known as jeer
11:23
jeer is now known as jeer_
11:23
matp has quit [Quit: Bye!]
11:24
ascarter has joined #ruby-lang
11:26
jeer has joined #ruby-lang
11:26
matp has joined #ruby-lang
11:26
futilegames has quit [Quit: futilegames]
11:27
dsp has joined #ruby-lang
11:27
yatish27 has quit [Remote host closed the connection]
11:28
jeer_ has quit [Ping timeout: 276 seconds]
11:31
yatish27 has joined #ruby-lang
11:31
kitak_ has quit [Remote host closed the connection]
11:31
heftig has quit [Quit: Quitting]
11:31
dsp has quit [Ping timeout: 258 seconds]
11:32
frobrob_ has quit [Ping timeout: 265 seconds]
11:33
<
ndrst >
yorickpeterse: you mean to remove this things before you commit some code?
11:33
<
yorickpeterse >
Going through dozens of repos, doing cleanups
11:34
<
yorickpeterse >
Don't want that crap to contain things like "Fucking douche X I hate him" when it goes public
11:34
simono has joined #ruby-lang
11:35
<
ndrst >
I think django had some kind of before commit hook for this kind of things
11:36
wm3|busy is now known as wm3|away
11:36
<
yorickpeterse >
Nah, I basically want something like `ag 'shit|fuck|cunt|stupid|....' DIR` but where I don't have to maintain a dictionary of naughty words
11:37
<
yorickpeterse >
Just to get a quick overview of who I need to slap first
11:37
robmiller has quit [Quit: Leaving.]
11:37
ldnunes has joined #ruby-lang
11:39
Nico_ita has left #ruby-lang [#ruby-lang]
11:39
<
maloik >
maybe this can help?
11:39
<
maloik >
seems to contain a list of swearwords
11:39
<
DefV >
yorickpeterse: just work with professionals
11:41
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:41
<
yorickpeterse >
DefV: Linus is a professional I'd say, and he has quite the potty mouth
11:41
<
yorickpeterse >
errr Linyos
11:42
<
yorickpeterse >
read it
11:42
<
yorickpeterse >
it's good
11:42
<
DefV >
becausethe way he behaves on mailing lists is not professional at al imo
11:43
<
yorickpeterse >
also the argument "Work with professionals" is bullshit
11:43
<
yorickpeterse >
Swearing doesn't make you instantly unprofessional
11:43
<
wm3|away >
I used to work with someone who was definitely very professional... but he also did a logging line of 'Shit shit shit shit shit shit shit' when he wanted to make sure the line was being reached as something to search for
11:43
<
yorickpeterse >
Perhaps if you work at a church it does
11:44
<
wm3|away >
he almost always removed it :)
11:45
<
DefV >
I'm not saying you're not a professional if you put swearwords in your code, but I'd argue it creates a hostile environment to work in
11:45
<
toretore >
not hostile, just childish
11:46
<
DefV >
I mean, there's a reason you don't want them in there now yorickpeterse
11:46
<
toretore >
swearwords should be reserved for special occasions
11:46
<
toretore >
otherwise they get watered down
11:46
<
yorickpeterse >
DefV: that's exactly why I'm going through these things to make sure they're out
11:46
<
DefV >
it's not like it's impossible to write code (good or bad) without going into gory details in your code
11:46
<
yorickpeterse >
So far I've found none though
11:46
<
DefV >
I have my fair share of frustrating SOAP API stories
11:47
<
DefV >
still you won't find "Connect to this fucking ridicilous SOAP shitserver" comments in my code / git commits
11:47
nofxx has quit [Ping timeout: 258 seconds]
11:51
hplar has quit [Quit: WeeChat 0.3.2]
11:52
<
whitequark >
perhaps we should just stop being so uptight about language
11:52
hplar has joined #ruby-lang
11:52
<
whitequark >
a commit message should be descriptive and concise. period. that's its primary function
11:52
<
yorickpeterse >
Way to all miss the fucking point (heh)
11:52
skade has quit [Ping timeout: 245 seconds]
11:53
<
yorickpeterse >
All I want is to see
*if* it's there so I can get rid of it
11:53
<
yorickpeterse >
I don't need a fucking CI yelling at me, or meetings to fire somebody, or descriptive commit messages or w/e
11:53
<
whitequark >
I wasn't replying to you yorick, just reflecting on the sentiment in general
11:53
<
yorickpeterse >
I just want to see if somebody wrote "Fuck this POS", remove it, then yell at the person
11:53
<
yorickpeterse >
right
11:54
<
whitequark >
obsession over swearing (or lack thereof) is in the same domain as obsession over semicolons (or lack thereof)
11:56
ta_ is now known as ta
11:57
ascarter has joined #ruby-lang
12:00
<
yorickpeterse >
But semicolons add value to the code!!11;;
12:01
<
maloik >
I think everyone has added profanity of some sort to a commit message at one point, right?
12:01
<
maloik >
I don't think it's much of a big deal either
12:01
<
whitequark >
most likely. I usually avoid it solely because it doesn't make a good commit message
12:01
<
yorickpeterse >
Open sauce? Yes. $WORK? No
12:02
<
yorickpeterse >
Usually it's in the form of "I'm a fucking dumbass"
12:02
<
yorickpeterse >
which I am most of the time
12:02
<
maloik >
That's true, but something like "Fixes X. Fuck yes." is something I've probably done before, even for work repositories
12:03
<
maloik >
perhaps in some places people care, but most of us have most the suit-and-tie requirement, so a little 'fuck' or 'shit' here and there isn't going to upset people, I think?
12:04
<
yorickpeterse >
Well it depends on the work place
12:04
<
yorickpeterse >
but I have pretty much zero tolerance for it, which is funny because I swear like a mothhnnggg...
12:06
alex-quiterio has joined #ruby-lang
12:08
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:08
robmiller has joined #ruby-lang
12:09
alex-quiterio has left #ruby-lang [#ruby-lang]
12:14
<
DefV >
maloik: "Fuck yes" is not swearing
12:14
<
DefV >
"this gem is fucking dumb" is
12:15
<
DefV >
in my experience most swearing in code comes from bad understanding of the problem
12:15
xcesariox has joined #ruby-lang
12:15
vpretzel has joined #ruby-lang
12:20
<
yorickpeterse >
Hm, I do like people creating .csv files that are not actually csv
12:20
<
yorickpeterse >
or even closely related to it
12:20
<
maloik >
as in not using commas but rather tabs, periods, semicolons etc?
12:20
<
yorickpeterse >
Yes, tabs in this case
12:20
<
yorickpeterse >
Still, the best request I ever got in was to use ^|^ as a field separator
12:21
<
surrounder >
yorickpeterse: heh I had an issue with that too this week
12:21
<
surrounder >
yorickpeterse: client gave me a file ending in .csv but it was binary
12:21
<
surrounder >
think they just renamed a .xls file to .csv or something
12:21
<
maloik >
probably a renamed excel
12:21
<
surrounder >
maloik: indeed
12:22
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:22
yfeldblum has joined #ruby-lang
12:22
<
surrounder >
still, the most awesome thing was when a customer sent us the DNS changes he wanted... in a powerpoint presentation
12:23
<
maloik >
actually I think my colleagues got such a request recently where they sent a screenshot or something
12:23
<
sluukkonen >
that's pretty normal. every time a customer sends us a picture it's either a word or a powerpoint document
12:23
<
surrounder >
word I can understand... somewhat
12:23
<
surrounder >
but powerpoint ?
12:24
nagato has quit [Ping timeout: 264 seconds]
12:24
<
sluukkonen >
they have learned to insert pictures in a powerpoint presentation
12:25
thomasxie has quit [Remote host closed the connection]
12:25
<
sluukkonen >
so that's their default way to send a picture
12:26
yfeldblum has quit [Ping timeout: 240 seconds]
12:26
dsp has joined #ruby-lang
12:27
thomasxie has joined #ruby-lang
12:27
sarkyniin has quit [Quit: Quitte]
12:28
JhonD has joined #ruby-lang
12:29
lolmaus has quit [Ping timeout: 240 seconds]
12:30
woollyams has joined #ruby-lang
12:31
cnivolle has quit [Ping timeout: 265 seconds]
12:33
dsp has quit [Remote host closed the connection]
12:33
agrinb has joined #ruby-lang
12:34
<
ljarvis >
"lolol normal people"
12:36
<
yorickpeterse >
oh neat, OS X build files tracked in Git
12:36
symm- has joined #ruby-lang
12:36
JohnHirbour has joined #ruby-lang
12:37
robbyoconnor has quit [Ping timeout: 252 seconds]
12:38
cnivolle_ has joined #ruby-lang
12:40
banister has joined #ruby-lang
12:41
[spoiler] has joined #ruby-lang
12:42
malconis has joined #ruby-lang
12:43
dmitrykorotkov has quit [Ping timeout: 240 seconds]
12:45
nagato has joined #ruby-lang
12:45
Voker57 has joined #ruby-lang
12:46
<
gnufied >
hmm so they changed behaviour of OpenStruct.new() between 1.9 and 2.0
12:47
<
gnufied >
OpenStruct.new([["code", "ServiceException"]]) -> works in Ruby 1.9.3 and throws error in 2.1
12:47
<
gnufied >
wondering if this was ever reported.
12:47
<
ljarvis >
I had no idea that ever worked, it does Hash::[]?
12:47
<
gnufied >
google returns not much.
12:48
<
ljarvis >
>> OpenStruct.new([%w(foo bar)])
12:48
<
ljarvis >
>> require 'ostruct'; OpenStruct.new([%w(foo bar)])
12:48
<
ljarvis >
19>> require 'ostruct'; OpenStruct.new([%w(foo bar)])
12:48
<
ljarvis >
interesting
12:48
<
ljarvis >
I would raise the issue
12:49
dbods has joined #ruby-lang
12:49
wm3|away is now known as workmad3
12:50
yatish27 has quit [Remote host closed the connection]
12:50
<
gnufied >
yeah seems like an option
12:50
<
workmad3 >
hmm... it's not openstruct that changed... it's that Array.each_pair got removed...
12:51
yatish27 has joined #ruby-lang
12:51
<
workmad3 >
>> class Array; def each_pair(&blk); each_cons(2, &blk); end; end; require 'ostruct'; OpenStruct.new(%w(foo bar buzz bazz))
12:52
<
workmad3 >
doh, should have done each slice
12:52
<
workmad3 >
but still... :)
12:53
woollyams has quit [Ping timeout: 252 seconds]
12:59
<
apeiros >
workmad3: shouldn't it just be each?
12:59
<
apeiros >
it's an array of already paired arrays, no?
12:59
<
gnufied >
workmad3:
12:59
<
gnufied >
6] pry(main)> x.respond_to?(:each_pair)
12:59
<
gnufied >
=> "1.9.3"
12:59
<
gnufied >
[7] pry(main)> RUBY_VERSION
12:59
<
gnufied >
where x = [["wow","lol"]]
13:01
kitak_ has joined #ruby-lang
13:01
<
gnufied >
not sure if Array#each_pair is the one that got removed
13:01
<
gnufied >
I couldn't find a reference to such a removal in Changelogs too
13:02
leandrosnunes has joined #ruby-lang
13:02
<
gnufied >
may be the way ostruct work was changed and now it calls each_pair on underlying object
13:03
<
gnufied >
yep that sounds more like it and as a result this broke
13:04
<
workmad3 >
yeah, sounds about right
13:05
dsp has joined #ruby-lang
13:05
dsp has quit [Remote host closed the connection]
13:06
dsp has joined #ruby-lang
13:08
scampbell has joined #ruby-lang
13:09
cored has joined #ruby-lang
13:18
cnivolle has joined #ruby-lang
13:19
VTLob has joined #ruby-lang
13:20
cnivolle has quit [Remote host closed the connection]
13:20
cnivolle_ has quit [Read error: No route to host]
13:20
cnivolle has joined #ruby-lang
13:23
yfeldblum has joined #ruby-lang
13:23
fezziwig has joined #ruby-lang
13:23
tomkadwill has quit [Remote host closed the connection]
13:27
yfeldblum has quit [Ping timeout: 255 seconds]
13:33
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:35
fezziwig has quit [Remote host closed the connection]
13:35
fezziwig has joined #ruby-lang
13:35
AncientAmateur has joined #ruby-lang
13:36
jgpawletko has joined #ruby-lang
13:36
TvL2386 has quit [Quit: Ex-Chat]
13:38
stef_204 has joined #ruby-lang
13:38
shinnya has joined #ruby-lang
13:40
fezziwig has quit [Ping timeout: 252 seconds]
13:41
momomomomo has joined #ruby-lang
13:49
momomomomo has quit [Quit: momomomomo]
13:50
agrinb has quit [Remote host closed the connection]
13:51
momomomomo has joined #ruby-lang
13:52
lolmaus has joined #ruby-lang
13:54
ddux has joined #ruby-lang
13:58
nathanstitt has joined #ruby-lang
13:59
centrx has joined #ruby-lang
14:02
alans has joined #ruby-lang
14:02
tbuehlmann has quit [Quit: Leaving]
14:02
agrinb has joined #ruby-lang
14:02
alans has left #ruby-lang [#ruby-lang]
14:03
dsp__ has joined #ruby-lang
14:03
charliesome has joined #ruby-lang
14:03
banister has joined #ruby-lang
14:04
al9000 has joined #ruby-lang
14:05
dsp has quit [Ping timeout: 240 seconds]
14:06
valner has joined #ruby-lang
14:06
agrinb has quit [Ping timeout: 255 seconds]
14:06
ColdBlooder has joined #ruby-lang
14:07
agrinb has joined #ruby-lang
14:07
valner has left #ruby-lang [#ruby-lang]
14:08
kitak_ has quit [Remote host closed the connection]
14:08
nhmood has joined #ruby-lang
14:10
kitak_ has joined #ruby-lang
14:10
thomasxie has quit [Ping timeout: 255 seconds]
14:10
jonathanmarvens has joined #ruby-lang
14:12
kitak has quit [Remote host closed the connection]
14:12
kitak has joined #ruby-lang
14:12
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:13
dik_dak has joined #ruby-lang
14:13
torresga has joined #ruby-lang
14:14
kitak_ has quit [Ping timeout: 240 seconds]
14:17
momomomomo has quit [Quit: momomomomo]
14:18
dbods has quit [Remote host closed the connection]
14:23
momomomomo has joined #ruby-lang
14:23
kitak_ has joined #ruby-lang
14:23
yfeldblum has joined #ruby-lang
14:26
loincloth has joined #ruby-lang
14:26
Squarepy has joined #ruby-lang
14:26
dacamp has joined #ruby-lang
14:27
valner has joined #ruby-lang
14:28
yfeldblum has quit [Ping timeout: 265 seconds]
14:31
alexju has joined #ruby-lang
14:35
[spoiler] has quit [Remote host closed the connection]
14:35
miqui has joined #ruby-lang
14:37
kitak_ has quit [Remote host closed the connection]
14:37
kitak_ has joined #ruby-lang
14:39
tbuehlmann has joined #ruby-lang
14:42
kitak_ has quit [Ping timeout: 240 seconds]
14:42
cnivolle_ has joined #ruby-lang
14:46
JaRe_Ax has joined #ruby-lang
14:46
cnivolle has quit [Ping timeout: 265 seconds]
14:48
pixelhandler has joined #ruby-lang
14:48
kitak has quit [Remote host closed the connection]
14:48
JaReAx has quit [Ping timeout: 240 seconds]
14:48
JaRe_Ax is now known as JaReAx
14:49
kitak has joined #ruby-lang
14:51
agrinb has quit [Remote host closed the connection]
14:52
agrinb has joined #ruby-lang
14:53
al9000 has quit [Quit: al9000]
14:54
Guedes has joined #ruby-lang
14:54
momomomomo has quit [Quit: momomomomo]
14:55
centrx is now known as GeneralSummary
14:55
kitak has quit [Remote host closed the connection]
14:55
kitak has joined #ruby-lang
14:55
momomomomo has joined #ruby-lang
14:56
agrinb has quit [Ping timeout: 245 seconds]
14:56
ghg has joined #ruby-lang
14:57
ghg has quit [Remote host closed the connection]
14:57
shinnya has quit [Ping timeout: 240 seconds]
14:57
ghg has joined #ruby-lang
14:57
agrinb has joined #ruby-lang
15:00
mistym has joined #ruby-lang
15:02
fezziwig has joined #ruby-lang
15:03
mistym has quit [Remote host closed the connection]
15:04
nagato has quit [Ping timeout: 265 seconds]
15:06
retro|cz has quit [Ping timeout: 252 seconds]
15:09
|jemc| has joined #ruby-lang
15:10
tdy has quit [Ping timeout: 240 seconds]
15:11
tdy has joined #ruby-lang
15:12
tomkadwill has joined #ruby-lang
15:14
dspkwa has joined #ruby-lang
15:17
tomkadwill has quit [Ping timeout: 255 seconds]
15:17
hahuang65 has joined #ruby-lang
15:17
wallerdev has joined #ruby-lang
15:17
nagato has joined #ruby-lang
15:18
dsp__ has quit [Remote host closed the connection]
15:19
dsp has joined #ruby-lang
15:19
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:19
simono has joined #ruby-lang
15:21
skade has joined #ruby-lang
15:21
workmad3 has quit [Ping timeout: 255 seconds]
15:21
<
yorickpeterse >
Right, time to clean up 38 Gemspecs
15:21
<
yorickpeterse >
._.
15:22
rippa has joined #ruby-lang
15:22
workmad3 has joined #ruby-lang
15:22
mistym has joined #ruby-lang
15:23
hahuang61 has joined #ruby-lang
15:24
yfeldblum has joined #ruby-lang
15:25
Burgestrand_ has joined #ruby-lang
15:26
thoolihan has quit [Ping timeout: 258 seconds]
15:26
spcshpop` has quit [Ping timeout: 258 seconds]
15:27
hahuang65 has quit [Ping timeout: 258 seconds]
15:27
thoolihan has joined #ruby-lang
15:28
Burgestrand has quit [Ping timeout: 258 seconds]
15:28
Burgestrand_ is now known as Burgestrand
15:29
GeneralSummary is now known as centrx
15:29
yfeldblum has quit [Ping timeout: 245 seconds]
15:30
solars has quit [Ping timeout: 240 seconds]
15:30
dsp has quit [Disconnected by services]
15:31
apeiros has quit [Remote host closed the connection]
15:31
dsp__ has joined #ruby-lang
15:31
apeiros has joined #ruby-lang
15:35
dspkwa has quit [Quit: Leaving]
15:36
apeiros has quit [Ping timeout: 265 seconds]
15:37
Burgestrand has quit [Quit: Burgestrand]
15:39
skade has quit [Read error: Connection reset by peer]
15:43
wallerdev has quit [Quit: wallerdev]
15:44
miqui has quit [Read error: Connection reset by peer]
15:44
agrinb has quit [Remote host closed the connection]
15:44
dsp___ has joined #ruby-lang
15:45
agrinb has joined #ruby-lang
15:45
khaase has quit [Quit: Leaving...]
15:45
[spoiler] has joined #ruby-lang
15:48
dsp__ has quit [Ping timeout: 252 seconds]
15:49
agrinb has quit [Ping timeout: 265 seconds]
15:54
dwknoxy has joined #ruby-lang
15:54
jonathanmarvens has quit []
15:57
ironhide_604 has quit [Remote host closed the connection]
15:57
wallerdev has joined #ruby-lang
15:57
mistym_ has joined #ruby-lang
15:59
RobertBirnie has joined #ruby-lang
15:59
xcesariox has joined #ruby-lang
15:59
xcesariox has quit [Max SendQ exceeded]
15:59
mistym_ has quit [Remote host closed the connection]
15:59
xcesariox has joined #ruby-lang
16:00
<
ljarvis >
i wish the symbol to proc syntax could take args, even though that would probably make the syntax suck
16:00
mistym has quit [Ping timeout: 240 seconds]
16:02
mykoweb has joined #ruby-lang
16:02
fezziwig has quit [Remote host closed the connection]
16:02
wallerdev has quit [Ping timeout: 276 seconds]
16:02
fezziwig has joined #ruby-lang
16:03
<
[spoiler] >
ljarvis, yeah it would probably look bizarre
16:03
<
[spoiler] >
bizarrer*
16:03
hybristic has joined #ruby-lang
16:03
apeiros has joined #ruby-lang
16:03
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:03
<
canton7 >
what's wrong with just writing a block? they're not going to bite...
16:04
<
yorickpeterse >
ljarvis: every time people request that I can't help but wonder "why the fuck just not write it"
16:04
<
canton7 >
yay more obfuscation to not actually save any characters at all!
16:04
<
ljarvis >
oh for sure
16:04
<
ljarvis >
someone even supplied a patch to ruby-core for this
16:04
<
yorickpeterse >
%w{foo bar baz}.map(&:gsub('a', 'e')) # wat
16:04
<
ljarvis >
the syntax was like map(&:join[","])
16:05
AncientAmateur has quit [Remote host closed the connection]
16:05
<
whitequark >
people basically want currying, like in some functional languages
16:05
kiddorails has joined #ruby-lang
16:05
<
whitequark >
it's a neat-ish hack, except it requires the entire stdlib to be written with it in mind
16:05
<
ljarvis >
scala is precent decent with this
16:05
<
whitequark >
and it interacts quite horribly with kwargs
16:05
<
ljarvis >
df is that
16:05
__butch__ has joined #ruby-lang
16:06
<
yorickpeterse >
quite precent
16:06
<
yorickpeterse >
dear sor
16:06
jhulten has joined #ruby-lang
16:07
fezziwig has quit [Ping timeout: 258 seconds]
16:07
<
apeiros >
precent is a perfectly cromulent word
16:08
<
ljarvis >
tbh, we should just be all foo.map(FactorySomething{gsub("a","e"))
16:08
<
yorickpeterse >
use an ArrayMap generator
16:09
<
ljarvis >
public static Function<Integer, Function<Integer, Integer>> omg() { return x ~> y ~> x + y; }
16:09
jhass|off is now known as jhass
16:10
<
yorickpeterse >
no no
16:10
<
ljarvis >
im sad that that is valid java code
16:10
<
whitequark >
ljarvis: that's basically how lambdas in java work
16:10
<
ljarvis >
whitequark: ...
16:10
<
toretore >
you can shorten that to map{|o| o.gsub('a', 'e') } in ruby
16:10
amsi has joined #ruby-lang
16:10
<
ljarvis >
toretore: oh! thanks!
16:10
<
toretore >
problem solved
16:10
rails_smith1 has joined #ruby-lang
16:10
<
yorickpeterse >
public class ArrayMap { public final ArrayMap generateMap(final RubyArray array) throws RubyExceptionMaybe { } }
16:11
<
toretore >
i don't think java has maybes
16:11
<
yorickpeterse >
probably needs some annotations as well
16:11
mistym has joined #ruby-lang
16:11
<
yorickpeterse >
and 25 import statements
16:11
<
ljarvis >
@Override
16:11
x0f has joined #ruby-lang
16:11
<
yorickpeterse >
doesn't override a method
16:11
<
ljarvis >
it fucking does now okay
16:11
<
yorickpeterse >
unless we implement an abstract class
16:12
<
ljarvis >
i thought that was implied
16:13
apeiros has quit [Remote host closed the connection]
16:13
<
ljarvis >
>> Array.instance_method(:join).bind(ARGV).call
16:13
<
ljarvis >
that's how i join my shit
16:13
<
ljarvis >
oh god you wrote that
16:13
apeiros has joined #ruby-lang
16:13
<
yorickpeterse >
^ basically Java bullshit bingo
16:13
rails_smith has quit [Ping timeout: 240 seconds]
16:14
<
yorickpeterse >
Probably not even valid Java but w/e
16:14
<
ljarvis >
"extends public class"
16:15
x0f_ has quit [Ping timeout: 264 seconds]
16:15
toastynerd has joined #ruby-lang
16:15
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:16
rails_smith1 has quit [Ping timeout: 276 seconds]
16:16
mistym has quit [Ping timeout: 255 seconds]
16:17
apeiros_ has joined #ruby-lang
16:17
apeiros has quit [Read error: Connection reset by peer]
16:18
mykoweb has quit [Remote host closed the connection]
16:24
tomkadwill has joined #ruby-lang
16:24
joost_like_toast has quit [Ping timeout: 264 seconds]
16:25
yfeldblum has joined #ruby-lang
16:29
yfeldblum has quit [Ping timeout: 240 seconds]
16:29
yatish27 has quit [Remote host closed the connection]
16:30
retro|cz has joined #ruby-lang
16:33
rails_smith has joined #ruby-lang
16:34
mikecmpbll has quit [Ping timeout: 245 seconds]
16:35
robmiller has quit [Quit: Leaving.]
16:35
cored has quit [Ping timeout: 240 seconds]
16:36
AncientAmateur has joined #ruby-lang
16:37
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:39
canton7-mac has quit [Remote host closed the connection]
16:40
AncientAmateur has quit [Ping timeout: 240 seconds]
16:41
cnivolle has joined #ruby-lang
16:43
cnivoll__ has joined #ruby-lang
16:44
tomkadwill has quit []
16:44
cnivoll__ has quit [Remote host closed the connection]
16:44
cnivoll__ has joined #ruby-lang
16:44
mistym has joined #ruby-lang
16:44
mistym has joined #ruby-lang
16:44
mistym has quit [Changing host]
16:45
cnivolle_ has quit [Ping timeout: 265 seconds]
16:46
cnivolle has quit [Ping timeout: 265 seconds]
16:46
|jemc| has quit [Read error: Connection reset by peer]
16:47
<
[spoiler] >
ljarvis, lol at that template code. My god, I hate templates in C++; they always CONFUSE ME SO MUCH for no apparent reason
16:47
<
[spoiler] >
the syntax is just #no
16:49
cnivoll__ has quit [Ping timeout: 265 seconds]
16:50
elia has quit [Ping timeout: 240 seconds]
16:50
|jemc| has joined #ruby-lang
16:51
|jemc| has quit [Client Quit]
16:51
saarinen has joined #ruby-lang
16:51
|jemc| has joined #ruby-lang
16:53
ghg has joined #ruby-lang
16:54
mykoweb has joined #ruby-lang
16:57
fezziwig has joined #ruby-lang
16:59
hahuang61 has quit [Ping timeout: 265 seconds]
17:02
_whitelogger has joined #ruby-lang
17:04
Cakey has joined #ruby-lang
17:05
vpretzel is now known as vpretzel|1493
17:05
MichD is now known as michd
17:08
ratmav has joined #ruby-lang
17:08
jose__ has joined #ruby-lang
17:09
workmad3 has quit [Ping timeout: 252 seconds]
17:10
joseminan has joined #ruby-lang
17:10
jose__ has quit [Client Quit]
17:10
joseminan has quit [Client Quit]
17:10
yfeldblum has joined #ruby-lang
17:11
joseminan has joined #ruby-lang
17:11
AncientAmateur has joined #ruby-lang
17:11
nagato has quit [Ping timeout: 276 seconds]
17:12
alexju has quit [Read error: Connection reset by peer]
17:12
alexju has joined #ruby-lang
17:15
yfeldblum has quit [Ping timeout: 255 seconds]
17:15
alexju_ has joined #ruby-lang
17:16
alexju has quit [Read error: Connection reset by peer]
17:21
huug has joined #ruby-lang
17:23
sg-zzz has quit [Remote host closed the connection]
17:23
SteelGolem has joined #ruby-lang
17:24
dsp___ has quit [Remote host closed the connection]
17:24
nagato has joined #ruby-lang
17:24
alexju_ has quit [Read error: Connection reset by peer]
17:24
alexju has joined #ruby-lang
17:26
huug has quit [Quit: Leaving]
17:27
rails_smith has quit [Ping timeout: 252 seconds]
17:28
skade has joined #ruby-lang
17:29
rails_smith has joined #ruby-lang
17:31
banister has joined #ruby-lang
17:32
franzip has joined #ruby-lang
17:33
mikecmpbll has joined #ruby-lang
17:39
luiz_lha has joined #ruby-lang
17:49
valner has quit [Quit: Leaving.]
17:49
mehlah has quit [Quit: Leaving...]
17:52
ratmav has quit [Quit: Leaving]
17:54
dsp__ has joined #ruby-lang
17:55
yfeldblum has joined #ruby-lang
17:56
JhonD has quit [Quit: Leaving]
17:57
lsegal has joined #ruby-lang
17:58
Cakey has quit [Ping timeout: 240 seconds]
18:01
robbyoconnor has joined #ruby-lang
18:02
skade has quit [Ping timeout: 265 seconds]
18:05
loincloth has quit [Remote host closed the connection]
18:06
skade has joined #ruby-lang
18:09
mykoweb has quit [Remote host closed the connection]
18:09
mykoweb has joined #ruby-lang
18:10
mykoweb has quit [Read error: No route to host]
18:10
mykoweb has joined #ruby-lang
18:17
robbyoconnor has quit [Quit: Konversation terminated!]
18:17
skade has quit [Quit: WeeChat 0.4.3]
18:22
frzng has quit [Ping timeout: 245 seconds]
18:22
robbyoconnor has joined #ruby-lang
18:22
rue has quit [Remote host closed the connection]
18:23
gnufied has quit [Ping timeout: 252 seconds]
18:25
ironhide_604 has joined #ruby-lang
18:25
Cakey has joined #ruby-lang
18:25
mykoweb has quit [Remote host closed the connection]
18:26
frzng has joined #ruby-lang
18:26
mykoweb has joined #ruby-lang
18:27
gnufied has joined #ruby-lang
18:27
nathanstitt has quit [Quit: I growing sleepy]
18:28
robbyoconnor has quit [Ping timeout: 255 seconds]
18:29
futilegames has joined #ruby-lang
18:30
dmitrykorotkov has joined #ruby-lang
18:30
omosoj has joined #ruby-lang
18:31
mykoweb has quit [Ping timeout: 276 seconds]
18:31
gnufied has left #ruby-lang [#ruby-lang]
18:31
dmitrykorotkov has quit [Max SendQ exceeded]
18:32
dmitrykorotkov has joined #ruby-lang
18:32
dmitrykorotkov has quit [Max SendQ exceeded]
18:33
dmitrykorotkov has joined #ruby-lang
18:33
Cakey has quit [Ping timeout: 240 seconds]
18:34
kiddorails has quit [Quit: Leaving.]
18:34
dmitrykorotkov has quit [Max SendQ exceeded]
18:34
<
yorickpeterse >
Jebus Racc is slow
18:35
<
yorickpeterse >
Lexing 10MB of XML takes 600 ms
18:35
<
yorickpeterse >
parsing that shit with Racc takes 5 seconds
18:35
<
yorickpeterse >
._.
18:35
dmitrykorotkov has joined #ruby-lang
18:36
olauzon has joined #ruby-lang
18:36
tomkadwill has joined #ruby-lang
18:38
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:39
kitak_ has joined #ruby-lang
18:41
<
whitequark >
and racc is probably the fastest
18:41
<
whitequark >
did some dork suggest you use PEG already? :D
18:41
loincloth has joined #ruby-lang
18:41
<
apeiros_ >
yes, PEG!
18:42
* apeiros_
notes that oracle's xml instructions seem to be horribly slow too
18:42
<
yorickpeterse >
whitequark: not for performance reasons
18:42
<
whitequark >
apeiros_: last time I checked, every single peg parser allocated a (huuuuge) node per CHARACTER
18:42
<
yorickpeterse >
but in general, yes
18:42
apeiros_ is now known as apeiros
18:42
<
yorickpeterse >
dang it, I'm not going to write a fucking LL parser in Ruby as well
18:43
<
whitequark >
why not? it's not hard
18:43
kitak_ has quit [Ping timeout: 240 seconds]
18:43
<
apeiros >
subcontractor replaced their stored procedure with a java app - process time for ~100MB XML went down from 110min to 4min
18:43
<
yorickpeterse >
Because it's yet another thing I'd have to write
18:43
<
yorickpeterse >
instead of getting stuff done
18:44
<
yorickpeterse >
but ugh, 5 sec is not acceptable
18:44
<
apeiros >
(and they still use a DOM parser - could probably be even faster with a sax parser)
18:44
<
whitequark >
yorickpeterse: well you could hire me
18:44
<
apeiros >
yorickpeterse: do you have that 10MB XML publicly available somewhere? :)
18:44
<
whitequark >
although then we'd probably spend 5x more time figuring out the bureaucracy than actually fixing stuff
18:44
<
apeiros >
(not gonna write an xml parser, but curious about a thing or two)
18:45
<
yorickpeterse >
apeiros: yes
18:46
<
yorickpeterse >
"big"
18:46
alex-quiterio1 has joined #ruby-lang
18:46
<
yorickpeterse >
10MB uncompressed
18:46
<
yorickpeterse >
whitequark: does it work if I complain long enough?
18:46
<
yorickpeterse >
e.g. similar to parser
18:46
<
yorickpeterse >
But yeah, LL is not too hard but ugh
18:46
<
whitequark >
yorickpeterse: no
18:47
<
whitequark >
I wrote parser for myself
18:47
elia has joined #ruby-lang
18:48
alex-quiterio2 has joined #ruby-lang
18:48
elia has quit [Remote host closed the connection]
18:48
joseminan has quit [Quit: Saliendo]
18:48
hahuang61 has joined #ruby-lang
18:49
pje has joined #ruby-lang
18:49
<
yorickpeterse >
probably also uses a ton more memory, though I can't find yet how it consumes the input
18:49
<
yorickpeterse >
e.g. if it uses String#[] I'd be fucked
18:50
<
whitequark >
LALR parsers don't operate on strings
18:50
<
whitequark >
LALR(1)*
18:50
<
whitequark >
well technically they could, but it's nearly useless
18:50
<
whitequark >
oh it includes a tokenizer
18:50
<
pje >
Hey, I've found a super-obscure, reproducible bug in ruby's configure script—can someone point me to a FAQ for filing bug reports?
18:50
<
yorickpeterse >
hm, uses Regexp#match
18:51
<
yorickpeterse >
so that's probably going to blow up in memory
18:51
alex-quiterio1 has quit [Ping timeout: 276 seconds]
18:51
relix has quit [Remote host closed the connection]
18:51
<
yorickpeterse >
You need to sign up first though
18:52
<
pje >
yorickpeterse: thanks!
18:52
alex-quiterio2 has quit [Client Quit]
18:52
relix has joined #ruby-lang
18:52
<
yxhuvud >
yorickpeterse, : how big is that (huuuuge) node per character?
18:53
<
yorickpeterse >
yxhuvud: euh?
18:53
<
yorickpeterse >
I think you mean whitequark
18:53
<
yxhuvud >
oh. sorry ._.
18:53
relix_ has joined #ruby-lang
18:54
<
whitequark >
yxhuvud: well
18:56
relix has quit [Ping timeout: 240 seconds]
18:57
tbuehlmann has quit [Remote host closed the connection]
18:57
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
18:59
shinnya has joined #ruby-lang
18:59
<
whitequark >
yxhuvud: at least 80 bytes per node
18:59
<
yorickpeterse >
Hm, maybe I could use Ragel + Lemon in pure C
18:59
<
yorickpeterse >
then bind to that
19:00
<
yorickpeterse >
Since Lemon requires you to push tokens in instead of it pulling that would work together nicely
19:01
Fushi has quit [Quit: Connection closed for inactivity]
19:01
<
yorickpeterse >
then again that means having to deal with more C
19:03
rails_smith has left #ruby-lang [#ruby-lang]
19:05
ghg has joined #ruby-lang
19:05
ghg has quit [Remote host closed the connection]
19:06
ghg has joined #ruby-lang
19:06
sepp2k has joined #ruby-lang
19:08
mistym is now known as mistym_lunch
19:16
lolmaus has quit [Ping timeout: 252 seconds]
19:21
mistym has joined #ruby-lang
19:22
Squarepy has quit [Quit: Leaving]
19:24
momomomomo has quit [Quit: momomomomo]
19:24
marcdel has joined #ruby-lang
19:24
mr-fooba_ has joined #ruby-lang
19:25
SteelGolem has quit [Remote host closed the connection]
19:26
SteelGolem has joined #ruby-lang
19:26
derek_ has joined #ruby-lang
19:27
mr-foobar has quit [Ping timeout: 240 seconds]
19:27
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:28
marcdel has quit [Ping timeout: 240 seconds]
19:30
Cakey has joined #ruby-lang
19:30
marcdel has joined #ruby-lang
19:32
Miphix has quit [Remote host closed the connection]
19:34
BucOder has joined #ruby-lang
19:35
Cakey has quit [Ping timeout: 255 seconds]
19:35
ratmav has joined #ruby-lang
19:36
ratmav has quit [Read error: Connection reset by peer]
19:36
frobrob has joined #ruby-lang
19:39
rh1n0 has joined #ruby-lang
19:39
cored has joined #ruby-lang
19:46
rh1n0 has quit [Ping timeout: 255 seconds]
19:46
hybristic has quit [Remote host closed the connection]
19:47
sarkyniin has joined #ruby-lang
19:47
hybristic has joined #ruby-lang
19:47
mikecmpbll has quit [Quit: ciao.]
19:47
Squarepy has joined #ruby-lang
19:48
hybristic has quit [Remote host closed the connection]
19:48
hybristic has joined #ruby-lang
19:50
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:51
toastynerd has quit [Remote host closed the connection]
19:53
Dim_ has quit [Quit: Leaving]
19:53
futilegames has quit [Ping timeout: 240 seconds]
19:54
futilegames has joined #ruby-lang
19:55
marcdel has quit []
19:57
mistym has quit [Remote host closed the connection]
19:57
toastynerd has joined #ruby-lang
19:58
mistym has joined #ruby-lang
19:59
mistym has quit [Remote host closed the connection]
20:02
Nilium has quit [Ping timeout: 276 seconds]
20:04
havenwood has quit [Remote host closed the connection]
20:04
[spoiler] has quit [Quit: Leaving]
20:10
jhulten has quit [Ping timeout: 276 seconds]
20:13
amsi has quit [Ping timeout: 264 seconds]
20:13
fragamus has joined #ruby-lang
20:13
mehlah has joined #ruby-lang
20:15
pje has left #ruby-lang [#ruby-lang]
20:19
mistym_lunch is now known as mistym
20:20
mehlah has quit [Quit: Leaving...]
20:21
dmitrykorotkov has quit [Read error: Connection reset by peer]
20:24
amsi has joined #ruby-lang
20:25
gnufied has joined #ruby-lang
20:27
nathanstitt has joined #ruby-lang
20:27
<
apeiros >
yorickpeterse: weee, my self-made not-really-xml parser parses it in 1.22s :D
20:28
<
apeiros >
(it handles barely anything - so yes, of course, it's trivial to write something incorrect which is fast :D)
20:28
<
whitequark >
the C approach!
20:28
matled has joined #ruby-lang
20:29
<
whitequark >
(if a program ever dynamically exhibits UB, it is legal to optimize it to int main() { printf("yolo\n"); return 42; })
20:30
yatish27 has joined #ruby-lang
20:31
<
apeiros >
are you sure there's no UB in that optimized version?
20:31
benanne has joined #ruby-lang
20:32
<
whitequark >
that doesn't matter
20:32
<
whitequark >
since it is legal to optimize it to literally anything whatsoever
20:33
fragamus has quit [Ping timeout: 265 seconds]
20:35
hybristic has quit []
20:35
yatish27 has quit [Ping timeout: 265 seconds]
20:35
hybristic has joined #ruby-lang
20:37
philoserf has joined #ruby-lang
20:37
<
whitequark >
I actually should write an LLVM pass which does just that
20:38
simono has joined #ruby-lang
20:39
jhulten has joined #ruby-lang
20:40
maoko has joined #ruby-lang
20:40
sarkyniin has quit [Quit: Quitte]
20:42
marcdel has joined #ruby-lang
20:43
_ht has quit [Remote host closed the connection]
20:46
fezziwig_ has joined #ruby-lang
20:46
fezziwig has quit [Read error: Connection reset by peer]
20:46
futilegames has quit [Ping timeout: 255 seconds]
20:46
marcdel has quit [Ping timeout: 252 seconds]
20:46
futilegames has joined #ruby-lang
20:46
kyb3r_ has joined #ruby-lang
20:46
jhulten_ has joined #ruby-lang
20:47
jhulten_ has quit [Read error: Connection reset by peer]
20:47
jhulten_ has joined #ruby-lang
20:47
ur5us has joined #ruby-lang
20:48
jhulten has quit [Ping timeout: 255 seconds]
20:50
ColdBlooder has quit [Remote host closed the connection]
20:51
philoserf has quit [Quit: outta 'ere]
20:51
marcdel has joined #ruby-lang
20:52
marcdel has quit [Client Quit]
20:53
futilegames_ has joined #ruby-lang
20:54
futilegames has quit [Ping timeout: 276 seconds]
20:54
futilegames_ is now known as futilegames
20:54
havenwood has joined #ruby-lang
20:56
jwing has quit [Quit: Leaving]
20:56
vpretzel|1493 is now known as vpretzel|pretzel
20:57
ap4y has joined #ruby-lang
20:59
ap4y has quit [Client Quit]
21:00
ap4y has joined #ruby-lang
21:01
JohnHirbour has quit [Quit: Leaving.]
21:02
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:03
kitak has quit [Remote host closed the connection]
21:04
kitak has joined #ruby-lang
21:04
leandrosnunes has quit [Quit: WeeChat 0.4.3]
21:05
jgpawletko has quit [Quit: jgpawletko]
21:05
fostertheweb has joined #ruby-lang
21:09
gianlucadv has quit [Ping timeout: 252 seconds]
21:09
elia has joined #ruby-lang
21:10
_rgn has quit [Ping timeout: 240 seconds]
21:13
kitak has quit [Remote host closed the connection]
21:13
kiwifr00t has joined #ruby-lang
21:13
kitak has joined #ruby-lang
21:13
scampbell has quit [Quit: Leaving]
21:14
futilegames has quit [Quit: futilegames]
21:16
ldnunes has quit [Quit: Leaving]
21:20
alexju has quit [Remote host closed the connection]
21:20
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:21
_rgn has joined #ruby-lang
21:24
arBmind has quit [Quit: Leaving.]
21:25
ghg has quit [Read error: Connection reset by peer]
21:26
gianlucadv has joined #ruby-lang
21:26
tomkadwill has quit []
21:26
shemerey has joined #ruby-lang
21:27
ghg has joined #ruby-lang
21:27
ghg has quit [Remote host closed the connection]
21:28
SteelGolem has quit [Remote host closed the connection]
21:28
ghg has joined #ruby-lang
21:28
SteelGolem has joined #ruby-lang
21:31
Cakey has joined #ruby-lang
21:31
__butch__ has quit [Quit: Leaving.]
21:33
fezziwig_ has quit [Read error: Connection reset by peer]
21:34
fezziwig has joined #ruby-lang
21:35
Cakey has quit [Ping timeout: 255 seconds]
21:36
nathanstitt has quit [Quit: I growing sleepy]
21:37
frobrob has quit [Ping timeout: 255 seconds]
21:37
BucOder has quit [Quit: Computer has gone to sleep.]
21:38
AncientAmateur has quit [Remote host closed the connection]
21:41
clauswitt has joined #ruby-lang
21:42
kitak has quit [Remote host closed the connection]
21:43
kitak has joined #ruby-lang
21:44
jhass is now known as jhass|off
21:45
mehlah has joined #ruby-lang
21:46
herpless has quit [Quit: Connection closed for inactivity]
21:48
omosoj has quit [Ping timeout: 265 seconds]
21:48
kitak has quit [Remote host closed the connection]
21:48
kitak has joined #ruby-lang
21:51
postmodern has quit [Quit: Leaving]
21:52
postmodern has joined #ruby-lang
21:53
loincloth has quit [Remote host closed the connection]
21:53
cnivolle has joined #ruby-lang
21:55
knu has quit [Ping timeout: 265 seconds]
21:56
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:57
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:59
duper has joined #ruby-lang
21:59
seanhagen has joined #ruby-lang
22:01
Squarepy has quit [Quit: Leaving]
22:04
workmad3 has joined #ruby-lang
22:06
fezziwig has quit [Remote host closed the connection]
22:07
fezziwig has joined #ruby-lang
22:09
spuk has joined #ruby-lang
22:10
Nilium has joined #ruby-lang
22:11
fezziwig has quit [Ping timeout: 258 seconds]
22:11
momomomomo has joined #ruby-lang
22:11
ghg_ has joined #ruby-lang
22:13
ghg__ has joined #ruby-lang
22:15
ghg has quit [Ping timeout: 240 seconds]
22:16
marcdel has joined #ruby-lang
22:16
ghg_ has quit [Ping timeout: 276 seconds]
22:17
nofxx has joined #ruby-lang
22:17
ghg__ is now known as ghg
22:19
ghg has quit [Remote host closed the connection]
22:19
ghg has joined #ruby-lang
22:20
marcdel has quit [Ping timeout: 255 seconds]
22:22
marcdel has joined #ruby-lang
22:23
ddux has quit [Remote host closed the connection]
22:26
<
yorickpeterse >
apeiros: well doh, if I remove all Racc code I have it parses it in about 1 second
22:27
<
yorickpeterse >
same goes for the lexer
22:27
<
yorickpeterse >
if I remove all callbacks it can lex it in less than 100 ms
22:30
<
yorickpeterse >
20 ms to be exact
22:31
benanne has quit [Quit: kbai]
22:32
<
yorickpeterse >
apparently Ruby method calls are slow as hell in this case
22:32
omosoj has joined #ruby-lang
22:32
nofxx has quit [Remote host closed the connection]
22:33
<
apeiros >
yorickpeterse: na, it's a simple sax parser which counts the occurrences of each tagname
22:33
<
apeiros >
but yes, method calls are slow in ruby
22:33
<
apeiros >
(it gets the attributes too, I just don't do anything with it)
22:34
<
apeiros >
it's short-comings are more with regards to completeness. it doesn't parse much more than plain 0815 <tag foo="bar"> type tags :)
22:35
simoz112 has joined #ruby-lang
22:36
VTLob has quit [Quit: VTLob]
22:36
nofxx has joined #ruby-lang
22:37
mehlah has quit [Quit: Leaving...]
22:40
nofxx has quit [Ping timeout: 245 seconds]
22:42
<
yorickpeterse >
well, got it down from 5 to 4 seconds
22:43
<
yorickpeterse >
removing meta magic always works
22:43
<
yorickpeterse >
hey now, today I used grep to parse some XML
22:44
marcdel has quit []
22:44
<
yorickpeterse >
heh, strscan
22:44
<
apeiros >
isn't there some xml version of grep?
22:44
<
yorickpeterse >
does that not blow up in terms of memory usage (StringScanner)?
22:44
<
apeiros >
don't think so
22:44
<
apeiros >
I'd expect it to use not much more than 2x the filesize
22:44
<
yorickpeterse >
Hm wait that's true, it extracts larger chunks of strings at a time
22:46
<
apeiros >
it's just sad there's no strscan for IOs
22:46
<
apeiros >
then it could be a true stream parser
22:46
<
yorickpeterse >
Hm, you could probably give it some object to trick it into thinking it's a String
22:46
<
yorickpeterse >
when in reality it's an IO
22:46
<
apeiros >
won't work well
22:46
<
apeiros >
if it doesn't match, you have to increase your buffer and try again
22:47
<
yorickpeterse >
hmm
22:47
<
apeiros >
because it might just not be matching because input is insufficient
22:47
iliketurtles has joined #ruby-lang
22:47
<
apeiros >
you can rework it so you always know the precise reason for failure. but that will make the code a good bit larger than my tiny thingy
22:48
mehlah has joined #ruby-lang
22:49
chouhoulis has quit [Ping timeout: 252 seconds]
22:51
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:53
olauzon has quit [Ping timeout: 240 seconds]
22:54
toastynerd has quit [Remote host closed the connection]
22:54
alex-quiterio has joined #ruby-lang
22:59
ghg has joined #ruby-lang
23:03
woollyams has joined #ruby-lang
23:03
nofxx has joined #ruby-lang
23:04
ironhide_604 has quit [Ping timeout: 252 seconds]
23:05
nofxx has quit [Read error: Connection reset by peer]
23:05
nofxx has joined #ruby-lang
23:05
havenwood has quit []
23:08
shinnya has joined #ruby-lang
23:09
jsullivandigs has joined #ruby-lang
23:09
nofxx has quit [Ping timeout: 240 seconds]
23:11
workmad3 has quit [Ping timeout: 255 seconds]
23:11
cnivolle has quit []
23:12
marcdel has joined #ruby-lang
23:15
alex-quiterio1 has joined #ruby-lang
23:15
alex-quiterio has quit [Read error: Connection reset by peer]
23:16
marcdel has quit [Ping timeout: 265 seconds]
23:17
nathanstitt has joined #ruby-lang
23:17
marcdel has joined #ruby-lang
23:19
alex-quiterio has joined #ruby-lang
23:19
alex-quiterio1 has quit [Read error: Connection reset by peer]
23:19
franziep has joined #ruby-lang
23:20
vpretzel|pretzel has quit [Quit: Adios!]
23:21
franzip has quit [Ping timeout: 240 seconds]
23:24
ascarter has joined #ruby-lang
23:25
yfeldblu_ has joined #ruby-lang
23:27
dwknoxy is now known as dknox-dinner
23:28
yfeldblum has quit [Ping timeout: 240 seconds]
23:30
SteelGolem has quit [Remote host closed the connection]
23:30
SteelGolem has joined #ruby-lang
23:30
woollyams has quit [Ping timeout: 252 seconds]
23:31
|jemc| has quit [Ping timeout: 258 seconds]
23:32
woollyams has joined #ruby-lang
23:34
dstynchula has joined #ruby-lang
23:34
dstynchula has quit [Remote host closed the connection]
23:39
ghg has quit [Ping timeout: 240 seconds]
23:40
ghg has joined #ruby-lang
23:50
SteelGolem has left #ruby-lang [#ruby-lang]
23:52
RobertBirnie has quit [Ping timeout: 252 seconds]
23:53
elia has quit [Quit: Computer has gone to sleep.]
23:57
mehlah has quit [Quit: Leaving...]
23:58
yfeldblu_ has quit [Remote host closed the connection]
23:58
silkfox has joined #ruby-lang
23:58
yfeldblum has joined #ruby-lang