ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
benanne has quit [Quit: kbai]
jredville has quit [Ping timeout: 244 seconds]
brianpWins has joined #ruby-lang
jakko_ has joined #ruby-lang
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
seanstickle has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
wmoxam has joined #ruby-lang
neocoin has joined #ruby-lang
A124 has joined #ruby-lang
qpingu has quit [Ping timeout: 246 seconds]
fayimora has joined #ruby-lang
wmoxam has quit [Ping timeout: 265 seconds]
sepp2k1 has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
deryl has quit [Quit: deryl]
savage- has quit [Remote host closed the connection]
savage- has joined #ruby-lang
savage- has quit [Remote host closed the connection]
<postmodern> my mind is blanking, what is a 1.8 and 1.9 compatible way to determine if a method is defined in a class, while excluding inherited methods (instance_eval)
brushbox has joined #ruby-lang
<heftig> Foo.instance_methods(false)
<jtoy> how do I do an if statement inside define_method, the if checks a variable outside of the scope of the define
stardiviner has joined #ruby-lang
stardiviner has quit [Read error: Connection reset by peer]
<shevy> perhaps an @ivar
<shevy> or a $global
<jtoy> shevy: ,me? I don't think that is correct
<shevy> hmm why not? perhaps via instance_variable_get or something like that
<jtoy> shevy: this is what I mean: http://pastebin.ca/2159654
<shevy> ack
<jtoy> i want to define a class method
<jtoy> is that bad? seems like it saves me a lot of time
<erikh> hrm
<jtoy> except that its wrong
<erikh> one sec.
DEac- has quit [Read error: Connection reset by peer]
digman543 has joined #ruby-lang
perryh_away is now known as perryh
DEac- has joined #ruby-lang
hinbody has quit [Read error: No route to host]
<erikh> yeah
<erikh> is there something wrong with a closure there?
<postmodern> heftig, unfortunately that returns an Array of Symbols on 1.9, an Strings on 1.8
<erikh> oh
<erikh> I remember that
<postmodern> heftig, ended up doing respond_to?(name) && !Module.respond_to?(name)
<erikh> I had some foo to just coerce all to strings
<erikh> e.g. .map(&:to_s).include?
M4g1c5t0rM has joined #ruby-lang
_tomb has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fayimora has quit [Ping timeout: 240 seconds]
deryl has joined #ruby-lang
<postmodern> yeah that would work
<postmodern> still i prefer to avoid creating Arrays when i need a boolean answer
shevy2 has joined #ruby-lang
perryh is now known as perryh_away
shevy has quit [Ping timeout: 252 seconds]
<erikh> postmodern: oh agreed
<erikh> I just don't think your solution is 100% sound :(
<erikh> e.g., long inheritance chains
<postmodern> yeah definitely thin ice
<erikh> you might be able to get away with respond_to?(foo) && !ancestors[-1].respond_to?(foo)
<erikh> but I don't think that would cover includes.
shtirlic_ has joined #ruby-lang
brushbox has quit [Quit: Leaving.]
shtirlic has quit [Ping timeout: 246 seconds]
ttilley_off is now known as ttilley
<postmodern> luckily this is for class-methods on a Module
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
ryez has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
any-key has joined #ruby-lang
perryh_away is now known as perryh
tomzx_ has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
chendo_ has quit [Quit: Computer has gone to sleep.]
tomb__ has joined #ruby-lang
tomzx_ has quit [Ping timeout: 260 seconds]
jbsan has quit [Read error: Connection reset by peer]
jbsan has joined #ruby-lang
dasibre has joined #ruby-lang
deryl has quit [Quit: off to watch UFC fights then hit bar. Night all]
japaniel has joined #ruby-lang
sora_h is now known as s0ra_h
msaffitz has joined #ruby-lang
igotnolegs has joined #ruby-lang
pcboy_ has joined #ruby-lang
japaniel_ has joined #ruby-lang
japaniel has quit [Read error: Connection reset by peer]
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
SoSincere has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
neocoin has quit [Ping timeout: 240 seconds]
yorickpeterse has quit [Read error: Operation timed out]
gnufied has joined #ruby-lang
msaffitz has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
japaniel_ has quit [Quit: japaniel_]
digman543 has quit [Quit: leaving]
digman543 has joined #ruby-lang
FiXato has quit [Ping timeout: 252 seconds]
msaffitz has quit [Quit: Computer has gone to sleep.]
msaffitz has joined #ruby-lang
casey has joined #ruby-lang
M4g1c5t0rM has quit [Ping timeout: 260 seconds]
gnufied1 has quit [Ping timeout: 256 seconds]
fayimora has joined #ruby-lang
gnufied has joined #ruby-lang
robbyoconnor has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
jtoy has quit [Quit: jtoy]
hagabaka has joined #ruby-lang
hagabaka has quit [Changing host]
hagabaka has joined #ruby-lang
dasibre has quit [Remote host closed the connection]
japaniel has joined #ruby-lang
charliesome has joined #ruby-lang
dfr|mac has joined #ruby-lang
japaniel has quit [Quit: japaniel]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
rippa has joined #ruby-lang
My_Hearing has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
casey has quit [Quit: casey]
andrewhl has joined #ruby-lang
ryez has quit [Quit: Page closed]
LZA_ has joined #ruby-lang
LZA_ has left #ruby-lang [#ruby-lang]
yannis has joined #ruby-lang
bfreeman has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
savage- has joined #ruby-lang
fgomez has quit [Quit: leaving]
gnufied1 has joined #ruby-lang
fgomez has joined #ruby-lang
gnufied has quit [Read error: Connection reset by peer]
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
s0ra_h is now known as sora_h
ryez has joined #ruby-lang
gja has joined #ruby-lang
postmodern has quit [Quit: Leaving]
diegoviola has quit [Ping timeout: 248 seconds]
ryez has quit [Quit: Page closed]
andrewhl has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
ryez has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 244 seconds]
slyphon has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
neocoin has joined #ruby-lang
ruurd has joined #ruby-lang
ryanf has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
msaffitz has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
tbuehlmann has joined #ruby-lang
brushbox has joined #ruby-lang
igotnolegs is now known as anotak3
tomb__ has quit [Quit: Computer has gone to sleep.]
anotak3 is now known as igotnolegs
skinny_much has joined #ruby-lang
fgomez has quit [Ping timeout: 244 seconds]
digman543 has quit [Quit: leaving]
yxhuvud has joined #ruby-lang
neoesque has joined #ruby-lang
qwerxy has joined #ruby-lang
sora_h is now known as s0ra_h
gnufied1 has quit [Quit: Leaving.]
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
savage- has quit [Remote host closed the connection]
neocoin has quit [Ping timeout: 244 seconds]
ryanf has quit [Quit: leaving]
TheHunter_1039 has quit [Quit: TheHunter_1039]
gja has quit [Quit: This computer has gone to sleep]
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
fgomez has joined #ruby-lang
fgomez has quit [Quit: leaving]
igotnolegs has quit [Quit: Computer has gone to sleep.]
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
skinny_much has quit [Quit: Leaving]
srbartlett has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
perryh is now known as perryh_away
stardiviner has joined #ruby-lang
skinny_much has joined #ruby-lang
ryez has quit [Quit: Page closed]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
srbartlett has quit [Remote host closed the connection]
dalekurt has joined #ruby-lang
postmodern has quit [Ping timeout: 245 seconds]
horus_plex_ has quit [Quit: ZNC - http://znc.in]
fayimora has quit [Quit: Busy…..zzzzz]
robbyoconnor has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
robbyoconnor has joined #ruby-lang
s0ra_h is now known as sora_h
nofxxx has quit [Remote host closed the connection]
My_Hearing is now known as Mon_Ouie
kain has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
JohnBat26 has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Client Quit]
fgomez has quit [Ping timeout: 240 seconds]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
fgomez has joined #ruby-lang
solars has joined #ruby-lang
qwerxy has quit [Quit: offski]
sora_h is now known as s0ra_h
zerovin has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
s0ra_h is now known as sora_h
tekin has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
ioga_wrk has quit [Quit: Leaving]
shevy2 is now known as shevy
ryez has joined #ruby-lang
qwerxy has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
fgomez has quit [Ping timeout: 244 seconds]
bds_orsk has joined #ruby-lang
skinny_much has quit [Remote host closed the connection]
bds_orsk has left #ruby-lang [#ruby-lang]
s0ra_h is now known as sora_h
benanne has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
saLOUt has joined #ruby-lang
heftig has quit [Quit: leaving]
skinny_much has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.7]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
neocoin has joined #ruby-lang
cantonic_ has joined #ruby-lang
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
qwerxy has quit [Ping timeout: 256 seconds]
mccraig has joined #ruby-lang
tbuehlmann has quit []
qwerxy has joined #ruby-lang
banister_ has joined #ruby-lang
tomb__ has joined #ruby-lang
Natch| has quit [Ping timeout: 265 seconds]
brushbox1 has joined #ruby-lang
rippa has quit [Quit: derp herp]
brushbox has quit [Ping timeout: 248 seconds]
Boohbah has quit [Ping timeout: 276 seconds]
weeb1e has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
ioga_wrk has joined #ruby-lang
dr_turkleberry has joined #ruby-lang
dr_turkleberry has quit [Client Quit]
<weeb1e> Probably going to not happen overnight, but I've decided I'm going to have a go at embedding mruby into a C++ server and building an interface for it
sepp2k has joined #ruby-lang
ttilley is now known as ttilley_off
skinny_much has quit [Ping timeout: 265 seconds]
FiXato has joined #ruby-lang
fayimora has joined #ruby-lang
FiXato has quit [Ping timeout: 240 seconds]
<shevy> weeb1e \o/
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
qwerxy has quit [Quit: offski]
joast has quit [Quit: Leaving.]
FiXato has joined #ruby-lang
qwerxy has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
stamina has joined #ruby-lang
jakko_ has quit [Ping timeout: 260 seconds]
saLOUt has quit [Ping timeout: 265 seconds]
gix has quit [Ping timeout: 245 seconds]
dreieins- has quit [Remote host closed the connection]
joast has joined #ruby-lang
gix has joined #ruby-lang
zerovin has left #ruby-lang [#ruby-lang]
seanstickle has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
dalekurt has joined #ruby-lang
yorickpeterse has joined #ruby-lang
benanne has quit [Quit: kbai]
<zzak> shevy /o\
* zzak o<
pkondzior has quit [Quit: Connection closed for inactivity]
kyrylo has quit [Ping timeout: 260 seconds]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
heftig has joined #ruby-lang
qwerxy has quit [Quit: offski]
brushbox1 has quit [Quit: Leaving.]
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
heftig has quit [Ping timeout: 248 seconds]
jxie has quit [Quit: leaving]
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
dfr|mac has joined #ruby-lang
imperator has joined #ruby-lang
mob_ has joined #ruby-lang
mob_ has left #ruby-lang [#ruby-lang]
tomb__ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
heftig has joined #ruby-lang
dasibre has joined #ruby-lang
fayimora has quit [Quit: Busy…..zzzzz]
fayimora has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
rmascarenhas has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
andrewhl has joined #ruby-lang
kristofferrr has joined #ruby-lang
wallerdev has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
kyrylo has quit [Quit: WeeChat 0.3.7]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
mistym has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
dfr|mac has quit [Remote host closed the connection]
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
seanstickle has joined #ruby-lang
Natch has joined #ruby-lang
Natch has quit [Excess Flood]
Natch has joined #ruby-lang
Natch has quit [Excess Flood]
Natch has joined #ruby-lang
Natch has quit [Excess Flood]
Natch has joined #ruby-lang
Natch has quit [Excess Flood]
Natch| has quit [Ping timeout: 245 seconds]
Natch| has joined #ruby-lang
rmascarenhas has quit [Quit: Lost terminal]
rmascarenhas has joined #ruby-lang
thmzlt has joined #ruby-lang
thmzlt has left #ruby-lang [#ruby-lang]
<shevy> zzak what was the last, did you fall down
qwerxy has joined #ruby-lang
mistym has quit [Remote host closed the connection]
A1241 has joined #ruby-lang
A124 has quit [Ping timeout: 245 seconds]
Mchl has joined #ruby-lang
<zzak> started doing ymca but gave up
kristofferrr has quit [Quit: ❤]
<weeb1e> I wish I had more experience with Makefiles and bash
<weeb1e> Though it is not all that hard to embed mruby, getting the linking right is going to take me all day :(
<shevy> zzak lol
<shevy> weeb1e, comforts man
<shevy> weeb1e, one project I have is to try and help in undertakings like that
<shevy> anything related to compiling and installing, shall be simplified via ruby
<shevy> that would include generating proper Makefiles too
<zzak> lib/mkmf
<weeb1e> Yeah well, I have virtually no experience with Makefiles
<weeb1e> I basically just need to figure out how to merge two together correctly
<weeb1e> Not going to complicate things further with a new lib at this point
<zzak> a wise decision
<zzak> but still relevant
<zzak> whats with regexp?
<zzak> is it still disabled?
<weeb1e> In mruby? No idea yet
<weeb1e> I have done only very basic tests
<weeb1e> the mirb is very basic and limited
<weeb1e> but i would love to have this embedded and working
<shevy> zzak interesting
imperator has joined #ruby-lang
deryl has joined #ruby-lang
<shevy> zzak seems to require manual definitions though
<shevy> hmm
<zzak> ifdef INCLUDE_REGEXP
<zzak> how would you compile with that enabled?
<zzak> cflags?
<matled> zzak: make INCLUDE_REGEXP=1
<shevy> the simple answers win!
<matled> is this C? or make?
<weeb1e> INCLUDE_REGEXP=1 make
felipe__ has joined #ruby-lang
<zzak> trying it
<shevy> :)
<zzak> i want to see make test segfault haha
<weeb1e> matled: Maybe you can help me here, there is an issue with mruby being C and the extension I am embedding it into is C++
<weeb1e> Do you know what would be the appropriate solution?
<matled> I never really used C++ and don't know mruby
<zzak> some of the issues were raised by mitchblank
<weeb1e> Ok, nevermind then
<zzak> but im not sure about c++ either
<zzak> @matz on #144 haahah
<shevy> hehe
<shevy> "I hate C++. ;-)"
<shevy> he is like linus!
<shevy> hmmm
<shevy> can someone explain that duplicated regex thing...
<shevy> REGEX = /(.*)-([\d\.\w]+)/
<shevy> I am still not getting it
<shevy> hmm the [] means a character range?
<shevy> that kind of regex tries to check against something like ... "ruby-1.8.7" but optionally, it could also be "ruby-1.8.7supermarioversion33iscomingnow" or something
<imperator> is there a way to determine if a method is being called in a private/public/protected scope?
<imperator> my use case is ffi and attach_function
<shevy> imperator! smash the methods down with an iron fist until they behave!
<imperator> shevy, i only do that for "strongly typed" languages
<imperator> HAHA GET IT?!
<imperator> right, i'll get my coat
<deryl> lol
snk_ is now known as snk
TheHunter_1039 has joined #ruby-lang
schroedinbug has joined #ruby-lang
<shevy> lol
thone has joined #ruby-lang
neoesque has quit [Quit: Bye!]
thone_ has quit [Ping timeout: 245 seconds]
<countdigi> development standup comedy... the lost art :-)
heftig has quit [Ping timeout: 245 seconds]
msaffitz has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 260 seconds]
voker57 has quit [Remote host closed the connection]
oren has joined #ruby-lang
oren has left #ruby-lang [#ruby-lang]
oren has joined #ruby-lang
oren has left #ruby-lang [#ruby-lang]
perryh_away is now known as perryh
heftig has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
jxie has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
kristofferrr has joined #ruby-lang
gouthamvel has joined #ruby-lang
<shevy> ok we can not let this stand
<shevy> where are the ruby girls???
<rue> @railsgirls
<shevy> though this quote from that site is great:
<shevy> "In one of the classic programming texts (I forget which one)"
<seanstickle> The classics are sort of by definition those books that people should read but don't
krz has joined #ruby-lang
<shevy> hehehe
<shevy> I wanna read only good books!
fgomez has joined #ruby-lang
<imperator> shevy, are you Dave?
chessguy has joined #ruby-lang
rushed has joined #ruby-lang
fayimora has quit [Ping timeout: 252 seconds]
<shevy> imperator no
fayimora has joined #ruby-lang
<imperator> hm, i'm not sure i understand how private_class_method works with modules and extend
<rue> Class method.
<imperator> i guess just use private :CloseHandle
<imperator> overthinking it
gouthamvel has quit [Ping timeout: 260 seconds]
Natch| has quit [Read error: Connection reset by peer]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
<rue> Private class method isn’t the same as…Q)
Boohbah has joined #ruby-lang
stackato has joined #ruby-lang
stackato has quit [Client Quit]
tomb__ has joined #ruby-lang
tonesfrommars has joined #ruby-lang
Natch| has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
fayimora has quit [Quit: Busy…..zzzzz]
imperator has quit [Ping timeout: 245 seconds]
havenn has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
fayimora has joined #ruby-lang
imperator has joined #ruby-lang
brianpWins has joined #ruby-lang
slaytanic has joined #ruby-lang
saLOUt has joined #ruby-lang
jakko_ has joined #ruby-lang
lsegal has joined #ruby-lang
ttilley_off is now known as ttilley
savage- has joined #ruby-lang
fayimora has quit [Quit: Busy…..zzzzz]
jakko_ has quit [Remote host closed the connection]
t has joined #ruby-lang
jakko_ has joined #ruby-lang
t is now known as Guest76432
cantonic has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
<Mon_Ouie> imperator: class methods aren't included when you use include/extend
<Mon_Ouie> Only instance methods are
gregf has quit [Ping timeout: 245 seconds]
<imperator> Mon_Ouie, yes, I know, I got confused by ffi
<Mon_Ouie> ffi probably creates module functions
<imperator> because i wasn't sure how attach_function was declaring its generated methods
tallship has quit [Quit: jikjauchickensaw! I can haz cheezburgerz!]
<imperator> i took someone's advice and just created a helper method that wraps attach_function + private - problem solved :)
<Mon_Ouie> Oh, actually if the instance method is public, it's probably not using module_function — more likely just defining the method twice
kristofferrr has quit [Ping timeout: 265 seconds]
heftig has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
kristofferrr has joined #ruby-lang
fserb has quit [Quit: ttyl]
felipe__ has quit [Read error: Connection reset by peer]
jakko_ has quit [Ping timeout: 246 seconds]
fserb has joined #ruby-lang
savage- has quit [Remote host closed the connection]
lele has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
felipe__ has joined #ruby-lang
fayimora has joined #ruby-lang
cantonic has joined #ruby-lang
<rue> It’s like .module_function
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Raduwen_ has joined #ruby-lang
Raduwen__ has joined #ruby-lang
rippa has joined #ruby-lang
Raduwen has quit [Ping timeout: 260 seconds]
<weeb1e> Guess it's time to give up for today
<weeb1e> I almost got mruby working on my server
Raduwen_ has quit [Ping timeout: 260 seconds]
Natch| has joined #ruby-lang
<rue> Woohoo
<weeb1e> Only thing now is getting it to actually load a rb file, I don't have much experience with files in C++
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<weeb1e> FILE *file = fopen(path, "rb"); is not NULL
<weeb1e> Which means the file opened fine, yet mrb_load_irep(mrb, file); returns a negative number
<weeb1e> and since all the file contains is 'log "Hello World"', it can't be failing to parse
<weeb1e> So I have no idea what could be wrong
<weeb1e> (this is exactly what tools/mruby/mruby.cpp does)
<Mon_Ouie> It doesn't look to me like that function expects the file to contain Ruby code
<weeb1e> Mon_Ouie: ruby.c loads a file like that given a path
<Mon_Ouie> It is trying to find a file header and stuff
<imperator> does fopen support "b" ?
<weeb1e> imperator: I refactored that from the code used in https://github.com/mruby/mruby/blob/master/tools/mruby/mruby.c
<weeb1e> So yes
<Mon_Ouie> Yes, but it doesn't mean that file is ruby code
<Mon_Ouie> The path for ruby code seems to be at line 165
<weeb1e> Oh I see now
<weeb1e> Guess I have more work to do then :(
qwerxy has joined #ruby-lang
<Mon_Ouie> imperator: Yes. It is ignored on POSIX systems, others (e.g. Windows) may behave differently with it.
<weeb1e> Mon_Ouie: Ah, I didn't know that, don't need it then
<imperator> Mon_Ouie, ah, couldn't remember if it was ignored or caused an error; makes sense though
<rue> Mon_Ouie: Windows is POSIX
qwerxy has quit [Client Quit]
mistym has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
ruurd has joined #ruby-lang
<weeb1e> Hell yeah
<weeb1e> embedded mruby works great :)
<weeb1e> Now just a few months of wrapping native functions and I'll actually be able to use it...
<weeb1e> Might end up writing a wrapper generator instead, manually wrapping tons of functions will just take too damn long
<imperator> when did mruby come out? this year?
<weeb1e> its not "out"
<weeb1e> The repo was made public a little over a month ago
<weeb1e> But it is still very early in the implementation and has no docs
<weeb1e> Either way, I couldn't be happier :D
banister_ has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend> imperator: just curious, but how were you planning on making MRI 1.9 visual C compatible?
MouseTheLuckyDog has quit [Quit: Leaving]
<imperator> doesn't matter now :(
vbatts has quit [Ping timeout: 272 seconds]
<banisterfiend> imperator: it's just that MRI is laced with c99 afaict, so you'd have to have maintained a totally separate c89 fork, which would mean every c99 patch that was made would have to be converted back to c89 by you :P it'd be a pretty huge job
qwerxy has joined #ruby-lang
<imperator> compile with -Tp :-P
<imperator> and i don't think i ever said "compatible" (did I?) - i said *optimized* (I think)
<imperator> i can already compile ruby with vs++
<banisterfiend> imperator: i thought u were aiming for microsoft visual C?
<imperator> i was
<imperator> oh, i need to read you statements more carefully
<imperator> you mean merging future patches that were c99
<banisterfiend> neale stephenson kickstarter http://www.kickstarter.com/projects/260688528/clang
slaytani1 has joined #ruby-lang
slaytanic has quit [Ping timeout: 272 seconds]
<imperator> oh, at first thought it had something to do with the compiler
mrc has joined #ruby-lang
<banisterfiend> hehe me too
jakko_ has joined #ruby-lang
gregf has joined #ruby-lang
mrc has left #ruby-lang [#ruby-lang]
kawaguchi has joined #ruby-lang
mistym has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
slaytani1 has quit [Remote host closed the connection]
slaytanic has joined #ruby-lang
arooni-mobile has joined #ruby-lang
tintin has joined #ruby-lang
tintin has left #ruby-lang [#ruby-lang]
krz has quit [Quit: krz]
fayimora has quit [Ping timeout: 256 seconds]
voker57 has joined #ruby-lang
imperator has quit [Ping timeout: 256 seconds]
vbatts has joined #ruby-lang
dasibre has quit [Remote host closed the connection]
saLOUt has quit [Quit: Konversation terminated!]
jakko_ has quit [Ping timeout: 256 seconds]
fayimora has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
dylst has quit [Ping timeout: 252 seconds]
robotmay has joined #ruby-lang
lele|w has quit [Ping timeout: 272 seconds]
lele|w has joined #ruby-lang
lele has joined #ruby-lang
havenn has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
msaffitz has joined #ruby-lang
qpingu has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
fayimora has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
slyphon has joined #ruby-lang
havocjoseph has joined #ruby-lang
ryanf has quit [Ping timeout: 246 seconds]
fayimora has joined #ruby-lang
ryanf has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
fayimora has quit [Client Quit]
banisterfiend has quit [Read error: Connection reset by peer]
perryh is now known as perryh_away
msaffitz has quit [Quit: Computer has gone to sleep.]
arooni-mobile has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
gouthamvel has joined #ruby-lang
yannis has quit [Quit: yannis]
ryanf has quit [Quit: leaving]
rfitz has joined #ruby-lang
rfitz has quit [Client Quit]
rfitz has joined #ruby-lang
rfitz has quit [Client Quit]
ryanf has joined #ruby-lang
msaffitz has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
gouthamvel has left #ruby-lang [#ruby-lang]
slyphon has quit [Ping timeout: 245 seconds]
solars has quit [Ping timeout: 244 seconds]
heftig has joined #ruby-lang
rippa has quit [Ping timeout: 244 seconds]
Weems has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
wlfman2k1 has joined #ruby-lang
ruurd has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
<shevy> hmmm
<shevy> i have two projects. both projects require the same class right now
<shevy> the larger project, also requires the smaller project
<shevy> ruby gives me warning that the class is included twice "already initialized constant bla"
<shevy> what would be the proper way to solve that?
<TylerGillies> have the smaller project require the class, and then having the bigger project require the smaller class will require the original wanted class?
<TylerGillies> s/smaller class/smaller project/
<shevy> hmm
<shevy> yeah, the dependency chain right now is Project A -> Project B -> both require class C
<shevy> but you are right...
<shevy> when I require Project B, I could probably not have Project A require class C directly
felipe__ has quit [Read error: Connection reset by peer]
<shevy> the thing is, I could put class C into a module I suppose, that would remove the warning?
<shevy> or am I not thinking properly right now ... :\
felipe__ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<TTilus> you should have C in c.rb and require 'c' in both the projects
<TTilus> problem solved
fserb has quit [Quit: ttyl]
ryanf has quit [Quit: leaving]
<TTilus> thats exactly what require is for
ryanf has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
<TylerGillies> if C is required by B, and B is required by A theres no point in requiring C in A, because its already been required
brianpWins has quit [Ping timeout: 244 seconds]
<TTilus> if A explicitly depends on C it should be explicitly required, imo
<TTilus> B depending on C should be an implementation detail (subject to change anytime)
<TTilus> from the point of view of A
brianpWins has joined #ruby-lang
<TylerGillies> if a == b and b ==c then a==c, sorry couldn't resist heh
wlfman2k1 has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
solars has quit [Ping timeout: 244 seconds]
<shevy> I need to break this down slowly...
msaffitz has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 260 seconds]
savage- has joined #ruby-lang
<shevy> yeah TylerGillies
<TTilus> TylerGillies: until b==c does not hold anymore, but a==c still holds
<TTilus> (if we assume == representing dependency, which is really sucky analogy and you kow that too)
fserb has joined #ruby-lang
<TylerGillies> TTilus: it was more of a joke than trying to prove a point
<TTilus> ok
<TylerGillies> if A explicitly requires C then require C in A, thats why require doesn't double require if already required
<TylerGillies> TTilus already said that earlier
yxhuvud has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
<TylerGillies> require 'foo' #=> true, require 'foo' #=> false
ruurd has quit [Quit: Leaving...]
mistym has quit [Remote host closed the connection]
<andrewvos> meh
wallerdev has quit [Quit: wallerdev]
<heftig> shevy: are you using "load" instead of "require"?
dasibre has joined #ruby-lang
benanne has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.8]
<shevy> nope, require
<shevy> but I slowly begin to see it, I think
hagebake has joined #ruby-lang
hagebake has quit [Changing host]
hagebake has joined #ruby-lang
<shevy> project B has a circular require on its own, when run standalone :(
<shevy> that is really one of the differences between 1.8.7 and 1.9.3 heh
wallerdev has joined #ruby-lang
casey has joined #ruby-lang
<lianj> shevy: are you talking about a constant within that class?
<shevy> yeah I think so
gregf has joined #ruby-lang
<shevy> warning: already initialized constant N
<shevy> those are the warnings I get from c.rb
<lianj> just check before assigning then
<shevy> hmm
<shevy> if defined? N
<shevy> like that?
<shevy> I mean
<shevy> unless
<shevy> :)
<lianj> right
<shevy> k lemme try that
<shevy> cool
<shevy> that has worked
<shevy> thanks!
savage- has quit [Remote host closed the connection]
* shevy dances.
Natch| has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<rue> Do the shevy
Natch| has joined #ruby-lang
<shevy> hmm cant
<shevy> there may be kids here
cjs226 has joined #ruby-lang
wlfman2k1 has joined #ruby-lang
<rue> Sounds like your situational awareness needs some work. Did you check under the table?
toretore has quit [Quit: Leaving]
noder3432 has joined #ruby-lang
wlfman2k1 has quit [Remote host closed the connection]
noder3432 has quit [Client Quit]
<shevy> in the channel!
<shevy> under my table are only some spiders
<shevy> whoa... they ship with python 3
stephenrc has joined #ruby-lang
<rue> And Duke Nukem Forever?=
M4g1c5t0rM has quit [Quit: Leaving.]
stephenrc has quit [Client Quit]
<heftig> shevy: parallel to python 2?
<heftig> oh, w/o 2
<shevy> hmmmmmm
<shevy> yeah...
<shevy> that kinda sucks
<heftig> no, it doesn't
stephenrc has joined #ruby-lang
<rue> It swallows whole
stephenrc has left #ruby-lang [#ruby-lang]
igotnolegs has joined #ruby-lang
<shevy> well
WillMarshall has joined #ruby-lang
<shevy> who wants to have ruby 2.0 and ruby 1.0 run on the same computer by default
ircr has joined #ruby-lang
<shevy> "Why have we not been reliably able to improve on C?"
<ircr> ive been struggling with ruby classes for a bit
<ircr> i've looked at the first page on google
<ircr> does anyone have any resources?
<shevy> they are really nothing fascinating
<shevy> class Cat; end
<shevy> cat = Cat.new
<shevy> cat.name = 'garfield'
<shevy> where "name=" is a method defined on Cat
<lianj> that didnt help :P
<ircr> lol
<ircr> ic
<shevy> why
<shevy> that is really the core of most classes
<ryanf> ircr: do you know anything about classes or OOP in general?
<ryanf> as opposed to in ruby
andrewhl has quit [Read error: No route to host]
andrewhl has joined #ruby-lang
<shevy> ircr inside your class you tend to use instance variables
benanne has quit [Quit: kbai]
<andrewvos> rbfu <- Should I acknowledge this things existence?
<shevy> they are available within your whole class and you can notice them as they have a leading @
<shevy> @foobar = 'name' # this is an instance variable
<shevy> andrewvos what is that
<shevy> ruby fu?
<shevy> like in kung fu?
<lianj> shevy: use your google fu
<ircr> alright
<ircr> thanks guys
<andrewvos> shevy: It's a lightweight rvm apparently.
<ircr> hmm
<ircr> better than rbenv?
robotmay has quit [Remote host closed the connection]
<andrewvos> ircr: That's what I'm asking.
<ircr> ah
sandbags has joined #ruby-lang
<andrewvos> It looks very simple
<andrewvos> Might try using it for a bit.
<andrewvos> I've had a lot of RVM problems in the past.
<ircr> hmm
<ircr> maybe a rails specific channel would have more insight
arooni-mobile has joined #ruby-lang
<andrewvos> Doubt it.
<lianj> ircr: for your class questions? just ask. or use ruby object model as search term
slaytanic has quit [Read error: Connection reset by peer]
slaytanic has joined #ruby-lang
postmodern has joined #ruby-lang
<ircr> ahh.. so.. per alright
<ircr> i guess i have a better grasp of python class inheritance
carloslopes has joined #ruby-lang
<ircr> im gonna look at the recommended search term for a bit
<ircr> thanks
tjadc has quit [Remote host closed the connection]
tjadc_ has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
S2kx has joined #ruby-lang
S1kx has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
carloslopes has quit [Quit: Leaving]
carloslopes has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
havocjoseph has left #ruby-lang [#ruby-lang]
<shevy> ircr well inheritance
<shevy> there is the subclass model of course
brianpWins has quit [Ping timeout: 260 seconds]
<shevy> class Cat; end
<shevy> class Garfield < Cat; end
<shevy> it's not very flexible
andrewhl has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
kawaguchi has quit [Ping timeout: 240 seconds]
<shevy> with modules you can achieve a slightly higher level of flexibility
<shevy> class Garfield; include AppetiteForLasagne
cantonic has quit [Quit: cantonic]
ircr has quit [Ping timeout: 245 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: leaving]
heftig has joined #ruby-lang
fserb has quit [Quit: ttyl]
fserb has joined #ruby-lang
ircr has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
dumfries_ is now known as dumfries
tonesfrommars has quit [Ping timeout: 244 seconds]