baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
sid_fules has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
statelesscode has joined #ruby
zapata has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Remote host closed the connection]
Silthias has joined #ruby
cschneid_ has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
polyidus has joined #ruby
allisio has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
duderono_ has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
duderonomy has quit [Ping timeout: 246 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
segmond has quit [Ping timeout: 246 seconds]
zapata has joined #ruby
JeanCarloMachado has joined #ruby
Pisuke has joined #ruby
rhyselsmore has joined #ruby
<rhyselsmore> Anyone ever encountered memory leaks using DateTime.parse?
<rhyselsmore> (2.3.3)
tyang__ has quit [Read error: Connection reset by peer]
<marchelzo> rhyselsmore: no, can u tell me about it?
saneax is now known as saneax-_-|AFK
<rhyselsmore> marchelzo: I think it was my bad with heap tracing. I'm just trying something else that is more likely to be the culprit
<marchelzo> rhyselsmore: ok keep us posted
ramfjord has joined #ruby
segmond has joined #ruby
enterprisey has joined #ruby
sid_fules has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Kestrel-029 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
safetypin has quit [Quit: ZZZzzz…]
sid_fules has quit [Ping timeout: 264 seconds]
mikeiniowa has quit [Ping timeout: 246 seconds]
segmond has quit [Ping timeout: 246 seconds]
nertzy has quit [Ping timeout: 240 seconds]
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
segmond has joined #ruby
ap4y has quit [Remote host closed the connection]
polyidus has quit [Quit: ZZZzzz…]
banisterfiend has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
segmond has quit [Max SendQ exceeded]
segmond has joined #ruby
JeanCarloMachado has joined #ruby
jhack has joined #ruby
polyidus has joined #ruby
<jhack> Getting a error message trying to run my rails server (I think it has to do with LibSSL) https://gist.github.com/jhack32/8cc9d738857622b2c3419c2972e35419
j2k has quit [Quit: Connection closed for inactivity]
__Yiota has quit [Excess Flood]
polyidus has quit [Client Quit]
BabyMario has quit [Quit: bye]
<marchelzo> jhack: cool
<jhack> Does anyone know why?
<jhack> or how to fix this issue
SteenJobs has joined #ruby
__Yiota has joined #ruby
brent__ has joined #ruby
polyidus has joined #ruby
polyidus has quit [Client Quit]
cschneid_ has joined #ruby
choke has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
Nicmavr has joined #ruby
Nicmavr is now known as Guest83939
Guest83939 has quit [Changing host]
Guest83939 has joined #ruby
Guest83939 is now known as Kestrel-029
bkxd has quit [Ping timeout: 240 seconds]
bpmedley has quit [Ping timeout: 246 seconds]
sid_fules has joined #ruby
Channel6 has joined #ruby
ramfjord_ has joined #ruby
gsilva has quit [Remote host closed the connection]
sid_fules has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
tekniq has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
ramfjord has quit [Ping timeout: 268 seconds]
marxarelli is now known as marxarelli|afk
tau is now known as Fuinho-Saliente
polyidus has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
enterprisey has quit [Remote host closed the connection]
polyidus has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
SteenJobs has joined #ruby
polyidus has joined #ruby
polyidus has quit [Client Quit]
brent__ has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Client Quit]
pawnbox has joined #ruby
ncthom91 has joined #ruby
cibs has joined #ruby
snockerton has quit [Quit: Leaving.]
cfec0b8d has quit [Remote host closed the connection]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfec0b8d has joined #ruby
polyidus has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hutch34 has joined #ruby
polyidus has quit [Client Quit]
polyidus has joined #ruby
sid_fules has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
MrBusiness has joined #ruby
sid_fules has quit [Ping timeout: 264 seconds]
polyidus has quit [Quit: ZZZzzz…]
Fuinho-Saliente is now known as tau
gusrub has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
planigan has quit [Remote host closed the connection]
polyidus has joined #ruby
ramfjord_ has quit [Ping timeout: 256 seconds]
rkazak_ has quit [Quit: Sleep.....ing....]
polyidus has quit [Client Quit]
safetypin has joined #ruby
cseder has joined #ruby
hotpancakes has joined #ruby
gusrub has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Quit: .]
im314ous has joined #ruby
ramfjord has joined #ruby
PaulCapestany has joined #ruby
hotpancakes has quit [Remote host closed the connection]
pawnbox has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
safetypin has quit [Quit: ZZZzzz…]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
polyidus has joined #ruby
pwnd_nsfw` has joined #ruby
polyidus has quit [Client Quit]
pawnbox has quit [Ping timeout: 264 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
tau has quit [Remote host closed the connection]
polyidus has joined #ruby
planigan has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has joined #ruby
polyidus has quit [Client Quit]
polyidus has joined #ruby
jameser has joined #ruby
polyidus has quit [Client Quit]
safetypin has joined #ruby
jhack has quit [Quit: jhack]
patarr has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
safetypin has quit [Client Quit]
sid_fules has joined #ruby
safetypin has joined #ruby
harfangk has joined #ruby
postmodern has joined #ruby
znz_jp has quit [Remote host closed the connection]
hutch34 has joined #ruby
itsautomatisch has quit [Ping timeout: 240 seconds]
sid_fules has quit [Ping timeout: 264 seconds]
znz_jp has joined #ruby
bihi has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
safetypin has quit [Read error: Connection reset by peer]
antoniobeyah has quit [Quit: Connection closed for inactivity]
brent__ has joined #ruby
cseder has quit [Quit: cseder]
ramfjord has quit [Ping timeout: 240 seconds]
<marchelzo> ruby gods
<marchelzo> when you want a set, do you just use Hash?
howdoi has quit [Quit: Connection closed for inactivity]
mula has joined #ruby
aibot___ has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
aibot has joined #ruby
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby
<bihi> marchelzo: require 'set'; Set.new
<marchelzo> bihi: is that a gem or in the standard library
<bihi> stdlib
<marchelzo> bihi: god bless u
<bihi> my pleasure
<bihi> but you're right, a Hash is enough, that's actually what Set is using https://github.com/ruby/ruby/blob/trunk/lib/set.rb#L84
brent__ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Suslov has joined #ruby
amclain_ has joined #ruby
KicStart has left #ruby [#ruby]
Derperperd has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
AndrewIsHere has quit []
Azure has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
amclain has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
polyidus has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
StevenStulu has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 246 seconds]
sid_fules has quit [Ping timeout: 264 seconds]
montanonic has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
benlieb has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsilva has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
brent__ has joined #ruby
jdm has joined #ruby
gsilva has quit [Ping timeout: 240 seconds]
dstrunk has joined #ruby
jhack has quit [Quit: Leaving]
Pisuke has quit [Ping timeout: 240 seconds]
pabloh has joined #ruby
SteenJobs has joined #ruby
pabloh has quit [Client Quit]
itsautomatisch has joined #ruby
im314ous has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
gloscombe has quit [Quit: gloscombe]
manjaro-kde5-- has joined #ruby
polyidus has joined #ruby
nowhere_man has joined #ruby
LBRapid has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
libastral has quit [Ping timeout: 240 seconds]
Tempesta has quit [Ping timeout: 246 seconds]
libastral has joined #ruby
nOwz has joined #ruby
hutch34 has joined #ruby
Channel6 has joined #ruby
montanonic has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
LBRapid has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Quit: SteenJobs]
Suslov has quit [Remote host closed the connection]
Suslov has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
sid_fules has joined #ruby
manjaro-kde5-- has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 264 seconds]
nowhere_man has quit [Remote host closed the connection]
sid_fules has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
duderonomy has joined #ruby
astrobunny has joined #ruby
marcdel has joined #ruby
pawnbox has joined #ruby
Channel6 has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
jgnagy has quit [Read error: Connection reset by peer]
jgnagy has joined #ruby
bmurt has joined #ruby
Suslov has quit [Remote host closed the connection]
Suslov has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
maloik56 has joined #ruby
enterprisey has joined #ruby
Suslo has joined #ruby
maloik has quit [Remote host closed the connection]
Suslov has quit [Remote host closed the connection]
howdoi has joined #ruby
jeyraof^mbpr has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
bkxd has joined #ruby
sid_fules has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mula has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
sid_fules has quit [Ping timeout: 264 seconds]
Akuya has quit [Quit: Leaving]
Derperperd has joined #ruby
djbkd has joined #ruby
pawnbox has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
marchelzo is now known as bg
skang has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
cdg_ has joined #ruby
itsautomatisch has quit [Ping timeout: 240 seconds]
pulkit4tech has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
raspado has quit [Remote host closed the connection]
<skang> hi
<havenwood> skang: hi
raspado has joined #ruby
<bg> hi skang
govg has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
skweek has joined #ruby
cfec0b8d has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
jenrzzz has joined #ruby
raspado has quit [Ping timeout: 260 seconds]
herbmillerjr has joined #ruby
rhyselsmore has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
JoshS has quit [Ping timeout: 268 seconds]
gnufied has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
sid_fules has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has quit [Ping timeout: 264 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdm has quit [Remote host closed the connection]
jameser_ has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
Suslov has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
VladGh has quit [Remote host closed the connection]
Suslo has quit [Ping timeout: 258 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
Suslov has quit [Ping timeout: 260 seconds]
VladGh has joined #ruby
[reed] has quit [Ping timeout: 260 seconds]
gix has joined #ruby
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
pawnbox has joined #ruby
enterprisey has quit [Remote host closed the connection]
igniting has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
sid_fules has joined #ruby
pilne has quit [Quit: Quitting!]
govg has joined #ruby
sid_fules has quit [Ping timeout: 264 seconds]
skang_ has joined #ruby
__Yiota has joined #ruby
skang has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
skang_ has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
mula has joined #ruby
boog has joined #ruby
Pisuke has joined #ruby
nOwz has joined #ruby
hutch34 has joined #ruby
astrobunny has joined #ruby
weaksauce has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
nOwz has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
mula has quit [Remote host closed the connection]
aryaching has joined #ruby
DTZOZU has joined #ruby
hutch34 has quit [Ping timeout: 256 seconds]
pawnbox_ has joined #ruby
hotpancakes has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
morfin has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
DTZOZU has quit [Client Quit]
ThereIsNoYeti has joined #ruby
sid_fules has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
igniting has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
sid_fules has quit [Ping timeout: 264 seconds]
Rodya_ has quit [Quit: Leaving...]
<morfin> how instance_eval is implemented?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<matthewd> morfin: What do you mean?
CloCkWeRX has quit [Quit: Leaving.]
skang has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 260 seconds]
boog has quit [Remote host closed the connection]
<morfin> i mean does it create method on that object?
<matthewd> No
enterprisey has quit [Remote host closed the connection]
<morfin> I know it set self but not sure how
skang has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 268 seconds]
marcdel has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
<matthewd> It exists inside the interpreter; how it does it is no more interesting than how self gets set when you call a method on one object from another
ThereIsNoYeti has joined #ruby
noobcake has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
rkazak_ has joined #ruby
<morfin> well as i know JS MyClass.mymethod.bind(instanceofmyclass) create special "native" wrapper
renchan has joined #ruby
auzty has joined #ruby
<matthewd> How does (JS) mymethod.call(myinstance) work?
aupadhye has quit [Ping timeout: 240 seconds]
<morfin> hm it do same thing as bind + call that thing?
elifoster has joined #ruby
hotpanca_ has joined #ruby
anisha has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
sid_fules has joined #ruby
lenwood has joined #ruby
govg has quit [Ping timeout: 240 seconds]
sid_fules has quit [Ping timeout: 264 seconds]
lenwood has quit [Ping timeout: 260 seconds]
<morfin> apply do similar thing
mwlang has quit [Quit: mwlang]
<matthewd> Right. And instance_eval in ruby works the same way. Just like those JS ones, it's a built-in native thing.
boog has joined #ruby
boog has quit [Remote host closed the connection]
boog has joined #ruby
aupadhye has joined #ruby
noobcake has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.7]
saneax-_-|AFK is now known as saneax
<morfin> but instance_eval also allows execution of block in context of an object
pawnbox_ has quit [Remote host closed the connection]
<dminuoso> 06:50 < matthewd> [05:42:56] How does (JS) mymethod.call(myinstance) work?
<dminuoso> just like that
pawnbox has joined #ruby
squ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
Immune has joined #ruby
hutch34 has joined #ruby
barnett has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
jenrzzz has joined #ruby
Guest65382 has joined #ruby
tau has quit [Remote host closed the connection]
tildes has joined #ruby
StevenStulu has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
boog has quit []
Guest65382 has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias1 has joined #ruby
ghoti has quit [Ping timeout: 268 seconds]
ghoti has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
tystr has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 240 seconds]
aaronm04 has quit [Ping timeout: 252 seconds]
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
dikaio has quit [Ping timeout: 245 seconds]
tystr has joined #ruby
pragmatism has quit [Ping timeout: 255 seconds]
dikaio has joined #ruby
hahuang65 has joined #ruby
havenwood has joined #ruby
havenwood has joined #ruby
pragmatism has joined #ruby
xall has joined #ruby
aaronm04 has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bocaneri has joined #ruby
govg has joined #ruby
bg has quit [Quit: :*]
barnett has quit []
CloCkWeRX has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 264 seconds]
ThereIsNoYeti has joined #ruby
last_staff has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
7F1AAF8S6 has quit [Ping timeout: 245 seconds]
brainslug has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
Suslov has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
Suslov has quit [Ping timeout: 240 seconds]
mikeiniowa has quit [Ping timeout: 240 seconds]
pawnbox has quit [Read error: Connection reset by peer]
nOwz has joined #ruby
deweysdecimal has joined #ruby
byte512 has joined #ruby
pawnbox has joined #ruby
naftilos76 has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
jgnagy has quit [Remote host closed the connection]
hutch34 has joined #ruby
nOwz has quit [Ping timeout: 246 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
deweysdecimal has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 268 seconds]
<morfin> blocks are not even functions
tildes has joined #ruby
DaniG2k has joined #ruby
djbkd has quit [Quit: My people need me...]
djbkd has joined #ruby
KnownSyntax has quit [Ping timeout: 246 seconds]
<morfin> but still can do myobject.instance_eval do ... end
djbkd has quit [Client Quit]
gbailey has quit [Ping timeout: 260 seconds]
justinmcp has quit [Remote host closed the connection]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
bear13yte has joined #ruby
voxxit has quit [Ping timeout: 252 seconds]
justinmcp has joined #ruby
charliesome has joined #ruby
ahuman has joined #ruby
gbailey has joined #ruby
nOwz has joined #ruby
voxxit has joined #ruby
xall has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
xall has joined #ruby
amclain_ has quit [Quit: Leaving]
DaniG2k has quit [Quit: leaving]
Xiti has quit [Quit: Xiti]
<morfin> interseting
ledestin has joined #ruby
xall has quit [Remote host closed the connection]
^Denis has quit [Ping timeout: 246 seconds]
xall has joined #ruby
conta has joined #ruby
manjaro-kde5-- has joined #ruby
norbertka has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
<morfin> typedef VALUE (*vm_call_handler)(struct rb_thread_struct *th, struct rb_control_frame_struct *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc);
tonini has joined #ruby
conta has quit [Ping timeout: 264 seconds]
patarr has joined #ruby
Arpanet69 has joined #ruby
certainty has joined #ruby
jgnagy has joined #ruby
conta has joined #ruby
ekem has quit [Ping timeout: 258 seconds]
knight_ has quit [Quit: No Ping reply in 180 seconds.]
<morfin> and VALUE is uintptr_t so you literally pass it around?
knight_ has joined #ruby
pulkit4tech has quit []
<dminuoso> morfin: C++ gotten too boring?
ta_ has quit [Remote host closed the connection]
<dminuoso> morfin: and yes.
patarr has quit [Ping timeout: 240 seconds]
pulkit4tech has joined #ruby
<morfin> no, still reading something about C++ stuff
certainty has quit [Ping timeout: 240 seconds]
<morfin> but at work we use Ruby and PHP(hate it)
ekem has joined #ruby
<dminuoso> morfin: essentially the idea is that (void *) is passed around left and right, and it's the callees responsibility to treat it correctly
CloCkWeRX has quit [Quit: Leaving.]
ThereIsNoYeti has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
djbkd has joined #ruby
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
manjaro-kde5-- has quit [Quit: Konversation terminated!]
rhyselsmore has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
<morfin> i see usage depends on context - somewhere it's self, somewhere that function pointer
aganov has joined #ruby
okdas has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
nocco has joined #ruby
xall has quit [Ping timeout: 246 seconds]
zenguy_pc2 has quit [Ping timeout: 256 seconds]
<morfin> dminuoso, C++ is bottomless pit
okdas has quit [Client Quit]
zenguy_pc has joined #ruby
xall has joined #ruby
hotpancakes has joined #ruby
aufi has joined #ruby
hutch34 has joined #ruby
dionysus69 has joined #ruby
Suslov has joined #ruby
TomyWork has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
brainslug has joined #ruby
xall has quit [Ping timeout: 246 seconds]
okdas has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
KnownSyntax has joined #ruby
zenguy_pc has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
xall has joined #ruby
okdas has quit [Ping timeout: 268 seconds]
djbkd has quit []
certainty has joined #ruby
xcesariox has joined #ruby
Suslov has quit [Ping timeout: 256 seconds]
bruce_lee has joined #ruby
tvw has quit [Remote host closed the connection]
ta_ has joined #ruby
minimalism has quit [Quit: minimalism]
TomyWork has quit [Remote host closed the connection]
mark_66 has joined #ruby
evie_hammond has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tildes has joined #ruby
antgel has joined #ruby
bearbyte has joined #ruby
pwnd_nsfw` has joined #ruby
bear13yte has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
nocco has quit [Remote host closed the connection]
nettoweb has joined #ruby
tildes has quit [Ping timeout: 268 seconds]
evie_hammond has joined #ruby
xall has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
xcesariox has quit [Remote host closed the connection]
Mortomes|Work has joined #ruby
xcesariox has joined #ruby
xall has joined #ruby
polysics has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
teclator has joined #ruby
okdas has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
Arpanet69 has joined #ruby
Burgestrand has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
blaxter has joined #ruby
Silthias has joined #ruby
blaxter has quit [Client Quit]
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
nocco has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
Arpanet69 has quit [Ping timeout: 268 seconds]
nofxxx has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
charliesome has joined #ruby
mikecmpbll has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 260 seconds]
jsrn_ has joined #ruby
stoffus_ has joined #ruby
nocco has quit []
hutch34 has joined #ruby
certainty has joined #ruby
bihi has quit [Quit: Bye!]
stoffus has quit [Ping timeout: 256 seconds]
Violentr has joined #ruby
nofxxx has quit [Remote host closed the connection]
nofxx has joined #ruby
xen0fon has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
ByronJohnson has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
xen0fon has joined #ruby
tomphp has joined #ruby
hotpancakes has joined #ruby
Fridtjof has quit [Ping timeout: 255 seconds]
M107262[m] has quit [Ping timeout: 255 seconds]
TheBrayn has quit [Ping timeout: 255 seconds]
tdy has joined #ruby
mark_66 has quit [Quit: Leaving.]
pandaant has joined #ruby
lxsameer has joined #ruby
Fridtjof has joined #ruby
bear13yte has joined #ruby
ResidentBiscuit has joined #ruby
ByronJohnson has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bearbyte has quit [Ping timeout: 268 seconds]
certainty has quit [Ping timeout: 260 seconds]
nOwz has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
M107262[m] has joined #ruby
TheBrayn has joined #ruby
nobitanobi has joined #ruby
charliesome has joined #ruby
Arpanet69 has joined #ruby
nOwz has joined #ruby
patarr has joined #ruby
lenwood has joined #ruby
jaruga__________ has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
patarr has quit [Ping timeout: 268 seconds]
ThereIsNoYeti has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
terens has joined #ruby
catpelts has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
GK___1wm____SU has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 240 seconds]
terens has quit [Remote host closed the connection]
GK___1wm____SU has quit [K-Lined]
perry has quit [Disconnected by services]
ncopa has joined #ruby
Violentr has quit [Ping timeout: 256 seconds]
ljarvis_ is now known as ljarvis
perryh has joined #ruby
perryh has joined #ruby
perryh has quit [Changing host]
teclator has quit [Remote host closed the connection]
dstrunk has joined #ruby
KicStart has joined #ruby
bear13yte has quit [Read error: Connection reset by peer]
aganov has quit [Ping timeout: 240 seconds]
catpelts_ has joined #ruby
bear13yte has joined #ruby
bear13yte has quit [Remote host closed the connection]
pawnbox has joined #ruby
catpelts has quit [Quit: leaving]
Beams has joined #ruby
aganov has joined #ruby
Beams_ has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GK___1wm____SU has joined #ruby
dstrunk has joined #ruby
Beams has quit [Ping timeout: 258 seconds]
GK___1wm____SU has quit [K-Lined]
pawnbox has quit [Remote host closed the connection]
jameser_ has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
conta has quit [Ping timeout: 264 seconds]
certainty has joined #ruby
sid_fules has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
toretore has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
arkaros has joined #ruby
marr has joined #ruby
hutch34 has joined #ruby
<arkaros> hello i have a question regarding classes. I am pretty new to ruby and accessing class fields with hash syntax confuses me. So you can do both class[:field] and class.field. Are there any requirements for on the class to allow for doing the hash syntax way or is this enabled by default?
<dminuoso> "So you can do both class[:field] and class.field."
<dminuoso> arkaros: no you cannot.
<dminuoso> >> hash = {"a" => 1"}; puts hash.a
<ruby[bot]> dminuoso: # => /tmp/execpad-809aba613e87/source-809aba613e87:2: syntax error, unexpected tSTRING_BEG, expecting '}' ...check link for more (https://eval.in/751282)
<dminuoso> >> hash = {"a" => 1}; puts hash.a
<ruby[bot]> dminuoso: # => undefined method `a' for {"a"=>1}:Hash (NoMethodError) ...check link for more (https://eval.in/751283)
<dminuoso> arkaros: So what you are talking about must be the behavior of some specific class. What class are you using?
<arkaros> No i dont mean on hashes i mean classes. I know for sure this works with rails ActiveRecords. You can do both user.id and user[:id]. Is this something that they build into the ActiveRecord class?
<arkaros> Or is this the behavior of classes in general in ruby?
<dminuoso> AKPWD: No it is not. This is just ActiveRecord specific.
<dminuoso> arkaros: ^-
<dminuoso> arkaros: Mind you, that user.id and user[:id] are not exactly the same either
<arkaros> dminuoso: Okay so I should probably not make the hash syntax a habit then
<dminuoso> arkaros: You could if you wanted to, it would be more consistent even.
<dminuoso> arkaros: Sometimes if there's name clashes you have to do this in fact. Imagine in a column is named "class", now Ruby cannot offer you a .class method for that, because there already is one.
hutch34 has quit [Ping timeout: 260 seconds]
<dminuoso> So the only way to access that attribute is through [:class]
<arkaros> dminuoso: Do you have any idea how they made the [:field] syntax work. Did they implement a to_hash method or something?
<dminuoso> arkaros: Something like that. :-)
polysics_ has joined #ruby
<arkaros> dminuoso: Thank you for your time. Cleared things up for me :)
<dminuoso> arkaros: The syntax is just a regular method
<dminuoso> I can show you:
<dminuoso> >> class Foo; def [](arg); puts "heey, you called the hash syntax passing #{arg}"; end; end; obj = Foo.new; obj[:foo]
<ruby[bot]> dminuoso: # => heey, you called the hash syntax passing foo ...check link for more (https://eval.in/751295)
polysics has quit [Ping timeout: 240 seconds]
<dminuoso> arkaros: So in the end foo[:arg] is actually just a syntactic sugar of: foo.[](:arg)
<elomatreb> You can even make that method take multiple arguments, which can be really nice for some call signatures
<dminuoso> arkaros: so it is just a regular method like .quux, except the invocation looks a bit different
<dminuoso> arkaros: So you can imagine this [:field] syntax to be a better looking version of: object.getAttribute(:field)
<arkaros> dminuoso: Hmmm really cool. I have started to take a liking to ruby actually. Cool things like that make me happy while programming. I come from a python background but the specific micro service im working on now required parsing of the greenbutton protocol and ruby had a way more sofisticated library for that so now im doing ruby on rails for this hehe
<morfin> that's called indiffirent access hash as i know
cibs has quit [Ping timeout: 240 seconds]
<elomatreb> No, that's something else. HashWithIndifferentAccess was/is a crutch to allow [:key] and ["key"] to be the same
Derperperd has quit [Ping timeout: 240 seconds]
<morfin> ah wait
<dminuoso> arkaros: Note that the [] method sometimes has different meanings though.
<dminuoso> For example:
<dminuoso> >> Array[1,2,3]
<ruby[bot]> dminuoso: # => [1, 2, 3] (https://eval.in/751304)
<morfin> i forgot i saw that in Hashie::Mash or something like that
teclator has joined #ruby
<elomatreb> >> Hash[ [:key, "value"] ]
<dminuoso> (It just is a method with peculiar looks, but *most* of the time its just for a "get attribute XYZ" semantics)
<ruby[bot]> elomatreb: # => /tmp/execpad-02aa9f9040b1/source-02aa9f9040b1:2: warning: wrong element type Symbol at 0 (expected a ...check link for more (https://eval.in/751306)
<elomatreb> Uh?
workmad3 has joined #ruby
<dminuoso> Oo
<morfin> could access like myhash.foo or myhash[:foo] or myhash["foo"]
cibs has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso> >> Hash[ [:key, "value"] ]
<ruby[bot]> dminuoso: # => /tmp/execpad-62add967371b/source-62add967371b:2: warning: wrong element type Symbol at 0 (expected a ...check link for more (https://eval.in/751307)
<elomatreb> Oh, they inner ones need to be in another array.
<dminuoso> elomatreb: I can reproduce that locally.
<elomatreb> >> Hash[ [[:key, "value"]] ]
<ruby[bot]> elomatreb: # => {:key=>"value"} (https://eval.in/751308)
<dminuoso> Oh, thats just a deprecation warning
<dminuoso> nevermind :)
catpelts_ has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
<elomatreb> Anyone got any spare [/], mine just ran out think
SimpleIRC_VLBcT has joined #ruby
<dminuoso> elomatreb: For a Model M?
catpelts has joined #ruby
<elomatreb> ?
<elomatreb> Oh, I was just joking about the amount of nested [] in my example
conta has joined #ruby
<dminuoso> elomatreb: Dont worry, you're not getting pieces off my Model M.
<dminuoso> :p
<elomatreb> I'm on a clicky blue cherry keyboard currently, but I wouldn't mind getting a Model M if they weren't so damn expensive
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
auzty has quit [Quit: Leaving]
dstrunk has joined #ruby
astrobunny has quit [Remote host closed the connection]
jamesaxl has quit [Read error: No route to host]
<TheBrayn> elomatreb: unicomp makes model m reproduction keyboards
SimpleIRC_VLBcT has quit [Quit: Simple IRC: The quit option.]
SimpleIRC_VLBcT has joined #ruby
gregf_ has quit [Quit: Page closed]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
nofxx has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
xall has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
jamesaxl has joined #ruby
dangerousdave has joined #ruby
<Bish> can i somehow have the instance variables only set by one ancestor of a class
<Bish> guess not.. because ruby doesn't log this internally
terens has joined #ruby
terens has quit [Client Quit]
CloCkWeRX has joined #ruby
arkaros has quit [Ping timeout: 258 seconds]
tubuliferous has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
Paraxial has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hutch34 has joined #ruby
gregf_ has joined #ruby
gnufied has joined #ruby
lenwood has quit [Ping timeout: 268 seconds]
ferr1 has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 256 seconds]
Derperperd has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
hotpancakes has joined #ruby
charliesome has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
Beams_ has quit [Quit: .]
tvw has quit [Ping timeout: 264 seconds]
SimpleIRC_VLBcT has quit [Quit: Simple IRC: The quit option.]
Beams has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
dstrunk has joined #ruby
ldnunes has joined #ruby
dstrunk has quit [Client Quit]
nadir has quit [Quit: Connection closed for inactivity]
ddffg has joined #ruby
dstrunk has joined #ruby
Silthias has joined #ruby
jaiks has quit [Ping timeout: 246 seconds]
<apeiros> Bish: indeed no, you can't, for the reason you stated
jshjsh has joined #ruby
patarr has joined #ruby
Silthias2 has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 268 seconds]
patarr has quit [Ping timeout: 246 seconds]
ThereIsNoYeti has joined #ruby
nOwz has quit [Ping timeout: 246 seconds]
mikeiniowa has joined #ruby
tvw has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThereIsNoYeti has quit [Ping timeout: 260 seconds]
dstrunk has joined #ruby
jaiks has joined #ruby
jameser has joined #ruby
conta has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
nOwz has joined #ruby
nobitanobi has quit [Remote host closed the connection]
lenwood has joined #ruby
Garo_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<Garo_> I'd like to get a Hash like object which behaves just like Hash, but in addition I could directly set a value into a deep location inside hash without having to create the intermediate hashes in each level. eg. a = {}; a["foo"]["bar"]["baz"] = "test" would just work. Any tips on how to do this?
<Garo_> I also don't want just monkey patch this feature into Hash itself as it could cause side-effects in other places
certainty has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
millerti has joined #ruby
woeb0t has joined #ruby
d0nn1e has quit [Ping timeout: 264 seconds]
d0nn1e has joined #ruby
woeb0t has left #ruby ["ERC (IRC client for Emacs 25.1.1)"]
hutch34 has joined #ruby
Gayathri_ has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
Silthias1 has joined #ruby
tildes has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
<morfin> i broke my SSL :)
tonini has quit [Quit: Connection closed for inactivity]
<tildes> Is it possible to ask a Ruby object for a list of ancestors and mixins?
<morfin> i remember you could check for includes
hutch34 has quit [Ping timeout: 268 seconds]
<morfin> or that's not what you want?
<matthewd> Garo_: That's not really practical; you'd be better off defining a Hash#deep_set
<toretore> >> p = ->(h,k){ h[k] = Hash.new(&p) }; h = Hash.new(&p); h[:foo][:bar] = 'baz'; h
<ruby[bot]> toretore: # => {:foo=>{:bar=>"baz"}} (https://eval.in/751407)
<matthewd> tildes: Class#ancestors ?
<tildes> morfin: well that would check for mixins that are included :)
<Garo_> matthewd: hmm that's also an option. thanks for the input =)
Qchmqs has joined #ruby
<toretore> >> module Mod; end; class Klass < Array; include Mod; end; Klass.ancestors
<ruby[bot]> toretore: # => [Klass, Mod, Array, Enumerable, Object, Kernel, BasicObject] (https://eval.in/751409)
<matthewd> Garo_: The impracticality is in how different from Hash your object will feel, because unknown keys always return a new child "hash" instead of nil
<Garo_> matthewd: I was thinking creating a class based on Hash and then overwriting the [] method to return a new hash if the key is not found
<morfin> !included_modules
<morfin> hmm
<Garo_> matthewd: very trye
anisha has quit [Quit: This computer has gone to sleep]
<morfin> weird
<morfin> included_modules gives also modules included from includes?
<tildes> matthewd: thanks! that seems to give a list which contains both inherited classes and included modules
Silthias has joined #ruby
renatosilva has joined #ruby
<matthewd> Garo_: Right, you can do that as toretore did, using the builtin hash default feature.. but when I've tried, it just ended up feeling weird -- the fact you want an autovivified hash seems to correlate with wanting to be able to detect when things aren't there, and it seems you can really only get one or the other
<Garo_> matthewd: yeah. maybe I'll just refactor and write some kind of deep_set
tomphp has quit [Read error: Connection reset by peer]
Silthias1 has quit [Ping timeout: 260 seconds]
^Denis has joined #ruby
antgel has quit [Ping timeout: 258 seconds]
ddffg has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
esObe__ has quit [Remote host closed the connection]
esObe_ has joined #ruby
^Denis has quit [Ping timeout: 260 seconds]
catphish has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has joined #ruby
esObe_ has quit [Ping timeout: 256 seconds]
habitullence has joined #ruby
tvw has joined #ruby
jameser_ has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
ddffg has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
habitullence has quit [Quit: habitullence]
<tildes> I'd like some Object#try style of method that would return an empty array instead of nil
<dminuoso> I think that the whole idea of #try is just Ruby trying desperately to hide the lack of Monads
<dminuoso> What do you folks think?
<apeiros> Garo_: write a refinement, implement it like Hash#dig/Array#dig with an additional argument (call it #bury :-p)
renatosilva has quit [Quit: http://renatosilva.net]
<apeiros> question is: bury(value, *path) or bury(*path, value)
<morfin> i am not sure when it's really required to check included modules in Ruby
<dminuoso> morfin: Ignore stuff like included_modules and just look at #ancestors
aupadhye has quit [Ping timeout: 240 seconds]
<dminuoso> morfin: #ancestors is an accurate representation of a) how it works internally and b) how Ruby behaves
<morfin> but why check that?
certainty has joined #ruby
<dminuoso> morfin: Technically Ruby has only single inheritance. It achieves the effect of composition by manipulating that inheritance chain
kent\n has quit [Ping timeout: 246 seconds]
<dminuoso> i.e. class Base < Derived; include Mod; end; will actually give you an inheritance chain that looks like Derived < Mod < Base
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Qchmqs has quit [Read error: No route to host]
<dminuoso> And even though Mod is not derived from Base, it will act like it is.
<morfin> hmmm magic
<tildes> morfin: if you want to see what any object is made of, or in which order a method will be looked up
<dminuoso> morfin: The real magic is Module#prepend, which is like include
<dminuoso> except that it does not insert the module between Derived and Base, but in front of derived
pawnbox has joined #ruby
<dminuoso> So: class Base < Derived; prepend Mod; end; #=> Mod < Derived < Base
csk has joined #ruby
Beams has quit [Quit: .]
<dminuoso> >> module M; end; class C; include M; end; C.new.is_a?(M)
postmodern has quit [Quit: Leaving]
<ruby[bot]> dminuoso: # => true (https://eval.in/751427)
nobitanobi has joined #ruby
sleetdrop has joined #ruby
aupadhye has joined #ruby
Beams has joined #ruby
hotpancakes has joined #ruby
<morfin> oh
GinoManWorks has joined #ruby
conta has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
xall has joined #ruby
lenwood has quit [Ping timeout: 258 seconds]
noobcake has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
<morfin> too bad i don't have Ruby because broke SSL :(
<dminuoso> Let me guess, you're on Windows?
<morfin> it happened on FreeBSD :)
<dminuoso> Same OS.
<dminuoso> It's almost the same.
<morfin> no
<morfin> it's Unix )
<dminuoso> Close enough.
<morfin> that's what you get for playing with LibreSSL
<dminuoso> morfin: http://i.imgur.com/04Mlrwp.png << modules just get injected between two super connection of classes
tyang has joined #ruby
tubuliferous has joined #ruby
<dminuoso> morfin: Let me guess, are you Russian?
aupadhye has quit [Ping timeout: 258 seconds]
<morfin> i did not hide that
<morfin> i remember even told that in #c++-general :)
<dminuoso> That smiley you just was the hint. :)
<morfin> i am wondering why everybody say that Ruby is not pretty scalable
shinnya has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
TvL2386 has joined #ruby
<morfin> i know they love Java or even Scala but there was some high load serviceses using Ruby, Memcached, Redis etc
kent\n has joined #ruby
<dminuoso> morfin: Ruby has 2 main performance problems currently. A) the bytecode is not JITed (not in MRI at least), which means there's very little internal optimization happening
<dminuoso> morfin: And the other is the so called Global VM Lock, which basically prevents any two threads from concurrently using Ruby basically.
<dminuoso> morfin: JRuby addresses both however.
cfec0b8d has joined #ruby
<morfin> GIL?
pawnbox has quit [Remote host closed the connection]
<morfin> something like Python use
<dminuoso> morfin: The "GIL" is the old term that stems from when Ruby did not have VM.
pawnbox has joined #ruby
hutch34 has joined #ruby
<morfin> maybe, anyway Python guys use some global lock as well so concurrent things are not so concurrent
<dminuoso> morfin: Multithreading mostly only brings benefits if you're using it for blocking I/O, so Ruby is just fine for writing scalable wbe servers for example.
<morfin> only way to has real concurrency is forking?
^Denis has joined #ruby
<dminuoso> morfin: For things that contest Ruby functionality, yes.
<dminuoso> The second you spend time with any syscall the lock is released though.
<dminuoso> So there's partial applications for threads in Ruby
skweek has joined #ruby
<Bish> apeiros: too bad!
pawnbox_ has joined #ruby
<dminuoso> Webservers being one of them.
Silthias has joined #ruby
<dminuoso> morfin: Or use JRuby.
<morfin> ah yes - Windows is much worse
certainty has quit [Ping timeout: 240 seconds]
<dminuoso> morfin: With JRuby you don't have either issue, but even the JIT compilation is limited unless you use jruby-truffle
<morfin> JRuby just make JVM instructions from Ruby code
<elomatreb> "just"
<Bish> google just finds strings in a big string
<morfin> but what happens to exceptions?
<Bish> morfin: java has exceptions too, and even if it didn't, you could implement them
<dminuoso> morfin: So, these points are mostly just about MRI, but if you pick JRuby you can actually write fairly scalable applications.
pawnbox has quit [Ping timeout: 260 seconds]
<morfin> when i was playing with bytecode i saw how they are implemented in JVM - they wrap whole block in exception an then next block is "catch"
<dminuoso> But jruby without truffle is still not particularly fast in CPU bound applications, because the JVM cant aggressively optimize rubys dynamic features.
<Bish> morfin: and then you go to #ruby and ask "what happens to exceptions" :D
<dminuoso> and graal/truffle is still just a research project I think
pawnbox_ has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
<morfin> Bish, i asked because don't know how they're implemented on Ruby
<dminuoso> morfin: http://jruby.org/bench9000/ #=> there's some benchmarks comparison all the various Ruby implementations using a comprehensive benchmark that focuses on just raw Ruby execution
<morfin> and JRuby can run on something like JBoss/Tomcat etc right?
Silthias1 has joined #ruby
<morfin> i.e in Java environment
sleetdrop has quit [Quit: Computer has gone to sleep.]
<morfin> *in Java environment
Silthias has quit [Ping timeout: 246 seconds]
<dminuoso> 14:22 < morfin> Bish, i asked because don't know how they're implemented on Ruby
<dminuoso> morfin: setjmp/longjmp
Qchmqs has joined #ruby
<dminuoso> morfin: and superficially they are just catch/throw
gnufied has joined #ruby
<dminuoso> (which uses setjmp/longjmp underneath)
Derperperd has quit [Ping timeout: 240 seconds]
<dminuoso> morfin: You can see this fact in assembly too:
<dminuoso> asm>> def foo; code; rescue; puts "foo"; end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/751451
tubuliferous has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> morfin: As you can see there's catch sections as soon as there's an exception handler
<morfin> so big difference between perfomance of VMs
Silthias has joined #ruby
<dminuoso> morfin: Yes, at the cost of warmup.
<dminuoso> (Which is probably why JRuby hasnt gained that much traction yet)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
itsautomatisch has joined #ruby
<morfin> he-he
conta has joined #ruby
<morfin> do you remember how big warmup has LLVM?
polyidus has joined #ruby
<dminuoso> No, I don't do LLVM jit compilation.
<morfin> Facebook developed HHVM just because of long LLVM warmup times
<dminuoso> morfin: Ah.
sid_fules has quit [Remote host closed the connection]
<morfin> and they needed lower times
* Bish heard llvm should be used for static code, not for jit
<dminuoso> Bish: Right.
Silthias1 has quit [Ping timeout: 260 seconds]
Silthias1 has joined #ruby
<morfin> but you will pay every time you compile anyway =)
<dminuoso> morfin: Honestly that's what we have compile farms for ;p
<chrisseaton> I don't think it's anything about LLVM that limits it for JIT, but it just doesn't solve the problems you have with a JIT. LLVM helps you emit great low-level code, but if you don't know what code you want to emit it won't help you do that.
<dminuoso> chrisseaton: I'm genuinely curious. You have a highlight on "truffle" or "graal", don't you?
<chrisseaton> Rubinius for example emitted LLVM pretty directly 1-for-1 from Ruby code, and LLVM is just never going to optimise that. It doesn't know enough, the code is too low level already, and it wasn't designed to do that at all.
<chrisseaton> And 'JIT' :)
<dminuoso> :-)
Silthias has quit [Ping timeout: 240 seconds]
<chrisseaton> Not stalking, just interested in any discussions on JITing Ruby
polyidus has quit [Ping timeout: 246 seconds]
<morfin> dminuoso, mmm compile farms nice
<dminuoso> chrisseaton: So the issue is that a JIT compiler has to understand what the low level code means?
hotpanca_ has joined #ruby
<dminuoso> (Which if the JIT received "random" llvm code it could not do)
<chrisseaton> I mean if you emit an LLVM call to malloc, and then read and write a field in that object, LLVM is never going to be able to realise it could just link the read to the write directly and never call malloc.
<chrisseaton> It will always just do exactly what you told it to do - call malloc - and can't make decisions to do things like remove that call
nettoweb has joined #ruby
conta has quit [Ping timeout: 240 seconds]
teddysmoker has joined #ruby
<dminuoso> So what kind of optimizations is LLVM good for then? Is it just limited to strength reduction, register allocation, instruction scheduling, etc?
<chrisseaton> I wouldn't say 'just limited to' because it's still extremely good for it, but yes that's what it does
hotpancakes has quit [Ping timeout: 246 seconds]
<chrisseaton> You need to already have optimised your language to the point where you could emit machine code yourself, and then LLVM just helps you emit good machine code
<chrisseaton> You can see lots of examples of people realising this - the FTL backend in Safari had a JS IR and then emitted LLVM instead of their own machine code, the MIR for Rust where before I think they just used LLVM directly, etc
hotpancakes has joined #ruby
griffindy has joined #ruby
troulouliou_div2 has joined #ruby
teddysmoker has quit [Client Quit]
Derperperd has joined #ruby
hotpanca_ has quit [Ping timeout: 260 seconds]
teddysmoker has joined #ruby
<morfin> hmm
<morfin> as example in C/C++ compiler try to optimize code then LLVM do rest
<chrisseaton> C and C++ are already low level though
<chrisseaton> Transforming Ruby code to the point where it's like C is the problem
patarr has joined #ruby
<morfin> chrisseaton, but compilers still can do many things to optimize it
squ has quit [Remote host closed the connection]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
<chrisseaton> morfin: yes, and those things are in the domain where LLVM does well
<chrisseaton> And actually Rubinius doesn't even use LLVM for its JIT any more
<Bish> it doesn't`
<Bish> ?
patarr has quit [Ping timeout: 268 seconds]
stoffus_ has quit [Ping timeout: 240 seconds]
ThereIsNoYeti has joined #ruby
pawnbox has quit [Remote host closed the connection]
<chrisseaton> Not for the past year or so, no
pawnbox has joined #ruby
<chrisseaton> They were talking about possibly using OMR (which is a tiny bit like IBM's version of something like Graal)
EV3RYDAYPR0GRESS has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
EV3RYDAYPR0GRESS has joined #ruby
ghoti has quit [Ping timeout: 260 seconds]
stoffus has joined #ruby
ghoti has joined #ruby
jameser has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
schickung has joined #ruby
<xall> is it possible to catch `binding.pry` when running a local server using foreman?
chouhoulis has joined #ruby
<xall> as in, get into an interactive pry session
anonymus has joined #ruby
<anonymus> hi guys!
patarr has joined #ruby
<anonymus> please explain this
<ruby[bot]> anonymus: as I told you already, please use https://gist.github.com
conta has joined #ruby
<anonymus> why isn't "res" colorized ???
jameser has quit [Max SendQ exceeded]
<anonymus> could anybody have a look please
jameser has joined #ruby
<toretore> not unless you post somewhere other than pastebin
tyang_ has joined #ruby
<anonymus> toretore: I cant
<anonymus> ^(
<anonymus> I do not know how
<dminuoso> 14:53 < xall> is it possible to catch `binding.pry` when running a local server using foreman?
<dminuoso> no
hutch34 has joined #ruby
<dminuoso> xall: I ended up replacing foreman with a simple tmux script that gave me much more sensible output and controlled stdin.
<toretore> anonymus: you were already told to use https://gist.github.com
<dminuoso> (By having the tmux script automatically draw windows for each process)
<anonymus> that was another anon
<anonymus> everybody knows!
<toretore> it was 6 minutes ago, directed at you
antgel has joined #ruby
<anonymus> :(
<xall> dminuoso: it looks like pry-remote works
<dminuoso> xall: Indeed, that is another solution if you are happy with it.
tyang has quit [Ping timeout: 268 seconds]
<anonymus> pastebinit says unknown site
yqt has joined #ruby
pawnbox has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
esObe_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Remote host closed the connection]
polyidus has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyang__ has joined #ruby
<anonymus> is is
<anonymus> toretore:
last_staff has quit [Quit: last_staff]
ramortegui has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
tyang_ has quit [Ping timeout: 256 seconds]
polyidus has joined #ruby
chouhoulis has joined #ruby
twoninefive has joined #ruby
dangerousdave has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 258 seconds]
<anonymus> does anyone know some ruby in this chat?
certainty has joined #ruby
<tobiasvl> probably everyone, but the question is who has used the colorize gem
<anonymus> maybe the problem is in incorrect use of Prox object
<anonymus> could anybody have a look?
Derperperd has joined #ruby
<anonymus> Im afraid my experience isn't good enough :(
DLSteve has joined #ruby
<matthewd> anonymus: You haven't really described what's happening or what you expect
sid_fules has joined #ruby
<anonymus> green
<anonymus> reachable
<anonymus> * pool.ntp.org:123 reachable
<matthewd> You're using a 3rd party gem.. are you sure you're using it correctly? What documentation are you following?
<anonymus> i got white output
<anonymus> but want red or green
<anonymus> green if reachable and red if not
gsilva has joined #ruby
<matthewd> What command line are you using to run it?
<matthewd> Are you sure your terminal supports ANSI color codes?
<anonymus> uby check_ntp.rb
<anonymus> ruby check_ntp.rb
saneax is now known as saneax-_-|AFK
<anonymus> if i put .green instead of colorize(col) I m getting color
<anonymus> correct one i mean
<anonymus> green or red
baked__beans has joined #ruby
<matthewd> Okay, that seems like useful information
polyidus has quit [Quit: ZZZzzz…]
<matthewd> So the problem is definitely specifically in how you're calling .colorize
<matthewd> How does your call compare to the documented usage?
ahrs has quit [Ping timeout: 240 seconds]
ahrs has joined #ruby
<anonymus> if I do the same outside of Prox it works well
<anonymus> so I m sure I do something wrong inside Proc
<matthewd> Show me
<anonymus> what?
<anonymus> printf "%-50s %30s\n", "* #{@host}:#{$port}", res.green makes green right part of the output
<KicStart> anonymus: This should get you started, https://gist.github.com/dsowsy/66e15af3028d549a56b71e08f16019f7
certainty has quit [Ping timeout: 246 seconds]
tau has joined #ruby
igniting has quit [Ping timeout: 246 seconds]
<anonymus> KicStart: that is what I wanted to avoid
<anonymus> repeating
<matthewd> anonymus: That's calling .green, which is a different method
<KicStart> Cleaning it up is left as an exercise to the student. I've proven that it'll work and the correct usage of the colorize gem as matthewd was curious about.
polyidus has joined #ruby
sid_fules has quit [Remote host closed the connection]
<matthewd> anonymus: I'm asking you about how the .colorize method is intended to be called, and you're telling me you've already decided what the problem is
cpruitt has joined #ruby
polyidus has quit [Client Quit]
jameser has quit [Ping timeout: 258 seconds]
<anonymus> 'qwe'.colorize('green')
<anonymus> => "\e[0;39;49mqwe\e[0m"
sid_fules has joined #ruby
polyidus has joined #ruby
rfoust has joined #ruby
ogurk has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
<matthewd> I don't know what that is. It doesn't look like documentation.
<anonymus> ok, thans
<anonymus> ok, thanks
<anonymus> bb
<matthewd> KicStart has given you a working example, anyway
anonymus has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
synthroid has joined #ruby
govg has joined #ruby
^Denis has quit [Ping timeout: 240 seconds]
Takumo has quit [Remote host closed the connection]
<ogurk> trying to set to array variables with ib subnets - and using IPAddr function - basically http://pastebin.com/Cp2M1Hmj
<ruby[bot]> ogurk: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1c95f98520ba264356a9237720bc7fbe
<ruby[bot]> ogurk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Takumo has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
<matthewd> ogurk: What have you tried? What problem are you running into?
rippa has joined #ruby
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
<allisio> ogurk: You realize that your desired array will contain 65,530 elements?
<matthewd> allisio: Network segments, not IP addresses
brent__ has joined #ruby
ThereIsNoYeti has joined #ruby
conta has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
flying has joined #ruby
xangria has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
xangria has quit [Read error: Connection reset by peer]
xangria has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 260 seconds]
anonymus has joined #ruby
<anonymus> guys I've found what i need
<anonymus> ^)
SteenJobs has joined #ruby
<anonymus> thanks to you
<ogurk> allisio basically i want to set a negative match
<allisio> ogurk: What's wrong with negating the result of a call to `#include?`?
xangria has quit [Ping timeout: 246 seconds]
<toretore> ogurk: your question doesn't really have anything to do with ruby, it has to do with networking and the tool you're using
polyidus has quit [Quit: ZZZzzz…]
pawnbox has joined #ruby
<matthewd> It's a perfectly ruby-solvable problem
<matthewd> ogurk: I can help fix an attempt at doing so; I'm not interested in just writing it for you from a problem description
<toretore> that depends entirely on what the actual problem is and what the desired outcome is
SteenJobs has quit [Ping timeout: 268 seconds]
nettoweb has joined #ruby
<matthewd> Doesn't seem that ambiguous to me. But homework club is down the hall, so it also doesn't really matter.
polyidus has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
rfoust has quit [Ping timeout: 246 seconds]
SteenJobs has joined #ruby
Qchmqs has quit [Remote host closed the connection]
^Denis has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
norbertka has quit [Ping timeout: 260 seconds]
cfec0b8d has quit [Ping timeout: 268 seconds]
certainty has joined #ruby
LBRapid has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
xen0fon has quit [Quit: xen0fon]
antgel has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
TomyLobo has joined #ruby
conta has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
xzhao has quit [Remote host closed the connection]
polyidus has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
<agent_white> Mornin' folks
LBRapid has joined #ruby
yusrideb has quit [Quit: yusrideb]
yusrideb has joined #ruby
Derperperd has quit [Max SendQ exceeded]
SteenJobs has quit [Ping timeout: 260 seconds]
palms has joined #ruby
gsilva has quit [Remote host closed the connection]
SteenJobs has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
chopin has quit [Remote host closed the connection]
<ogurk> matthewd don't ask for someone to fix this just want confirmation this is viable
gizmore has joined #ruby
xzhao has joined #ruby
<matthewd> ogurk: Well you actually didn't ask anything. But yes, it's computers, so it's achievable.
ta_ has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
Mr_Pancake has joined #ruby
SteenJobs has quit [Ping timeout: 260 seconds]
polyidus has quit [Quit: ZZZzzz…]
certainty has quit [Ping timeout: 260 seconds]
polyidus has joined #ruby
Derperperd has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anonymus has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Ruby_Rocks_007 has joined #ruby
skweek has joined #ruby
SteenJobs has joined #ruby
dangerousdave has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
aganov has quit [Quit: Leaving]
tatey has quit [Remote host closed the connection]
SteenJobs has quit [Ping timeout: 246 seconds]
tatey has joined #ruby
polyidus has quit [Quit: Gone]
<morfin> i tested prepend
<morfin> and Derived started calling prepended mod methods instead Oo
resin has joined #ruby
<allisio> As is perfectly reasonable?
SteenJobs has joined #ruby
Mr_Pancake has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
dangerousdave has joined #ruby
TvL2386 has quit [Remote host closed the connection]
choke has joined #ruby
csk has quit [Ping timeout: 260 seconds]
<dminuoso> morfin: As I said.
<dminuoso> 13:56 < dminuoso> So: class Base < Derived; prepend Mod; end; #=> Mod < Derived < Base
SteenJobs has quit [Ping timeout: 256 seconds]
<dminuoso> morfin: When you prepend, you basically say: "Despite the fact that I just create a Derived object, it's will act as if it was a Mod first, and a Derived second.
Bish has quit [Ping timeout: 260 seconds]
SteenJobs has joined #ruby
csk has joined #ruby
Bish has joined #ruby
<dminuoso> morfin: "ancestors" is the actual inheritance chain (and thus used for method dispatch), use it after you include and prepend modules into a class.
nadir has joined #ruby
<dminuoso> morfin: Note: there's virtually no difference between a module and a class, so you can view them as the same thing.
dionysus69 has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
choke has quit [Ping timeout: 240 seconds]
<dminuoso> The only differences are that modules dont have .allocate and .new, and that classes can't be included/prepended/extended #=> but these restrictions are completely arbitrary.
<dminuoso> (i.e. you could modify the ruby interpreter to remove these restrictions and then use them completely interchangably)
SteenJobs has quit [Ping timeout: 256 seconds]
ozcanesen has joined #ruby
<dminuoso> For example when you write: class Foo < Bar; end; it's pretty much the same as: class Foo; include Bar; end;
mustmodify has joined #ruby
<mustmodify> anyone know why yaml files start with three dashes?
SteenJobs has joined #ruby
<allisio> They don't have to, but it's because one .yml file can contain many disparate "documents".
igniting has joined #ruby
<allisio> And that's the separator.
Bish has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
Bish has joined #ruby
hxegon has quit [Disconnected by services]
hxegon has joined #ruby
duderonomy has quit [Ping timeout: 268 seconds]
brent__ has quit [Remote host closed the connection]
bmurt has quit [Client Quit]
brent__ has joined #ruby
<mustmodify> I see.
<mustmodify> Thanks.
BlueDragons has joined #ruby
aufi has quit [Quit: Leaving]
SteenJobs has joined #ruby
Suslov has joined #ruby
Lord_of_Life has quit [Excess Flood]
bmurt has joined #ruby
BlueDragons has quit [Read error: Connection timed out]
BlueDragons has joined #ruby
Lord_of_Life has joined #ruby
Suslov has quit [Ping timeout: 268 seconds]
Suslov has joined #ruby
BlueDragons has quit [Client Quit]
hxegon has quit [Quit: leaving]
hxegon has joined #ruby
hxegon has quit [Client Quit]
sepp2k has joined #ruby
hxegon has joined #ruby
hxegon has quit [Client Quit]
chopin has joined #ruby
hxegon has joined #ruby
hxegon has quit [Client Quit]
hxegon has joined #ruby
hxegon has quit [Client Quit]
hxegon has joined #ruby
Derperperd has quit [Max SendQ exceeded]
skweeke has joined #ruby
skweek has quit [Read error: Connection reset by peer]
Derperperd has joined #ruby
Suslov has quit [Quit: Leaving...]
sneakerhax has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Ping timeout: 258 seconds]
ThereIsNoYeti has joined #ruby
ThereIsNoYeti has quit [Remote host closed the connection]
tubuliferous has joined #ruby
ThereIsNoYeti has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
troulouliou_div2 has quit [Quit: Leaving]
xen0fon has joined #ruby
hotpanca_ has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
xen0fon has quit [Quit: xen0fon]
Gayathri_ has quit []
cdg has joined #ruby
ferr1 has joined #ruby
Gayathri_ has joined #ruby
Derperperd has quit [Max SendQ exceeded]
Gayathri_ has left #ruby [#ruby]
amclain has joined #ruby
szulak_ has joined #ruby
s2013 has joined #ruby
hyuvkr has joined #ruby
teclator has quit [Remote host closed the connection]
ferr1 has quit [Quit: WeeChat 1.7]
jsrn_ has quit [Quit: Leaving]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
esObe__ has joined #ruby
esObe_ has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 240 seconds]
BackEndCoder has quit [Excess Flood]
Arpanet69 has joined #ruby
esObe__ has quit [Ping timeout: 264 seconds]
BackEndCoder has joined #ruby
catphish has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Derperperd has joined #ruby
nowhere_man has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
VladGh has quit [Read error: Connection reset by peer]
VladGh has joined #ruby
gusrub has joined #ruby
jaiks has quit [Quit: Leaving]
jyaworski has joined #ruby
Cohedrin has joined #ruby
username1 has joined #ruby
username1 has quit [Client Quit]
iceden has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweeke has quit [Ping timeout: 240 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
jyaworski has quit [Read error: Connection reset by peer]
flying has quit []
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
hotpanca_ has quit [Remote host closed the connection]
antoniobeyah has joined #ruby
marchelzo has joined #ruby
raspado has joined #ruby
cfec0b8d has joined #ruby
Rodya_ has joined #ruby
palms has quit [Quit: Leaving]
pawnbox has joined #ruby
<marchelzo> this is really scare
<marchelzo> scary
jyaworski has joined #ruby
iceden has joined #ruby
Beams has quit [Quit: .]
certainty has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
hotpanca_ has joined #ruby
dionysus69 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
Cohedrin has joined #ruby
Macrobiotic has joined #ruby
schickung has quit [Quit: schickung]
hyuvkr has quit [Remote host closed the connection]
tildes_ has joined #ruby
esObe_ has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahrs has quit [Remote host closed the connection]
jyaworski has quit [Read error: Connection reset by peer]
ahrs has joined #ruby
jyaworski has joined #ruby
sid_fules has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
Coldblackice has joined #ruby
greenbird has joined #ruby
hahuang61 has joined #ruby
hooper has joined #ruby
<leah2> why?
<marchelzo> leah2: i had flashbacks to C++ while reading it
enterprisey has joined #ruby
<leah2> except that c++ has a spec :P
<marchelzo> the rules for linearization, name lookup, assigning arguments to parameters are just insanely complicated
<leah2> yes, and you never need them for non contrived code
<leah2> and the parameters are quite intuitive...
<marchelzo> still it's worrying
<marchelzo> all of the complexity just lurking in the background of the language is unsettling
<marchelzo> i like to understand the language i'm writing in
Derperperd has quit [Max SendQ exceeded]
jaruga__________ has quit [Quit: jaruga__________]
Derperperd has joined #ruby
djbkd has joined #ruby
pandaant has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
<matthewd> Seems more like complicated descriptions to me
gusrub has quit [Remote host closed the connection]
<allisio> leah2: Ruby has a spec.
xen0fon has joined #ruby
<matthewd> It seems to be providing a fairly exhaustive exploration of how the various simple, not-complex, rules interact to produce complex-looking behaviours
pawnbox has joined #ruby
montanonic has joined #ruby
<marchelzo> allisio: does it? he mentioned in the article that 1.8 has a spec, but e.g., 2.4 is not specified anywhere
<leah2> allisio: you mean the ansi standard?
<leah2> *iso
Artarian has left #ruby ["adiosss"]
<allisio> leah2: That's the one that's 1.8-only, but http://ruby.github.io/rubyspec.github.io/ is kept (more or less) in sync with development on trunk.
<leah2> that's just a random test suite tho?
<allisio> "Random" is a little harsh?
<leah2> i mean, its written after the fact
<leah2> by people who don't the the main interpreter?
mikecmpbll has joined #ruby
<leah2> correct me if i'm wrong :P
<marchelzo> "executable specification" is not that useful lol
<allisio> JRuby tries to conform to it, at any rate.
<matthewd> "spec" seems pretty strong
SteenJobs_ has joined #ruby
zeroDi has joined #ruby
ramfjord has joined #ruby
<matthewd> Strictly speaking, ruby has a spec in the form of the MRI source - but that's also less than entirely helpful in practice
<leah2> yes ;)
<allisio> What does "less than entirely helpful" mean?
<marchelzo> useless
<leah2> you never know if its a bug in mri or a language feature
<matthewd> Depends what you want the spec for
<matthewd> If you want to prove that a given implementation is conforming, then rubyspec can help you
<havenwood> leah2: CRuby incorporated a fork of RubySpec. The original RubySpec went internal to Rubinius.
<leah2> yeah, but if you want to be a language lawyer, you need to read the source anyway :)
<allisio> And so all is well.
<matthewd> If you want something coherent to read to better understand partially-emergent behaviours, reading rubyspec doesn't seem much easier than just reading ruby/ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ruby_Rocks_007 has joined #ruby
<marchelzo> matthewd: "[...] how the various simple, not-complex, rules interact [...]"
<marchelzo> they really don't seem to be simple
<leah2> i didnt read much mri since 1.9, but back then it was quite straight-forward to find things
<allisio> They're... intricate.
<allisio> It's still pretty straightforward.
<leah2> and obviously some rules are just sideeffects of implementation
SteenJobs_ has quit [Ping timeout: 256 seconds]
certainty has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
<matthewd> The module linearization article, particularly, seemed like a lot of words (which I heavily glossed over) for an implementation that's really pretty straightforward and consistently predictable
AndBobsYourUncle has joined #ruby
<marchelzo> matthewd: "For seemingly no good reason, you cannot have an array decomposition parameter, a splat parameter and a keyword parameter in the same method."
<marchelzo> how do you explain that as an interaction of simple rules?
<allisio> marchelzo: Nobody uses array decomposition parameters.
<marchelzo> it seems like just an arbitrary limitation
<marchelzo> allisio: that doesn't change my concern
<allisio> Find your inner utilitarian.
<matthewd> Yeah, that sounds like an implementation quirk -- or possibly a bug
<allisio> It's an oversight that has no cause to be addressed.
SteenJobs_ has joined #ruby
gusrub has joined #ruby
<matthewd> But "complexity" doesn't feel like the right way to describe it -- it's not a special rule to be remembered (as it would be if there *was* a seeming reason)
gusrub has quit [Client Quit]
tau has quit [Remote host closed the connection]
gusrub has joined #ruby
<allisio> marchelzo: For what it's worth, the article is flat-out lying/mistaken: https://eval.in/751655
<marchelzo> lol
<marchelzo> bbl
marchelzo has quit [Quit: :*]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has quit [Ping timeout: 260 seconds]
last_staff1 has joined #ruby
last_staff1 has quit [Client Quit]
ddffg has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
duderonomy has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
rfoust has joined #ruby
futilegames has joined #ruby
SteenJobs_ has quit [Ping timeout: 240 seconds]
csk has quit [Quit: Bye]
nobitanobi has quit [Remote host closed the connection]
greenbird has quit [Quit: Leaving]
SteenJobs has joined #ruby
szulak_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
renchan has quit [Quit: Leaving...]
tubuliferous has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ddffg has joined #ruby
SteenJobs has quit [Ping timeout: 268 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
lupine has quit [Ping timeout: 258 seconds]
tvw has quit [Remote host closed the connection]
renatosilva has joined #ruby
tubuliferous has joined #ruby
skweeke has joined #ruby
chouhoulis has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
csk has joined #ruby
kirun has joined #ruby
csk has quit [Client Quit]
montanonic has quit [Ping timeout: 240 seconds]
csk has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Ping timeout: 260 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
csk has quit [Client Quit]
csk has joined #ruby
aesthetik has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
aesthetik has quit [Excess Flood]
aesthetik has joined #ruby
aesthetik has quit [Excess Flood]
tjvc has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Quit: WeeChat 1.7]
Rodya_ has quit [Remote host closed the connection]
tjvc has joined #ruby
tjvc has joined #ruby
tjvc has quit [Changing host]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous has quit [Quit: Textual IRC Client: www.textualapp.com]
montanonic has joined #ruby
enterprisey has quit [Remote host closed the connection]
tau has joined #ruby
csk has left #ruby [#ruby]
csk has joined #ruby
DominicBurford has joined #ruby
certainty has joined #ruby
tomphp has joined #ruby
GodFather has joined #ruby
Ruby_Rocks_007 has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
sid_fules has joined #ruby
DominicBurford has left #ruby [#ruby]
zeroDi has quit [Quit: WeeChat 1.7]
sid_fules has quit [Ping timeout: 268 seconds]
marchelzo has joined #ruby
blackwind_123 has joined #ruby
bocaneri has quit [Remote host closed the connection]
cek has joined #ruby
csk has quit [Quit: leaving]
csk has joined #ruby
<cek> looking for a good condition substitute for my ruby dsl proj. if?( cond ){ blk } else? { blk } sounds good but is nasty
<cek> ideas welcome.
mustmodify has left #ruby [#ruby]
koneko has joined #ruby
<marchelzo> cek: sorry?
<marchelzo> what are you asking
pulkit4tech has left #ruby [#ruby]
morfin has quit []
montanonic has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweeke has quit [Ping timeout: 246 seconds]
pulkit4tech has joined #ruby
itsautomatisch has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
<hxegon> cek: It's a bit hard to recommend something when we don't know what the domain is. Could you elaborate?
<cek> looking for if else close substitute. I wish I could overload/redefine them for a given context.
<cek> I don't like how if requires a non brace block
<cek> that ruins my braced dsl methods
skweeke has joined #ruby
<marchelzo> cek: elaborate more
<marchelzo> if doesn't require a non brace block
hotpancakes has quit [Remote host closed the connection]
<marchelzo> if isn't a method. it doesn't require a block at all.
<hxegon> speaking of conditionals; I present to the fine people of #ruby, This piece of code I found. I'll let you make your own conclusions: https://github.com/akretion/ooor/blob/master/lib/ooor/autosave_association.rb#L161-L194
<marchelzo> how does it "ruin" your "braced dsl methods"
<hxegon> cek: it might be best to gist us a psuedocode example for your dsl
gusrub has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
Snickers has joined #ruby
<hxegon> 175-187 is particularly gruesome IMO
<cek> he learned ruby the hard way
<cek> or it was a python to ruby autoconverter
<marchelzo> hxegon: what's so bad about it
__Yiota has joined #ruby
<cek> it starts with an unused local var, and continues down to epilepsy
nullsign has left #ruby ["Leaving"]
renatosilva has quit [Quit: http://renatosilva.net]
<hxegon> marchelzo: 175-187 is a nested conditional that basically checks the same thing for 3 different paths, and all paths do the same thing, which is run what I believe to be an ActiveRecord callback
<hxegon> if autosave ... > if autosave ... < elsif autosave
hotpancakes has joined #ruby
<marchelzo> hxegon: they don't do the same thing though
<marchelzo> if autosave != false is not the same as if autosave
<hxegon> marchelzo: ah I see that now, :create vs :update
hotpancakes has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
SeepingN has joined #ruby
certainty has quit [Ping timeout: 264 seconds]
blackwind_123 has quit [Quit: If you can't laugh at yourself, make fun of other people.]
<hxegon> but it's the same effect because the only thing it does is run if autosave after that right?
nOwz has quit [Quit: WeeChat 1.7]
SteenJobs_ has joined #ruby
<hxegon> cek: Didn't know there were python -> ruby translators, very possible since what this project deals with, OpenERP, is in python
AndBobsYourUncle has joined #ruby
jackjackdripper has joined #ruby
<dminuoso> 20:50 < marchelzo> if autosave != false is not the same as if autosave
<dminuoso> marchelzo: that's what makes it so horrible
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<dminuoso> This means to say: if autosave.nil? ... elsif autosave
marchelzo has quit [Ping timeout: 260 seconds]
<dminuoso> or...
<toretore> that's not the same
xMopxShell has quit [Ping timeout: 256 seconds]
Arpanet69 has joined #ruby
<matthewd> Oh, right, but these bodies have been made much more consistent
<toretore> what they're doing is check if options[:autosave] has been explicitly set to false
<dminuoso> toretore: no they dont
futilegames has quit [Quit: futilegames]
<dminuoso> toretore: they effectively test against nil? implicitly too
Pumukel has joined #ruby
<hxegon> matthewd: what in the...
<dminuoso> toretore: mine.rb is the simplified version and carries the same semantics
<dminuoso> if autosave is false, it will return. if its nil, it will return.
SteenJobs_ has quit [Ping timeout: 246 seconds]
<dminuoso> well okay, it should be next actually
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toretore> you are missing a record.run_callbacks(:update) {false}
<dminuoso> mmm k
<dminuoso> let me fix and refactor more
hutch34 has quit [Ping timeout: 258 seconds]
<dminuoso> toretore: refresh
<allisio> cek: There's simply no way to pass multiple "braced blocks" to a method, and all of the ways to "chain" Procs are fairly gruesome.
<dminuoso> Chaining procs is easy. just turn them into HOF and return new lambdas? :P
Macrobiotic has quit [Quit: Connection closed for inactivity]
Arpanet69 has quit [Ping timeout: 260 seconds]
<hxegon> Trying to use procs too much kind of gets to me. They are like 0.999999 class citizens
ResidentBiscuit has joined #ruby
<ResidentBiscuit> I've got a vagrant box with rvm installed for my vagrant user. I like to have multiple ssh sessions so I can run a rails server, do git things, rake tests, etc all at once. Multiplexers have been not friendly towards conemu. RVM doesn't like to work very well in this situation, though. Each session seems to operate with its own gemset, bundle insta
<ResidentBiscuit> ll/updates will fail on all but the first session. Is there something extra I need to do to make this work?
<ResidentBiscuit> When working on my mac and just splitting iterm, I don't have this issue. I'm guessing it's something to do with how I'm ssh-ing into the vagrant box
jyaworski has quit [Quit: Textual IRC Client: www.textualapp.com]
<allisio> cek: https://eval.in/751681
<allisio> But, really, don't breathe this.
<allisio> You can do away with the parentheses on 2.4+ in case that's relevant.
pawnbox has quit [Remote host closed the connection]
<cek> that was the question, whether new versions have more support in regards to syntax mangling
pawnbox has joined #ruby
<allisio> That you're unironically calling it "mangling" should give you pause.
SteenJobs_ has joined #ruby
chopin has quit [Remote host closed the connection]
bruce_lee has quit [Remote host closed the connection]
gloscombe has joined #ruby
banisterfiend has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
MasterRex has joined #ruby
<MasterRex> Hi folks, can anyone explain how Bundler enforces scripts to use gems installed for a given bundle?
mula has joined #ruby
SteenJobs_ has quit [Ping timeout: 240 seconds]
<MasterRex> I.e. if I `bundle install --gemfile Gemfile` and it puts a .bundle/config in place... what makes any ruby code execute respect that config?
<matthewd> MasterRex: It overrides rubygems internals
<matthewd> So, nothing unless bundler is loaded
<cout> cek: this is how I did something similar: https://github.com/cout/ruby-libjit/blob/master/lib/jit/function.rb
<MasterRex> matthewd: so as long as "bundler" is required within a project that has a sibling .bundle/config or Gemfile.lock.... it'll respect the .bundle/config ?
<MasterRex> I am failing to find any documentation that states how it actually works or what it enforces, just a lot of fluff
<hxegon> ResidentBiscuit: Just speculation, but I imagine most people here use rbenv or chruby, which might be why you aren't getting help.
<matthewd> "how it actually works" is documented in the implementation ¯\_(ツ)_/¯
<cek> cout: yeah, that's some crazy shit. I'd better stick with regular if then else drama
<ResidentBiscuit> hxegon: That could be, I never know which is the flavor of the month
<cout> cek: it's basically the same as what you wanted to do, but with an explicit receiver, so f.if instead of if?
solocshaw has joined #ruby
govg has quit [Ping timeout: 260 seconds]
<hxegon> ResidentBiscuit: If it's not possible (or you just don't want) to switch, I'd suggest taking another crack at getting a multiplexer to work.
itsautomatisch has joined #ruby
govg has joined #ruby
<ResidentBiscuit> It _works_, just lots of graphical bugs with conemu
<ResidentBiscuit> For example, just going into vim totally breaks the status bar and screws up the cursor position in all of the panes somehow
pawnbox has quit [Remote host closed the connection]
<ResidentBiscuit> Maybe I'll just switch to rbenv. I've always found rvm to be easier to use, but only being able to run one shell at a time is silly
skweeke has quit [Ping timeout: 256 seconds]
hotpanca_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
SteenJobs_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
SteenJobs_ has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
tomphp has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
__Yiota has quit [Ping timeout: 246 seconds]
xzhao has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
xzhao has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
SteenJobs_ has joined #ruby
pawnbox has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
nowhere_man has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
tildes_ has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 240 seconds]
rhyselsmore has joined #ruby
certainty has joined #ruby
bg has joined #ruby
nowhere_man has joined #ruby
SteenJobs_ has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
SteenJobs_ has joined #ruby
hutch34 has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has joined #ruby
nebben has joined #ruby
Rodya_ has joined #ruby
ozcanesen has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
SteenJobs_ has quit [Ping timeout: 240 seconds]
anjen has joined #ruby
anjen has quit [Read error: Connection reset by peer]
catphish has joined #ruby
SteenJobs_ has joined #ruby
loechel has joined #ruby
loechel has quit [Client Quit]
Pumukel has quit [Ping timeout: 240 seconds]
tau is now known as alphahunter
SteenJobs_ has quit [Ping timeout: 260 seconds]
szulak has joined #ruby
jenrzzz has joined #ruby
hutch34 has joined #ruby
catpelts has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
SteenJobs_ has joined #ruby
catpelts has joined #ruby
alphahunter is now known as mumm-ra
workmad3 has joined #ruby
mumm-ra is now known as rolls
hutch34 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
chopin has joined #ruby
ujjain has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 260 seconds]
fns has joined #ruby
<fns> anyone running on windows, able to tell me what ENV['PATH'] looks like?
chopin_ has joined #ruby
chopin has quit [Read error: Connection reset by peer]
Limix has joined #ruby
<Limix> Hi all, anyone ever get a “Too many open files” error? Just started randomly happening after about a month of not touching the running app. Wondering if I am not properly closing a file after creating. Do I need to manually close? Currently I am just: File.delete(path)
<fns> ack
<fns> that tells the OS to delete the path
ElDoggo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
skweeke has joined #ruby
<fns> i would still close the file descriptor, though i have not tested if it is necessary
<fns> keep in mind most OS hold files around if there is an open reference
<Limix> I see, thank you that must be it.
certainty has quit [Ping timeout: 256 seconds]
ldnunes has quit [Quit: Leaving]
<Limix> How would you do the following so that it could be closed after: ERB.new(File.open("app/views/emails/#{erb}.erb").read).result(binding)
<Limix> Thinking this is the culprit, how would I close this?
lupine has joined #ruby
<Limix> Is there a way to see how many files are currently open in the ruby process? Also, how could I close all the old connections? Will a restart be the only way?
SteenJobs_ has quit [Ping timeout: 268 seconds]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
<fns> what OS?
<allisio> Limix: Just use `File.read` there.
<fns> i am not sure if what ruby thinks, matters
<fns> unix-y, try lsof
<Limix> allisio: so ERB.new(File.read("app/views/emails/#{erb}.erb")).result(binding) will work?
SteenJobs_ has joined #ruby
postmodern has joined #ruby
<allisio> Limix: `File.read(foo)` is `File.open(foo).read` without the dangling descriptor, yes.
dionysus69 has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
<bg> does ruby have RAII
catphish has left #ruby ["Leaving"]
<bg> lol
<allisio> Sort of.
<bg> does ruby have scope-based resource management, is what i mean
<allisio> Not in the general case.
<Limix> allisio, ok cool, and I’m assuming it will handle cleanup?
<allisio> But, for instance, `File.open` with a block will indeed close the file once the block exits.
<bg> and what if the block raises an exception
<allisio> Bad things.
<allisio> For that there's `ensure`.
<bg> File.ensure?
<allisio> No, it's a keyword that forces the interpreter to execute its associated body.
<bg> like finally?
hxegon has quit [Quit: leaving]
<allisio> Yeah.
hahuang61 has joined #ruby
hxegon has joined #ruby
<allisio> I think `File.open` does actually use it to ensure the file gets closed, though.
<bg> i would hope so
<bg> can i learn ruby on video
<allisio> Not well.
<bg> i love listening to videos
<Limix> allisio But the way I am doing it, outside a block is probably not closing it?
<hxegon> bg: like, by watching youtube videos?
SteenJobs_ has quit [Ping timeout: 264 seconds]
<bg> hxegon: that's exactly tight
<allisio> Limix: Definitely not.
kobain has joined #ruby
<bg> exactly right*
<bg> lol
<hxegon> bg: You can learn some stuff, but practice is the most important thing.
<bg> i mean i just want some video recommendations
<bg> i love listening -- hate practicing
<hxegon> bg: rubytapas is great, not free, but really good
MasterRex has quit [Ping timeout: 240 seconds]
SteenJobs_ has joined #ruby
<hxegon> bg: you have to practice. Figure out something you'd find useful and build it
<bg> i will learn through listening only and see where that gets me
<bg> we'll see where things stand in a month
tildes_ has joined #ruby
<bg> $18/month for some fucking ruby videos?
<hxegon> they are really good.
<bg> "gourmet ruby"
<hxegon> and that's a library of about... 400+? episodes
<bg> i just don't have the means right now
<hxegon> that go in depth, are clear and concise, well produced.
dionysus69 has quit [Ping timeout: 260 seconds]
<hxegon> Understandable, let me see what else I can pull up from my bookmarks...
Lord_of_Life has quit [Excess Flood]
tystr has quit [Ping timeout: 246 seconds]
tyang_ has joined #ruby
synthroid has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
<hxegon> bg: Are you just starting off, do you have any previous programming experience, have you learned the basics of ruby syntax yet?
synthroid has quit [Client Quit]
nowhere_man has joined #ruby
<bg> i'm very experienced
<bg> and i know the basics
<Limix> fns, thank you. When I run lsof, I get about 2000+ of:
<Limix> util.rb:2 32436 4504 root txt unknown /proc/32436/task/4504/exe (readlink: Permission denied)
<Limix> util.rb:2 32436 4504 root NOFD /proc/32436/task/4504/fd (opendir: Permission denied)
<Limix> util.rb:2 32436 4579 root cwd unknown /proc/32436/task/4579/cwd (readlink: Permission denied)
<Limix> util.rb:2 32436 4579 root rtd unknown /proc/32436/task/4579/root (readlink: Permission denied)
<Limix> Any idea what that stuff could be?
SteenJobs_ has quit [Ping timeout: 260 seconds]
Lord_of_Life has joined #ruby
mula has quit [Remote host closed the connection]
<allisio> Limix: You can filter its output to just your Ruby process's PID.
tyang__ has quit [Ping timeout: 268 seconds]
<allisio> And here's a demonstration of if and when Files get closed automagically: https://eval.in/751695
SteenJobs_ has joined #ruby
<Limix> allisio, seems like there are a bunch thorugh:
<Limix> ruby 1347 nginx cwd unknown /proc/1347/cwd (readlink: Permission denied)
<Limix> ruby 1347 nginx rtd unknown /proc/1347/root (readlink: Permission denied)
<Limix> ruby 1347 nginx txt unknown /proc/1347/exe (readlink: Permission denied)
<Limix> ruby 1347 nginx NOFD /proc/1347/fd (opendir: Permission denied)
<Limix> ruby-time 1347 1350 nginx cwd unknown /proc/1347/task/1350/cwd (readlink: Permission denied)
<allisio> Limix: Stop.
<Limix> ruby-time 1347 1350 nginx rtd unknown /proc/1347/task/1350/root (readlink: Permission denied)
<Limix> ruby-time 1347 1350 nginx txt unknown /proc/1347/task/1350/exe (readlink: Permission denied)
<Limix> ruby-time 1347 1350 nginx NOFD /proc/1347/task/1350/fd (opendir: Permission denied)
<Limix> utils.rb: 1347 1352 nginx cwd unknown /proc/1347/task/1352/cwd (readlink: Permission denied)
<bg> lol
<Limix> utils.rb: 1347 1352 nginx rtd unknown /proc/1347/task/1352/root (readlink: Permission denied)
<allisio> What a fucking pleb.
<Limix> utils.rb: 1347 1352 nginx txt unknown /proc/1347/task/1352/exe (readlink: Permission denied)
<Limix> utils.rb: 1347 1352 nginx NOFD /proc/1347/task/1352/fd (opendir: Permission denied)
<Limix> utils.rb: 1347 1353 nginx cwd unknown /proc/1347/task/1353/cwd (readlink: Permission denied)
<Limix> utils.rb: 1347 1353 nginx rtd unknown /proc/1347/task/1353/root (readlink: Permission denied)
<Limix> utils.rb: 1347 1353 nginx txt unknown /proc/1347/task/1353/exe (readlink: Permission denied)
<Limix> utils.rb: 1347 1353 nginx NOFD /proc/1347/task/1353/fd (opendir: Permission denied)
<Limix> ruby 1355 nginx cwd unknown /proc/1355/cwd (readlink: Permission denied)
<Limix> ruby 1355 nginx rtd unknown /proc/1355/root (readlink: Permission denied)
<Limix> ruby 1355 nginx txt unknown /proc/1355/exe (readlink: Permission denied)
<Limix> ruby 1355 nginx NOFD /proc/1355/fd (opendir: Permission denied)
<Limix> sorry
<Limix> whats a pleb
<havenwood> !mute Limix
<bg> hahahahaha
<havenwood> !unmute Limix
cschneid_ has quit [Remote host closed the connection]
<dminuoso> havenwood: I wanted to see all 2000+ files.
<hxegon> Don't paste a bunch of stuff into an IRC channel plz and thanks Limix
JeanCarloMachado has joined #ruby
tyang_ has quit [Ping timeout: 268 seconds]
zeroDi has joined #ruby
<hxegon> hold on bg, still looking
<bg> okie :3
Derperperd has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
SteenJobs_ has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
enterprisey has joined #ruby
twhitney11 has quit []
<Limix> Sorry guys, I didn’t mean that
s2013 has joined #ruby
<hxegon> bg: Can't see much in the way of series besides railscast, but there are a TON of ruby conf talks
<bg> Limix i still <3 u
<bg> good idea hxegon
<hxegon> bg: I'd suggest Sandi Metz's talks, which I'll link in a second
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
<Limix> But thanks for the help, will keep working on a cleanup solution, take care all
<allisio> Limix: I was using definition 2.1, if that's any consolation.
<hxegon> bg: Actually searching for that I just found a video series going over her book, Practical Object-Oriented Design in Ruby: https://www.youtube.com/watch?v=TGi0vT24Ens&list=PLECibIxMfd0dVOFbn7cbtvuiatC0XvINP
djbkd has quit [Ping timeout: 268 seconds]
<Limix> 1)one who's inferior intelligence results in them making a complete titface out of themselves in public
SteenJobs_ has joined #ruby
<hxegon> and if you search youtube for "sandi metz ruby" I see... about 4 hours of conf talks from her
<bg> very very nice
<bg> thank you
tildes_ has quit [Ping timeout: 260 seconds]
<bg> i will be a ruby god in short order
<hxegon> no problem. her book is really good too.
byte512 has quit [Ping timeout: 264 seconds]
moei has quit [Quit: Leaving...]
moei has joined #ruby
SteenJobs_ has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<fns> limix lol please read man page or --help etc before getting all confused :)
<fns> i think it is -p PID but not certain without checking
SeepingN has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
SeepingN has joined #ruby
mula has joined #ruby
Ruby_Rocks_007 has joined #ruby
Ruby_Rocks_007 has quit [Client Quit]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
rolls has quit [Remote host closed the connection]
bg has quit [Remote host closed the connection]
bg has joined #ruby
mula has quit [Remote host closed the connection]
pawnbox has joined #ruby
Derperperd has quit [Quit: WeeChat 1.5]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
SteenJobs_ has joined #ruby
tvw has joined #ruby
^Denis has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 258 seconds]
koneko has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
^Denis has joined #ruby
^Denis has quit [Client Quit]
SteenJobs_ has quit [Ping timeout: 256 seconds]
SteenJobs_ has joined #ruby
fns has left #ruby [#ruby]
__Yiota has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 1.5]
__Yiota has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
ramortegui has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
ddffg has quit [Quit: Leaving]
SeepingN has quit [Read error: Connection reset by peer]
SeepingN_ has joined #ruby
bheesham has joined #ruby
VladGh has quit [Remote host closed the connection]
mula has joined #ruby
VladGh has joined #ruby
koneko has joined #ruby
Snickers has quit [Quit: Snickers]
SteenJobs_ has quit [Ping timeout: 256 seconds]
Ruby_Rocks_007 has joined #ruby
ule has quit [Ping timeout: 252 seconds]
SteenJobs_ has joined #ruby
ule has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
SteenJobs_ has quit [Ping timeout: 256 seconds]
SteenJobs_ has joined #ruby
marxarelli is now known as marxarelli|afk
sid_fules has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
SteenJobs_ has quit [Ping timeout: 256 seconds]
SteenJobs_ has joined #ruby
<graft> ok i'm trying to write operators for my Vector class, I want to be able to do Vector / Vector and Numeric / Vector and Vector / Numeric
<graft> for the first and last i can just use def /(vec_or_number), but the latter requires me to patch Numeric
enterprisey has quit [Remote host closed the connection]
<graft> instead we're supposed to override 'coerce' in Vector, which will result in Numeric calling Vector#/(Numeric) if it can't figure out how to deal with Vector
yqt has quit [Ping timeout: 260 seconds]
<graft> but... division isn't commutative, so this won't work?
hxegon is now known as hxegon_afk
<graft> any idee how i can do 3 / vector and vector / 3?
sneakers has joined #ruby
SteenJobs_ has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
Limix has quit [Quit: Limix]
SteenJobs_ has joined #ruby
fullstack has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has joined #ruby
SteenJobs_ has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
koneko has quit [Quit: Leaving]
SteenJobs has joined #ruby
mula has quit [Remote host closed the connection]
hutch34 has joined #ruby
pulkit4tech has quit [Quit: Connection closed for inactivity]
hooper has quit [Quit: Leaving.]
hutch34 has quit [Ping timeout: 268 seconds]
gloscombe has quit [Quit: gloscombe]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Quit: WeeChat 1.7]
zeroDi has quit [Quit: WeeChat 1.7]
gilest has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
certainty has joined #ruby
samdvr has joined #ruby
toretore has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
kirun has quit [Quit: Konversation terminated!]
SteenJobs_ has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
sid_fules has quit [Remote host closed the connection]
statelesscode has quit [Quit: statelesscode]
samdvr has quit [Quit: samdvr]
pawnbox has joined #ruby
jenrzzz_ has joined #ruby
SteenJobs_ has quit [Ping timeout: 268 seconds]
biberu has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
itsautomatisch has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
jenrzzz_ has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
<allisio> graft: Are you sure you have a well-defined definition of what `3 / Vector` should do?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
SteenJobs_ has joined #ruby
bheesham has quit [Quit: leaving]
cdg has quit [Remote host closed the connection]
gilest has quit [Quit: Leaving...]
dviola has joined #ruby
<allisio> In any event, `def coerce other; [Vector.new(other, self]; end` is probably the sanest thing you can do in that situation.
<allisio> *(other), obviously.
SteenJobs_ has quit [Ping timeout: 256 seconds]
hotpanca_ has quit [Remote host closed the connection]
baked__beans has quit [Ping timeout: 240 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
ResidentBiscuit has joined #ruby
sepp2k has quit [Quit: Leaving.]
xMopxShell has joined #ruby
certainty has quit [Ping timeout: 268 seconds]
minimalism has joined #ruby
charliesome has joined #ruby
bg has quit [Remote host closed the connection]