apeiros changed the topic of #ruby-lang to: RIP Jim || Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
dvarrui has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
houhoulis has joined #ruby-lang
jcs222 has joined #ruby-lang
dstynchu_ has quit []
arubin has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
RobertBi_ has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby-lang
MartynKeigher has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
|jemc| has joined #ruby-lang
willmarshall has joined #ruby-lang
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
rwk1 has joined #ruby-lang
amsi has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 240 seconds]
pskosinski_ has joined #ruby-lang
allomov has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 276 seconds]
pskosinski has quit [Remote host closed the connection]
dsp____ has joined #ruby-lang
tkuchiki has joined #ruby-lang
allomov has quit [Ping timeout: 265 seconds]
dsp___ has quit [Ping timeout: 246 seconds]
mistym has quit [Quit: Leaving]
amclain has joined #ruby-lang
metamaterial has quit [Remote host closed the connection]
ap4y has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 246 seconds]
kalehv has quit [Remote host closed the connection]
kitak has joined #ruby-lang
banister_ has joined #ruby-lang
beef-wellington has joined #ruby-lang
SilkFox has joined #ruby-lang
banister has quit [Ping timeout: 252 seconds]
knu has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
simono_ has joined #ruby-lang
simono has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby-lang
tpp8 has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
shinnya has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 245 seconds]
ssb123 has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 240 seconds]
retro|cz has joined #ruby-lang
ddv has quit [Ping timeout: 245 seconds]
dm78 has quit []
dm78 has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
amerine has quit [Read error: Connection reset by peer]
amerine has joined #ruby-lang
shinnya has joined #ruby-lang
rwk1 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
Speed has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
diegoviola has joined #ruby-lang
ddv has joined #ruby-lang
rwk1 has quit [Ping timeout: 265 seconds]
saarinen has joined #ruby-lang
Raycaster has joined #ruby-lang
psycho_one has joined #ruby-lang
nisstyre has joined #ruby-lang
tpp8 has quit [Remote host closed the connection]
MartynKeigher has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby-lang
psycho_one has quit [Ping timeout: 240 seconds]
nertzy2 has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fostertheweb has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
pixelhandler has quit [Quit: pixelhandler]
shinnya has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby-lang
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amerine has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxxx has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
Coincidental has quit [Remote host closed the connection]
thmzlt has quit [Remote host closed the connection]
amerine has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
swills has quit [Changing host]
swills has joined #ruby-lang
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
tharindu has joined #ruby-lang
Andromeda has joined #ruby-lang
Andromeda has quit [Ping timeout: 252 seconds]
ssb123 has joined #ruby-lang
ssb123_ has joined #ruby-lang
ssb123 has quit [Read error: Connection reset by peer]
ssb123_ has quit [Ping timeout: 276 seconds]
gix has quit [Ping timeout: 246 seconds]
Speed has joined #ruby-lang
gix has joined #ruby-lang
allomov has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
Andromeda has joined #ruby-lang
nofxxx has quit [Remote host closed the connection]
nofxxx has joined #ruby-lang
allomov has quit [Ping timeout: 252 seconds]
tharindu has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Linkinus - http://linkinus.com]
mykoweb has joined #ruby-lang
CaptainJet has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
SilkFox has joined #ruby-lang
mehlah has joined #ruby-lang
nofxxx has quit [Ping timeout: 245 seconds]
houhoulis has quit [Remote host closed the connection]
nisstyre has quit [Quit: WeeChat 0.4.3]
Andromeda has quit [Remote host closed the connection]
Andromeda has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Andromeda has quit [Ping timeout: 240 seconds]
Andromed_ has joined #ruby-lang
knu has joined #ruby-lang
Cakey has joined #ruby-lang
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
thmzlt has joined #ruby-lang
Cakey has quit [Ping timeout: 276 seconds]
thmzlt has quit [Ping timeout: 255 seconds]
dorei has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mykoweb has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 245 seconds]
mykoweb has joined #ruby-lang
ikrima has quit [Ping timeout: 276 seconds]
nofxxx has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
tharindu has joined #ruby-lang
hahuang61 has joined #ruby-lang
hahuang65 has joined #ruby-lang
ssb123 has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Ping timeout: 246 seconds]
ssb123 has quit [Ping timeout: 265 seconds]
rwk1 has joined #ruby-lang
toastynerd has joined #ruby-lang
thmzlt has joined #ruby-lang
saarinen has quit [Quit: saarinen]
rwk1 has quit [Ping timeout: 245 seconds]
psycho_one has joined #ruby-lang
brushbox has quit [Quit: brushbox]
psycho_one has quit [Ping timeout: 240 seconds]
mdub has joined #ruby-lang
thmzlt has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
miqui has quit [Remote host closed the connection]
Andromed_ has quit [Remote host closed the connection]
Andromeda has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
Andromeda has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
enebo has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mdub has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
CaptainJet has quit []
enebo has quit [Ping timeout: 240 seconds]
ssb123 has joined #ruby-lang
RobertBirnie has quit [Client Quit]
ssb123 has quit [Ping timeout: 240 seconds]
knu has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
rwk1 has joined #ruby-lang
Speed has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
allomov has joined #ruby-lang
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Andromeda has joined #ruby-lang
omosoj has quit [Ping timeout: 245 seconds]
allomov has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
mistym has joined #ruby-lang
Speed has joined #ruby-lang
Andromeda has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
willmarshall has joined #ruby-lang
dm78 has joined #ruby-lang
nofxxx has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
nofxxxx has joined #ruby-lang
omosoj has joined #ruby-lang
kyb3r_ has joined #ruby-lang
rwk1 has joined #ruby-lang
Speed has quit [Ping timeout: 240 seconds]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Speed has joined #ruby-lang
nofxxxx has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Andromeda has joined #ruby-lang
saarinen has quit [Quit: saarinen]
symm- has quit [Ping timeout: 240 seconds]
alexju has joined #ruby-lang
ritek has quit [Quit: Connection closed for inactivity]
ssb123 has joined #ruby-lang
nofxxx has joined #ruby-lang
_ht has joined #ruby-lang
lguardiola_ has joined #ruby-lang
miwood has joined #ruby-lang
ssb123 has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 252 seconds]
Cakey has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
stardiviner has quit [Ping timeout: 255 seconds]
lguardiola has quit [Remote host closed the connection]
nofxxx has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
nofxxx has joined #ruby-lang
psycho_one has joined #ruby-lang
mykoweb has quit [Ping timeout: 252 seconds]
Andromeda has quit [Ping timeout: 240 seconds]
psycho_one has quit [Ping timeout: 240 seconds]
miwood has quit [Remote host closed the connection]
omosoj has quit [Quit: Leaving]
lguardiola_ has quit [Quit: ZNC - http://znc.in]
tbuehlmann has joined #ruby-lang
lguardiola has joined #ruby-lang
tallgirltaadaa has joined #ruby-lang
Andromeda has joined #ruby-lang
<tallgirltaadaa> hi
<tallgirltaadaa> anyone interested in screen sharing with me,... im alittle stuck searching for a particular piece of code
LMity has joined #ruby-lang
Coincidental has joined #ruby-lang
miwood has joined #ruby-lang
miwood has quit [Client Quit]
psycho_one has joined #ruby-lang
symm- has joined #ruby-lang
<Senjai> tallgirltaadaa: Just gist your code
metamaterial has joined #ruby-lang
<Senjai> tallgirltaadaa: or describe your problem
<tallgirltaadaa> its a bit much to gist
<Senjai> tallgirltaadaa: Then use codementor https://www.codementor.io/
<Senjai> tallgirltaadaa: Then at least describe your issue
<tallgirltaadaa> im looking for the course of a css file
<tallgirltaadaa> i see it in the dom
<tallgirltaadaa> application css
<tallgirltaadaa> and i need to change something
<tallgirltaadaa> but i cant find it anywhere in my code... or from where its being referenced
<Senjai> tallgirltaadaa: Is this a rails question?
<tallgirltaadaa> yes
<ljarvis> tallgirltaadaa: use grep for the selector
<Senjai> tallgirltaadaa: try #rubyonrails
<ljarvis> this isn't a rails question, it's a search question
<ljarvis> it's not even a ruby question
allomov has joined #ruby-lang
<Senjai> ljarvis: It's a rails question, odds are if they're looking for css that doesnt exist within the project, its from a gem that adds css to the project
<ljarvis> tallgirltaadaa: if you want to find something amongst your code, you should search for it, simple as that
<tallgirltaadaa> have never used grep... im sorry for bieng a super noob, would you mind telling me what it is
<tallgirltaadaa> its not always that simple
<ljarvis> tallgirltaadaa: what's the css selector you're searching for?
<Senjai> tallgirltaadaa: !g grep
<Senjai> oh, right no helpa here
LMity has quit [Ping timeout: 276 seconds]
<Senjai> tallgirltaadaa: http://en.wikipedia.org/wiki/Grep
<Senjai> also, we dont even know if your on mac/*nix
<Senjai> if your on windows, you're SOL
<ljarvis> good point, if you're on windows i'm afk
<tallgirltaadaa> not on windows Senjai
<ljarvis> again, what is the selector you're looking for?
ritek has joined #ruby-lang
ritek has quit [Changing host]
ritek has joined #ruby-lang
ritek has joined #ruby-lang
<tallgirltaadaa> im trying to change the z-index of a popover
<tallgirltaadaa> i can change it in the dom, but cant find the source in my files
<ljarvis> sigh
allomov has quit [Ping timeout: 276 seconds]
rwk1 has quit [Remote host closed the connection]
nofxxx has quit [Remote host closed the connection]
<Senjai> tallgirltaadaa: I think you need to find some html and css tutorials before starting with rails
<metamaterial> or find a place with helpful people
<tallgirltaadaa> i work as a web developer...
<ljarvis> tallgirltaadaa: do you know what a css selector is?
<ljarvis> metamaterial: it goes both ways
nofxxx has joined #ruby-lang
<metamaterial> just give her the knowledge she wants dude dont ask her to learn grep or redo css class
<tallgirltaadaa> yes i know what a selector is... my problem is i am requiring some gems.. and i believe ... nm
<whitequark> tallgirltaadaa: try searching for both z-index and zIndex
<Senjai> tallgirltaadaa: Then answer our question, WHAT SELECTOR ARE YOU LOOKING FOR
<whitequark> jquery uses the latter name
<ljarvis> ... if you know the css selector then wtf
<Senjai> tallgirltaadaa: We cant help you if you don't give us the info we need to help you
<ljarvis> metamaterial: LOL okay
<tallgirltaadaa> .popover
<ljarvis> RIGHT
<Senjai> tallgirltaadaa: grep ".popover" app/
LMity has joined #ruby-lang
<Senjai> tallgirltaadaa: in terminal at the project root
apeiros has quit [Remote host closed the connection]
<ljarvis> ^ (although I would go one better and app/assets/stylesheets)
<Senjai> tallgirltaadaa: Err, ack not grep
apeiros has joined #ruby-lang
<whitequark> ack might not be installed by default
<tallgirltaadaa> Err, ack not grep?
<ljarvis> ^^
<ljarvis> I mentioned grep because it's more likely to be installed
<ljarvis> (i use ag)
<ljarvis> because ag <3
<Senjai> Uhh, even that is not the right syntax for ack haha. I use ack-grep
<Senjai> ljarvis: LOL
<ljarvis> also if you have the app in development mode and click on the selector in devtools, it'll tell you which file it's in and what line it's on
<tallgirltaadaa> yes... application.css line 5135
<tallgirltaadaa> thanks guys... ill keep sleuthing
* metamaterial goes about installing ag and putting it in dev mode. "yay i got me some knowledges tonight"
* Senjai applauds
<metamaterial> <3
<Senjai> metamaterial: just try it, you'll love it
<Senjai> metamaterial: sudo apt-get install ack-grep
<ljarvis> btw by ag I did not mean ack-grep
nazty has joined #ruby-lang
tharindu has quit [Ping timeout: 246 seconds]
<Senjai> ljarvis: What did you mean?
ssb123 has joined #ruby-lang
<Senjai> ljarvis: I've never had to wait more than a blink of an eye for ack-grep
<Senjai> but I havent tried that
<metamaterial> •If there are files in your source repo you don't want to search, just add their patterns to a .agignore file. *cough* extern *cough*
<metamaterial> is this some of that configuring ? heh
<ljarvis> Senjai: sure, I'm not saying it's better and ack was also good for me, I'm just used to the ag syntax now
<Senjai> metamaterial: I prefer to do my exclusions in the command
<Senjai> metamaterial: Rather than miss stuff accidentally
knu has joined #ruby-lang
<metamaterial> •Files are mmap()ed instead of read into a buffer.
<metamaterial> much intrest.
<whitequark> that would, at best, avoid you one memcpy(). not impressive imo
LMity has quit [Ping timeout: 265 seconds]
<metamaterial> how many buffer overflow exploits were fixed in the last osx update -_-
<metamaterial> ruby ones
<metamaterial> idk dont mind me
tomkadwill has joined #ruby-lang
ssb123 has quit [Ping timeout: 240 seconds]
metamaterial has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
bf4_ has quit [Read error: Connection reset by peer]
bf4 has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
metamaterial has joined #ruby-lang
hahuang61 has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
amclain has quit [Quit: Leaving]
katlogic has left #ruby-lang [#ruby-lang]
knu has quit [Ping timeout: 240 seconds]
dsp____ has quit [Remote host closed the connection]
Speed has joined #ruby-lang
bf4 has quit [Read error: Connection reset by peer]
bf4 has joined #ruby-lang
rwk1 has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang61 has joined #ruby-lang
LMity has joined #ruby-lang
d4rkr4i has joined #ruby-lang
mistym has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
LMity has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 240 seconds]
rofel has joined #ruby-lang
dsp___ has joined #ruby-lang
ssb123 has joined #ruby-lang
ironhide_604 has joined #ruby-lang
face has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
Speed has quit [Ping timeout: 245 seconds]
face has joined #ruby-lang
relix has joined #ruby-lang
dsp___ has quit [Ping timeout: 265 seconds]
ssb123 has quit [Ping timeout: 240 seconds]
psycho_one has quit [Remote host closed the connection]
tomkadwill has joined #ruby-lang
adphillips has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 252 seconds]
Coincidental has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
qba73 has joined #ruby-lang
woollyams has joined #ruby-lang
ur5us has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
Speed has joined #ruby-lang
qba73 has joined #ruby-lang
tallgirltaadaa has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jsrn has joined #ruby-lang
Speed has quit [Ping timeout: 246 seconds]
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
c_s_g has joined #ruby-lang
tomkadwill has joined #ruby-lang
d4rkr4i has joined #ruby-lang
marr has joined #ruby-lang
rwk1 has joined #ruby-lang
shinnya has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
metamaterial has quit [Ping timeout: 272 seconds]
Cakey has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby-lang
robmiller has joined #ruby-lang
robmiller has quit [Client Quit]
robmiller has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
michaeldeol has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> morning
<ljarvis> yorickpeterse: http://www.reddit.com/r/uwotm8
<ljarvis> I just found this gold and thought of you
allomov has joined #ruby-lang
<yorickpeterse> haha wtf
hahuang65 has joined #ruby-lang
hahuang61 has joined #ruby-lang
rofel has quit [Quit: Leaving...]
allomov has quit [Ping timeout: 245 seconds]
rwk1 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
cnivolle has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
cnivolle_ has joined #ruby-lang
cnivolle has quit [Ping timeout: 246 seconds]
tomkadwill has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 252 seconds]
tomkadwill has joined #ruby-lang
charliesome has joined #ruby-lang
ssb123 has joined #ruby-lang
<yorickpeterse> So last night I concluded I'll *probably* do my XML/HTML parser partially as a C-ext
<yorickpeterse> So I'll have to change the slogan to "A pretty much pure Ruby XML/HTML parser"
<yorickpeterse> because fuck me Ragel Ruby is slow
Mon_Ouie has quit [Ping timeout: 252 seconds]
<whitequark> I wonder if rbx can JIT the hell out of it?
<yorickpeterse> Perhaps, but both JRuby and Rbx are already several orders of magnitude slower
<yorickpeterse> e.g. I have a benchmark that chews through 10MB of XML using the lexer
<yorickpeterse> MRI 2.1.1 does that in around 9,3 seconds
<yorickpeterse> JRuby and Rbx sit somewhere around 30 seconds
<yorickpeterse> Racc is not involved here
ssb123 has quit [Ping timeout: 240 seconds]
<whitequark> whoa, that sounds like bugs
<whitequark> have you asked on #jruby?
<yorickpeterse> The slowest factors seem to be *lots* of calls to Array#[] (for the table indices and such)
<yorickpeterse> not yet
<whitequark> headius likes to optimize this stuff :p
<yorickpeterse> Profiling Ragel code is a PITA
<yorickpeterse> I really want to keep this pure Ruby but a throughput of merely 1MB/sec is not really acceptable for me
<yorickpeterse> since I actually have to parse 800MB XML files from time to time
<whitequark> what the fuck are you doing that you need to parse over 1MB of XML per second
<whitequark> idk 15 minutes is not that much
<yorickpeterse> It is if you have to parse a few million documents a day
michaeldeol has joined #ruby-lang
<whitequark> hmmm, I see
<whitequark> lol, I don't envy you
<whitequark> wait, did you say "800MB XML files"? not "800MB *of* XML files"?!
hahuang65 has joined #ruby-lang
hahuang61 has joined #ruby-lang
<yorickpeterse> e.g. in our case we scrape somewhere around 40k profile pages a day, each requiring dozens of HTTP requests + parsing actions
<yorickpeterse> The former
<whitequark> fuck
<yorickpeterse> e.g. we have some XML dumps we need to parse from time to time that are massive
<yorickpeterse> basically entire DB dumps in XML
<whitequark> I like how you called them "massive dumps"
michaeldeol has quit [Read error: Connection reset by peer]
<yorickpeterse> big data
michaeldeol has joined #ruby-lang
ikrima has quit [Ping timeout: 255 seconds]
<yorickpeterse> But yeah, so MRI 2.1 on its own has a throughput of about 10MB/sec in the most basic example I can make
<yorickpeterse> basically iterates over every byte and calls String#getbyte
<yorickpeterse> That in itself is not bad but not really fast either
<yorickpeterse> Nokogiri can parse that 10MB into a DOM document in ~300 ms
<yorickpeterse> Rubby not webscale :<
<whitequark> try to make the C lexer have the same interface as the Ruby lexer
<whitequark> then you'd have a much easier time debugging it
<whitequark> or supporting other platforms, in general
<whitequark> I mean, racc is done like that
<yorickpeterse> I was going to try and make a very, very minimal C-ext lexer
<yorickpeterse> That would call back to Ruby as much as possible but have the loop in C
<yorickpeterse> I however really don't like the idea of having to maintain a Ruby + C + Java codebase
<yorickpeterse> On my way to the office I was actually considering writing something that would generate said C and Java code for me
<yorickpeterse> if basically all it does is call some C/Java API functions it's not too hard to do that
<yorickpeterse> I also tried moving some small bits over to pure C + FFI but that was waaaay slower
michaeldeol has quit [Ping timeout: 265 seconds]
<yorickpeterse> something something would be easier if JRuby still had a C-ext API
<yxhuvud> it is strange you get so bad performance - I stream through several hundred megabytes a second when parsing logs (even on systems still using 1.8). The main issue there is avoiding reading the whole file at once as the memory use explosion is so costly.
<yxhuvud> I manage to avoid reading char by char though
workmad3 has joined #ruby-lang
<yorickpeterse> I opted for an approach that prevents OOM killing but has the trade-of of being slower CPU time wise
<yorickpeterse> That is, reading stuff byte by byte
<yorickpeterse> actually, that was faster too than just operating on strings
<yorickpeterse> Pretty sure there's also quite some overhead in String#getbyte but I'm not sure how to optimize that
allomov has joined #ruby-lang
knu has joined #ruby-lang
rwk1 has joined #ruby-lang
<whitequark> making unsupported claims again...
<yorickpeterse> There's nothing there that states "this is always webscale and never a bottleneck"
<whitequark> there's no "overhead" in String#getbyte that can be fixed, short of inlining it into your loop
<whitequark> and inlining it into your loop is something that must be done, but MRI will probably not ever be able to
<yorickpeterse> Given MRI were to store strings as byte arrays the access would be O(n)
<yorickpeterse> since it would be a direct Array index without the need of converting crap in C
<yorickpeterse> but alas
<whitequark> open your fucking eyes
<whitequark> it is O(1)
<whitequark> line 4145.
<whitequark> all of the other things... checks for range, checks for embedding, conversion to/from Fixnum, are constant-time
<whitequark> and quite cheap if you bother to take out `perf' and look at how the CPU executes it
<whitequark> did you read the code at all?
<yorickpeterse> reading?
<yxhuvud> yorickpeterse: have you measured different sizes and verified that your lexing is O(n)? If is is greater than that, I'd assume you or ragel are doing something it shouldn't.
<yorickpeterse> yxhuvud: pretty sure the lexer itself is anything but O(n)
<yorickpeterse> also, taking out String#getbyte saves about ~1-1,3 seconds in the lexing process, but of course now everything breaks
<yorickpeterse> So there's some overhead, but not as extreme
Fushi has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 240 seconds]
<whitequark> you keep using the word "overhead", I don't think it means what you think it means
<yorickpeterse> yxhuvud: basically what I did is remove all my custom Ragel machines and what not so that the only rule was a no-op: `any => {}`
<yorickpeterse> So basically it just iterates over each byte, that's it
<whitequark> it's not possible to implement String#getbyte faster given the constraints of MRI VM
<yorickpeterse> That takes ~5 seconds
GaelanAintAround has joined #ruby-lang
<yorickpeterse> Ragel does a crapton of Array lookups as well, but I don't think those can be made faster
<yorickpeterse> e.g. using a Hash instead is actually slower
<yorickpeterse> Set is not possible since the values are not unique
<whitequark> Set uses a Hash internally.
<whitequark> Array#[] is as fast as String#getbyte, nothing you can do there
<whitequark> you can hoist the const/ivar accesses out of the loop to make them lvars, look if that helps
<whitequark> I did it for parser
<whitequark> a huge holiday here
<whitequark> errr, wrong channel
<yorickpeterse> Not sure if there would be a huge diff between lvars and ivars
matp has quit [Quit: ZZZzzz…]
<whitequark> ivars are in general hash access, lvars are array access
<yorickpeterse> I did some moving around with values from/to constants and what not, but it only made things slower
<whitequark> except if you only have 3/7 ivars, then it's optimized to linear search, but lvars are still faster
<whitequark> I suggest you check it
ColdBlooder has quit [Read error: Connection reset by peer]
ColdBlooder has joined #ruby-lang
<apeiros> it's quite a shame ruby does literal ivars as hash access
<apeiros> s/ access//
<whitequark> yeah, could at least detect non-iv_set accesses and put them into an array
<apeiros> highline still state of the art?
* apeiros feels like reinventing wheels - but it's yet another yak…
rwk1 has quit [Remote host closed the connection]
szarubin has joined #ruby-lang
zarubin has quit [Ping timeout: 252 seconds]
ssb123 has joined #ruby-lang
apeiros has quit []
woollyams has joined #ruby-lang
apeiros has joined #ruby-lang
ssb123 has quit [Ping timeout: 246 seconds]
face has quit [Read error: Connection reset by peer]
zarubin has joined #ruby-lang
face has joined #ruby-lang
psycho_one has joined #ruby-lang
michaeldeol has joined #ruby-lang
relix has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby-lang
nofxx has quit [Ping timeout: 245 seconds]
szarubin has quit [Ping timeout: 256 seconds]
pskosinski_ is now known as pskosinski
psycho_one has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Ping timeout: 240 seconds]
relix has joined #ruby-lang
michd is now known as MichD
arBmind has joined #ruby-lang
<yorickpeterse> whitequark: going from ivars -> lvars saves about 2 seconds on a 10MB input
<whitequark> nice, isn't it?
<whitequark> so, 20% speedup
<yorickpeterse> The actual data var is still an ivar but I can't really work around that
<whitequark> why?
psycho_one has joined #ruby-lang
<whitequark> data = @data
<whitequark> this will save time when ragel will access it repeatedly
<yorickpeterse> hmm
<apeiros> ugh, IO#raw broken? the example from the docs seems to block indefinitely (STDIN.raw(&:gets))
<whitequark> no flushing perhaps?
<yxhuvud> whitequark: assuming it never go out of scope in all uses of it.
<whitequark> ^D
<whitequark> yxhuvud: uh, what?
<apeiros> whitequark: doesn't help either. neither ^C
<yxhuvud> wq: nm
<whitequark> apeiros: odd
<whitequark> strace it
<apeiros> :-/
<apeiros> how do I go about that?
* apeiros utterly ignorant of strace
<whitequark> um, strace script.rb ?
nofxxx has quit [Remote host closed the connection]
<apeiros> ok. got to see how to install strace first then. seems it doesn't come with osx
ironhide_604 has quit [Quit: ironhide_604]
ironhide_604 has joined #ruby-lang
<apeiros> dtruss seems to be the thing to use
<whitequark> ohhh, os x. yes. no clue then
<apeiros> egh
<apeiros> fuck that. I use readline for the moment.
<apeiros> that's one yak too many.
matp has joined #ruby-lang
<yorickpeterse> Hm, using an lvar for the data variable vs an ivar seems to only make a small difference
psycho_o_ has joined #ruby-lang
franzip has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
psycho_one has quit [Ping timeout: 276 seconds]
woollyams has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
mindriot101 has joined #ruby-lang
mindriot101 has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
mindriot101 has joined #ruby-lang
zenojis has quit [Read error: Connection reset by peer]
mindriot101 has quit [Client Quit]
mindriot101 has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
mindriot101 has left #ruby-lang [#ruby-lang]
tomkadwill has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 255 seconds]
cnivolle has joined #ruby-lang
zenojis has joined #ruby-lang
mehlah has quit [Read error: Connection reset by peer]
mehlah_ has joined #ruby-lang
cnivolle_ has quit [Ping timeout: 246 seconds]
allomov has joined #ruby-lang
MartynKeigher has joined #ruby-lang
stamina has joined #ruby-lang
ssb123 has joined #ruby-lang
ecnalyr has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
ssb123 has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
yfeldblum has joined #ruby-lang
sepp2k has joined #ruby-lang
michaeldeol has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
kitak has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
nazty has quit [Quit: WeeChat 0.3.7]
silverfox has joined #ruby-lang
workmad3 is now known as wm3|lunch
symm- has quit [Ping timeout: 246 seconds]
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
TvL2386 has joined #ruby-lang
kitak has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
mindriot101 has joined #ruby-lang
dsp___ has joined #ruby-lang
tomkadwill has joined #ruby-lang
mindriot101 has quit [Ping timeout: 240 seconds]
robmiller has quit [Quit: Leaving.]
ssb123 has quit [Ping timeout: 245 seconds]
silverfox has quit [Remote host closed the connection]
dsp___ has quit [Ping timeout: 240 seconds]
silverfox has joined #ruby-lang
crankharder has quit [Ping timeout: 255 seconds]
thmzlt has joined #ruby-lang
michaeldeol has joined #ruby-lang
c_s_g has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwk1 has joined #ruby-lang
simono has joined #ruby-lang
michaeldeol has quit [Ping timeout: 246 seconds]
amerine has quit [Ping timeout: 276 seconds]
mindriot101 has joined #ruby-lang
<apeiros> ljarvis: where is the `:as` option for `on` documented? how can I do a boolean flag?
mindriot_ has joined #ruby-lang
<apeiros> hm, odd… the docs imply String is the default, but the readme makes it look as it it was boolean by default. I'll try it out.
<whitequark> yorickpeterse: that's because you so far don't have a full lexer
<whitequark> when you will have one, there'll be much more accesses
mindriot101 has quit [Ping timeout: 276 seconds]
jsrn has quit [Ping timeout: 252 seconds]
amerine has joined #ruby-lang
TvL2386 has quit [Ping timeout: 245 seconds]
silverfox has quit []
postmodern has quit [Quit: Leaving]
<yorickpeterse> "a full lexer"?
<yorickpeterse> The lexer is full in that it's complete, it lexes all of XML minus inline doctypes (because I haven't gotten to that yet)
faces has joined #ruby-lang
robmiller has joined #ruby-lang
face has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby-lang
<whitequark> oh, I thought you referred to the {}=>any
TvL2386 has joined #ruby-lang
<yorickpeterse> Oh no, I didn't bench that with locals
<yorickpeterse> I benched the actual lexer
woollyams has joined #ruby-lang
<yorickpeterse> Fucking Travis
<yorickpeterse> Builds erroring because Gemsets and/or commands are not found
retro|cz has quit [Ping timeout: 240 seconds]
tkuchiki_ has joined #ruby-lang
dorei has joined #ruby-lang
jsrn has joined #ruby-lang
tkuchiki has quit [Ping timeout: 265 seconds]
tkuchiki_ has quit [Ping timeout: 276 seconds]
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
thisirs has joined #ruby-lang
ssb123 has joined #ruby-lang
c_s_g has joined #ruby-lang
dsp___ has joined #ruby-lang
zarubin has quit []
ssb123 has quit [Ping timeout: 255 seconds]
dsp___ has quit [Ping timeout: 252 seconds]
retro|cz has joined #ruby-lang
yfeldblum has joined #ruby-lang
michaeldeol has joined #ruby-lang
<chris2> did ruby 2.1 disable the curses ext?
michaeldeol has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
<yorickpeterse> Looks like it
<yorickpeterse> 1.9>> require 'curses'
<yorickpeterse> ...
<yorickpeterse> eval-in: YO
<yorickpeterse> >> require 'curses'
<eval-in> yorickpeterse => (https://eval.in/144953)
<chris2> the build file didnt change, but after 2.0.0 its not there anymore
<whitequark> 19>> require 'curses'
<eval-in> whitequark => (https://eval.in/144954)
<yorickpeterse> ah
c_s_g has quit [Quit: Textual IRC Client: www.textualapp.com]
<chris2> anyway, which is the recommended gem for wide-char compatible ncurses?
<whitequark> ncurses ?
<whitequark> oh, wchar.
<chris2> i.e. i need to output utf8
wm3|lunch is now known as workmad3
<whitequark> > formerly part of the Ruby standard library
<chris2> oh
rippa has joined #ruby-lang
miqui has joined #ruby-lang
<chris2> ncursesw exists too
<chris2> and has many downloads
<chris2> and it builds :P
* chris2 is so easy to please these days
alexju has joined #ruby-lang
<chris2> oO where is TRUE defined
<chris2> hm, even in 1.8
<yorickpeterse> oh behave
<apeiros> much TRUE, very lol, much facepalm…
<chris2> gah, why doesnt the utf8 sample have any double-width content
<yorickpeterse> apeiros: get this fucking meme out of #yorick-whitequark-rage-lang
tomkadwill has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 245 seconds]
<apeiros> yorickpeterse: removing all the memes!
dsp___ has joined #ruby-lang
<chris2> :D
<chris2> over 9000 memes!
<apeiros> chris2: ever tweeted that? :)
* apeiros <3 nappa-bot
<yorickpeterse> I am 12 and what is this
<chris2> hm, ncursesw does weird stuff
<apeiros> yorickpeterse: sorry, only for grown ups
<yorickpeterse> :<
<yorickpeterse> well in that case 80% of this channel might as well /part
<apeiros> unless that series is still on tv… otherwise you won't get it. pop-culture reference of forgotten times…
<apeiros> yorickpeterse: https://twitter.com/DBZNappa
<yorickpeterse> I am very much aware with that and DBZ
<yorickpeterse> s/with/of
<chris2> does rubydoc.info ever work?
<apeiros> chris2: occasionally. when it doesn't try to infinitely rebuild docs.
<chris2> yes
<chris2> thats what it does here
bruno- has joined #ruby-lang
<apeiros> sometimes reloading helps. but that behavior is sad and annoying :(
<yorickpeterse> shit, I left a binding.pry in $PRODUCTION code
<yorickpeterse> "Production - New Error: Errno::ENXIO: No such device or address @ rb_io_reopen - /dev/tty"
<apeiros> rdoc.info without that bug is awesome IMO
<yorickpeterse> oops
<chris2> #<ArgumentError: chtype string argument must be an empty Array>
<chris2> (wat?)
<apeiros> yorickpeterse: require 'pry'; class Binding; def pry; warn "YOU EEEDIOT!"; end; end if env.production?
<apeiros> (yes, we have something to that avail in our code)
<yorickpeterse> apeiros: no, better
<yorickpeterse> STDIN.reopen('/dev/tty'); require 'pry'; binding.pry
<yorickpeterse> hence the error
bruno- has quit [Read error: Connection reset by peer]
<yorickpeterse> Commit message: "Nothing to see here, move along."
<chris2> size_t string_length =
<chris2> NUM2ULONG(rb_funcall(array, rb_intern("size"), 0));
<chris2> doesnt look like an expert wrote that?
<yorickpeterse> looks like standard MRI
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kitak has quit [Remote host closed the connection]
malconis has joined #ruby-lang
<chris2> cant you read the array length without a method call?
enebo has joined #ruby-lang
psycho_o_ has quit [Remote host closed the connection]
<apeiros> I think there's a macro
<apeiros> RARRAY_LEN or somesuch
<chris2> yeah
<apeiros> yupp, include/ruby/ruby.h:878: #define RARRAY_LEN(a)
<chris2> gah, this is all crap
bruno- has joined #ruby-lang
<chris2> now i still need to calculate display width
<apeiros> quick, quote a meme!
<yorickpeterse> Currently listening to:
<yorickpeterse> " Những bản nhạc không lời hay nhất của Eric Chiryoku - Best of Eric Chiryoku"
<apeiros> thai?
<yorickpeterse> I have no idea what the title means but I like the music
<yorickpeterse> the video is a video of a bunch of lotus flowers
<workmad3> apeiros: I don't always need array lengths, but when I do, I also need to calculate display widths... ?
<yorickpeterse> (weird part of youtube0
<yorickpeterse> hahaha, it has lyrics too
<apeiros> workmad3: I hoped for one wrt "this is all crap!"
<yorickpeterse> but there are no vocals in it
<whitequark> apeiros: that pry thing should've been a pre-push hook
<workmad3> apeiros: sorry, I just went for one I could throw out quickly
<apeiros> :)
<yorickpeterse> whitequark: actually that gives me an idea
<apeiros> "Eric Chiryoku is a music composer in Singapore" - so probably not thai
<yorickpeterse> use parser to scan for `binding.pry` calls, set up in Jenkins, hurl abuse
rwk1 has quit [Remote host closed the connection]
<whitequark> do it
<apeiros> ^^
<yorickpeterse> hm, regex might be easier
<apeiros> send(:binding).send(:pry) # haha, stealth mode!
<whitequark> yorickpeterse: class NoPry < Parser::AST::Processor; def on_send(node); raise if node == s(:send, s(:send, nil, :binding), :pry)); end; end
<whitequark> not exactly easier
<yorickpeterse> well, when using a regexp you'd have to exclude comments
<whitequark> or witherspace
<yorickpeterse> so that if somebody does `# do not use binding.pry` you don't get slapped in the face
<chris2> and mvprintw doesnt do double-width either
<chris2> why the fuck is this called curses*w* anyways
<whitequark> wchar_t
mehlah_ has quit [Quit: Leaving...]
diegoviola has quit [Quit: WeeChat 0.4.3]
<workmad3> yorickpeterse: :D
<yorickpeterse> pipe that to cowsay + lolcat and you're good to go
jgpawletko has joined #ruby-lang
<yorickpeterse> meh, I don't like the part where MRI 2.1.1 uses nearly 2x more memory in one of our apps compared to 1.9.3
<apeiros> 32bit 1.9 vs. 64bit 2.1?
ssb123 has joined #ruby-lang
<yorickpeterse> No
<yorickpeterse> x86_64 on both
<apeiros> in that case: ouch. bad.
<apeiros> I thought ruby memory consumption had become gradually better, not worse
<yorickpeterse> ignore the annoying tooltip, I switched to MRI on the 29th
mattsp1290 has quit []
<yorickpeterse> Our workload did go up since the 24th so I'm keeping an eye on it
<apeiros> yorickpeterse: the monitoring tool you're using is a 3rd party thing, right?
<yorickpeterse> For best measurements I'll take a sample of an entire week next week
<yorickpeterse> we use custom secret sauce to feed it Ruby statistics
<yorickpeterse> New Relic get on my level
Andromeda has quit [Remote host closed the connection]
<yorickpeterse> heap size pretty much doubled too
<yorickpeterse> but!
<yorickpeterse> GC timings dropped even harder than Skrillex drops the bass
<apeiros> very nice graphs. may I ask how much you guys pay for that?
<yorickpeterse> self hosted, entire cluster costs around 1500 USD a month
<yorickpeterse> (elasticsearch cluster + kibana instance + some other crap in between)
<apeiros> ah, I meant for the kibana thing
<yorickpeterse> We just host that on EC2
allomov has quit [Remote host closed the connection]
ssb123 has quit [Ping timeout: 240 seconds]
<yorickpeterse> Interesting to see how the average payload processing time stayed pretty much the same
<tbuehlmann> we're also using ES, kibana in conjunction with logstash
mehlah has joined #ruby-lang
<yorickpeterse> around 10 seconds per job for the past month
<yorickpeterse> lets see what the other apps have to say
franzip has quit [Read error: Connection reset by peer]
<yorickpeterse> Our entire roundtrip is app -> logstash -> redis -> elasticsearch -> kibana
<yorickpeterse> redis sits in between so we don't blow up ES, which happened before
franzip has joined #ruby-lang
<yorickpeterse> dang it, other app has the same pattern
<yorickpeterse> nearly 2x more RAM
<yorickpeterse> blegh
<tbuehlmann> yeah, same setup here
<yorickpeterse> my precious RAM
<tbuehlmann> I just read mri_211_memory_usage_per_sister.png
<yorickpeterse> heh
cnivolle_ has joined #ruby-lang
havenwood has joined #ruby-lang
alexju has joined #ruby-lang
michaeldeol has joined #ruby-lang
yfeldblum has joined #ruby-lang
vpretzel is now known as vpretzel|1211
cnivolle has quit [Ping timeout: 246 seconds]
Andromeda has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 276 seconds]
beef-wellington has joined #ruby-lang
nathanstitt has joined #ruby-lang
elia has joined #ruby-lang
AncientAmateur has joined #ruby-lang
elia has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 252 seconds]
thisirs has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
nathanstitt has quit [Quit: Laters]
ylluminate_ has quit [Read error: Connection reset by peer]
ylluminate has joined #ruby-lang
elia has joined #ruby-lang
_elia has joined #ruby-lang
rwk1 has quit [Ping timeout: 240 seconds]
elia has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
psycho_one has joined #ruby-lang
|jemc| has joined #ruby-lang
karamazov has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
WishBoy has quit [Remote host closed the connection]
SilkFox has joined #ruby-lang
WishBoy has joined #ruby-lang
beef-wellington has quit [Ping timeout: 245 seconds]
|jemc| has quit [Quit: WeeChat 0.4.1]
knu has quit [Read error: Connection reset by peer]
jxpx777_ has joined #ruby-lang
jxpx777_ has quit [Read error: Connection reset by peer]
jxpx777_ has joined #ruby-lang
ylluminate has quit [Ping timeout: 276 seconds]
dik_dak has joined #ruby-lang
jxpx777 has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 255 seconds]
_elia has quit [Quit: Computer has gone to sleep.]
SilkFox has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Client Quit]
AncientAmateur has joined #ruby-lang
mistym has joined #ruby-lang
amerine_ has joined #ruby-lang
mykoweb has joined #ruby-lang
knu has joined #ruby-lang
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
touzine has joined #ruby-lang
ssb123 has joined #ruby-lang
benlovell has joined #ruby-lang
jhass|off is now known as jhass
amerine has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby-lang
yfeldblum has joined #ruby-lang
rwk1 has joined #ruby-lang
havenn has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
tomkadwill has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 246 seconds]
arBmind has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
thmzlt has quit [Remote host closed the connection]
enkristoffer has joined #ruby-lang
rwk1 has quit [Ping timeout: 276 seconds]
tomkadwill has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
|jemc| has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
centrx has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
arubincloud has joined #ruby-lang
silverfox has joined #ruby-lang
ikrima has joined #ruby-lang
loincloth has joined #ruby-lang
silverfox is now known as si1verfox
mistym has joined #ruby-lang
arBmind has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
thmzlt has joined #ruby-lang
stamina has quit [Remote host closed the connection]
<gnufied> never knew one of the main guys behind guard died. :(
amerine has joined #ruby-lang
<yorickpeterse> wait what?
<yorickpeterse> what happened? :<
<yorickpeterse> oh shoot, haven't checked my mail yet
<yorickpeterse> dang
amerine_ has quit [Ping timeout: 265 seconds]
<gnufied> and he has quite a few of open source projects
enkristoffer has quit [Quit: ❤]
rolfb has joined #ruby-lang
enkristoffer has joined #ruby-lang
retro|cz has quit [Ping timeout: 252 seconds]
ikrima has quit [Ping timeout: 240 seconds]
dwknoxy has joined #ruby-lang
toastynerd has joined #ruby-lang
elia has joined #ruby-lang
karamazov has quit []
qba73 has quit []
rwk1 has joined #ruby-lang
frank_o has joined #ruby-lang
tomkadwill has joined #ruby-lang
diegoviola has joined #ruby-lang
jds has joined #ruby-lang
rwk1 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby-lang
<frank_o> Hi, I'm trying to display products from the Amazon Product API using Vacuum. But how come `map` won't understand `raw_products`? I did a `to_h` as the Vacuum docs recommends: https://gist.github.com/frankie-loves-jesus/89d24dd88579c7f912f3
<frank_o> * doc recommends
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rwk1 has joined #ruby-lang
mbj has joined #ruby-lang
<centrx> frank_o, It must not be an enumerable
<apeiros> ljarvis: is it possible that Slop does not have a proper #initialize_copy?
MartynKeigher has joined #ruby-lang
Coincidental has joined #ruby-lang
<frank_o> centrx: Could you elaborate? Why is it an enumerable in the first place?
<centrx> frank_o, Why do you think map would work on that object?
<frank_o> centrx: Well, I made it work for a similar response from the ShopSense API as described here: https://gist.github.com/frankie-loves-jesus/11058955
<frank_o> Other than that I don't know :S
<centrx> frank_o, Isn't that a completely different company
<centrx> Presumably the APIs do not work the same
jsrn has quit [Ping timeout: 276 seconds]
<frank_o> Yep. I'm trying to "streamline" the two setups though
d4rkr4i has quit [Ping timeout: 265 seconds]
<frank_o> centrx: True. For what it's worth Ive included the api responses at the bottom of the gists
rwk1 has quit [Ping timeout: 245 seconds]
<centrx> frank_o, Find out what object item_search(query: params) returns and what methods that object supports
tomkadwill has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
d4rkr4i has joined #ruby-lang
timmmaaaayyy has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
<frank_o> centrx: item_search(query: params) should be the stuff i included at the bottom of the gists no?
x0f_ has joined #ruby-lang
<centrx> frank_o, Apparently not
elia has quit [Quit: Computer has gone to sleep.]
<frank_o> oh
<frank_o> centrx: the output i included is from `puts raw_products.to_h`
AncientAmateur has quit [Remote host closed the connection]
<timmmaaaayyy> can anyone help me figuure out how to set a variable (macaddr) to the first mac address foudn in a text file?
ironhide_604 has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<centrx> frank_o, Okay, well raw_products must implement a to_h method that transforms it like that
Johz has joined #ruby-lang
x0f has quit [Ping timeout: 250 seconds]
mistym has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
<frank_o> centrx: It's got raw_products.to_h if that's what you mean
mistym has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<centrx> frank_o, So it has to_h but not map. Isn't there documentation somewhere for this Vacuum::Response object?
mistym has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
<frank_o> centrx: I found http://ruby-doc.org/gems/docs/v/vacuum-1.0.0/Vacuum/Response.html but literally the only thing it says is "to_h" :)
adphillips has quit []
amsi has joined #ruby-lang
Cakey has joined #ruby-lang
ta_ has joined #ruby-lang
<centrx> frank_o, It looks like that is the only method it has, aside from whatever it inherits from SimpleDelegator
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frank_o> centrx: Ai ai ai.. not good..
__butch__ has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby-lang
tomkadwill has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
mindriot_ has quit []
musl has quit [Quit: WeeChat 0.4.3-dev]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 265 seconds]
nathanstitt has joined #ruby-lang
jxpx777_ has quit [Quit: Leaving...]
benlovell has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby-lang
fijimunkii has joined #ruby-lang
stardiviner has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
toastynerd has joined #ruby-lang
si1verfox has quit [Remote host closed the connection]
<jtoy> anyone know how a gem like this but works for any ruby array? https://github.com/ankane/groupdate
<jtoy> instead of just rails
mykoweb has quit [Ping timeout: 240 seconds]
rwk1 has joined #ruby-lang
<jtoy> i want to do array.group_by_day(:created)
sdouglas has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 245 seconds]
herpless has quit [Quit: Connection closed for inactivity]
saarinen has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
d4rkr4i has quit [Ping timeout: 252 seconds]
bruno- has quit [Read error: Connection reset by peer]
<centrx> jtoy, array.group_by { |x| x.created.to_date }
bruno- has joined #ruby-lang
yfeldblum has joined #ruby-lang
pixelhandler has joined #ruby-lang
<centrx> jtoy, Aside from time zones and some other features, groupdate is just an abbreviation of the basic Array#group_by
<centrx> *Enumerable
SilkFox has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
rahul_j has joined #ruby-lang
psycho_one has quit [Remote host closed the connection]
cored has quit [Ping timeout: 246 seconds]
mykoweb has joined #ruby-lang
rahul_j has quit [Client Quit]
yfeldblum has quit [Ping timeout: 252 seconds]
psycho_one has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 255 seconds]
mykoweb has joined #ruby-lang
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
mykoweb has quit [Ping timeout: 240 seconds]
fostertheweb has joined #ruby-lang
ikrima has joined #ruby-lang
cnivolle has joined #ruby-lang
imperator has joined #ruby-lang
shinnya has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby-lang
cnivolle_ has quit [Ping timeout: 245 seconds]
tomkadwill has joined #ruby-lang
Andromeda has quit [Ping timeout: 240 seconds]
vivekrai_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
pskosinski is now known as JanGleboki
kitak has joined #ruby-lang
mykoweb has joined #ruby-lang
<badeball> what kind of magic is bundler doing to detect ruby version? https://gist.github.com/badeball/8fe4280e8c364c300319
ssb123 has quit [Remote host closed the connection]
<apeiros> RUBY_VERSION probably
<Mon_Ouie> What does which bundler give you?
ikrima has quit [Ping timeout: 252 seconds]
<badeball> apeiros: it is properly set to 1.8.7
<apeiros> it's possible that your bundler is executed with a different ruby than your cli ruby
<Mon_Ouie> (I mean type `which bundler` in a terminal)
<apeiros> seems Mon_Ouie is following that trail :)
<badeball> Mon_Ouie: /home/jonas/.gem/ruby/1.8.7/bin/bundler
<centrx> apeiros, There are shell scripts for bundler in /usr/local/bin that start with #!/usr/bin/ruby2.1
<centrx> badeball, ^
<jhass> badeball: note that ruby 1.8.7 is essentially out of support, you should update
<bougyman> badeball: that's crazy
kitak has quit [Ping timeout: 240 seconds]
<badeball> bougyman: what is?
<badeball> jhass: yeah, believe me I want to
<apeiros> how come `which bundle` gives `/home/…/bundleR`?
<apeiros> note the R
fijimunkii has quit [Ping timeout: 240 seconds]
<Mon_Ouie> Oh, right, I mistyped it too.
<apeiros> what happens when you do: ruby -v /home/jonas/.gem/ruby/1.8.7/bin/bundler install
<badeball> apeiros: because I am using chruby and not system-installing gems (neither bundler)
mehlah has quit [Quit: Leaving...]
<apeiros> badeball: that should not magically change the executable name
<apeiros> if you do `which bundle` it should return you `/something/something/bundle`, not `/something/something/bundler`
<badeball> apeiros: eh, my mistake. there are no r at the end.
SilkFox has joined #ruby-lang
<apeiros> ok
<apeiros> then: what happens when you do: ruby -v /home/jonas/.gem/ruby/1.8.7/bin/bundle install
<apeiros> (this time without r)
<gnufied> "bundler" was recently added as in alias, iirc
<gnufied> because people used to type "bundler install" and it used to report "command not found"
<apeiros> yeah. it was bad to have the gem named `bundler` and the command `bundle`
<apeiros> breaks conventions
<badeball> apeiros: ruby complains about not finding rubygems
<apeiros> sounds to me like you have weird issues
<apeiros> and it means your bundle is indeed executed with the wrong ruby
<apeiros> I'd open /home/jonas/.gem/ruby/1.8.7/bin/bundle and check the shebang
<badeball> yeah, I seem to remember stumbling upon this once before, when trying to use 1.8.7 through chruby & ruby-install
<apeiros> in 1.8.7, gems needed to require rubygems. in newer rubies no longer. it seems to me like your bundler was installed with a newer ruby
<apeiros> no idea why it ended up in .gem/ruby/1.8.7
robmiller has quit [Quit: Leaving.]
SilkFox has quit [Ping timeout: 240 seconds]
<badeball> there was indeed a path to system-ruby in bundler
psycho_o_ has joined #ruby-lang
<apeiros> badeball: I'd reinstall bundler with the proper ruby then
<apeiros> and check whether it's still linked wrongly
<badeball> tried that, still invalid
psycho_one has quit [Ping timeout: 246 seconds]
ssb123 has joined #ruby-lang
d4rkr4i has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
dogurness has joined #ruby-lang
mehlah has joined #ruby-lang
<badeball> hmm, am I correct in assuming that ruby 1.8.7 did not ship with rubygems?
tototiti has joined #ruby-lang
<tototiti> hello
<tototiti> I have a little problem while installing bundler, someone can help me ?
AncientAmateur has joined #ruby-lang
SilkFox has joined #ruby-lang
rwk1 has joined #ruby-lang
d4rkr4i has quit [Ping timeout: 252 seconds]
danguita has quit [Ping timeout: 272 seconds]
<yxhuvud> badeball: no. It did not require rubygems by default though.
<yxhuvud> I'm not certain how distros have packaged it though
<apeiros> badeball: it shipped with rubygems but you had to manually require it
<apeiros> badeball: you can set RUBYOPT=-rrubygems
adphillips has joined #ruby-lang
<tototiti> Does someone know the "no suh file to load -- zbli" issue while trying to install gem ?
rwk1 has quit [Ping timeout: 252 seconds]
danguita has joined #ruby-lang
sdouglas has joined #ruby-lang
tototiti is now known as toto
<workmad3> tototiti: did you manually type that error message in here instead of copy-pasting it? :/
<toto> yes because it is a bit long, you want the full message
<toto> ?
toto is now known as Guest74424
<workmad3> Guest74424: no, I can understand it, just kinda amused me that you typed it with so many typos :)
<workmad3> Guest74424: at a guess, you managed to install your ruby without zlib support (which is required for rubygems to work)
tototiti has joined #ruby-lang
ecnalyr has joined #ruby-lang
<tototiti> so the full error message is :ERROR: Loading command: install (LoadError)
<tototiti> cannot load such file -- zlib
<tototiti> uninitialized constant Gem::Commands::InstallCommand
<tototiti> ERROR: While executing gem ... (NameError)
<workmad3> tototiti: at a guess, you managed to install your ruby without zlib support (which is required for rubygems to work)
<workmad3> tototiti: guess you missed that when you got moved to a guest accont
<tototiti> aw yes thanks
adphillips has quit []
Guest74424 has quit [Ping timeout: 246 seconds]
<tototiti> I'm not sure of what you are meaning (I'm french) but I have already try to install and reinstall zlib
loincloth has joined #ruby-lang
<workmad3> tototiti: I mean the zlib ruby standard libarary extension that's built when ruby is installed (and also needs the zlib-dev package in order to be compiled)
elia has joined #ruby-lang
ecnalyr has quit [Ping timeout: 246 seconds]
<imperator> i'm guessing some linux distro nonsense
<imperator> tototiti, what platform?
<tototiti> debian
<tototiti> last version i don't remember if it's wheezy or squeezy
<workmad3> tototiti: how did you install ruby?
danguita has quit [Remote host closed the connection]
<tototiti> after installing zlib, i runned rvm reinstall all --force
d4rkr4i has joined #ruby-lang
<workmad3> tototiti: ok... so do 'apt-get install zlib-dev' and then redo your reinstall
danguita has joined #ruby-lang
<workmad3> although I'd have expected rvm to also install dependencies via apt, unless you turned that off??
<tototiti> no i have zlib on my computer in lib i can find it
sdouglas has quit [Remote host closed the connection]
<workmad3> tototiti: zlib lib != zlib-dev (which installs the dev headers)
<tototiti> ah ok
<workmad3> tototiti: you need zlib-dev because ruby compiles its own extension using the headers
momomomomo has quit [Quit: momomomomo]
<tototiti> apt-get install zlib-dev said me that it is unable to locate package
<workmad3> hmm... I might have gotten the package name wrong... but that's basically what you need to do
<workmad3> it's been a while since I had to do that manually :)
ascarter has joined #ruby-lang
<tototiti> ok i'll search
djbkd has joined #ruby-lang
<tototiti> apparently the package name is zlib1g-dev but it is already install
<workmad3> hmm... maybe ask in #rvm then
pixelhandler has quit [Quit: pixelhandler]
<workmad3> it seems like an issue on the rvm side, and #rvm contains people better suited to sorting out rvm config issues :)
<tototiti> okay, thanks a lot :)
<tototiti> and sorry for my english wich is not very good
robbyoconnor has quit [Excess Flood]
tototiti has left #ruby-lang [#ruby-lang]
robbyoconnor has joined #ruby-lang
<imperator> it's ok, it's good enough :)
centrx has quit [Quit: All this computer hacking is making me thirsty]
yfeldblum has joined #ruby-lang
sdouglas has joined #ruby-lang
bearlulz has joined #ruby-lang
zastern has quit [Quit: WeeChat 0.4.2]
zastern has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
miwood has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
Speed has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
si1verfox has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
bantic has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
matp has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
JohnHirbour has joined #ruby-lang
mykoweb_ has joined #ruby-lang
mykoweb has quit [Read error: No route to host]
mykoweb_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
touzine has quit [Ping timeout: 240 seconds]
dogurness has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby-lang
marcdel has joined #ruby-lang
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby-lang
bruno- has joined #ruby-lang
Cakey has joined #ruby-lang
rwk1 has joined #ruby-lang
bruno- has quit [Ping timeout: 265 seconds]
tomkadwill has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 252 seconds]
tomkadwill has quit [Read error: Connection reset by peer]
tomkadwi_ has joined #ruby-lang
bruno- has quit [Ping timeout: 276 seconds]
davispuh has joined #ruby-lang
havenn has quit [Remote host closed the connection]
kith has quit [Quit: kith]
kith has joined #ruby-lang
rwk1 has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby-lang
<apeiros> hm, not sure slop is a good fit for my needs :-/
<yorickpeterse> gnuplot gnuplot gnuplot gnuplot
<yorickpeterse> and some ruby
elia has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
bruno- has quit [Ping timeout: 240 seconds]
dm78 has joined #ruby-lang
Squarepy has joined #ruby-lang
alexju has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
alexju has joined #ruby-lang
bruno- has joined #ruby-lang
matp has joined #ruby-lang
ItSANgo_ has quit [Quit: Leaving...]
bruno- has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
relix_ has joined #ruby-lang
relix_ has quit [Max SendQ exceeded]
<apeiros> ljarvis: ping
enkristoffer has quit [Quit: ❤]
relix_ has joined #ruby-lang
adphillips has joined #ruby-lang
relix has quit [Ping timeout: 255 seconds]
relix_ has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
bruno- has joined #ruby-lang
ItSANgo has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
marcdel has quit []
loincloth has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
loincloth has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
momomomomo has quit [Quit: momomomomo]
crankharder has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddv has quit [Changing host]
ddv has joined #ruby-lang
tentimes has joined #ruby-lang
<tentimes> Could someone have a look at this gist please and tell me why the method build isn't '@domain.build(@params)' - I thought instance variables needed an @? https://gist.github.com/kevinmccaughey
Thorax` has joined #ruby-lang
bruno- has joined #ruby-lang
Thorax` has quit [Read error: Connection reset by peer]
<ljarvis> apeiros: pong
<tentimes> I meant
<ljarvis> tentimes: because of the attr_reader
<apeiros> ljarvis: does Slop#parse give me any chance of getting the processed argv?
<yorickpeterse> whitequark: ^
<ljarvis> that basically defines the method 'domain' and returns the ivar
<apeiros> i.e. with the processed options removed
Thorax has joined #ruby-lang
<ljarvis> apeiros: pass a block to it
<ljarvis> or use parse! and it'll remove everything it processed from the original array
<ljarvis> non options are yielded to the block
psycho_o_ has quit []
<tentimes> lgarvis - I think I'm getting you, you mean that it sees domain and params as self.domain and self.params? You can do that?
<ljarvis> lol garvis
<ljarvis> tentimes: correct
<tentimes> wow
<ljarvis> tentimes: self is implicit
<tentimes> I didnt know self was implicit! I use it all the time - never knew you could drop it
<tentimes> Just WOW
<ljarvis> except for assignments (obviously)
<tentimes> ah
<ljarvis> x = "foo" != self.x = "foo"
<apeiros> ljarvis: hrm
<tentimes> Thank you so much - I have been at this for hours and hours trying to get it
bruno- has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby-lang
<apeiros> ljarvis: thanks for the answer!
<apeiros> man, I sure suck at thanking people, given that I'm annoyed at the lack of thanks from others :D
<frank_o> I'm trying to display products from the Amazon Product API using Vacuum. But how come `map` won't understand `raw_products.to_h`? https://gist.github.com/frankie-loves-jesus/89d24dd88579c7f912f3
<tentimes> Does JEsus know?
<tentimes> err - soz
<yorickpeterse> Pretty sure Santa does know
si1verfox has quit [Remote host closed the connection]
<apeiros> santa sleeps until november
bruno- has quit [Ping timeout: 276 seconds]
rwk1 has joined #ruby-lang
<frank_o> * But how come `map` won't understand the products JSON which I turned into a hash?
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
<yorickpeterse> apeiros: he keeps a careful eye on your sudo usage
diegoviola has quit [Quit: WeeChat 0.4.3]
<apeiros> he thinks he does. he really just watches 127.0.0.1
WishBoy has quit [Ping timeout: 240 seconds]
dm78 has quit []
dm78 has joined #ruby-lang
rofel has joined #ruby-lang
<eam> joke's on santa, I removed sudo from my system
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
bruno- has joined #ruby-lang
<jhass> frank_o: #to_h returns(!) a hash, you can't convert an object into another class
allomov has joined #ruby-lang
havenwood has quit []
ssb123 has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
<frank_o> jhass: Oh ok
<frank_o> jhass: Not cool. Any suggestions though?
<jhass> sure, just assign the return value somewhere and use it
metamaterial has joined #ruby-lang
rwk1 has quit [Ping timeout: 276 seconds]
tentimes has quit [Quit: Don't push the red button!]
marcdel has joined #ruby-lang
metamaterial has quit [Remote host closed the connection]
metamaterial has joined #ruby-lang
Thorax has quit [Quit: bye ^_^]
yfeldblum has quit [Ping timeout: 240 seconds]
<yorickpeterse> neat, memory wise Oga's XML lexer is constant in its usage
_ht has quit [Remote host closed the connection]
<yorickpeterse> That is, for 10 MB XML file that's lexed for 60 seconds long the memory does not increase
<yorickpeterse> instead it stays nicely around 19MB
miwood_ has joined #ruby-lang
momomomomo has joined #ruby-lang
mykoweb has joined #ruby-lang
<yorickpeterse> The DOM parser on the other hand jumps from ~19MB to ~370MB
<yorickpeterse> and the pull parser also sticks nicely at 19MB
<yorickpeterse> So conclusion: the memory usage goal I set has been met so far
<yorickpeterse> now to get the darn CPU times down :/
miwood has quit [Ping timeout: 245 seconds]
amsi has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
vivekrai_ has quit [Quit: Connection closed for inactivity]
momomomomo has joined #ruby-lang
alexju has quit [Remote host closed the connection]
miwood_ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
havenwood has joined #ruby-lang
miwood has joined #ruby-lang
momomomomo has quit [Client Quit]
wallerdev has joined #ruby-lang
ascarter has joined #ruby-lang
elia has joined #ruby-lang
Johz has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
robmiller has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby-lang
momomomomo has joined #ruby-lang
sarkyniin has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
cnivolle has quit []
rofel has quit [Quit: Leaving...]
elia has joined #ruby-lang
djbkd has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
miwood has quit [Remote host closed the connection]
miwood has joined #ruby-lang
sandbags has quit [Client Quit]
musl has joined #ruby-lang
marcdel has quit []
<ljarvis> apeiros: your "hrm" leads me to believe it's not working how you'd like?
<apeiros> it's more pain to bend it to my will than I'm willing to endure :)
<apeiros> and since I've reinvented that wheel myself 2 times already, I'm now reinventing it a third time. because: wtf, why not.
<apeiros> working with a minimal parser atm, and resurrecting my old full blown parser later.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomkadwi_ has quit [Remote host closed the connection]
ssb123_ has joined #ruby-lang
ssb123_ has quit [Remote host closed the connection]
ssb123 has quit [Read error: Connection reset by peer]
ssb123 has joined #ruby-lang
<ljarvis> :)
rwk1 has joined #ruby-lang
loincloth has joined #ruby-lang
<apeiros> the argv parsing is faaaaar too clever in this minimal parser :D
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
tomkadwill has joined #ruby-lang
Rylee has quit [Max SendQ exceeded]
musl has quit [Quit: WeeChat 0.4.4-dev]
rwk1 has quit [Ping timeout: 276 seconds]
si1verfox has joined #ruby-lang
_djbkd has joined #ruby-lang
frobrob has joined #ruby-lang
djbkd has quit [Ping timeout: 246 seconds]
Squarepy has quit [Remote host closed the connection]
closer has quit [Ping timeout: 256 seconds]
closer has joined #ruby-lang
frobrob has quit [Ping timeout: 265 seconds]
<ljarvis> slop 4.0 is pretty much entirely this: items.each_cons(2).to_a.push([items.last, nil]).each { |flag, arg| options.find(flag).call(arg) }
<apeiros> you start from the known options then?
<apeiros> ah, no
<apeiros> items in your lingo is argv
<ljarvis> aye
<apeiros> why each_cons(2)? for options with arguments?
workmad3 has joined #ruby-lang
<ljarvis> yeah, it disambiguates the argument in the caller
ap4y has joined #ruby-lang
<ljarvis> ie ignores nil, other options etc
<apeiros> items.each_cons(2).to_a.push([items.last, nil]).each
TheMoonMaster has quit [Excess Flood]
<apeiros> --> (items+[nil]).each_cons(2)
<ljarvis> yeah that'll work too, ta!
<apeiros> or items.push(nil).each_cons(2) if you prefer that and are allowed to mutate
<apeiros> I should probably not show my crazy little loop which is ugly beyond reason :)
<ljarvis> I like items + [nil]
<ljarvis> heh, the one I built for the first slop is pretty hilarious
<ljarvis> it's... disgusting
<apeiros> options parsing is disgusting :(
<apeiros> optional arguments are teh horror
<apeiros> especially paired with allowing unknown options (conditionally activated plugins)
<ljarvis> yep
<ljarvis> :(
<ljarvis> some of that code is so weird now.. compared to the new stuff
<apeiros> ljarvis: you don't handle '--'?
TheMoonMaster has joined #ruby-lang
musl has joined #ruby-lang
<ljarvis> yes
<apeiros> damn boolean questions
<apeiros> ah
<apeiros> different level where it's handled
<ljarvis> yeah before options are searched for
TvL2386 has quit [Quit: Ex-Chat]
elia has quit [Quit: Computer has gone to sleep.]
<apeiros> yeah, doing that too, but in the same method atm
tomkadwill has quit []
yfeldblum has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
drbrain has quit [Ping timeout: 264 seconds]
elia has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
elia has quit [Client Quit]
marcdel has joined #ruby-lang
Rylee has joined #ruby-lang
nisstyre has joined #ruby-lang
amsi has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
jgpawletko has quit [Quit: jgpawletko]
gix has quit [Ping timeout: 246 seconds]
yubrew has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
miqui has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
marcdel has quit [Ping timeout: 276 seconds]
ledestin has quit [Ping timeout: 264 seconds]
arBmind has quit [Ping timeout: 265 seconds]
gix has joined #ruby-lang
JohnHirbour has left #ruby-lang [#ruby-lang]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby-lang
kitak has quit [Remote host closed the connection]
marcdel has joined #ruby-lang
kyb3r_ has joined #ruby-lang
alexju has joined #ruby-lang
si1verfox has quit []
robbyoconnor has joined #ruby-lang
pixelhandler has joined #ruby-lang
Dim_ has quit [Read error: Connection reset by peer]
cored has quit [Ping timeout: 245 seconds]
Dim_ has joined #ruby-lang
alexju has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
dvarrui has joined #ruby-lang
arBmind has joined #ruby-lang
arBmind2 has joined #ruby-lang
arBmind1 has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
AncientAmateur has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
arBmind has quit [Ping timeout: 245 seconds]
sdouglas has joined #ruby-lang
rwk1 has quit [Ping timeout: 240 seconds]
AncientAmateur has quit [Ping timeout: 240 seconds]
<yorickpeterse> headius: hats off to JRuby's JIT
<yorickpeterse> headius: drops lexing time of 10MB from ~9 to around 4 seconds
<yorickpeterse> requires setting the threshold of the JIT to 0 though
<yorickpeterse> Though 4 seconds is still quite long
michaeldeol has joined #ruby-lang
<yorickpeterse> with invoke dynamic enabled it goes down to an average of 3,9 seconds
AncientAmateur has joined #ruby-lang
arBmind2 has quit [Read error: Connection reset by peer]
miwood_ has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
marcdel has quit []
sdouglas has joined #ruby-lang
<yorickpeterse> On Rbx the JIT knocks it back from ~30 seconds to around 9 or so
<yorickpeterse> less extreme than JRuby but not bad either
<yorickpeterse> Slower than MRI 2.1.1 however
cstrahan has joined #ruby-lang
<yorickpeterse> that is with a bunch of random Rbx JIT options though
miwood has quit [Ping timeout: 255 seconds]
SilkFox has quit [Ping timeout: 276 seconds]
toastynerd has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
dstynchula has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
dstynchula has quit [Remote host closed the connection]
ssb123 has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
toastynerd has joined #ruby-lang
cstrahan has quit [Quit: leaving]
_djbkd has quit [Remote host closed the connection]
cstrahan has joined #ruby-lang
djbkd has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
<yorickpeterse> rbx -Xjit.max_method_size=4096 -Xjit.max_method_inline_size=1024 # to be exact
<yorickpeterse> those are just random values I picked based on the existing ones
toastynerd has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loincloth has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
imperator has quit [Quit: Valete!]
heftig has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
jhass is now known as jhass|off
Rylee has quit [Max SendQ exceeded]
heftig has joined #ruby-lang
enebo has quit [Quit: enebo]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mykoweb has quit [Remote host closed the connection]
musl has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
allomov has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
djbkd has quit [Read error: Connection reset by peer]
dvarrui has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby-lang
rwk1 has joined #ruby-lang
marcdel has joined #ruby-lang
Voker57 has joined #ruby-lang
marcdel_ has joined #ruby-lang
marcdel_ has quit [Max SendQ exceeded]
marcdel_ has joined #ruby-lang
marcdel has quit [Ping timeout: 240 seconds]
Kabaka_ has quit [Ping timeout: 240 seconds]
rwk1 has quit [Ping timeout: 240 seconds]
ssb123 has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
iTrojan has joined #ruby-lang
arubincloud has quit []
musl has joined #ruby-lang
ColdBlooder has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
marr has quit []
mikecmpbll has quit [Quit: ciao.]
toretore has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby-lang
miwood_ has quit [Remote host closed the connection]
JanGleboki has quit [Quit: Til rivido Idisti!]
miwood has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
dorei has quit []
MartynKeigher has quit [Ping timeout: 240 seconds]
Rylee has joined #ruby-lang
dsp____ has joined #ruby-lang
dsp___ has quit [Ping timeout: 240 seconds]
Rylee has quit [Client Quit]
Rylee has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
franzip has quit [Quit: ...]
apeiros has quit [Remote host closed the connection]
symm- has joined #ruby-lang
apeiros has joined #ruby-lang
ssb123 has joined #ruby-lang
MichD is now known as michd
chouhoulis has quit [Ping timeout: 255 seconds]
sarkyniin has quit [Ping timeout: 255 seconds]
Cakey has joined #ruby-lang
|jemc| has quit [Ping timeout: 265 seconds]
ssb123 has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
dsp____ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has quit [Ping timeout: 255 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
Kabaka_ has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
gix has quit [Read error: Connection reset by peer]
rwk1 has joined #ruby-lang
vpretzel|1211 has quit [Remote host closed the connection]
MartynKeigher has joined #ruby-lang
bantic has quit [Quit: bantic]
crudson has quit [Quit: Leaving.]
nathanstitt has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
Rylee has quit [Max SendQ exceeded]
michaeldeol has joined #ruby-lang
ascarter has quit [Ping timeout: 245 seconds]
rwk1 has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby-lang
MHQ-Johnny has joined #ruby-lang