apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
arooni-mobile__ has quit [Read error: Operation timed out]
arooni-mobile has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby-lang
<banisterfiend> .
lsegal has joined #ruby-lang
MartynKeigher has quit [Remote host closed the connection]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fragamus has joined #ruby-lang
tanema has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
banisterfiend has quit [Remote host closed the connection]
kstuart has quit [Remote host closed the connection]
kstuart has joined #ruby-lang
marr has quit [Ping timeout: 264 seconds]
brushbox has joined #ruby-lang
brushbox has quit [Ping timeout: 256 seconds]
io_syl has quit [Quit: io_syl]
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
arooni-mobile has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
arooni-mobile__ has joined #ruby-lang
vjacob has quit [Quit: This computer has gone to sleep]
bradsmith has joined #ruby-lang
brushbox has joined #ruby-lang
bradsmith has quit [Remote host closed the connection]
rails_smith has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros has quit [Ping timeout: 264 seconds]
rails_smith has quit [Client Quit]
swav__ has quit [Ping timeout: 264 seconds]
swav_ has joined #ruby-lang
pipework has joined #ruby-lang
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
grassdog has joined #ruby-lang
thepumpkin has joined #ruby-lang
hahuang61 has quit [Ping timeout: 256 seconds]
Fraibert has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
arooni-mobile has quit [Ping timeout: 264 seconds]
Jan_ has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 276 seconds]
Jan_ is now known as Guest4362
kstuart has quit [Ping timeout: 260 seconds]
Guest2625 has joined #ruby-lang
Guest2625 is now known as diegoviola
Voker57 has quit []
charliesome has quit [Read error: Connection reset by peer]
tanema has joined #ruby-lang
mistym has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
grassdog has quit [Quit: Linkinus - http://linkinus.com]
kirin` has quit [Ping timeout: 264 seconds]
tanema has quit [Ping timeout: 248 seconds]
kirin` has joined #ruby-lang
ledestin has joined #ruby-lang
setmeaway has quit [Ping timeout: 240 seconds]
bradsmith has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
bradsmith has quit [Remote host closed the connection]
bradsmith has joined #ruby-lang
diego1 has joined #ruby-lang
diego1 is now known as diegoviola
bradsmith has quit [Ping timeout: 260 seconds]
mdedetrich has joined #ruby-lang
goodwolf has joined #ruby-lang
poga has quit [Remote host closed the connection]
goodwolf has quit [Client Quit]
brushbox has quit [Ping timeout: 260 seconds]
brushbox has joined #ruby-lang
KM has joined #ruby-lang
KM is now known as Guest24938
joast has joined #ruby-lang
banister has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Remote host closed the connection]
fosky has joined #ruby-lang
hhatch has quit [Ping timeout: 240 seconds]
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 246 seconds]
ffio has joined #ruby-lang
diegoviola has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
hashkey_ has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
hashkey has quit [Killed (adams.freenode.net (Nickname regained by services))]
hashkey_ is now known as hashkey
hashkey has quit [Client Quit]
hashkey has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
poga has joined #ruby-lang
GeissT has joined #ruby-lang
hellome has joined #ruby-lang
GeissT has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby-lang
roadt_ has joined #ruby-lang
roadt has quit [Ping timeout: 248 seconds]
rails_smith has joined #ruby-lang
amerine has quit [Ping timeout: 260 seconds]
esad has joined #ruby-lang
amerine has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
charliesome has joined #ruby-lang
towski has joined #ruby-lang
swav_ has quit [Ping timeout: 264 seconds]
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
konpyu has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
zorg24 has quit [Ping timeout: 240 seconds]
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
bradsmith has joined #ruby-lang
hogeo has joined #ruby-lang
swav_ has joined #ruby-lang
ffio has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
bradsmith has quit [Ping timeout: 264 seconds]
brushbox has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mbj has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
yatish27 has joined #ruby-lang
Guest24938 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tkuchiki has quit [Ping timeout: 248 seconds]
kurko_ has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
tomzx_mac has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby-lang
Voker57 has joined #ruby-lang
mdedetrich has joined #ruby-lang
fragamus has joined #ruby-lang
rikai_ has quit [Remote host closed the connection]
fosky has quit [Read error: Connection reset by peer]
<richardburton> would anyone be kind enough to review some of my code?
dik_dak has joined #ruby-lang
konpyu has joined #ruby-lang
rikai_ has joined #ruby-lang
jonahR has quit [Quit: jonahR]
fragamus has quit [Quit: Computer has gone to sleep.]
bradsmith has joined #ruby-lang
rippa has joined #ruby-lang
pkrnj has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
Guest98332 has joined #ruby-lang
brushbox has joined #ruby-lang
pkrnjevic has joined #ruby-lang
bradsmith has quit [Ping timeout: 240 seconds]
pkrnj has quit [Ping timeout: 264 seconds]
pkrnjevic is now known as pkrnj
Guest98332 is now known as diegoviola
roadt__ has joined #ruby-lang
superfred has joined #ruby-lang
roadt_ has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
mdedetrich has quit [Ping timeout: 240 seconds]
GeissT has joined #ruby-lang
mdedetrich has joined #ruby-lang
saarinen has joined #ruby-lang
mdedetrich has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 0.4.1]
wallerdev has quit [Quit: wallerdev]
mdedetrich has joined #ruby-lang
superfred has quit [Remote host closed the connection]
towski has quit [Remote host closed the connection]
towski has joined #ruby-lang
bradsmith has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
yfeldblum_ has quit [Read error: Operation timed out]
bradsmith has quit [Ping timeout: 264 seconds]
nneko001__ has joined #ruby-lang
Fraibert has quit []
jg_ has joined #ruby-lang
relix has joined #ruby-lang
towski has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
richardburton has quit [Quit: Leaving.]
RickHull1 has joined #ruby-lang
retro|cz has joined #ruby-lang
mistym has joined #ruby-lang
rickhull has quit [Ping timeout: 256 seconds]
kurko_ has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
mdedetrich has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
mdedetrich has quit [Client Quit]
kurko_ has joined #ruby-lang
bradsmith has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
swav_ has quit [Ping timeout: 264 seconds]
bradsmith has quit [Ping timeout: 264 seconds]
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
thebastl has joined #ruby-lang
sjltaylor has joined #ruby-lang
tonni has quit [Remote host closed the connection]
grassdog has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
grassdog has quit [Client Quit]
swav_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
jg_ has quit [Ping timeout: 264 seconds]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<erikh> >> [0,1,2].inject :+ { |m,n| m*n }
<eval-in> erikh => /tmp/execpad-3fadb894ad0b/source-3fadb894ad0b:2: syntax error, unexpected '{', expecting keyword_end ... (https://eval.in/42440)
<erikh> welp
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has joined #ruby-lang
retro|cz has joined #ruby-lang
thebastl has quit [Ping timeout: 264 seconds]
bradsmith has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
bradsmith has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
swav_ has quit [Ping timeout: 248 seconds]
swav_ has joined #ruby-lang
<apeiros> () or do/end
<apeiros> @ erikh
<apeiros> `foo bar { … }` associates the {} with bar
sjltaylor has joined #ruby-lang
tonni has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
kith has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni-mobile__ has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Ping timeout: 276 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
zmike123 has joined #ruby-lang
nneko001__ has quit [Quit: Konversation terminated!]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
bradsmith has joined #ruby-lang
jxie has quit [Quit: leaving]
kith has quit [Read error: Connection reset by peer]
kith_ has joined #ruby-lang
workmad3 has joined #ruby-lang
bradsmith has quit [Ping timeout: 264 seconds]
rikai_ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Quit: Konversation terminated!]
yatish27_ has joined #ruby-lang
yatish2__ has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
yatish27_ has quit [Ping timeout: 264 seconds]
MartynKeigher has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 276 seconds]
<yorickpeterse> man my C is, ugh
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
RickHull1 has quit [Quit: Leaving.]
<apeiros> yorickpeterse: if you find a good way to improve it, tell me
<apeiros> please :)
bryanl has quit [Ping timeout: 245 seconds]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matti has joined #ruby-lang
<yorickpeterse> What usually works for me is hating myself and just doing it
<yorickpeterse> though it takes time
<yorickpeterse> Currently reading up on the Python C API
<yorickpeterse> Which actually has docs!
<apeiros> my problem with "just doing it" is that I have no clue what is good C and why it is good C
<apeiros> likewise for bad C
<yorickpeterse> Hm, good point
Voker57 has quit [Ping timeout: 260 seconds]
<apeiros> and with C, possible pitfalls are much worse than with ruby
<yorickpeterse> I have similar issues, which is why I try to look at somewhat sane APIs (e.g. the Python API in this case)
<apeiros> hm
<apeiros> probably a good idea
<yorickpeterse> In this case I'm trying to hack together MyFirstProgrammingLanguage, hopefully by using as less C as possible
<matti> zzak: No, it cannot be a gem.
sjltaylor has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
hogeo_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
hogeo has quit [Ping timeout: 264 seconds]
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
saarinen has quit [Quit: saarinen]
bryanl has joined #ruby-lang
bradsmith has joined #ruby-lang
Voker57 has joined #ruby-lang
bradsmith has quit [Ping timeout: 276 seconds]
frinott has joined #ruby-lang
frinott has left #ruby-lang [#ruby-lang]
konpyu has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
rikai_ has joined #ruby-lang
darix has quit [Ping timeout: 264 seconds]
Voker57 has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
darix has joined #ruby-lang
darix has joined #ruby-lang
mdedetrich has joined #ruby-lang
Voker57 has joined #ruby-lang
roadt__ has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby-lang
vjacob has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
roadt__ has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
banister has joined #ruby-lang
sascha_d has quit [Quit: obai]
Voker57 has quit [Ping timeout: 240 seconds]
bradsmith has joined #ruby-lang
benanne has joined #ruby-lang
vjacob has quit [Ping timeout: 240 seconds]
retro|cz has quit [Ping timeout: 264 seconds]
vjacob has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
bradsmith has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
Voker57 has joined #ruby-lang
konpyu has joined #ruby-lang
brushbox has left #ruby-lang [#ruby-lang]
riotbit has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
Voker57 has quit [Read error: Operation timed out]
elia has quit [Ping timeout: 256 seconds]
yatish2__ has quit [Remote host closed the connection]
banister_ has joined #ruby-lang
dblack has joined #ruby-lang
dblack has quit [Ping timeout: 264 seconds]
Voker57 has joined #ruby-lang
bryanl has quit [Ping timeout: 264 seconds]
bryanl has joined #ruby-lang
richardburton has joined #ruby-lang
swav_ has quit [Ping timeout: 264 seconds]
swav_ has joined #ruby-lang
swav_ has quit [Remote host closed the connection]
swav_ has joined #ruby-lang
konpyu has quit [Remote host closed the connection]
konpyu has joined #ruby-lang
ledestin has quit [Quit: ledestin]
workmad3 has joined #ruby-lang
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 264 seconds]
sstrickl has quit [Quit: sstrickl]
falten has quit [Quit: ZNC - http://znc.in]
mislav has joined #ruby-lang
<mislav> compiling ruby: is there a way to specify to `configure` that I want it to fail if libopenssl is not found on the system? basically I want ruby build process to fail fast if dependencies for openssl & zlib extensions are missing
<mislav> otherwise ruby compilation succeeds without warnings but openssl and zlib are not available at require time
rob___ has left #ruby-lang [#ruby-lang]
<whitequark> I don't think so
Dernise has joined #ruby-lang
falten has joined #ruby-lang
<Dernise> I always have the feeling that I produce crap code.
<Dernise> What's the best way to produce great code ? What do you do when you start programming ? Do you use UML ?
<Dernise> I need some pro tips..
MaddinXx has joined #ruby-lang
<soahccc> Dernise: UML is not that helpful especially with ruby. You can read some code guides, use some code analyzer or look at the code of other projects (or even ruby standard library)
<Dernise> What about rspec?
<soahccc> You mean testing generally?
swav__ has joined #ruby-lang
hashkey_ has joined #ruby-lang
thepumpkin has joined #ruby-lang
swav__ has quit [Remote host closed the connection]
hashkey has quit [Ping timeout: 248 seconds]
swav_ has quit [Ping timeout: 276 seconds]
elia has joined #ruby-lang
<Dernise> soahccc: yes
<Dernise> Should I avoid doing things like : module ServiceManager end; include ServiceManager
hashkey_ is now known as hashkey
workmad3 has quit [Ping timeout: 240 seconds]
<yorickpeterse> UML is retarded
<yorickpeterse> What you should do is wrote more code
<yorickpeterse> write more, read more, practise, etc
<yorickpeterse> There's no silver bulllet to become a l33t programmer
vlad_starkov has joined #ruby-lang
<yorickpeterse> Just like anything else it requires time, effort and dedication
bradsmith has joined #ruby-lang
<apeiros> so the silver bullet is time, effort and dedication?
<whitequark> more like a wet, rusty iron one
<yorickpeterse> ^
<yorickpeterse> Hm, to Judy array or to hash map
<yorickpeterse> either way I cbf implementing either one manually
<Dernise> Well yes. My code is working but looks "crap" to my eyes
<yorickpeterse> lol Arch linux: search for "hash map", first result is Perl
<whitequark> obviously
bradsmith has quit [Ping timeout: 264 seconds]
konpyu has quit [Remote host closed the connection]
elia has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby-lang
brushbox has joined #ruby-lang
archer_ has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
archer_ is now known as Guest61340
apeiros has joined #ruby-lang
brushbox has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
postmodern has quit [Quit: Leaving]
yxhuvud has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 246 seconds]
<yorickpeterse> what the shit clang, <stdio.h> not found?
<yorickpeterse> and interesting enough another project using that compiles just fine...
realDAB has quit [Read error: Connection reset by peer]
heftig has quit [Quit: Quitting]
realDAB has joined #ruby-lang
heftig has joined #ruby-lang
<whitequark> looks like a bad installation
thebastl has joined #ruby-lang
<yorickpeterse> looks like "fuck you C"
<yorickpeterse> probably goof'd some config but it shouldn't be a big deal anyway
<yorickpeterse> hm wait, I do have a local include/ dir
<yorickpeterse> lets see if that's it
<yorickpeterse> nope
workmad3 has joined #ruby-lang
<whitequark> how did you install clang?
<yorickpeterse> via my package manager
<yorickpeterse> and it's not clang specific, gcc also does it
<whitequark> oh
<yorickpeterse> oh durrrrrrrrrrrr
* yorickpeterse bangs head
* yorickpeterse used #include "<malloc.h>"
<yorickpeterse> hahaha
<yorickpeterse> I need more tea
<whitequark> >The <malloc.h> header is deprecated (and quite Linux specific)
richardburton has quit [Quit: Leaving.]
<whitequark> use, iirc, stdlib.h
<yorickpeterse> right
Banistergalaxy has quit [Ping timeout: 264 seconds]
<whitequark> yes
<matti> Hm.
<matti> ;]
richardburton has joined #ruby-lang
emiltin has joined #ruby-lang
<Dernise> is it possible to redirect stdout to a variable and do a thing like variable.readlines.each do |l| puts l; end; I tried $stdout.reopen variable but I have this error : `reopen': no implicit conversion of nil into String (TypeError)
<matti> Dernise: To a variable?
<matti> Dernise: What do you want to redirect?
<Dernise> Well I started a new process with fork
<matti> Ah.
<Dernise> Well I double forked to run a daemon
<Dernise> And i'd like to redirect the stderr and stdout
<matti> In the daemon process?
<Dernise> Yes.
<matti> Dernise: Alternatively, with your favourite logging/whatnot solution, or else ... assign something that implements IO to $stderr et al
<matti> ;]
<Dernise> And for stdin, where should I redirect this ?
<Dernise> An IO pipe?
<matti> Well.
<Dernise> I'm not really familiar with IO
<matti> Daemons usually re-open 0,1,2 with /dev/null. And use logger class/object that logs to a file.
bradsmith has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
vbatts has joined #ruby-lang
<matti> Dernise: There is an example on how to re-open std{out,err} so both save to a file.
<Dernise> So there's no way to control a daemon?
<matti> Dernise: You can have separate error and normal log files.
<matti> Dernise: ?
kstuart has joined #ruby-lang
<matti> Dernise: You can control your background process as you like i.e. signals, some sort of RPC etc.
<Dernise> I meant, use stdin.
bradsmith has quit [Ping timeout: 276 seconds]
<matti> Dernise: The entire idea of a daemon is for it to detach itself from a terminal, right?
<Dernise> I understand now.
wallerdev has joined #ruby-lang
<Dernise> Hm. What I'm trying to do is to run a minecraft server background and redirect the output to my website
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
<Dernise> I think i'll start the server as a daemon and redirect stdout to a file that i'll display on my website.
<matti> Dernise: I think you are looking to do rather an odd thing.
<matti> Dernise: MS is an JVM application.
<matti> Dernise: Check if they use log4j and ten ship your own configuration.
zmike123 has quit [Quit: ~]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sascha_d has joined #ruby-lang
brushbox has joined #ruby-lang
melter has joined #ruby-lang
<workmad3> Dernise: you could also use runit to run your process
<workmad3> Dernise: and provide a logging script for that which logs the stdout/stderr to a file
x0f has joined #ruby-lang
brushbox has quit [Ping timeout: 264 seconds]
benanne has quit [Quit: kbai]
yfeldblum_ has joined #ruby-lang
x0f_ has quit [Ping timeout: 264 seconds]
<vlad_starkov> Question: Anyone know how to install ruby 2.0.0 on rvm?
<matti> vlad_starkov: Does it break?
<vlad_starkov> `rvm install 2.0.0` returns "ERROR: Unknown ruby interpreter version: '2.0.0'"
<Dernise> try rvm get stable
<vjacob> is #ruby-lang more for Ruby-specific questions, or where in lies the difference to #RubyOnRails?
<matti> vlad_starkov: ruby-2.0.0
<matti> vlad_starkov: RoR -> #rubyonrails
<matti> Ops.
<matti> vjacob: ;d
<vlad_starkov> both commands returns usage information: "rvm get {latest|x.y.z|head|master|branch|help}..."
<Dernise> so try rvm get latest
<Dernise> and then rvm install 2.0.0
VTLob has joined #ruby-lang
<vlad_starkov> `rvm get latest` returns "You already have the latest version! RVM reloaded!"
<Dernise> strange
<vlad_starkov> I'm trying it on OSX
<vlad_starkov> Maybe I should sudo it?
<Dernise> I'm also on OSX.
<matti> vlad_starkov: On OS X I recommend rbenv.
<matti> vlad_starkov: Get homebew, then bew rbenv and then brew ruby-install.
<matti> vlad_starkov: Then rbenv install ...
<matti> vlad_starkov: Pain-free.
<whitequark> apeiros: oh by the way, talking about memory constraints and such
<whitequark> linking webkit takes about 8 hours
<whitequark> on a 12-core i7
<whitequark> sure you want it to be a shared library.
<workmad3> vlad_starkov: don't sudo it
<workmad3> vlad_starkov: most likely you've just got an old rvm, so do 'rvm get head'
<workmad3> or 'rvm get stable'
<vlad_starkov> I have version 1.10
<apeiros> whitequark: ouch
<apeiros> whitequark: I thought modern compilers only relink changed stuff?
<apeiros> not that I understood any of the details…
<workmad3> vlad_starkov: well, the latest on github is 1.21.20
<workmad3> vlad_starkov: so yeah, you have a pretty old version ;)
<vlad_starkov> OK
<vlad_starkov> Thanks guys!
<whitequark> apeiros: MSVC indeed does
<whitequark> everyone else: not so much
<whitequark> talking about perspective: GCC will never have incremental, clang, maybe, if someone's interested enough.
<apeiros> I thought xcode too
<whitequark> I don't think so, unless they use a radically different clang than the FOSS version
<whitequark> which is unlikely
<whitequark> it could also be something related to Mach-O... not sure really
realDAB has quit [Quit: realDAB]
<heftig> whitequark: just linking webkit takes 8 hours, or the entire build?
<whitequark> heftig: iirc just linking
<heftig> that's mad. a PGO (double) build of firefox takes about 100 minutes on a 4-core i7 here
<whitequark> granted it's a number for linking with LTO
<apeiros> I think both numbers are insane
<whitequark> and yes, exactly
<apeiros> and I really wonder why it takes that much time and why it's not being reducde
<apeiros> *reduced
<whitequark> I know people who have compiled LLVM on Raspberry Pi for 30 hours
<whitequark> and that's just ARM
<whitequark> (incidentally, that's why we have cross-compiling, but not crossing has its advantages)
<whitequark> apeiros: algorithms with nlogn or n^2 time, with really big n due to lots of code.
<whitequark> so it's not like you can do anything
<whitequark> write less code ;)
<apeiros> why does linking have n^2 algorithms in it? o0
<Dernise> is it possible to redirect stdout to an IO pipe ?
<heftig> IPO and stuff
<whitequark> ^ that
<apeiros> initial public offering? :)
<whitequark> interprocedural optimization
<heftig> interprocedural optimization
<apeiros> shouldn't that be cacheable?
<whitequark> that's what incremental builds do
<whitequark> but it's hard
<apeiros> i.e., cache, verify how much cache still applies, reducing total checking time?
<whitequark> besides, you have C++ and C++ can easily have very wide ripple effects due to template monomorphization
<whitequark> well, that doesn't apply if you are not developing webkit
<apeiros> `dead code elimination` - sounds like a step which should be used to refactor the code and not be done on every compilation…
<whitequark> it is used to kill dead code exposed as a result of optimization
<whitequark> not something you know is dead upfront.
<apeiros> so?
<whitequark> for example you inline a function and notice that a branch in it is never taken, so you kill that entire part
<heftig> or dead code result of a compile-time constant, such as feature A support
<apeiros> for a release, only one person should have to run that
<whitequark> huh?
<apeiros> *for any given release
<apeiros> or are those optimizations platform dependent?
<whitequark> DCE is not
<whitequark> the conditions in which the code becomes dead, however, may well be
<whitequark> are you suggesting to somehow record which code becomes dead and then not emit it? that's not possible in general case
<heftig> I think he's thinking of the DCE step being at the source code level
<heftig> which it's not
realDAB has joined #ruby-lang
<whitequark> yeah, source code only exists before the front-end
<whitequark> that being said, 60-80% of compile (not link) time for C++ code is spent in the parser.
* whitequark shrugs
<heftig> how platform-dependent are llvm bitcode files?
<whitequark> heftig: entirely.
<whitequark> i.e. down to a target triple.
<heftig> hm, I suppose they're only interesting in the compiler or for cpu-specific (but not platform-specific) optimization
<whitequark> yes
<whitequark> that's what Google's PNaCl does.
<heftig> i.e. using that FMA
* whitequark nods
<whitequark> the frontend must know the target ABI, alignment rules, and there are some operations which require emitting target-specific IR, of various degrees of obscurity.
<heftig> whitequark: I see. a plus for asm.js?
<whitequark> a plus for compiling to js, perhaps
<whitequark> mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html
solars has joined #ruby-lang
<whitequark> he's a v8 dev and he explains why you don't need a separate asm.js compiler, or even (mostly) specification.
<apeiros> whitequark: yes, I thought of either applying the result of DCE to the source or if that's not possible cache the results of DCE and store it as part of the source.
<whitequark> of the _source_? wtf?
<apeiros> well, repository
<whitequark> DCE is specific down to a particular compiler revision
<whitequark> *DCE results
<whitequark> as all other optimizations are
<heftig> and as said, happens after inlining
<whitequark> besides, that makes no sense either way
Sammidysam has joined #ruby-lang
<whitequark> asking the cache "is this code dead" is inherently slower than just checking if it's dead
<apeiros> :-/
<whitequark> in llvm, the latter is a single comparison
<whitequark> you add disk and some kind of path-specific map table latency
<Sammidysam> Can `variable = this or that` not be used (is `variable = this || that` required?)?
<whitequark> yes
<Sammidysam> Okay, thanks.
retro|cz has joined #ruby-lang
Sammidysam has quit [Client Quit]
<apeiros> precedence strikes again
<apeiros> `x = a or b` is `(x = a) or b`
<apeiros> oh, he left already
thebastl has quit [Remote host closed the connection]
<whitequark> tmLanguage files are confusing :/
vlad_starkov has quit [Remote host closed the connection]
<Dernise> matti: If I want to run a process and control it with it's STDOUT and STDIN should I use PTY instead of running it as a daemon ?
Sammidysam has joined #ruby-lang
<Sammidysam> What must be done to puts the return value of a method? Is it just `puts method_name` or does something special have to be done?
<apeiros> `puts foo` works
richardburton has quit [Quit: Leaving.]
<apeiros> but it will call to_s on the return value if it's not a string
<apeiros> (also array gets special treatment)
<apeiros> also look at Kernel#p
richardburton has joined #ruby-lang
<Sammidysam> Okay, thanks.
<apeiros> Sammidysam: also, regarding your previous question: `x = a or b` is `(x = a) or b`
<Sammidysam> Ah, that's what I assumed once I saw that || worked.
<apeiros> (you didn't get that one because you're a quitter :-p)
<Sammidysam> Thanks for letting me know.
<heftig> whitequark: does PNaCl define its own ABI or does it use the host ABI?
<heftig> i.e. there's a pnacl triple that has nothing to do with x86_64 or arm
brushbox has joined #ruby-lang
<heftig> because I think it does, otherwise it'll hardly be portable
rippa has joined #ruby-lang
<whitequark> heftig: host ABI, I think
<whitequark> otherwise it would not be compatible with existing code, which it is
Sammidysam has quit [Quit: Leaving]
<heftig> whitequark: no, seems it defines its own abi
brushbox has quit [Ping timeout: 260 seconds]
theweirdone has joined #ruby-lang
rails_smith has quit [Quit: Leaving.]
<whitequark> interesting
<whitequark> oh no, it's just a more restricted version of "the LLVM ABI", which is the platform ABI.
<whitequark> for example it points to the "ccc", C calling convention
<whitequark> but LLVM translates it to the platforms' cc
<heftig> hm
<heftig> whitequark: it also forces pointer size to 32bit
<heftig> how'd that work on platforms with 64bit pointer size?
Guest61340 has quit [Remote host closed the connection]
<heftig> I don't think it's compatible with existing code
<heftig> all code has to be compiled for PNaCl, or be provided by the runtime
<whitequark> heftig: source-level compatible
<whitequark> stuff written in C tends to depend on the ABI guarantees
bradsmith has joined #ruby-lang
<Dernise> Is there a way to get the STDIN and STDOUT of a PTY ?
benanne has joined #ruby-lang
scmx has joined #ruby-lang
<Dernise> I mean a pty that is already running
<whitequark> be more specific in what you want to do
<whitequark> hm
<heftig> Dernise: if you want to control a child process' stdin/stdout, use popen
<Dernise> I want to do it in real time. After googling some times i found PTY.
netShadow has quit [Read error: Connection reset by peer]
<erikh> apeiros: yeah, I've just been forgetting shit like that lately
<erikh> not enough ruby I guess.
<Dernise> heftig: I want my process to stay alive even if I close my program
bradsmith has quit [Ping timeout: 240 seconds]
<heftig> Dernise: did you program both processes?
<Dernise> No, the other processes are not mine, I'm coding a monitor and I want to output the console on a website
<Dernise> i thought running it in a pty and get stdout and stdin would be a good idea
arooni-mobile has joined #ruby-lang
netShadow has joined #ruby-lang
emiltin has quit [Quit: Computer has gone to sleep.]
bradsmith has joined #ruby-lang
hogeo has joined #ruby-lang
bradsmit_ has joined #ruby-lang
konpyu has joined #ruby-lang
bradsmith has quit [Ping timeout: 246 seconds]
jxie has joined #ruby-lang
hogeo_ has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby-lang
Nisstyre-laptop is now known as Nisstyre
arooni-mobile__ has joined #ruby-lang
realDAB has quit [Read error: Connection reset by peer]
realDAB has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
titas9x__ has joined #ruby-lang
titas9x__ has left #ruby-lang [#ruby-lang]
mbj has joined #ruby-lang
titas9x_ has joined #ruby-lang
titas9x_ has quit [Client Quit]
thebastl has joined #ruby-lang
yxhuvud has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby-lang
brushbox has joined #ruby-lang
TheNotary has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
brushbox has quit [Ping timeout: 256 seconds]
richardburton has quit [Quit: Leaving.]
theweirdone has quit []
TheNotary has quit [Quit: Leaving]
Nisstyre has quit [Quit: Leaving]
jg_ has joined #ruby-lang
sr78ger has joined #ruby-lang
titas9x has joined #ruby-lang
yxhuvud has joined #ruby-lang
<titas9x> how to refactor this https://gist.github.com/titas9x/6205485 with using hashes and arrays
thepumpkin has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 240 seconds]
arooni-mobile__ has quit [Ping timeout: 240 seconds]
realDAB has quit [Quit: realDAB]
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
<apeiros> titas9x: why?
<titas9x> apeiros: thanks for ur reply
<titas9x> just want to use a multidimensional hash if possible '
<apeiros> titas9x: that doesn't really answer the question. why'd you go from proper classes to unqualified hashes?
<apeiros> multidimensional hashes is just: hash = {foo: {bar: {baz: 1}}}; hash[:foo][:bar][:baz]
<titas9x> its look like repeat 3 times the same I want to DRY up the code
mistym has joined #ruby-lang
<apeiros> it won't be any more dry with hashes instead of classes.
<titas9x> ok thank you so much. :)
scmx has quit [Ping timeout: 240 seconds]
bradsmit_ has quit [Remote host closed the connection]
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
titas9x has left #ruby-lang [#ruby-lang]
_jpb__ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
erichmenge has quit [Quit: Arrivederci!]
brushbox has joined #ruby-lang
adambeynon has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
brushbox has quit [Ping timeout: 264 seconds]
erichmenge has joined #ruby-lang
richardburton has joined #ruby-lang
lsegal has joined #ruby-lang
<Dernise> is it possible to open an IO stream between 2 process ?
richardburton has quit [Ping timeout: 260 seconds]
__butch__ has joined #ruby-lang
<gnufied> pipes?
_jpb__ has quit [Ping timeout: 240 seconds]
<apeiros> 'yes'
brianpWins has quit [Quit: brianpWins]
<Dernise> ok so, can I do a $stdin.reopen in an IO pipe ?
<whitequark> yes
realDAB has joined #ruby-lang
enebo has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 264 seconds]
thebastl has quit [Remote host closed the connection]
<ddfreyne> You can reassign $stdin (and $stdout) if you want, too
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
erichmenge_ has joined #ruby-lang
<yorickpeterse> man, uthash is pretty baller
<yorickpeterse> it has docs and a somewhat sane API, though it relying on pass-by-value is a bit annoying when you're dealing with pointers
mbj has quit [Ping timeout: 240 seconds]
erichmenge has quit [Ping timeout: 264 seconds]
erichmenge_ is now known as erichmenge
brushbox has joined #ruby-lang
relix has joined #ruby-lang
brushbox has quit [Ping timeout: 246 seconds]
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 240 seconds]
MaddinXx has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
mbj has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 276 seconds]
ssb123 has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dernise_ has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
Dernise has quit [Ping timeout: 260 seconds]
riotbit has quit [Quit: riotbit]
rickhull has joined #ruby-lang
Squarepy has joined #ruby-lang
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
realDAB has quit [Quit: realDAB]
retro|cz has quit [Read error: Operation timed out]
Voker57 has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
brushbox has joined #ruby-lang
Voker57 has joined #ruby-lang
iliketurtles has joined #ruby-lang
realDAB has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
brushbox has quit [Ping timeout: 264 seconds]
homebase has joined #ruby-lang
bradsmith has joined #ruby-lang
homebase has quit [Client Quit]
richardburton has joined #ruby-lang
archer_ has joined #ruby-lang
archer_ is now known as Guest33795
bradsmith has quit [Ping timeout: 264 seconds]
richardburton has quit [Ping timeout: 248 seconds]
Guest33795 has quit [Ping timeout: 260 seconds]
jg_ has quit [Ping timeout: 264 seconds]
kith_ is now known as kith
robbyoconnor has quit [Read error: No route to host]
robbyoconnor has joined #ruby-lang
ssb123 has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
dhsmith has quit [Remote host closed the connection]
dhsmith has joined #ruby-lang
pkrnj has joined #ruby-lang
workmad3 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
realDAB has quit [Quit: realDAB]
iliketurtles has quit [Ping timeout: 246 seconds]
mislav has quit [Ping timeout: 240 seconds]
Squarepy has quit [Remote host closed the connection]
brushbox has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
<zzak> openssl and zlib aren't required for ruby to operate afaik, just gems so you can still build it without
brushbox has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
<erikh> it's effectively useless without them though
<erikh> many gems and a lot of the stdlib expects them to exist
<zzak> erikh: depends on your definition of useful
* erikh whistles at net/http
iliketurtles has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
<zzak> some people might consider openssl a security threat
<zzak> or a compiler for that matter
<zzak> lol
iliketurtles has joined #ruby-lang
<erikh> as an ops person and someone who is allergic to tinfoil I am going to politely bow out now :)
bradsmith has joined #ruby-lang
richardburton has joined #ruby-lang
realDAB has joined #ruby-lang
bradsmith has quit [Ping timeout: 240 seconds]
richardburton has quit [Ping timeout: 264 seconds]
sjltaylor has joined #ruby-lang
iliketurtles has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
yfeldblum_ has quit [Read error: Connection reset by peer]
yfeldblum_ has joined #ruby-lang
iliketurtles has joined #ruby-lang
<yorickpeterse> erikh: may I advice concrete? It also works quite well to block out any form of radiation
<yorickpeterse> Though a concrete hat is probably not very user friendly
amerine has quit [Ping timeout: 248 seconds]
yfeldblum_ has quit [Read error: Connection reset by peer]
arooni-mobile has quit [Ping timeout: 246 seconds]
realDAB has quit [Quit: realDAB]
arooni-mobile__ has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby-lang
jonahR has joined #ruby-lang
netShadow has quit [Quit: netShadow]
kurko_ has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
yfeldblum_ has joined #ruby-lang
yfeldblum_ has quit [Read error: Connection reset by peer]
yfeldblum_ has joined #ruby-lang
yfeldblum_ has quit [Read error: Connection reset by peer]
arooni-mobile__ has joined #ruby-lang
brushbox has joined #ruby-lang
mbj has quit [Quit: leaving]
brushbox has quit [Ping timeout: 264 seconds]
brushbox1 has joined #ruby-lang
brushbox1 has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brushbox has joined #ruby-lang
solars has quit [Read error: Operation timed out]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
bradsmith has joined #ruby-lang
richardburton has joined #ruby-lang
relix has joined #ruby-lang
pkrnj has joined #ruby-lang
elia has joined #ruby-lang
bradsmith has quit [Ping timeout: 260 seconds]
relix has quit [Ping timeout: 246 seconds]
richardburton has quit [Ping timeout: 264 seconds]
setmeaway has joined #ruby-lang
arooni-mobile has joined #ruby-lang
elia has quit [Ping timeout: 276 seconds]
enebo has quit [Quit: enebo]
iliketurtles has quit [Quit: zzzzz…..]
brushbox has quit [Quit: Leaving.]
brushbox has joined #ruby-lang
tanema has joined #ruby-lang
hogeo_ has joined #ruby-lang
tanema has quit [Remote host closed the connection]
tanema has joined #ruby-lang
hogeo has quit [Ping timeout: 240 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
tanema_ has joined #ruby-lang
tanema has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
VTLob has quit [Quit: VTLob]
mistym has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
Sammidysam has joined #ruby-lang
<Sammidysam> To clone the class that a method being written in, would it be `self.clone`?
weems has quit [Remote host closed the connection]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nisstyre-laptop is now known as Nisstyre
workmad3 has joined #ruby-lang
<Sammidysam> To clarify better, I have a class that I am adding a method to append to a variable in and I have one where it modifies the current variable and one where it returns a duplicate. So how do I duplicate it?
arooni-mobile has quit [Ping timeout: 264 seconds]
arooni-mobile__ has quit [Ping timeout: 264 seconds]
<Sammidysam> self.clone seems to have left the variable modified
robbyoconnor has quit [Remote host closed the connection]
sjltaylor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
bradsmith has joined #ruby-lang
ledestin has joined #ruby-lang
bradsmith has quit [Ping timeout: 260 seconds]
brushbox has quit [Quit: Leaving.]
rickhull has quit [Quit: Leaving.]
<lsegal> Sammidysam #dup and #clone are shallow object copies, which means they don't copy the ivars
<Sammidysam> lsegal: Then is it possible to copy the instance variables?
<Sammidysam> lsegal: Without manually setting them?
<lsegal> it's certainly possible. you can write a method that copies the instance variables.
<waxjar> Marshal.load(Marshal.dump(obj)) is the trick people use i think
<lsegal> very inefficient, but it works, yes
<lsegal> activesupport has a #deep_dup method. you can find other libraries with similar implementations too, or you can roll your own. it's pretty easy to write
<Sammidysam> I will look into it. Thanks.
tanema_ has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
tobiasvl has quit [Ping timeout: 264 seconds]
tobiasvl has joined #ruby-lang
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
jonahR has quit [Quit: jonahR]
tanema has joined #ruby-lang
<Sammidysam> `Marshal.load(Marshal.dump(self))` worked perfectly. Thanks!
<lianj> lol
ssb123 has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
JohannHann has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
postmodern has joined #ruby-lang
realDAB has quit [Quit: realDAB]
vlad_starkov has quit [Ping timeout: 240 seconds]
zorg24 has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
Sammidysam has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
JohannHann has quit [Quit: Leaving.]
bradsmith has joined #ruby-lang
poga has joined #ruby-lang
bradsmith has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]