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