havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 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!
agent_white has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has quit [Quit: Connection closed for inactivity]
WA9ACE has quit [*.net *.split]
mahlon has quit [*.net *.split]
claw has quit [*.net *.split]
cjkinni has quit [*.net *.split]
rhythmx has quit [*.net *.split]
pabs has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
pwillard has quit [*.net *.split]
Liothen has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
havenwood has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
aspiers has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
salasrod has quit [*.net *.split]
pitastrudl has quit [*.net *.split]
gmcintire has quit [*.net *.split]
jnix has quit [*.net *.split]
voker57 has quit [*.net *.split]
legit has quit [*.net *.split]
voker57 has joined #ruby
pitastrudl has joined #ruby
legit has joined #ruby
jnix has joined #ruby
bathtub_shark has joined #ruby
aspiers has joined #ruby
pwillard has joined #ruby
gmcintire has joined #ruby
coffeejunk has joined #ruby
Liothen has joined #ruby
hahuang65 has joined #ruby
salasrod has joined #ruby
havenwood has joined #ruby
EvilJStoker has joined #ruby
psmolen has quit [Ping timeout: 248 seconds]
mahlon has joined #ruby
infernix has quit [Ping timeout: 272 seconds]
ChrisBr has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Quit: AJA4350]
cthu| has quit [Ping timeout: 246 seconds]
ChrisBr has joined #ruby
psmolen has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby
staticx has quit [Remote host closed the connection]
Swyper has joined #ruby
staticx has joined #ruby
crankharder has quit [Client Quit]
<chris349> havenwood, Yes I just had to add a line to the top of my script: #!/bin/bash -l
<chris349> Another question... say I have in my Gemfile a group for development, how can I ensure that those never load in other environments? Right now the issue is sometimes I get a fatal error such as: Could not find rspec-rails-3.8.2 in any of the sources
infernix has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has quit [Quit: renich]
renich has joined #ruby
^ is now known as uplime
code_zombie has quit [Quit: Leaving]
al-damiri has quit [Quit: Connection closed for inactivity]
sparc has quit [Ping timeout: 272 seconds]
tweaks has quit [Quit: leaving]
wbnns has quit [Ping timeout: 258 seconds]
sparc has joined #ruby
cranq has quit [Ping timeout: 244 seconds]
d0liver has quit [Ping timeout: 258 seconds]
cranq has joined #ruby
wbnns has joined #ruby
d0liver has joined #ruby
Swyper has quit [Remote host closed the connection]
cranq has quit [Remote host closed the connection]
cranq has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Nightmare has quit [Remote host closed the connection]
edk has quit [Quit: edk]
tweaks has joined #ruby
cranq has quit [Ping timeout: 246 seconds]
cranq has joined #ruby
agent_white has quit [Quit: brb]
orbyt_ has joined #ruby
CCDelivery has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 272 seconds]
cd has quit [Quit: cd]
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
bambanx has quit [Quit: Leaving]
cranq has quit [Ping timeout: 272 seconds]
jmcgnh has joined #ruby
m_antis has quit [Quit: m_antis]
duderonomy has joined #ruby
m_antis has joined #ruby
cranq has joined #ruby
r29v has quit [Ping timeout: 248 seconds]
tweaks has left #ruby [#ruby]
dviola has quit [Quit: WeeChat 2.5]
tweaks has joined #ruby
vircung has quit [Quit: Nothing to do here]
queip has quit [Ping timeout: 268 seconds]
vircung has joined #ruby
queip has joined #ruby
moei has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pliniker has joined #ruby
noobineer has quit [Ping timeout: 252 seconds]
pliniker has quit [Client Quit]
gb_away has quit [Ping timeout: 245 seconds]
vjacob has quit [Ping timeout: 248 seconds]
ellcs has quit [Remote host closed the connection]
gb_away has joined #ruby
noobineer has joined #ruby
duderonomy has joined #ruby
braincrash has quit [Quit: bye bye]
moei has quit [Ping timeout: 252 seconds]
<havenwood> Here's the first release of a little async-websocket plugin gem I cut for Roda: https://github.com/socketry/roda-websockets
Technodrome has joined #ruby
<havenwood> And an example if anyone wants to try it out with the browser: https://gist.github.com/havenwood/d15e80c6aedbc5c185017d09a8eef29e
braincrash has joined #ruby
gix has quit [Disconnected by services]
nowhere_man has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
mrpropa has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has joined #ruby
brool has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
mrpropa has joined #ruby
za1b1tsu has joined #ruby
mrpropa has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrpropa has joined #ruby
vondruch has joined #ruby
cd has quit [Quit: cd]
chris349 has quit [Quit: Leaving]
nowhereman has joined #ruby
Wolland has quit [Quit: Mutter: www.mutterirc.com]
nowhere_man has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
yokel has quit [Read error: Connection reset by peer]
cd has joined #ruby
yokel has joined #ruby
vondruch has quit [Quit: vondruch]
russt has quit [Quit: That's all, folks!]
vondruch has joined #ruby
tpanarch1st has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donofrio has quit [Remote host closed the connection]
Inline has quit [Quit: Leaving]
conta has joined #ruby
esrse has joined #ruby
fmccann_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
tdy has quit [Remote host closed the connection]
russt has joined #ruby
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
sauvin has joined #ruby
schneider has joined #ruby
kyrylo has joined #ruby
SeepingN has joined #ruby
tdy has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
Technodrome has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
m_antis has quit [Quit: m_antis]
m_antis has joined #ruby
\13k has quit [Ping timeout: 268 seconds]
nowhereman has quit [Read error: Connection reset by peer]
\13k has joined #ruby
nowhereman has joined #ruby
galeido has quit [Quit: leaving]
edk has joined #ruby
hiroaki has quit [Ping timeout: 258 seconds]
schneider has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
galeido has joined #ruby
TomyWork has joined #ruby
nowhere_man has quit [Ping timeout: 245 seconds]
aupadhye has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
clandmeter has left #ruby ["Alpine Linux, the security-oriented, lightweight Linux distribution"]
mayurvpatil has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
cca4 has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
<cca4> Hello I have a local docker container with rails nginx unicorn when I use this configuration I don't have the details of the query in my console after a docker-composes uphttps://dpaste.de/z2W9On the other hand if I keep the same configuration but I use puma instead of unicorn I have the details of the queries with SQL query https://dpaste.de/51iVa
<cca4> ve the details of the query in my console after a docker-composes uphttps://dpaste.de/z2W9On the other hand if I keep the same configuration but I use puma instead of unicorn I have the details of the queries with SQL queryhttps://dpaste.de/51iV
<cca4> Sorry typing error
<cca4> Hello I have a local docker container with rails nginx unicorn when I use this configuration I don't have the details of the query in my console after a docker-composes up https://dpaste.de/z2W9On the other hand if I keep the same configuration but I use puma instead of unicorn I have the details of the queries with SQL query https://dpaste.de/51iV
sandstrom has joined #ruby
brett-soric has joined #ruby
alem0lars has joined #ruby
deepredsky has joined #ruby
mikecmpbll has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
yokel has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
yokel has joined #ruby
queip has joined #ruby
mayurvpatil has joined #ruby
conta has quit [Ping timeout: 272 seconds]
brett-soric has left #ruby [#ruby]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haxx0r has joined #ruby
<haxx0r> curl --user user
<haxx0r> what's the equivalent for net http?
conta has joined #ruby
Technodrome has joined #ruby
mrpropa has quit [Ping timeout: 252 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhollin3 has joined #ruby
jefffrails35 has joined #ruby
dhollinger has quit [Ping timeout: 272 seconds]
esrse has quit [Ping timeout: 245 seconds]
<al2o3-cr> haxx0r: basic auth
<al2o3-cr> &ri Net::HTTPHeader#basic_auth haxx0r
mayurvpatil has quit [Quit: This computer has gone to sleep]
cca4 has quit [Remote host closed the connection]
mayurvpatil has joined #ruby
<haxx0r> thanks
<al2o3-cr> yw haxx0r
za1b1tsu has quit [Remote host closed the connection]
matheusmoreira has quit [Ping timeout: 248 seconds]
matheusmoreira has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
mayurvpatil has joined #ruby
conta has quit [Ping timeout: 248 seconds]
renich has quit [Ping timeout: 272 seconds]
renich_ has joined #ruby
renich_ is now known as renich
za1b1tsu has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
kyrylo has joined #ruby
n13z has quit [Ping timeout: 268 seconds]
mayurvpatil has joined #ruby
conta has joined #ruby
garethadams has joined #ruby
<garethadams> Hi!
<garethadams> I’m using Faraday and trying to write tests that assert a particular HTTP header is added to outgoing requests by a method call
reber has joined #ruby
<garethadams> Examples I’ve seen suggest mocking `Faraday.new` to return a `Faraday::Adapter::Test` that I can call assertions on. That’s fine in principle, but if I mock `Faraday.new` then I’m overriding the call where I actually add the API key: `Faraday.new { |c| c.headers[“API-KEY”] = “123” }`
reber has quit [Read error: Connection reset by peer]
reber has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
<haxx0r> in shell i call arguments to rpc like this ` ./rpc -testnet listtransactions * 1000 0 true`
<haxx0r> i can't figure out how to implement that in ruby net/http
<ZAJDAN> what do You recommend....create directory via 'fileutils' or use 'system call mkdir' ?
mayurvpatil has quit [Quit: This computer has gone to sleep]
conta has quit [Ping timeout: 272 seconds]
<ZAJDAN> how to create multiple nested child folders? something like: FileUtils.mkdir_p 'grandparents/parents/{1,2,3,4,5,6}'
cd has quit [Quit: cd]
<leftylink> it may be necessary to use `each` to create those dirs.
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ZAJDAN> mkdir shoul can: mkdir -p /grandparents/parents/{1,2,3,4,5,6} ....but when I call it as: system ('mkdir' , 'p' , File.join("/grandparents/parents/{1,2,3,4,5,6}") ) ..doesnt create it
<leftylink> because the shell does the expansion of {}
<ZAJDAN> aha
conta has joined #ruby
marahin_ is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
<ZAJDAN> shell is expecting some variable inside the {} ?
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayurvpatil has joined #ruby
<ZAJDAN> ok...you say shell...but I though that 'system' call the shell
dhollin3 has quit [Ping timeout: 245 seconds]
<leftylink> o
<leftylink> hmm
<leftylink> well, compare difference bween when I ask `echo {1,2,3}` in my shell vs `system('echo', '{1,2,3}')` in ruby
<leftylink> but also, compare when do `system('echo {1,2,3}')` in ruby.
<leftylink> so now it is seeing that https://ruby-doc.org/core-2.6.3/Kernel.html#method-i-system cmdname, arg1, ... says "no shell"
<ZAJDAN> ruby see it as string ..the {}
conta has quit [Ping timeout: 245 seconds]
<ZAJDAN> as you pointed me to use '.each' maybe this could be solution
conta1 has joined #ruby
deathwishdave has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
schneider has quit [Ping timeout: 252 seconds]
<ZAJDAN> I have choosen this way: system('mkdir', '-p', File.join("#{path}/1"),File.join("#{path}/2"), File.join("#{path}/3") )
<ZAJDAN> it is essential I call the system('mkdir' ...only once
kyrylo has joined #ruby
schneider has joined #ruby
<NL3limin4t0r> ZAJDAN: Isn't `exec` called in the shell? Try `exec("mkdir -p #{path}/{1,2,3}")` instead of `system` or alternatively simply "result = `mkdir -p #{path}/{1,2,3}`" (using quotes since backticks are acual code in this example).
<NL3limin4t0r> Never mind, just tested it and in also simply creates the folder "{1,2,3}" as opposed to the folders "1", "2" and "3".
Fusl has quit [Excess Flood]
Fusl has joined #ruby
<ZAJDAN> NL3: it was first what I have tried...doesnt works
<ZAJDAN> as you can see in my previous post :_)
<ZAJDAN> aha! (using quotes since backticks ......OK I gonna try
<ZAJDAN> and the exec
<leftylink> I note that since it is a desire to only use mkdir once, one would probably want to avoid repetition of the File.join by using a map and splat
<leftylink> &>> [:arg1, :arg2,* [3..7].map { |x| "hello #{x} " }]
<rubydoc> # => [:arg1, :arg2, "hello 3..7 "] (https://carc.in/#/r/754g)
<leftylink> I put that in the wrong place
<leftylink> &>> [:arg1, :arg2, *(3..7).map { |x| "hello #{x} " }]
<rubydoc> # => [:arg1, :arg2, "hello 3 ", "hello 4 ", "hello 5 ", "hello 6 ", "hello 7 "] (https://carc.in/#/r/754h)
<leftylink> that's what I wanted
<ZAJDAN> uffff
meinside has joined #ruby
wildermind has joined #ruby
<ZAJDAN> NL3: I am trying in console: `exec("mkdir -p me/she/{1,2,3}")` sh: 1: Syntax error: word unexpected (expecting ")")
<ZAJDAN> leftylink: is the example .map for me?
haxx0r has quit [Ping timeout: 246 seconds]
<ZAJDAN> irb(main):002:0> exec("mkdir -p zakazky/me/she/{1,2,3}") has same behavior as the 'system'
AJA4350 has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta1 has quit [Ping timeout: 252 seconds]
TomyWork has quit [Remote host closed the connection]
yokel has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
yokel has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
queip has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
codefriar has joined #ruby
queip has joined #ruby
mayurvpatil has quit [Quit: Leaving]
cthu| has joined #ruby
haxx0r has joined #ruby
<ZAJDAN> Commission.select(:path_to_pdf).where(:commission_num => 123456).first ...returns .....=> #<Commission id: nil, path_to_pdf: "zakazky/123456_PUMPIK">
<ZAJDAN> how can I pass into variable just value of the 'path_to_pdf'
crankharder has joined #ruby
<al2o3-cr> this works for me: system("mkdir -p foo/bar/{1..5}")
<ZAJDAN> try... system("mkdir -p foo/bar/{1,2,3}")
<al2o3-cr> it works too.
<NL3limin4t0r> ZAJDAN: That question should be asked in #RubyOnRails, but the answer is use `pluck` instead of `select`. The difference is that `pluck` returns the values asked for while `select` still instantiates an instance of the model, filling only the values that are specified as `select` arguments.
<ZAJDAN> Nl3: works too... Commission.select(:path_to_pdf).where(:commission_num => 123456).first.path_to_pdf
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
donofrio has joined #ruby
<ZAJDAN> 2l2o3-cr: is good to know that instead of ...system ('mkdir' , 'p' , File.join("/grandparents/parents/{1,2,3,4,5,6}") ) ...should be ...system ("mkdir -p /grandparents/parents/{1,2,3,4,5,6}")
* al2o3-cr wanders off to get some food
al-damiri has joined #ruby
deathwishdave has joined #ruby
s3nd1v0g1us has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
aupadhye has quit [Quit: Leaving]
schneider has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 245 seconds]
deathwishdave has quit [Quit: Textual IRC Client: www.textualapp.com]
Inline has joined #ruby
cthu| has quit [Ping timeout: 272 seconds]
mn3m has joined #ruby
<al2o3-cr> ZAJDAN: system %Q(mkdir -p #{File.join("grandparents/parents/{1..6}")}) if you did want to use File.join
<al2o3-cr> infact just % will work there.
<al2o3-cr> &>> %(mkdir -p #{File.join('grandparents', 'parents', '{1..6}')})
<rubydoc> # => "mkdir -p grandparents/parents/{1..6}" (https://carc.in/#/r/759q)
<al2o3-cr> it's only 23 degrees here and i'm bloody roasting
cca4 has joined #ruby
cthulchu has joined #ruby
cca4 is now known as Marc4
<Marc4> Hello, What is the difference between calling a class::MyClass or MyClass?
Deesl has joined #ruby
<ytti> essentially like a directory
<ytti> MyClass needs to be visible 'here'
<ytti> class::MyClass class needs to be visible 'here' and inside it MyClass needs to be visible
<ytti> (module|class) class
<ytti> (module|class) MyClass
<ytti> end
<ytti> end
<ytti> (obviously class will not be valid name)
codefriar has quit [Remote host closed the connection]
<Marc4> ytti thanks
codefriar has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mozzarella has quit [Ping timeout: 248 seconds]
mozzarella has joined #ruby
Deesl has joined #ruby
crankharder has joined #ruby
n13z has joined #ruby
<NL3limin4t0r> Marc4: Or simply put it's namespacing.
TomyWork has quit [Ping timeout: 246 seconds]
Deesl has quit [Client Quit]
scp has joined #ruby
Marc4 has quit [Remote host closed the connection]
moei has joined #ruby
codefriar has quit [Remote host closed the connection]
codefriar has joined #ruby
Deesl has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
alem0lars has quit [Ping timeout: 248 seconds]
jefffrails35 has quit [Quit: Leaving]
schneider has joined #ruby
duderonomy has joined #ruby
GodFather has joined #ruby
varjack has joined #ruby
scp has quit [Ping timeout: 246 seconds]
<varjack> I'm trying to parse an xml document but the example at https://medium.com/tech-batoora/xml-50488ec69b20 doesn't work
<varjack> xmldoc.elements.each("Movies/Movie") doesn't iterate over any of the "movie" nodes
<varjack> ok let me be a little more specific: I have a different xml document where the mrnge is connections, and each node is called "Node"
<varjack> So I'm trying "Connections/Node" but nothing is iterating
orbyt_ has joined #ruby
varjack has left #ruby [#ruby]
codefriar has quit [Ping timeout: 245 seconds]
codefriar has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Iarfen has joined #ruby
<Iarfen> hi!
<Iarfen> when using wicked pdf, how I can load javascript? I'm trying with wicked_pdf_javascript_include_tag but the javascript file is not being executed
Makku has joined #ruby
<Makku> Hi, what is the latest compiler used in Ruby, and what is it in Ruby 2.1
<adam12> Makku: What do you mean?
leitz has joined #ruby
<leitz> RubyWeekly mentioned an article expressing concern for Ruby's future. Anyone read it? Agree or disagree? (http://katafrakt.me/2019/06/15/im-worried-about-ruby-future/)
mikecmpbll has quit [Quit: inabit. zz.]
<havenwood> leitz: Disagree.
<leitz> havenwood, are the concerns raised valid?
<leitz> On the rare times I e-mail Ruby book authors I may have asked if the release of Ruby 3 would be a good time to update their book. :)
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
argoneus has quit [Quit: No Ping reply in 180 seconds.]
<havenwood> leitz: These are a bit hard to tackle together, since they're pretty divergent.
<havenwood> leitz: Starting with frozen string literals, the point is to avoid a Python 2-3. There's still time to reverse that decision, but Matz is determined to maintain compatibility. I reallly don't think Ruby errs too far towards compatibility, so I'm okay with this.
GodFather has quit [Read error: No route to host]
<havenwood> leitz: The gripe is we'd like to not have that line. I agree. That said, backwards compatibility is super important.
<leitz> havenwood, understood. For me the biggest, really only, issue, is the idea of distance between the core team and the community.
<adam12> Future looks reasonably healthy IMHO. That said, Nick Sutter did a talk fairly recently that echoes some of my sentiment. We (understably) get more smaller bits than larger features/changes. That might be a bit of an issue long term. https://www.youtube.com/watch?v=x0JlOxdXA_g
<havenwood> leitz: I don't think it's an indicator of something awry, like the author suggests.
<leitz> For backwards compatibility, I agree with the current course, if it can be maintained. I don't know the language internals, though.
<havenwood> leitz: The pipe operator debate is a matter of folk (like baweaver, me, and many others) who prefer the Elixir syntax. Matz has explained the technical reason he doesn't think that's possible in Ruby. It's a reasonable addition. I've proposed <| operator to disambiguate from the functional variet.
<havenwood> varient.*
<Makku> adam12 I have heard of JIT compiler as experimentally used in ruby 2. What is the default compiler
<havenwood> The pipe and pattern matching are both experimental features.
<havenwood> The point is to experiment.
<havenwood> I'm not worried that some in the community don't like the experiments.
<havenwood> That's fine.
<havenwood> And expected!
<leitz> Hey adam12! What larger features would you see in the core?
<havenwood> Makku: GCC
<leitz> havenwood, so the pipe and pattern matching are not "really" in the core, yet?
<havenwood> leitz: No, they're experimental features
<havenwood> They *might* be introduced or yanked
<havenwood> Or changed
<leitz> Ah, I didn't get that from the article.
<NL3limin4t0r> leitz: Point 2 of the linked article complains about the pipe operator not being what people expected. But the author must have forgotten that we already got the compose operator (>> and <<) for methods and procs that are basically what he expects from the pipe operator.
<leitz> Of course, I read overly fast some times.
<adam12> Makku: Oh! That makes more sense. I believe it will use gcc or clang. I wouldn't be surprised if it prefered the one that Ruby was compiled with, which is going to be OS/distro dependent.
<havenwood> Anyhoo, I disagree that these are issues that bode poorly for Ruby. I think it's FUD.
<havenwood> The things going right are a lot more compelling.
<havenwood> Makku: In Ruby 1.8 and prior, Ruby used Matz' interpreter. In Ruby 1.9 and subsequent, it has used the YARV VM.
<leitz> Well, the community is certainly a plus. Most of the book authors I've contacted have been another plus.
<havenwood> Makku: The JIT is an experimental feature that's disabled by default.
<leitz> Getting things done is a plus, as is being able to read your own code the next week.
<NL3limin4t0r> &>> double = ->(n) { n * 2 }; increment = ->(n) { n + 1 }; 5.then(&increment >> double >> double >> increment)
Makku has quit [Remote host closed the connection]
<adam12> leitz: I don't have any off the top of my head (other than gradual types), but Nick mentions a few that would be interesting: pattern matching, better concurrency, method overloading, better kw args, macros, real namespaces and packages, functions not closures, etc.
<adam12> (yes I know pattern matching is kinda coming)
<adam12> He also mentions immutable structures which is also interesting (not having to depend on hamster for example)
<havenwood> better concurrency is coming
<havenwood> core has said no to pervasive immutable structures
<havenwood> macros, no
<havenwood> Question: "Will Ruby ever get macros?"
<havenwood> Matz: "Short answer, 'No.' Long answer, 'Hell No.'"
<leitz> :P
<havenwood> (That was his actual response.) ;)
<havenwood> pattern matching, yes - but limited
<adam12> It would change Ruby style but a common argument I have to face with non-Rubyists who I'm integrating into projects is why everything gets dumped into the global namespace. I think in some ways Python is nicer there (and Go).
<havenwood> Or Clojure and Elixir's take seem particularly nice.
<bougyman> What do you mean by that, adam12?
<bougyman> If you namespace inside of modules that's not in the global namespace. Or do you mean something else?
<leitz> Is pattern matching like PCRE, or am I misunderstanding?
<kyrylo> Ruby 3 may have some kind of namespacing. IIRC matz has mentioned that it would be nice to have that
<bougyman> No, leitz.
<havenwood> leitz: No, not regexp - think matching variables to patterns. Elixir is a good example.
<adam12> bougyman: require "cgi"; CGI is now a constant everywhere. That's an easy one because cgi == CGI but it's not always like that.
<havenwood> leitz: Clojure doesn't ship with pattern matching, for example, but has a library for it: https://github.com/clojure/core.match/wiki/Basic-usage
<bougyman> So you just mean the global namespace is pollutable.
<adam12> kyrylo: there was a gem released not too long ago too which was neat as well.
duderonomy has joined #ruby
<adam12> bougyman: Yes, exactly.
<kyrylo> adam12, which one is that?
<havenwood> bougyman: Many langs have the package author be a namespace, for example.
NL3limin4t0r is now known as NL3limin4t0r_afk
yokel has quit [Read error: Connection reset by peer]
argoneus has joined #ruby
yokel has joined #ruby
<adam12> bbiaf.
SolarAqu- is now known as SolarAquarion
Deesl has joined #ruby
GodFather has joined #ruby
garethadams has quit [Quit: garethadams]
Deesl has quit [Quit: Textual IRC Client: www.textualapp.com]
edwardly has quit [Ping timeout: 258 seconds]
mn3m has quit [Ping timeout: 258 seconds]
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
<leitz> Nice chat on the back porch with the wife.
<leitz> I thought Ruby had name spaces possible, like putting things in a gem that had the libraries in a sub directory.
<leitz> That said, I'm only an apprentice, so still learning. The issue is that I'm old, dang near ancient, and am looking for ways to keep my career growing in a useful direction.
GodFather has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 244 seconds]
za1b1tsu has quit [Ping timeout: 246 seconds]
za1b1tsu has joined #ruby
queip has joined #ruby
GodFather has joined #ruby
deepredsky has quit [Ping timeout: 252 seconds]
hiroaki has joined #ruby
themsay has quit [Read error: Connection reset by peer]
sauvin has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
sandstrom has joined #ruby
<leitz> It went quiet...
themsay has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
mniip has quit [Ping timeout: 622 seconds]
za1b1tsu has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
mniip has joined #ruby
<havenwood> We suspended to await Ruby questions.
<leitz> Ah. :)
<havenwood> (Lunch.)
<leitz> I'm going back to the basics and reading "Head First Ruby". Spent much of the year so far in Perl, Go, and Python. Mostly due to work.
yokel has quit [Read error: Connection reset by peer]
gix has joined #ruby
<havenwood> leitz: Have you tried making a gem yet? Making apps?
galaxie has quit [Remote host closed the connection]
deepredsky has joined #ruby
galaxie has joined #ruby
yokel has joined #ruby
<leitz> havenwood, that sort of depends. A "good" gem, or a "good" app? No. "Something that might look like a gem or an app if you're half blind and half drunk"...maybe...
<havenwood> leitz: Nice.
<havenwood> leitz: Any current Ruby projects? Anything you're thinking of making in particular?
<leitz> I have the book "Effective Testing with RSpec 3" and love it. Mostly because it puts things together for me in a way that I never really "got".
<leitz> havenwood, my next big plan is to redo this with a Sinatra based web interface. https://rubygems.org/gems/free_trader
<leitz> havenwood, with the current code at https://github.com/makhidkarun/free_trader
<havenwood> leitz: I'd suggest giving Roda a try. It's Sinatra inspired, but a simpler base with optional plugins.
<havenwood> leitz: http://roda.jeremyevans.net/
<leitz> havenwood, I've looked at Roda, and it's cool. Jeremy does some awesome stuff. My issue is that I learn much better with a book than a web page.
<havenwood> Ahh. Hmm, there's no Roda book that I know of. Avdi did several Ruby Tapas episodes on it.
<leitz> Of course, if someone wrote "Jeremy's Cool Ruby Apps", with sections for Roda and Sequel, I'd buy it. :)
jefffrails35 has joined #ruby
<havenwood> Roda and Sequel both have great plugins...
jefffrails35 has quit [Remote host closed the connection]
<leitz> My plan is to learn enough Sinatra to understand it, and then I can look at Roda once I have a frame of reference to build off of.
<havenwood> leitz: Yeah, they're similar enough.
<havenwood> leitz: I don't think you'll have trouble grokking Roda.
<leitz> Of course, I finally "got" some of the Go web stuff once I had read about Sinatra. Solved my need for PHP. :)
<havenwood> leitz: I'd suggest making a Rack app, just to see what that's like and what its limitations are.
<havenwood> leitz: Then try Roda to see how its routing tree better handles routes and errors.
<havenwood> leitz: And you can extend from there with plugins.
al-damiri has quit [Quit: Connection closed for inactivity]
<leitz> Jeremy's page showed some good performance statistics.
<havenwood> leitz: Yeah, Hanami and Roda both have impressively low memory and high performance.
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> A goal, at some point in time, is to turn crewgen into Ruby. I was studying Go at the time. https://github.com/makhidkarun/crewgen
reber has joined #ruby
<leitz> Although I do like the ability to just hand someone a binary...
<leitz> Moving to Heroju or GAE is another option. Trying to build my career and resume bullets.
<leitz> And have fun. That's important.
<leitz> Okay, I'm going to go murder veggies for supper. Will be back in a bit.
kyrylo has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
CCDelivery has joined #ruby
deepreds1 has joined #ruby
deepredsky has quit [Ping timeout: 245 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
sandstrom has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
sandstrom has quit [Ping timeout: 248 seconds]
sandstro_ has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
nonamme has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
sagax has quit [Ping timeout: 252 seconds]
sandstro_ has quit [Quit: My computer has gone to sleep.]
nowhere_man has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
mniip has quit [Read error: Connection reset by peer]
mniip has joined #ruby
jcalla has quit [Quit: Leaving]
reber has quit [Remote host closed the connection]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
ellcs has joined #ruby
<nonamme> Hi
<havenwood> nonamme: hi
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> Just horsing around...
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
sagax has joined #ruby
<leitz> Hrm, RHEL 8 has Ruby 2.5.
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
themsay has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
themsay has joined #ruby
chalkmonster has joined #ruby
<nonamme> is any one here familiar with #crystal-lang ?
<chalkmonster> Who's hyped for AutoFiber
<havenwood> nonamme: yes
<nonamme> what you think about it?
schneider has quit [Ping timeout: 245 seconds]
<havenwood> nonamme: it's nice.
<chalkmonster> man, the usercount here has literally halved since I hung out here last
<chalkmonster> did everyone move to slack
<leitz> chalkmonster, they must have missed you so much. :)
* leitz hates slack
<chalkmonster> as do I
<havenwood> chalkmonster: It looks like normalperson's auto fiber isn't moving forward, but async with fibers is looking good.
* chalkmonster raises glass to the eternal decline of IRC
<chalkmonster> havenwood: I'm hyped
<havenwood> ?xkcd 1782
<ruby[bot]> havenwood: I don't see no 1782, whom should I tell about xkcd?
<chalkmonster> havenwood: me irl
<havenwood> chalkmonster: "Honestly, I'm likely to abandon this feature because I have more important (non-Ruby) things to work on." ~normalperson
<chalkmonster> havenwood: someone else will pick it up
<havenwood> chalkmonster: Who?
xco has joined #ruby
<chalkmonster> I don't know
<havenwood> chalkmonster: I'm not sure they will.
<chalkmonster> I just hope someone does
<leitz> baweaver, you around?
<havenwood> chalkmonster: I think it's more likely that ioquatix's PR for lightweight thread selector with fibers gets merged: https://github.com/ruby/ruby/pull/1870
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
<havenwood> chalkmonster: As I understand it, that would increase the performance of Falcon - which is already blazing: https://github.com/socketry/falcon
<havenwood> chalkmonster: It wouldn't mean a Thread-like interface for Fibers though.
<chalkmonster> havenwood: I was recently looking at socketry projects
<havenwood> chalkmonster: nice!
<chalkmonster> The new Puma decided to use nio4r too, which is pretty great
<chalkmonster> allegedly more efficient, but I haven't run it yet
<havenwood> chalkmonster: "Why wait? It's available today!" https://github.com/socketry/async-await
<chalkmonster> havenwood: yeah these guys have some pretty great tooling around this
nowhere_man has quit [Ping timeout: 248 seconds]
<chalkmonster> I might give it a try sometime
<havenwood> chalkmonster: The neat advantage of using nio4r with Puma is supporting more WebSocket connections.
<chalkmonster> havenwood: yeah but I wouldn't use a ruby server for that to begin with. Still nice to have.
<havenwood> chalkmonster: Falcon uses Fibers under the hood already, so awesome with WebSockets.
<chalkmonster> yep
<havenwood> chalkmonster: I just cut a Roda plugin gem for async-websocket (uses Fibers): https://github.com/socketry/roda-websockets
<chalkmonster> on that note, dry-rb is the greatest thing since sliced bread
Fernando-Basso has joined #ruby
<chalkmonster> havenwood: interesting!
<chalkmonster> let me take a look
<havenwood> chalkmonster: I need to work on the example docs. I'll do that soon!
<havenwood> chalkmonster: Here's a fun example in the meantime: https://gist.github.com/havenwood/d15e80c6aedbc5c185017d09a8eef29e
<chalkmonster> if I get the time, I might help you
<havenwood> chalkmonster: Neat!
<chalkmonster> not three days ago I was looking at socketry projects
<chalkmonster> kinda in between jobs atm so busy with interview prep
CCDelivery has quit [Quit: Leaving]
<chalkmonster> randomly stumbled back in here, used to hang a few years ago
<chalkmonster> anyway I'll bbl
<havenwood> later
fphilipe_ has quit [Ping timeout: 252 seconds]
yokel has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Iarfen has quit [Remote host closed the connection]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has joined #ruby
fphilipe_ has joined #ruby
codefriar has joined #ruby
codefriar has quit [Read error: Connection reset by peer]
nonamme has left #ruby ["WeeChat 1.9.1"]
codefriar has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
code_zombie has joined #ruby
deepreds1 has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 264 seconds]
cthulchu_ has joined #ruby
moei has quit [Quit: Leaving...]
cthulchu has quit [Ping timeout: 272 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psmolen has quit [Ping timeout: 245 seconds]
psmolen has joined #ruby
cd has joined #ruby
ricer2 has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has quit [Ping timeout: 248 seconds]
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
brool has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
xco has quit [Quit: xco]
chalkmonster has quit [Quit: WeeChat 2.5]
ebbflowgo has quit [Quit: ebbflowgo]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]