00:30
<
FromGitter >
<domgetter> How do you check if something is a NamedTuple?
00:32
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:50
<
FromGitter >
<domgetter> so `is_a?` works, but where is that method defined? It wasn't in the instance method list for `Object`
00:57
<
FromGitter >
<fridgerator> hrm
00:58
bjz has joined #crystal-lang
00:58
bjz has quit [Client Quit]
00:59
<
FromGitter >
<fridgerator> good question, I don't know where its defined
01:01
Renich has joined #crystal-lang
01:16
Renich has quit [Quit: Renich]
01:18
snsei has joined #crystal-lang
01:32
snsei has quit [Remote host closed the connection]
01:37
bjz has joined #crystal-lang
01:39
snsei has joined #crystal-lang
01:39
snsei has quit [Remote host closed the connection]
01:47
DaleK5whr has joined #crystal-lang
01:54
snsei has joined #crystal-lang
02:10
snsei has quit [Remote host closed the connection]
02:15
DaleK5whr has quit [Quit: Leaving]
02:25
<
FromGitter >
<domgetter> Be the change you wish to see in the world
02:29
<
kodo[m] >
I was just looking at creating it. heh tempted to just copy the design and use kemal
02:29
<
kodo[m] >
What's the crystal colour scheme?
02:29
<
kodo[m] >
the website makes me think black and white
02:35
snsei has joined #crystal-lang
03:21
snsei has quit [Remote host closed the connection]
03:26
snsei has joined #crystal-lang
03:44
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:01
bjz has joined #crystal-lang
04:36
phase_ has joined #crystal-lang
04:38
olek_poz has joined #crystal-lang
05:11
Renich has joined #crystal-lang
05:29
Renich has quit [Remote host closed the connection]
05:34
_whitelogger has joined #crystal-lang
05:37
olek_poz has quit [Ping timeout: 260 seconds]
06:10
_whitelogger has joined #crystal-lang
06:19
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:02
bjz has joined #crystal-lang
07:41
phase_ has quit [Remote host closed the connection]
07:50
<
vegai_ >
to familiarize myself with the codebase, I started looking at the second oldest issue: adding unsafe to the language
07:51
<
vegai_ >
extending the semantic parts with the unsafe attribute seemed easy, but now I'm wondering where the compile-time checking should go to
07:52
<
vegai_ >
MainVisitor class, perhaps?
08:01
Raimondii has joined #crystal-lang
08:04
Raimondi has quit [Ping timeout: 268 seconds]
08:04
Raimondii is now known as Raimondi
08:37
snsei has quit [Remote host closed the connection]
08:58
vegai has joined #crystal-lang
08:58
vegai_ has left #crystal-lang [#crystal-lang]
09:38
snsei has joined #crystal-lang
09:43
snsei has quit [Ping timeout: 240 seconds]
11:09
snsei has joined #crystal-lang
11:14
snsei has quit [Ping timeout: 268 seconds]
11:49
bjz has quit [Ping timeout: 268 seconds]
11:52
bjz has joined #crystal-lang
12:48
KCreate has joined #crystal-lang
13:13
pduncan has joined #crystal-lang
13:15
fenicks has joined #crystal-lang
13:58
KCreate has quit [Quit: leaving]
15:05
snsei has joined #crystal-lang
15:10
snsei has quit [Ping timeout: 258 seconds]
15:30
snsei has joined #crystal-lang
15:36
<
FromGitter >
<bew> Why `1+2..9-1` is parsed as `(1+2)..(9-1)`
15:37
endou has quit [Ping timeout: 240 seconds]
15:40
<
FromGitter >
<bew> for example, `1..str.size - 1`is visually easier to parse as `(1..str.size) - 1` (even if it's semantically not correct), although it's parsed as `1..(str.size - 1)`
15:46
<
vegai >
another reason to get rid of .. and ... altogether :)
15:47
<
vegai >
even though it's a very neat literal in many places
15:50
<
FromGitter >
<domgetter> The Perl6 range literal syntax is kind of interesting. If you put a ^ next to one of the boundaries, it is exclusive on that boundary. So `1^..^5` is 2 to 4.
15:57
<
vegai >
the mathematical notation would be neat too: [1,5], [1,5), (1,5], (1,5) but would obviously be hell to parse
15:58
<
vegai >
or just plain impossible
15:59
Ven has joined #crystal-lang
16:00
Ven is now known as Guest13463
16:02
<
vegai >
perhaps [1..5] [1..5) (1..5] (1..5) -- according to wikipedia, such notation is sometimes used in math
16:02
<
vegai >
although it was followed by (citation needed) :)
16:03
<
vegai >
the double dot would make it at least theoretically parseable
16:38
Guest13463 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:43
<
FromGitter >
<Sija> @vegai syntax parsing would be awful
16:54
<
Papierkorb >
vegai: Yep that's the syntax we've learnt in uni too
16:55
<
vegai >
Sija: yeah :-/
16:55
<
vegai >
sometimes I wish that the world would've stopped finding new syntaxes after Lisp was invented
16:55
<
vegai >
we should teach s-expressions to kids at kindergarten
16:58
olek_poz has joined #crystal-lang
17:24
<
kodo[m] >
Is there anything like ECR that works on an IO instead of a filename?
17:25
<
FromGitter >
<Sija> ECR works with IO
17:25
<
FromGitter >
<Sija> see `ECR.embed`
17:26
<
kodo[m] >
embed takes a filename and embeds into an io
17:26
<
kodo[m] >
I want to take an io and put into another io
17:26
<
FromGitter >
<Sija> oh, i see
17:27
<
FromGitter >
<Sija> `ECR#process_string`
17:27
<
FromGitter >
<Sija> ?
17:27
<
kodo[m] >
is that an actual thing?
17:27
<
kodo[m] >
oh my docs are outdated
17:27
<
FromGitter >
<Sija> uhm, it’s `:nodoc:`-ed
17:27
<
kodo[m] >
thats what i get for googling
17:29
<
kodo[m] >
sija, I don't see it in the source
17:31
<
kodo[m] >
ah in ecr/processor thanks
17:38
snsei has quit [Remote host closed the connection]
17:49
<
kodo[m] >
what do I do with process_string output? eval it?
17:50
<
kodo[m] >
spec file looks like it creates a "program" not sure what that means
17:51
asterite has quit [Ping timeout: 246 seconds]
17:51
asterite has joined #crystal-lang
17:53
<
BlaXpirit >
kodo[m], oh, it might produce actual Crystal code that, when run, renders a template
17:53
<
BlaXpirit >
thats probably why it's nodoced
17:53
<
BlaXpirit >
how ecr works: a macro invokes a process that runs this process_string and produces code and the code is baked in place
17:54
DeBot has quit [Ping timeout: 258 seconds]
17:54
<
kodo[m] >
I get that's how it works. I looking for something that takes an io and interpolates the ecr and returns an interpolated io
17:54
<
kodo[m] >
seems weird you only have the option to hard code the template into program
17:56
<
kodo[m] >
I looked at Kilt but it looks like it does the same thing
18:01
<
FromGitter >
<bew> kodo[m]: this is because ECR tempates files can contain arbitrary crystal code, and crystal doesn't have runtime code evaluation
18:01
<
kodo[m] >
good point
18:03
<
kodo[m] >
I was just looking at at
18:03
* kodo[m]
can't type
18:03
<
FromGitter >
<bew> ^^
18:04
<
kodo[m] >
That's exactly what I want. thanks
18:21
phase_ has joined #crystal-lang
18:23
ssvb has quit [Read error: Connection reset by peer]
18:56
<
FromGitter >
<sdogruyol> @kodo[m] are you domgetter on GH?
19:12
<
crystal-gh >
[crystal] adamtrilling opened pull request #4227: Add headers parameter for HTTP::WebSocket constructors (master...websocket-client-supports-headers)
https://git.io/vSls9
19:56
<
FromGitter >
<domgetter> sdogruyol: I am
20:00
<
FromGitter >
<domgetter> @sdogruyol what's up?
20:05
Ven has joined #crystal-lang
20:05
Ven is now known as Guest36204
20:15
DeBot has joined #crystal-lang
20:18
olek_poz has quit [Ping timeout: 260 seconds]
21:31
phase_ has quit [Ping timeout: 246 seconds]
21:55
vikaton has joined #crystal-lang
21:55
<
kodo[m] >
Sneak peek
21:57
<
kodo[m] >
react + kemal for the win
21:58
<
FromGitter >
<bew> Is the Crystal logo animated? :D
21:59
<
FromGitter >
<bew> What are you doing exactly?
22:29
<
FromGitter >
<bew> Nice!
23:13
txdv has quit [Ping timeout: 264 seconds]