havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-rc2: 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!
<uplime> havenwood: much appreciated, thanks!
TCZ has joined #ruby
william1 has quit [Ping timeout: 265 seconds]
TvL2386 has quit [Ping timeout: 258 seconds]
Ai9zO5AP has quit [Quit: WeeChat 2.5]
drincruz has joined #ruby
TvL2386 has joined #ruby
drincruz has quit [Ping timeout: 258 seconds]
Fusl has quit [Excess Flood]
Fusl has joined #ruby
hiroaki has joined #ruby
phaul has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
DaRock has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
TCZ has quit [Quit: Bye Bye]
AJA4350 has quit [Quit: AJA4350]
ivanskie has joined #ruby
ivanskie has quit [Client Quit]
markopasha has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
sauvin_ is now known as sauvin
ivanskie has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
yokel has quit [Ping timeout: 268 seconds]
yokel has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
s2013 has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
xall has joined #ruby
phaul has joined #ruby
sergioro has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
gix has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 260 seconds]
xall has quit [Quit: xall]
phaul has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
skx86 has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
phaul has joined #ruby
ivanskie has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
bambanx has joined #ruby
phaul has joined #ruby
misterwhatever has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 260 seconds]
Swyper has quit [Remote host closed the connection]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
Swyper has joined #ruby
<Swyper> hi
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
<havenwood> Swyper: hi
<uplime> havenwood: finally had a moment to look over the example. it seems like the important change is the barrier right?
<havenwood> uplime: yup, exactly. it wasn't working properly without it.
phaul has quit [Ping timeout: 265 seconds]
<uplime> cool, easy enough
<havenwood> uplime: I find ioquatix's comments about coalescing rapid-fire requests into H2 streams intriguing: https://gitter.im/socketry/async
<havenwood> it's pretty impressive that we don't have to worry about it happening, it *just works*
phaul has joined #ruby
<uplime> yeah, thats an interesting feature of h2. i dont know much about it, but bagder gave me a small overview of how it can reuse a lot of resources for requests like that
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<havenwood> uplime: nice to see Ruby taking full advantage
<havenwood> I'm excited about the Isolate/Guild and Async future with Ruby 3.
<uplime> yeah definitely. rubys such a nice language to program in, and being able to use these production libraries easily is great
<havenwood> "What this means, is if you fire off 50 requests in a tight loop, via HTTP/2, it will coalesce all those requests into a single packet of data." \o/
<uplime> EM was also a weird way to write async code in, (and i never really understood twisted). async makes it so much easier
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
bairyn has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
Swyper has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 260 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
phaul has joined #ruby
DTZUZO has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
greypack has quit [Quit: All your IRC are belong to ZNC]
phaul has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 260 seconds]
DTZUZO has joined #ruby
ivanskie has joined #ruby
phaul has joined #ruby
itarato has quit [Ping timeout: 260 seconds]
donofrio has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
hiroaki has quit [Ping timeout: 268 seconds]
MrCrackPot has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 258 seconds]
DTZUZO has joined #ruby
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
skx86 has quit [Quit: Connection closed for inactivity]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
houhoulis has quit [Remote host closed the connection]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
zapata has quit [Ping timeout: 250 seconds]
Mrbuck has quit [Ping timeout: 268 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
bambanx has quit [Ping timeout: 260 seconds]
zapata has joined #ruby
rippa has joined #ruby
bluevinyl0x1 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
schne1der has joined #ruby
bairyn has quit [Ping timeout: 260 seconds]
bairyn has joined #ruby
sergioro has quit [Quit: Lost terminal]
bluevinyl0x1 has quit [Quit: Leaving]
suukim has joined #ruby
im0nde_ has quit [Ping timeout: 248 seconds]
im0nde has joined #ruby
turbo_choo has joined #ruby
william1 has joined #ruby
greypack has joined #ruby
cd has quit [Quit: cd]
phaul has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
chalkmonster has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
william1 has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
phaul has joined #ruby
RiPuk has quit [Remote host closed the connection]
RiPuk has joined #ruby
turbo_choo has quit [Ping timeout: 265 seconds]
markopasha has joined #ruby
mossplix has joined #ruby
ellcs has joined #ruby
TCZ has quit [Quit: Bye Bye]
ellcs has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
Jonopoly has joined #ruby
ltp has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
bambanx has joined #ruby
ltp has quit [Client Quit]
ivanskie has joined #ruby
bambanx has quit [Ping timeout: 260 seconds]
Pixi_ has joined #ruby
Mrbuck has joined #ruby
Xiti` has quit [Ping timeout: 246 seconds]
conta has joined #ruby
_whitelogger has joined #ruby
GodFather__ has joined #ruby
mossplix has quit [Remote host closed the connection]
TCZ has joined #ruby
akemrir has joined #ruby
lxsameer has joined #ruby
fphilipe_ has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
bsdbandit-01 has quit [Quit: -a- IRC for Android 2.1.55]
bsdbandit-01 has joined #ruby
conta has quit [Remote host closed the connection]
william1 has joined #ruby
Mrbuck has quit [Quit: WeeChat 2.7]
bvdw has quit [Write error: Connection reset by peer]
bvdw has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has joined #ruby
mossplix has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
william1 has quit [Ping timeout: 260 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
gray_-_wolf has joined #ruby
akemhp has joined #ruby
sathish has joined #ruby
<sathish> how do I escape "/" in a string
<sathish> couldnt build a string like "/javascripts/something.js"
<havenwood> sathish: You don't need to escape a forward slash.
<havenwood> &>> "/javascripts/something.js"
<rubydoc> # => "/javascripts/something.js" (https://carc.in/#/r/899r)
bsdbandit-01 has quit [Ping timeout: 260 seconds]
<sathish> but when I contact with other strings it doesn't show up
bsdband17 has joined #ruby
<havenwood> sathish: Show an example of that?
bsdband17 has quit [Max SendQ exceeded]
<sathish> I am trying to alternate the root paths in middleman to accommodate for CDN
<havenwood> sathish: You can just use interpolation: "#{config[:static_root]}#{asset_path}"
<havenwood> sathish: Or, if they're both Strings, omit it: config[:static_root] + asset_path
<havenwood> sathish: But it should work as you've written the code.
<havenwood> &>> config = {}; config[:static_root] = "/"; asset_path = 'foo'; "#{config[:static_root]}#{asset_path}"
<rubydoc> # => "/foo" (https://carc.in/#/r/899s)
<sathish> Not working, for some reason I only get <script src="javascripts/jquery.min-5a9dcfbe.js"></script>
<havenwood> sathish: Are you not in `:development` mode?
<sathish> I am in development mode. In my local environment.
<havenwood> sathish: Your String joining code should produce the desired result, so I feel like `config[:static_root]` is `nil` here.
<sathish> If I change the config[:static_root] = "/" to config[:static_root] = "something" then I get <script src="somethingjavascripts/jquery.min.js"></script>
<havenwood> sathish: sounds like something is stripping the slash. what config is this? public code?
<sathish> middleman config.rb
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zapata has quit [Ping timeout: 246 seconds]
zapata has joined #ruby
phaul has joined #ruby
hck89 has joined #ruby
hck89 has quit [Quit: Textual IRC Client: www.textualapp.com]
bsdbandit-01 has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
mossplix has quit [Client Quit]
turbo_choo has joined #ruby
infernix has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
AJA4350 has joined #ruby
Jonopoly has quit [Ping timeout: 265 seconds]
schne1der has quit [Ping timeout: 265 seconds]
mossplix has joined #ruby
turbo_choo has quit [Ping timeout: 260 seconds]
turbo_choo has joined #ruby
DTZUZO has joined #ruby
storm_ has joined #ruby
storm_ has quit [Remote host closed the connection]
turbo_choo has quit [Ping timeout: 260 seconds]
mossplix has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 260 seconds]
turbo_choo has joined #ruby
GodFather__ has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
skx86 has joined #ruby
TCZ has quit [Quit: Bye Bye]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
mossplix has quit [Remote host closed the connection]
jcalla has quit [Ping timeout: 258 seconds]
sathish has quit [Quit: Leaving]
istrasci has quit [Ping timeout: 260 seconds]
turbo_choo has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
ooheitooh has quit [Quit: The Lounge - https://thelounge.chat]
ooheitooh has joined #ruby
phaul has joined #ruby
davispuh has joined #ruby
BTRE has quit [Remote host closed the connection]
impermanence has joined #ruby
BTRE has joined #ruby
akemrir has quit [Quit: WeeChat 2.7]
lucasb has joined #ruby
schne1der has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
infernix has joined #ruby
Swyper has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
NODE has quit [Quit: changing servers]
mn3m has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
infinityfye has joined #ruby
drincruz has joined #ruby
jcalla has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
bairyn is now known as ByronJohnson
nowhere_man has joined #ruby
NODE has quit [Quit: changing servers]
RiPuk has quit [Remote host closed the connection]
RiPuk has joined #ruby
NODE has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mossplix has joined #ruby
impermanence has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
wallace_mu has joined #ruby
Jonopoly has joined #ruby
fig-le-deunch has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
davidw has joined #ruby
AJA4350 has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
mossplix has quit [Remote host closed the connection]
phaul has joined #ruby
Esa_ has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
Swyper has quit [Remote host closed the connection]
Technodrome has joined #ruby
nofxx has joined #ruby
infinityfye has quit [Quit: Leaving]
nofxx_ has quit [Ping timeout: 265 seconds]
GodFather__ has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
Jonopoly has quit [Ping timeout: 265 seconds]
Swyper has joined #ruby
gix has joined #ruby
Swyper has quit [Remote host closed the connection]
itarato has joined #ruby
Swyper has joined #ruby
ivanskie has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
cthu| has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
phaul has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
infernix has quit [Ping timeout: 245 seconds]
ltp has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Swyper has quit [Remote host closed the connection]
skx86 has quit [Quit: Connection closed for inactivity]
DTZUZO has joined #ruby
DaRock has quit [Ping timeout: 258 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
hiroaki has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
itarato has quit [Ping timeout: 265 seconds]
hiroaki has quit [Ping timeout: 240 seconds]
Eiam has quit [Ping timeout: 248 seconds]
kp666[m] has quit [Quit: killed]
cliffindor[m] has quit [Quit: killed]
danielk43[m] has quit [Quit: killed]
linuus[m] has quit [Quit: killed]
mariusz-kowalski has quit [Quit: killed]
iotatron[m] has quit [Quit: killed]
ebababi[m] has quit [Quit: killed]
Corey[m] has quit [Quit: killed]
otaznik[m] has quit [Quit: killed]
Hanma[m] has quit [Quit: killed]
lakrivite[m] has quit [Quit: killed]
samdixon[m] has quit [Quit: killed]
kira_rose[m] has quit [Quit: killed]
Hanspolo[m] has quit [Quit: killed]
xipho[m] has quit [Quit: killed]
execat[m] has quit [Quit: killed]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
fphilipe_ has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
reber has joined #ruby
Ai9zO5AP has joined #ruby
Swyper has joined #ruby
fphilipe_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Technodrome has joined #ruby
sergioro has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
mn3m has quit [Ping timeout: 260 seconds]
NODE has quit [Client Quit]
NODE has joined #ruby
Cra2yZer0 has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cra2yZer0 has joined #ruby
jmcgnh has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 260 seconds]
jmcgnh has joined #ruby
reber_ has joined #ruby
mossplix has joined #ruby
reber has quit [Ping timeout: 265 seconds]
Tempesta has quit [Quit: See ya!]
NODE has quit [Quit: changing servers]
lucasb has quit [Quit: Connection closed for inactivity]
NODE has joined #ruby
Cra2yZer0 has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Cra2yZer0 has joined #ruby
itarato has joined #ruby
kp666[m] has joined #ruby
qbrd[m] has joined #ruby
execat[m] has joined #ruby
turt2live has joined #ruby
samdixon[m] has joined #ruby
iotatron[m] has joined #ruby
Corey[m] has joined #ruby
sepp2k has joined #ruby
cliffindor[m] has joined #ruby
linuus[m] has joined #ruby
xipho[m] has joined #ruby
kira_rose[m] has joined #ruby
Hanma[m] has joined #ruby
otaznik[m] has joined #ruby
danielk43[m] has joined #ruby
Hanspolo[m] has joined #ruby
lakrivite[m] has joined #ruby
mariusz-kowalski has joined #ruby
mossplix has quit [Remote host closed the connection]
skx86 has joined #ruby
infernix has joined #ruby
wildtrees has joined #ruby
GodFather__ has quit [Ping timeout: 258 seconds]
sagax has quit [Read error: Connection reset by peer]
suukim has quit [Remote host closed the connection]
phaul has joined #ruby
sagax has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
infernix has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
mokha has joined #ruby
mossplix has joined #ruby
Technodrome has joined #ruby
Swyper has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: Lost terminal]
zapata has quit [Ping timeout: 246 seconds]
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mossplix_ has joined #ruby
itarato has quit [Ping timeout: 260 seconds]
mossplix has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroaki has joined #ruby
phaul has joined #ruby
mossplix_ has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 258 seconds]
hiroaki has quit [Ping timeout: 258 seconds]
infernix has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
lxsameer has joined #ruby
<uplime> havenwood: did you happen to catch my timer question in the gitter?
<havenwood> uplime: looking now
<uplime> thanks <3
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
ivanskie has joined #ruby
Swyper has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 260 seconds]
akemhp_ has quit [Excess Flood]
<havenwood> uplime: Seems those barriers could just be regular tasks, since you're not waiting on a resource?
<uplime> should it just be in a regular async block then?
<havenwood> uplime: yup, a regular `task.async` is perfect. I think ideally save a reactor to `@task` or whatever.
<uplime> ah, good idea. ill give that a shot
<uplime> thanks for the tip
<uplime> should it be a task i pass in from the outer block?
Technodrome has joined #ruby
<uplime> so: Async do |task| bot.run task end ... def run(task) task.async do loop do @timer.wait end end
<uplime> or something like that
<havenwood> uplime: Sec, lemme try an example. I'm looking through async libs for a good pattern here.
greenhat_ has quit [Quit: WeeChat 2.6]
<uplime> ok, thanks
greenhat has joined #ruby
Swyper has joined #ruby
TCZ has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 268 seconds]
galaxie has quit [Remote host closed the connection]
impermanence has joined #ruby
galaxie has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
etupat has joined #ruby
jcalla has quit [Quit: Leaving]
<havenwood> uplime: saw ioquatix's response. makes sense. timers itself isn't async.
<havenwood> uplime: this is what I was gunna share, fwiw: https://gist.github.com/havenwood/7f4efb00ec2b4a5c19ce89a536bbbd91
<uplime> ah, yeah, that's similar to what I ended up with
<havenwood> uplime: I think store the reactor as an instance variable.
<havenwood> uplime: nice.
<uplime> and now i can just do makeshift timers with def after(n, &block) @task.async @task.sleep n; yield if block_given? end
<havenwood> uplime: the only issue with this approach is that it "slips" by the time `yield` finishes.
<uplime> yeah, it won't be 100% accurate but thats fine. im not doing anything critical with it
<uplime> i might not even actually need them for anything else (besides the usecase in gitter)
Technodrome has joined #ruby
<havenwood> uplime: trying to think how to best accommodate for time slippage but still be async...
<havenwood> (for when that's desired)
<uplime> oh, thanks. at the very least, it will be good to have an example of it
<uplime> quick q - i should be storing the outermost Async's reactor in an instance variable right?
TCZ has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
Fernando-Basso has joined #ruby
<havenwood> uplime: Yeah, I didn't find an example but my thinking was to store a single @reactor, or whatever you want to call it.
TCZ has quit [Read error: Connection reset by peer]
<uplime> yeah, that makes sense, just thought id double chek
TCZ has joined #ruby
etupat has quit []
<uplime> just tested and it looks to be working \o/ (for the ping usecase at least)
<uplime> which means i just need to implement two more things before i can start turning it into a gem
TCZ has quit [Client Quit]
<havenwood> uplime: ioquatix's advice is one reactor per thread.
akemhp has joined #ruby
<uplime> oh, that's good to know
<havenwood> uplime: So I guess a constant could make sense, depending on whether you're doing multi-process or multi-threading.
<uplime> is the reactor managing the event loop under the hood?
<havenwood> uplime: yeah
<uplime> makes sense
<havenwood> uplime: it's an I/O reactor, which an `Async do` creates automatically.
<uplime> this is a lot easier to get with Async::IO than EventMachine, heh
<havenwood> :)
<uplime> can't wait to play with Async::HTTP and Falcon
<uplime> would i still use passenger with something like falcon, or would i just use nginx as a reverse proxy to it?
<havenwood> uplime: `Async do` is just sugar for `Async::Reactor.run do` - which in turn creates a new reactor unless you're already in one.
animo8 has joined #ruby
<havenwood> uplime: Nope, no Passenger with Falcon.
<uplime> and im guessing it does soem magic when evaling a nested Async block to use the same reactor?
wmoxam has joined #ruby
<havenwood> uplime: yup
<uplime> oh, yeah, i see its right at the beginning of the method to test that
<havenwood> uplime: You can either reverse proxy from NGINX to Falcon or serve up to port 443 directly with Falcon, no NGINX.
<havenwood> uplime: "Virtual Hosts" is still experimental though: https://github.com/socketry/falcon#virtual-hosts
<havenwood> Very fancy!
<uplime> oh cool, so it must terminate TLS pretty well then?
Swyper has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 265 seconds]
impermanence has quit [Remote host closed the connection]
skx86 has quit [Quit: Connection closed for inactivity]
<havenwood> uplime: yeah, everything you need to just serve up directly from Ruby
<uplime> sweet, ill have to try it out when i add an http server to the bot
TomyLobo has joined #ruby
cthulchu has joined #ruby
duderonomy has joined #ruby
phaul has joined #ruby
cthu| has quit [Ping timeout: 260 seconds]
cthulchu has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
cthulchu has joined #ruby
duderonomy has quit [Client Quit]
dorian has quit [Ping timeout: 268 seconds]
dorian has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
DTZUZU has quit [Ping timeout: 265 seconds]
schne1der has quit [Ping timeout: 260 seconds]
DTZUZU has joined #ruby
nofxx has joined #ruby
nofxx_ has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
reber_ has quit [Remote host closed the connection]
DTZUZU has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallace_mu has quit [Ping timeout: 265 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
Esa_ has quit [Ping timeout: 260 seconds]
mossplix has joined #ruby
DTZUZU has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
mossplix has quit [Ping timeout: 265 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
ivanskie has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
ellcs has joined #ruby
cthulchu has quit [Quit: Leaving]
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
DTZUZU has joined #ruby
TCZ has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
bvdw has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
animo8 has quit [Remote host closed the connection]
DTZUZU has joined #ruby
mossplix has quit [Ping timeout: 260 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
animo8 has joined #ruby
mossplix has joined #ruby
DTZUZO has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
mossplix has quit [Ping timeout: 265 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
dkmueller has joined #ruby
DTZUZU has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
mossplix has quit [Ping timeout: 260 seconds]
<havenwood> uplime: Here's my stab at time not slipping: https://gist.github.com/havenwood/f7c372fdae5bd53cb7f819bd0c027f45
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
mossplix has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
TCZ has quit [Quit: Bye Bye]
DTZUZU has quit [Read error: Connection reset by peer]
mossplix has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
DaRock has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
<uplime> thanks havenwood!
<uplime> that looks good!
DTZUZO has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
mossplix has joined #ruby
ellcs has joined #ruby
bsdbandit-01 has quit [Ping timeout: 245 seconds]
mossplix has quit [Ping timeout: 258 seconds]
mossplix has joined #ruby
guzzlefry has joined #ruby