<baweaver>
99% of the time they're interchangeable
<baweaver>
The parenthesis bit is the only case exception
CableNinja_ has quit [Ping timeout: 240 seconds]
<also_uplime>
i normally use parens in those cases anyways
<baweaver>
Yep. Only Seattle style lovers get bit by that
* baweaver
points to havenwood
mossplix has quit [Ping timeout: 250 seconds]
baojg has joined #ruby
ravenousmoose has joined #ruby
Fusl has quit [Excess Flood]
Fusl has joined #ruby
ravenousmoose has quit [Ping timeout: 264 seconds]
hightower3 has joined #ruby
mossplix has joined #ruby
hightower2 has quit [Ping timeout: 264 seconds]
tdy1 has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
mossplix has quit [Ping timeout: 240 seconds]
Nicmavr has joined #ruby
duderonomy has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
dbz_ has joined #ruby
dbz_ has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
mossplix has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
ellcs has joined #ruby
mossplix has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
mossplix has joined #ruby
mossplix has quit [Ping timeout: 250 seconds]
bambanx has joined #ruby
bambanx has quit [Ping timeout: 250 seconds]
grilix_ has joined #ruby
gix has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
bradleyprice has quit [Remote host closed the connection]
brool has quit [Ping timeout: 245 seconds]
witlesswonder has quit [Quit: Leaving]
galaxie has quit [Remote host closed the connection]
grilix_ has quit [Ping timeout: 240 seconds]
galaxie has joined #ruby
AJA4350 has quit [Quit: AJA4350]
DTZUZU has quit [Quit: WeeChat 2.2]
DTZUZU has joined #ruby
ur5us has quit [Remote host closed the connection]
DTZUZO_ has quit [Quit: WeeChat 2.0]
DTZUZO has joined #ruby
salinasc has quit [Ping timeout: 240 seconds]
shakes has joined #ruby
cliluw has quit [Ping timeout: 265 seconds]
cliluw has joined #ruby
mossplix has joined #ruby
witlesswonder has joined #ruby
mossplix has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradleyprice has joined #ruby
shakes has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 250 seconds]
cthulchu has quit [Ping timeout: 250 seconds]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
mossplix has joined #ruby
ravenousmoose has joined #ruby
mossplix has quit [Ping timeout: 250 seconds]
absolutejam4 has joined #ruby
bradleyprice has joined #ruby
ravenousmoose has quit [Ping timeout: 276 seconds]
sauvin has joined #ruby
bijan_ has joined #ruby
bradleyprice has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
blackmesa has joined #ruby
mig-hub has joined #ruby
bradleyprice has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
<mig-hub>
Hello I was exploring implementation of a DCI architecture of some sort. I have read on many blogs that that using `extend` on a single object has a huge performance hit and other means are better. I have done a quick benchmark with direct call, a version using simple delegator and one with `extend`. Surprisingly the simple delagator is way slower than the direct version and the `extend` is actually decently close to direct calls. Am I
<mig-hub>
missing something here? Or did the performance of `extend` was addressed in the meantime (I run Ruby 2.6.3)?
bradleyprice has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<mig-hub>
To be honest, it does not surprise me since simple delegator probably implies indirection, but it does not align with what I have read.
blackmesa1 has quit [Ping timeout: 246 seconds]
<mig-hub>
Adding a "role" feels like decorator pattern to me and most examples of decorators use `extend`.
Mia has quit [Read error: Connection reset by peer]
absolutejam4 has quit [Ping timeout: 250 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bijan_ has quit []
morozovm has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
absolutejam4 has joined #ruby
tdy1 has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Ping timeout: 246 seconds]
edwardly has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
Mia has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
andikr has joined #ruby
suukim has joined #ruby
r29v has joined #ruby
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
absolutejam4 has quit [Ping timeout: 265 seconds]
mossplix has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
schne1der has joined #ruby
bradleyprice has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
envex has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
mossplix has joined #ruby
r29v has quit [Quit: r29v]
bradleyprice has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
bradleyprice has joined #ruby
duderonomy has quit [Ping timeout: 250 seconds]
ravenousmoose has joined #ruby
bradleyprice has quit [Ping timeout: 246 seconds]
absolutejam4 has joined #ruby
ravenousmoose has quit [Ping timeout: 245 seconds]
blackmesa1 has joined #ruby
bradleyprice has joined #ruby
riceandbeans has quit [Read error: Connection reset by peer]
phaul has joined #ruby
riceandbeans has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
TomyWork has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
Intelo has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Ping timeout: 246 seconds]
mossplix has quit [Remote host closed the connection]
morozovm has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
Intelo has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
ellcs1 has joined #ruby
mikecmpbll has joined #ruby
bradleyprice has joined #ruby
conta1 has joined #ruby
bradleyprice has quit [Ping timeout: 246 seconds]
blackmesa1 has quit [Ping timeout: 265 seconds]
blackmesa1 has joined #ruby
bogn has joined #ruby
jeremycw has joined #ruby
mn3m has quit [Ping timeout: 268 seconds]
bradleyprice has joined #ruby
mig-hub has quit [Ping timeout: 246 seconds]
mossplix has joined #ruby
jeremycw has quit [Ping timeout: 245 seconds]
dasher00 has joined #ruby
bradleyprice has quit [Ping timeout: 246 seconds]
meinside has quit [Quit: Connection closed for inactivity]
bradleyprice has joined #ruby
bogn has quit [Quit: Konversation terminated!]
bradleyprice has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
absolutejam4 has quit [Ping timeout: 264 seconds]
mn3m has joined #ruby
bradleyprice has quit [Ping timeout: 246 seconds]
mig-hub has joined #ruby
Intelo has quit [Ping timeout: 250 seconds]
absolutejam4 has joined #ruby
tdy1 has quit [Ping timeout: 268 seconds]
mig-hub has quit [Ping timeout: 276 seconds]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
jdeen has joined #ruby
jantje has joined #ruby
bradleyprice has joined #ruby
<jantje>
hi! I have a class BaseMailer < ActionMailer::Base that provides a default reply_to: proc { ...} , How can I get the default value when I call(reply_to: nil) , I think I need to leave out the parameter alltogether when it's nil, but I'm not sure how. Do I make a map and add the parameter to it when != nil ?
andy__ has joined #ruby
bradleyprice has quit [Ping timeout: 268 seconds]
andy__ has quit [Client Quit]
bradleyprice has joined #ruby
<phaul>
jantje: can you try reprhasing the question? I don't understand what you are trying. maybe post some code
<phaul>
there is a rails channel as well, you might be better off asking there
<phaul>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
weird_error has joined #ruby
<phaul>
you can access the class method default from the instance by calling it explicitly on the class (if that's what you want). so in an instance method you can do self.class.default
<jantje>
phaul: Ok, so I get the idea. I now have reply_to: reply_to.presence || self.class.default[:reply_to] , but I see that it passes the reference to the proc instead of executing it. Do I need to run call on it?
<jantje>
(so the header now looks like Reply-To: #<Proc:0x00007f796ae2bea0@.../app/mailers/base_mailer.rb:13 )
<phaul>
you could call #call on it, if it responds to call, but the code is not nice
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
<phaul>
can you not have a branch at the place of the call instead and have two different calls? I think it would work better
<jantje>
Yes, maybe. Or dynamically build up the call arguments?
<phaul>
that's an other option. you can splat a hash into keyword arguments too, so h = {reply_to: 'stuff'} ; mail(h) works
<NL3limin4t0r>
then pass the options as parameter to `mail`
<jantje>
It work! Eureka! :-)
andikr has quit [Ping timeout: 240 seconds]
<jantje>
*s
<jantje>
(can I also do mail(options.compact!) or does that messes with evaluation order or something)
<NL3limin4t0r>
Keep in mind that you shouldn't pass `mail(options.compact!)` directly since it can return `nil` if no changes are made.
andikr has joined #ruby
<jantje>
Perfect. Thanks.
<NL3limin4t0r>
If you want to do that you should use #compact instead
<NL3limin4t0r>
`mail(options.compact)` always returns a hash, but doesn't mutate self
<NL3limin4t0r>
s/self/the options/
ropeney has quit [Ping timeout: 276 seconds]
Swyper has joined #ruby
yann-kaelig has joined #ruby
andikr has quit [Ping timeout: 250 seconds]
Tinto_Brass has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
fig-le-deunch has joined #ruby
andikr has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
_whitelogger has joined #ruby
gnufied has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
phaul has quit [Quit: :wq]
witlesswonder_ has joined #ruby
witlesswonder_ has quit [Client Quit]
witlesswonder has quit [Remote host closed the connection]
chalkmonster has joined #ruby
cnsvc_ has quit [Remote host closed the connection]
andikr has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
cnsvc_ has joined #ruby
mossplix has quit [Remote host closed the connection]
blackmesa1 has quit [Ping timeout: 265 seconds]
weird_error has quit [Quit: weird_error]
meinside has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus70 is now known as dionysus69
mossplix has joined #ruby
dbugger has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
bradleyprice has joined #ruby
GodFather has joined #ruby
andikr has joined #ruby
chalkmonster has joined #ruby
bradleyprice has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
blackmesa1 has joined #ruby
iAmDecim has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
chalkmonster has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
chalkmonster has quit [Remote host closed the connection]
chalkmonster has joined #ruby
bradleyprice has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Axy has quit [Ping timeout: 268 seconds]
Axy has joined #ruby
andikr has quit [Ping timeout: 250 seconds]
Mia has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
schne1der has quit [Read error: Connection reset by peer]
schne1der has joined #ruby
poontangmessiah has joined #ruby
weird_error has joined #ruby
weird_error has quit [Client Quit]
lucasb has joined #ruby
Swyper has quit [Remote host closed the connection]
Jonopoly has joined #ruby
andikr has joined #ruby
brendan- has joined #ruby
drincruz_ has quit [Ping timeout: 250 seconds]
elepedus has joined #ruby
poontangmessiah_ has joined #ruby
salinasc has joined #ruby
Intelo has quit [Ping timeout: 240 seconds]
poontangmessiah has quit [Ping timeout: 276 seconds]
Tinto_Brass has quit [Quit: Bye Bye]
akemhp_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
fmccann has joined #ruby
akemhp has quit [Ping timeout: 250 seconds]
Nicmavr has joined #ruby
ravenousmoose has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
snk has quit [Quit: WeeChat 1.9.1]
vondruch has quit [Ping timeout: 240 seconds]
suukim has quit [Quit: Konversation terminated!]
andikr has quit [Ping timeout: 268 seconds]
grilix_ has joined #ruby
phaul has joined #ruby
poontangmessiah_ has quit [Ping timeout: 268 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
bradleyprice has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
mossplix has quit [Remote host closed the connection]
Intelo has joined #ruby
greengriminal has joined #ruby
mossplix has joined #ruby
cd has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
AJA4350 has quit [Remote host closed the connection]
mossplix has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 250 seconds]
Tinto_Brass has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
conta2 has joined #ruby
snk has joined #ruby
drincruz_ has joined #ruby
akemhp has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
akemhp_ has quit [Ping timeout: 240 seconds]
akemhp_ has joined #ruby
akem__ has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
akemhp_ has quit [Ping timeout: 240 seconds]
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
akem__ has joined #ruby
Technodrome has joined #ruby
Intelo has quit [Remote host closed the connection]
akemhp_ has quit [Ping timeout: 268 seconds]
mossplix has joined #ruby
jeremycw has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
greengriminal has joined #ruby
duderonomy has joined #ruby
mossplix has quit [Ping timeout: 240 seconds]
akemhp_ has joined #ruby
salinasc has quit [Ping timeout: 268 seconds]
duderonomy has quit [Ping timeout: 265 seconds]
greengriminal has quit [Quit: Leaving]
akem__ has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
akemhp_ has quit [Ping timeout: 264 seconds]
bradleyprice has joined #ruby
absolutejam4 has quit [Ping timeout: 268 seconds]
absolutejam4 has joined #ruby
catdude has joined #ruby
conta2 has quit [Quit: conta2]
troulouliou_div2 has joined #ruby
queip has joined #ruby
Ai9zO5AP has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
conta2 has joined #ruby
andikr has joined #ruby
Tinto_Brass has quit [Quit: Bye Bye]
Ai9zO5AP has quit [Ping timeout: 240 seconds]
<catdude>
I'm trying to transition from Python to Ruby. My current project has to interface to Yum functionality. Does Ruby have something like Python's yum module?
fanta1 has joined #ruby
salinasc has joined #ruby
impermanence has joined #ruby
Tinto_Brass has joined #ruby
<al2o3-cr>
catdude: not to my knowledge
<catdude>
Bummer! Thanks.
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
Tinto_Brass has quit [Quit: Bye Bye]
absolutejam4 has quit [Ping timeout: 250 seconds]
fanta1 has quit [Quit: fanta1]
salinasc has quit [Ping timeout: 240 seconds]
salinasc has joined #ruby
<al2o3-cr>
catdude: np
duderonomy has quit [Ping timeout: 265 seconds]
Esa_ has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
Azure|dc has joined #ruby
bradleyprice has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
Azure has quit [Ping timeout: 240 seconds]
Jonopoly has quit [Ping timeout: 268 seconds]
SeepingN has joined #ruby
catdude has quit [Quit: Leaving]
bradleyprice has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
salinasc has quit [Ping timeout: 265 seconds]
orbyt_ has joined #ruby
salinasc has joined #ruby
elepedus has quit [Quit: elepedus]
mikecmpbll has quit [Quit: inabit. zz.]
TomyWork has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
jacksoow has quit [Read error: Connection reset by peer]
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
dbz_ has joined #ruby
jacksoow has joined #ruby
akemhp has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
bradleyprice has joined #ruby
wildtrees has joined #ruby
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
bradleyprice has quit [Ping timeout: 246 seconds]
cthulchu has joined #ruby
bambanx has joined #ruby
bradleyprice has joined #ruby
mn3m has quit [Read error: Connection reset by peer]
iNs_ has joined #ruby
mn3m has joined #ruby
bambanx_ has joined #ruby
iNs has quit [Ping timeout: 260 seconds]
bambanx has quit [Ping timeout: 268 seconds]
CableNinja has joined #ruby
_mak has quit [Ping timeout: 240 seconds]
hagabaka has quit [Ping timeout: 245 seconds]
<wildtrees>
if I am only accessing one variable at a time across threads, can I skip mutexes? it seems to be working atm just fine without mutexes, but there is low thread contention I believe, is this because of the GIL?
<CableNinja>
also_uplime, leftylink thanks for the info yesterday, I didnt see it until this morning, but that worked, and, like I said, I was doin something dumb lol