00:01
snsei has quit [Remote host closed the connection]
00:06
bjz has joined #crystal-lang
00:09
soveran has joined #crystal-lang
00:15
soveran has quit [Ping timeout: 244 seconds]
00:17
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:14
kulelu88 has quit [Quit: Leaving]
01:49
willl has quit [Quit: Connection closed for inactivity]
02:09
snsei has joined #crystal-lang
02:12
soveran has joined #crystal-lang
02:15
snsei has quit [Ping timeout: 244 seconds]
02:18
soveran has quit [Ping timeout: 265 seconds]
02:31
coderobe has quit [Quit: Ping timeout (120 seconds)]
02:47
bjz has joined #crystal-lang
02:48
g3funk is now known as braidn
02:52
bjz has quit [Ping timeout: 265 seconds]
02:54
bjz has joined #crystal-lang
03:25
Philpax has quit [Ping timeout: 265 seconds]
04:18
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:38
pawnbox has joined #crystal-lang
04:44
pawnbox has quit [Remote host closed the connection]
04:59
Philpax has joined #crystal-lang
05:40
bjz has joined #crystal-lang
05:41
jeromegn has quit [Ping timeout: 252 seconds]
05:41
ponga has joined #crystal-lang
05:47
jeromegn has joined #crystal-lang
05:59
pawnbox has joined #crystal-lang
06:38
mark_66 has joined #crystal-lang
07:17
bjz_ has joined #crystal-lang
07:17
bjz has quit [Ping timeout: 265 seconds]
07:57
soveran has joined #crystal-lang
07:57
soveran has joined #crystal-lang
07:57
soveran has quit [Changing host]
08:58
pawnbox has quit [Remote host closed the connection]
08:58
pawnbox has joined #crystal-lang
09:03
pawnbox has quit [Ping timeout: 252 seconds]
09:56
pawnbox has joined #crystal-lang
10:08
soveran has quit [Remote host closed the connection]
10:23
pawnbox has quit [Remote host closed the connection]
10:26
pawnbox has joined #crystal-lang
10:37
pawnbox has quit [Remote host closed the connection]
10:37
pawnbox has joined #crystal-lang
10:38
soveran has joined #crystal-lang
10:38
soveran has joined #crystal-lang
10:38
soveran has quit [Changing host]
10:55
x0f has quit [Ping timeout: 264 seconds]
10:56
x0f has joined #crystal-lang
11:02
eizua has joined #crystal-lang
12:28
pawnbox has quit [Remote host closed the connection]
12:47
sandelius has joined #crystal-lang
13:06
pduncan has quit [Ping timeout: 272 seconds]
13:11
pawnbox has joined #crystal-lang
13:16
pawnbox has quit [Ping timeout: 272 seconds]
13:19
pawnbox has joined #crystal-lang
13:38
Philpax has quit [Ping timeout: 244 seconds]
13:50
x0f has quit [Ping timeout: 265 seconds]
13:57
x0f has joined #crystal-lang
13:58
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:01
x0f has quit [Ping timeout: 248 seconds]
14:02
mgarciaisaia has joined #crystal-lang
14:02
x0f has joined #crystal-lang
14:02
mgarciaisaia has left #crystal-lang [#crystal-lang]
14:17
LastWhisper____ has joined #crystal-lang
14:19
Renich has joined #crystal-lang
14:22
soveran has quit [Remote host closed the connection]
14:36
matp_ is now known as matp
14:37
coderobe has joined #crystal-lang
14:38
pawnbox has quit [*.net *.split]
14:38
ponga has quit [*.net *.split]
14:38
onethirtyfive has quit [*.net *.split]
14:39
pawnbox has joined #crystal-lang
14:39
onethirtyfive has joined #crystal-lang
14:43
<
FromGitter >
<raydf> Hi @paulcsmith , what are you trying to do?
14:44
ponga has joined #crystal-lang
15:01
<
FromGitter >
<sdogruyol> @paulcsmith you can do that
15:02
<
FromGitter >
<sdogruyol> but you need to explicity specify the type of env like `env : HTTP::Server::Context`
15:12
<
FromGitter >
<paulcsmith> @sdogruyol Thanks for the tip! I'm going to give that a try :)
15:18
Renich has quit [Ping timeout: 244 seconds]
15:23
soveran has joined #crystal-lang
15:23
soveran has joined #crystal-lang
15:23
soveran has quit [Changing host]
15:25
Renich has joined #crystal-lang
15:27
<
FromGitter >
<johnjansen> a macro perhaps?
15:27
soveran has quit [Remote host closed the connection]
15:28
soveran has joined #crystal-lang
15:28
soveran has quit [Changing host]
15:28
soveran has joined #crystal-lang
15:40
<
FromGitter >
<sdogruyol> @raydf havent thought about that
15:40
mark_66 has quit [Remote host closed the connection]
15:40
<
FromGitter >
<sdogruyol> @paulcsmith you should not declare that as method
15:41
<
FromGitter >
<paulcsmith> Ah ok so what I was trying to do is not possible
15:41
<
FromGitter >
<paulcsmith> Gotcha. Ok so I have to explicitly return a Proc. I thought maybe there would be a way to make a method into a Proc somehow :)
15:42
<
FromGitter >
<paulcsmith> That's ok though, this will work fine
15:43
<
FromGitter >
<johnjansen> @raydf NOTE TO SELF: always check the source before commenting ;-) …
15:44
<
FromGitter >
<paulcsmith> Thanks for the help @sdogruyol
15:48
<
FromGitter >
<paulcsmith> This is obviously useless in this example, but I'm just playing around with how Crystal handles blocks/procs :)
16:00
<
FromGitter >
<johnjansen> anyone know how to enforce the type of items in a splat i.e. `def blah(*paths # <= must be strings`
16:01
pawnbox has quit [Ping timeout: 272 seconds]
16:06
pawnbox has joined #crystal-lang
16:11
Renich has quit [Ping timeout: 272 seconds]
16:12
Renich has joined #crystal-lang
16:22
snsei has joined #crystal-lang
16:25
snsei has quit [Read error: Connection reset by peer]
16:30
x0f has quit [Ping timeout: 252 seconds]
16:30
snsei has joined #crystal-lang
17:11
snsei has quit [Remote host closed the connection]
17:13
soveran has quit [Remote host closed the connection]
17:14
soveran has joined #crystal-lang
17:15
soveran has quit [Remote host closed the connection]
18:08
sandelius has joined #crystal-lang
18:11
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:15
soveran has joined #crystal-lang
18:16
LastWhisper____ has joined #crystal-lang
18:21
soveran has quit [Ping timeout: 264 seconds]
18:21
eizua has quit [Quit: Leaving]
18:24
optikfluffel has joined #crystal-lang
18:25
onethirtyfive has quit [Remote host closed the connection]
18:25
optikfluffel has quit [Client Quit]
18:25
optikfluffel has joined #crystal-lang
18:28
scottj has joined #crystal-lang
18:30
Renich has quit [Quit: leaving]
18:35
<
FromGitter >
<johnjansen> ahh stoopid me … ;-) cheers @sdogruyol
18:37
x0f has joined #crystal-lang
18:55
<
FromGitter >
<sdogruyol> @johnjansen :)
19:06
A124 has quit [Quit: '']
19:07
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:25
onethirtyfive has joined #crystal-lang
19:27
A124 has joined #crystal-lang
19:30
onethirtyfive has quit [Ping timeout: 252 seconds]
19:33
kulelu88 has joined #crystal-lang
19:40
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:42
optikfluffel has joined #crystal-lang
19:46
optikfluffel has quit [Client Quit]
19:56
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:57
LastWhisper____ has joined #crystal-lang
19:57
LastWhisper____ has quit [Client Quit]
20:19
soveran has joined #crystal-lang
20:24
soveran has quit [Ping timeout: 264 seconds]
20:29
<
crystal-gh >
crystal/master 919818e Ary Borenszweig: Expose LLVM atomic operations to Crystal, and add Atomic(T) struct....
20:30
pawnbox has quit [Remote host closed the connection]
20:30
pawnbox has joined #crystal-lang
20:35
pawnbox has quit [Remote host closed the connection]
20:35
pawnbox has joined #crystal-lang
21:04
onethirtyfive has joined #crystal-lang
21:09
onethirtyfive has quit [Ping timeout: 264 seconds]
21:12
<
Yxhuvud >
asterite: you are adding CAS, will we get memory fences as well?
21:20
fryguy9 has joined #crystal-lang
21:27
pawnbox has quit [Remote host closed the connection]
21:31
optikfluffel has joined #crystal-lang
21:34
LastWhisper____ has joined #crystal-lang
21:35
<
FromGitter >
<asterite> but we will use those in the runtime, one shouldn't need to use these low-level primitives
21:36
pawnbox has joined #crystal-lang
21:40
<
FromGitter >
<sonic182> Hi! I've a little issue that maybe you can give the answer quickly
21:41
pawnbox has quit [Ping timeout: 244 seconds]
21:42
<
FromGitter >
<sonic182> (with single quotes the same thing)
21:43
<
FromGitter >
<jwoertink> new_string = old_string.gsub(/whatever/, "1")
21:43
<
FromGitter >
<jwoertink> single quotes is for a character
21:43
<
FromGitter >
<sonic182> omg with regex I've to change a single character from a position of string? o.O
21:45
<
FromGitter >
<jwoertink> There's other overloads for gsub, so you don't have to use regex
21:45
<
FromGitter >
<jwoertink> like `"hello".gsub("e", "a")`
21:47
<
FromGitter >
<sonic182> im working with bits representeds on a string "000111010100101" I just want to change from a position X if it's 0 -> 1 or it's 1 -> 0
21:47
<
FromGitter >
<sonic182> Im reading the api
21:48
<
FromGitter >
<sonic182> but I haven't found anything simple to do this simple task
21:49
soveran has joined #crystal-lang
21:49
<
FromGitter >
<sonic182> just convert all the string to array of chars, do the change and build the string from that array, but's that's crazy
21:50
<
FromGitter >
<jwoertink> ah
21:50
<
FromGitter >
<jwoertink> you want the `sub` method
21:51
<
FromGitter >
<sonic182> Thanks! that's it :)
21:51
<
FromGitter >
<jwoertink> no problem :)
21:53
<
FromGitter >
<sonic182> but it should be more eficient, in this case is generating other string in memory that's unnecesary
21:54
<
FromGitter >
<jwoertink> I think strings in Crystal are immutable
21:55
<
FromGitter >
<sonic182> "A String represents an immutable sequence of UTF-8 characters."
21:55
<
FromGitter >
<sonic182> Oh yes, the top of string docs says that e.e
21:56
<
FromGitter >
<sonic182> xD
21:58
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:59
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:06
pawnbox has joined #crystal-lang
22:08
fryguy9 has quit [Ping timeout: 256 seconds]
22:08
snsei has joined #crystal-lang
22:09
optikfluffel has joined #crystal-lang
22:11
pawnbox has quit [Ping timeout: 265 seconds]
22:18
ruby_ has joined #crystal-lang
22:24
snsei has quit [Remote host closed the connection]
22:26
snsei_ has joined #crystal-lang
22:27
snsei_ has quit [Remote host closed the connection]
22:28
soveran has quit [Remote host closed the connection]
23:15
pawnbox has joined #crystal-lang
23:19
pawnbox has quit [Ping timeout: 256 seconds]
23:45
pawnbox has joined #crystal-lang
23:49
pawnbox has quit [Ping timeout: 252 seconds]