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