havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
TvL2386 has joined #ruby
iNs_ has quit [Remote host closed the connection]
iNs has joined #ruby
mossplix has quit [Ping timeout: 250 seconds]
weird_error has quit [Quit: weird_error]
bradleyprice has joined #ruby
mossplix has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
mossplix has quit [Ping timeout: 268 seconds]
txdv has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
Xiti has quit [Quit: Xiti]
chalkmonster has joined #ruby
meinside has joined #ruby
bradleyprice has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
CableNinja_ has quit [Read error: Connection reset by peer]
CableNinja_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 265 seconds]
Tinto_Brass has quit [Quit: Bye Bye]
SeepingN has quit [Ping timeout: 268 seconds]
mossplix has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
AJA4351 has joined #ruby
bradleyprice has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
weird_error has joined #ruby
Xiti has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
mossplix has joined #ruby
drincruz_ has joined #ruby
mossplix has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
mossplix has joined #ruby
weird_error has quit [Quit: weird_error]
drincruz_ has quit [Ping timeout: 268 seconds]
mossplix has quit [Ping timeout: 268 seconds]
tdy1 has quit [Ping timeout: 250 seconds]
Technodrome has joined #ruby
mossplix has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
mossplix has quit [Ping timeout: 250 seconds]
bambanx has quit [Ping timeout: 268 seconds]
phI||Ip_Alternat has quit [Quit: ZNC 1.7.4 - https://znc.in]
phI||Ip has joined #ruby
CableNinja_ has quit [Read error: Connection reset by peer]
CableNinja_ has joined #ruby
drincruz_ has joined #ruby
dasher00 has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
<sagax> hi all!
Swyper has joined #ruby
<sagax> what different between do notation and {} ?
<sagax> where i can read about this?
<also_uplime> not much
<also_uplime> { } can be used in a one liner
<also_uplime> [1,2,3,4].map { |x| x + 3 }.sum
mossplix has quit [Ping timeout: 268 seconds]
<baweaver> So can do; end if you try hard enough and believe in the power of love
<also_uplime> oh, i knew i was forgetting about love
<baweaver> precedence mostly
<baweaver> &>> (1..).map do |x| x + 2 end.sum
<rubydoc> stderr: playpen: application terminated abnormally with signal 31 (Bad system call) (https://carc.in/#/r/7qz6)
<also_uplime> oh, til
<baweaver> &>> (1..20).map do |x| x + 2 end.sum
<rubydoc> # => 250 (https://carc.in/#/r/7qz7)
<baweaver> Looks much uglier
<baweaver> Now here's the nit
mossplix has joined #ruby
<baweaver> &>> (1..20).reduce 0 do |acc, x| acc + x end
<rubydoc> # => 210 (https://carc.in/#/r/7qz8)
<baweaver> &>> (1..20).reduce 0 { |acc, x| acc + x }
<rubydoc> stderr: -e:4: syntax error, unexpected '{', expecting end... check link for more (https://carc.in/#/r/7qz9)
<baweaver> Confused with kwargs I suppose it was
<baweaver> &>> (1..20).reduce(0) { |acc, x| acc + x }
<rubydoc> # => 210 (https://carc.in/#/r/7qza)
<baweaver> Same with multiline brackets by the way
<also_uplime> ah, so basically listen to baweaver not me
<also_uplime> although semantically i don't believe there are any differnces right?
<baweaver> I mean you're essentially right
<baweaver> "not much" difference
<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
<phaul> self.class.default[:reply_to]
bradleyprice has quit [Ping timeout: 265 seconds]
<jantje> phaul: sorry,I'm new to Ruby in general. I'm passing in a new parameter 'reply_to' here: https://gitlab.com/gitlab-org/gitlab-foss/blob/master/app/mailers/emails/pipelines.rb#L24 , I'm sometimes passing in 'nil', but when I do that it doesn't take the default (set https://gitlab.com/gitlab-org/gitlab-foss/blob/master/app/mailers/base_mailer.rb#L13)
conta1 has quit [Ping timeout: 276 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
bradleyprice has joined #ruby
Intelo has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
<phaul> jantje: no problem, no need to apologize.
<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
bradleyprice has joined #ruby
<phaul> &>> def foo(kw: 'blah'); " >> #{kw} << "; end; opts = {kw: 'not blah'}; foo(opts)
<rubydoc> # => " >> not blah << " (https://carc.in/#/r/7r1c)
bradleyprice has quit [Ping timeout: 245 seconds]
chalkmonster has joined #ruby
bradleyprice has joined #ruby
jeremycw has joined #ruby
NL3limin4t0r_ark is now known as NL3limin4t0r
<NL3limin4t0r> jantje: If you wan't to leave the param out alltogether you can build the parameters first and remove `nil` values.
bradleyprice has quit [Ping timeout: 245 seconds]
jeremycw has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> `options = { bcc: recipients, subject: pipeline_subject(statue), skip_premailer: true, reply_to: some_var }`
<NL3limin4t0r> then `options.compact!`
<jantje> Ah. cool!
<NL3limin4t0r> &ri Hash#compact!
<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
Tinto_Brass has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
dbz_ has quit [Remote host closed the connection]
poontangmessiah has joined #ruby
teclator has joined #ruby
brendan- has joined #ruby
mn3m has quit [Ping timeout: 246 seconds]
jeremycw has quit [Ping timeout: 240 seconds]
jeremycw has joined #ruby
hagabaka has joined #ruby
_mak has joined #ruby
conta2 has quit [Quit: conta2]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus70 is now known as dionysus69
NL3limin4t0r is now known as NL3limin4t0r_afk
Intelo has joined #ruby
howdoi has joined #ruby
blackmesa1 has joined #ruby
queip has quit [Ping timeout: 250 seconds]
queip_ has joined #ruby
queip_ is now known as queip
blackmesa1 has quit [Ping timeout: 246 seconds]
gix has joined #ruby
blackmesa1 has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa1 has quit [Ping timeout: 245 seconds]
salinasc has quit [Ping timeout: 276 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
queip has quit [Ping timeout: 268 seconds]
Intelo has quit [Ping timeout: 265 seconds]
queip has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
<also_uplime> CableNinja: \o/
sagax has quit [Remote host closed the connection]
queip_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
sagax has joined #ruby
ravenousmoose has joined #ruby
VeryBewitching has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
blackmesa1 has joined #ruby
queip has quit [Ping timeout: 250 seconds]
queip has joined #ruby
bambanx_ has quit [Quit: Leaving]
grilix_ has quit [Ping timeout: 240 seconds]
bambanx has joined #ruby
impermanence has quit [Remote host closed the connection]
absolutejam4 has joined #ruby
hiroaki has joined #ruby
hightower3 has quit [Ping timeout: 268 seconds]
brendan- has quit [Ping timeout: 264 seconds]
brendan- has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
wildtrees has quit [Ping timeout: 240 seconds]
Jonopoly has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
Rapture has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
code_zombie has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbz_ has joined #ruby
AJA4350 has joined #ruby
queip has quit [Ping timeout: 240 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
queip has joined #ruby
DigitallyBorn has joined #ruby
Eiam has quit [Quit: Textual IRC Client: www.textualapp.com]
sankamur has joined #ruby
Tinto_Brass has quit [Quit: Bye Bye]
Tinto_Brass has joined #ruby
DigitallyBorn has quit [Quit: WeeChat 1.9.1]
<jhass> $ ruby -E UTF-8 -e 'puts "❤"'
DigitallyBorn has joined #ruby
<jhass> -e:1: invalid multibyte char (US-ASCII)
<jhass> why ruby, why
banisterfiend has joined #ruby
<havenwood> #>> ❤
<havenwood> Works on my machine!
AJA4351 has joined #ruby
<jhass> I guess the reproducible example would have an LC_ALL=C in front
tdy1 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
queip has quit [Ping timeout: 240 seconds]
dbz_ has quit [Remote host closed the connection]
<bhaak> env LC_ALL=C ruby -e 'puts "\u2764"'
<bhaak> that worksforme
queip_ has joined #ruby
queip_ is now known as queip
<bhaak> might be the terminal messing up the character? although that would be a confusing error message.
reyfi9e has joined #ruby
<jhass> maybe LANG=C or both
dbz_ has joined #ruby
<jhass> environment I have the issue in has no env vars set at all beyond PATH, HOME, USER
<bhaak> IIRC LANG shouldn't affect that
<jhass> 🤷
<bhaak> what does "locale" say?
<jhass> C for everything
dbz__ has joined #ruby
<jhass> well, LC_ALL actually is empty but same if I set LC_ALL=C explicitly
<jhass> in any case idk why it doesn't respect -E
<jhass> putting # encoding: magic comment in front also fixes it
<jhass> so why not -E
dbz_ has quit [Ping timeout: 268 seconds]
<bhaak> echo 'puts "❤"' | env LC_ALL=C ruby -E UTF-8 <-- doesn't work either
jcalla has quit [Quit: Leaving]
snickers has joined #ruby
lightstalker has joined #ruby
dbz__ has quit [Remote host closed the connection]
dbz_ has joined #ruby
baojg has quit [Ping timeout: 240 seconds]
jeremycw has quit [Ping timeout: 265 seconds]
baojg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rapha has joined #ruby
<rapha> hi
<havenwood> rapha: hi
<also_uplime> havenwood: hi
hiroaki has quit [Ping timeout: 245 seconds]
<rapha> havenwood: wait, aren't you also often around during my mornings?
r3m is now known as r3m|
r3m| is now known as r3m
jeremycw has joined #ruby
<rapha> trying to understand the Psych mid level API
<rapha> this is my test input, test code, test output atm: https://gist.github.com/sixtyfive/37c58aff39ceccd591ed2cc0bea0cfe0
<havenwood> rapha: I don't sleep.
<rapha> i understand why the values would show up as Scalars ... but why are the keys Scalars, too?
<rapha> havenwood: oh, where did i read that before? Elon Musk's Twitter account perhaps? :P
<havenwood> Spoiler, I'm not Elon Musk.
<rapha> i guess my question is: walking through that tree of nodes, how do i know what value belongs to what key?
<havenwood> rapha: In a meeting but I'll look after if nobody beats me to it.
<rapha> havenwood: It's not urgent. Just playing around with it atm. It's possible I fall asleep though, then I'll read in the morning :)
dionysus69 has quit [Quit: dionysus69]
Deesl has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
Deesl is now known as bsdboy
bsdboy has quit [Client Quit]
AJA4350 has quit [Ping timeout: 250 seconds]
edwardly has quit [Read error: Connection reset by peer]
VeryBewitching has quit [Quit: Konversation terminated!]
schne1der has quit [Ping timeout: 250 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
brool has joined #ruby
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy1 has joined #ruby
blackmesa1 has quit [Ping timeout: 250 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
CableNinja_ has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
dbz__ has joined #ruby
CableNinja has quit [Ping timeout: 245 seconds]
dbugger has quit [Quit: Leaving]
__CableNinja has joined #ruby
__CableNinja is now known as CableNinja
dbz_ has quit [Ping timeout: 240 seconds]
CableNinja_ has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
salinasc has joined #ruby
Tinto_Brass has quit [Quit: Bye Bye]
orbyt_ has joined #ruby
Fernando-Basso has joined #ruby
Mia has quit [Read error: Connection reset by peer]
dbz__ has quit [Remote host closed the connection]
jeremycw has quit [Ping timeout: 268 seconds]
banisterfiend has joined #ruby
dbz_ has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 250 seconds]
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
absolutejam4 has quit [Ping timeout: 268 seconds]
akemhp_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp has quit [Ping timeout: 240 seconds]
dbz__ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
titanbiscuit has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
titanbiscuit has joined #ruby
dbz_ has quit [Ping timeout: 240 seconds]
dbz__ has quit [Remote host closed the connection]
dbz_ has joined #ruby
iAmDecim has quit [Quit: WeeChat 1.9]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
CableNinja has quit [Ping timeout: 250 seconds]
Tinto_Brass has joined #ruby
Esa_ has quit [Ping timeout: 265 seconds]
also_uplime is now known as Frankenstein
cthulchu has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
dbugger has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
queip has quit [Ping timeout: 250 seconds]
queip_ has joined #ruby
queip_ is now known as queip
orbyt_ has joined #ruby
witlesswonder has joined #ruby
tdy1 has quit [Quit: WeeChat 1.9.1]
salinasc has quit [Remote host closed the connection]