00:06
weskinner_work has quit [Ping timeout: 272 seconds]
00:17
waj has quit [Read error: Connection reset by peer]
00:17
waj has joined #crystal-lang
00:20
havenn has joined #crystal-lang
00:23
havenwood has quit [Ping timeout: 272 seconds]
00:26
havenn has quit [Ping timeout: 245 seconds]
00:46
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
00:53
havenwood has joined #crystal-lang
01:37
waj has quit [Quit: Leaving.]
02:00
waj has joined #crystal-lang
02:01
bcardiff has quit [Quit: Leaving.]
02:01
bcardiff has joined #crystal-lang
02:18
waj has quit [Quit: Leaving.]
02:27
havenwood has quit [Remote host closed the connection]
02:45
waj has joined #crystal-lang
02:50
waj has quit [Quit: Leaving.]
02:53
weskinner_mac has joined #crystal-lang
02:59
weskinner_mac has quit [Quit: weskinner_mac]
03:03
havenwood has joined #crystal-lang
05:51
bcardiff has quit [Quit: Leaving.]
07:16
ismaelga has quit [Remote host closed the connection]
07:17
ismaelga has joined #crystal-lang
07:20
ismaelga has quit [Remote host closed the connection]
08:21
ismaelga has joined #crystal-lang
08:25
ismaelga has quit [Ping timeout: 255 seconds]
09:21
ismaelga has joined #crystal-lang
09:25
havenwood has quit []
09:26
ismaelga has quit [Ping timeout: 240 seconds]
10:22
ismaelga has joined #crystal-lang
10:27
ismaelga has quit [Ping timeout: 245 seconds]
11:23
ismaelga has joined #crystal-lang
11:28
ismaelga has quit [Ping timeout: 246 seconds]
12:24
ismaelga has joined #crystal-lang
12:28
ismaelga has quit [Ping timeout: 240 seconds]
12:55
knoopx has joined #crystal-lang
13:00
bcardiff has joined #crystal-lang
13:24
bcardiff has quit [Quit: Leaving.]
13:25
ismaelga has joined #crystal-lang
13:29
ismaelga has quit [Ping timeout: 250 seconds]
13:51
waj has joined #crystal-lang
14:10
weskinner_mac has joined #crystal-lang
14:19
weskinner_mac has quit [Quit: weskinner_mac]
14:50
ismaelga has joined #crystal-lang
14:56
ismaelga has quit [Remote host closed the connection]
14:56
ismaelga has joined #crystal-lang
14:57
ismaelga has quit [Read error: Connection reset by peer]
14:57
ismaelga has joined #crystal-lang
15:19
weskinner_work has joined #crystal-lang
15:36
waj has quit [Quit: Leaving.]
15:39
<
weskinner_work >
I'm getting "no overload matches 'Int32#+' with types Nil"
15:40
<
weskinner_work >
from calling a class method with a Symbol param
15:40
<
weskinner_work >
" tetris.update action"
15:41
<
weskinner_work >
"in ./main.cr:38: instantiating 'Tetris::Game#update(Symbol)'"
15:42
<
jhass >
mmh, I have the feeling that the traces are incomplete sometimes
15:42
<
jhass >
check if you do add a (potential) nil to a number somewhere in the code descending from that method
15:43
<
jhass >
good candidates are instance variables, since they're nilable unless initialized in all constructors
15:43
<
weskinner_work >
good call
15:43
<
weskinner_work >
it's something inside update
15:48
<
weskinner_work >
" request.y += 1 while render_current_tetromino(request)"
15:49
bcardiff has joined #crystal-lang
15:49
<
weskinner_work >
converting into to long while form fixed it
15:50
<
jhass >
mmh, might be a bug
16:04
<
weskinner_work >
this form works as well
16:04
<
weskinner_work >
(request.y += 1) while render_current_tetromino(request)
16:22
waj has joined #crystal-lang
16:24
ismaelga has quit [Remote host closed the connection]
16:27
ismaelga has joined #crystal-lang
16:34
ismaelga has quit [Remote host closed the connection]
16:34
<
weskinner_work >
how can I set a Void* member of a struct to nil?
16:34
<
weskinner_work >
"in ./game.cr:91: field 'data1' of struct LibSDL2::UserEvent has type Pointer(Void), not Nil"
16:35
ismaelga has joined #crystal-lang
16:38
ismaelga has quit [Remote host closed the connection]
16:39
<
jhass >
yeah, bug IMO
16:40
<
jhass >
another thing that IMO should work, so maybe open an issue for that too
16:40
<
jhass >
but assigning Pointer(Void).null should work
16:40
<
weskinner_work >
word
16:51
ismaelga has joined #crystal-lang
17:24
havenwood has joined #crystal-lang
17:35
bcardiff has quit [Quit: Leaving.]
18:03
ismaelga has quit [Remote host closed the connection]
18:08
shama has joined #crystal-lang
18:13
<
travis-ci >
manastech/crystal#2063 (master - f96c8d6 : Ary Borenszweig): The build is still failing.
18:14
ismaelga has joined #crystal-lang
18:18
<
weskinner_work >
will hopefully have my Tetris port finished up this weekend :)
18:23
knoopx has quit [Remote host closed the connection]
18:25
asterite has joined #crystal-lang
18:26
<
asterite >
Did someone say tetяis?
18:27
<
asterite >
jhass: your problem with ssl was that you got a nil failed assertion after some time?
18:27
<
asterite >
I mean, "hello" :)
18:27
<
jhass >
yeah, pretty reproducably in the program when doing a second request to the github API with the same HTTP::Client instance after the timeout, iirc
18:31
<
jhass >
though at this point I wouldn't even be sure if that wasn't just another side effect of the memory corruption
18:31
<
asterite >
I don't think so. I'm hitting the slack api, wait 30 seconds, hit again and I get that nil assertion failed
18:31
<
jhass >
ah, at least something :P
18:31
<
asterite >
And it's consistent :)
18:32
<
jhass >
I tested with google and couldn't reproduce
18:32
<
asterite >
I have no idea why, but waj did that ssl thing, so I guess he'll have the answer
18:47
<
asterite >
So, apparently the connection is kept open and the server must be closing it after some time, but we don't check if it was closed before doing a request
18:48
<
jhass >
still weird that that turns something into nil
18:49
<
jhass >
I expected some Errno in that case
18:49
<
jhass >
"trying to read from closed socket", something like that
18:49
<
asterite >
Below you can see "unexpected end of http response" being raised
18:49
<
asterite >
but there it's just doing not_nil!
18:49
<
jhass >
still, gets on a closed socket should raise Errno
18:51
ismael__ has joined #crystal-lang
18:51
ismael__ has quit [Remote host closed the connection]
18:51
<
asterite >
It also happens on http, not only https
18:53
ismaelga has quit [Ping timeout: 246 seconds]
18:55
<
asterite >
Hmm… apparently you can detect when a socket was closed if, when you read, it returns 0
18:56
<
asterite >
"Upon reading end-of-file, zero is returned"
18:56
<
asterite >
I wonder what Ruby does in that case
18:56
<
jhass >
let's dig it out
19:01
havenwood has quit [Remote host closed the connection]
19:05
<
asterite >
That program runs in ruby and crystal :)
19:05
<
asterite >
In ruby it says "broken pipe" when writing, in Crystal it crashes… not very good :)
19:06
<
jhass >
yeah, ruby does all kind of checks all over the place
19:37
weskinner_mac has joined #crystal-lang
19:46
weskinner_mac has quit [Quit: weskinner_mac]
19:59
waj has quit [Quit: Leaving.]
20:04
bcardiff has joined #crystal-lang
20:22
<
crystal-gh >
crystal/master 2f7d39e Ary Borenszweig: Fixed: calls weren't recomputed when subclasses were added to virtual metclasses
20:32
<
travis-ci >
manastech/crystal#2064 (master - 2f7d39e : Ary Borenszweig): The build is still failing.
20:40
bcardiff has quit [Quit: Leaving.]
20:40
bcardiff has joined #crystal-lang
20:49
<
jhass >
yay llvm 3.6 is out!
21:01
waj has joined #crystal-lang
21:17
<
asterite >
jhass: yes! No more strange crashs on mac :)
21:17
<
asterite >
But we'll have to wait a bit until it's on homebrew, and I guess on other systems too
21:18
<
asterite >
The bad things is that they changed the debug IR in 3.6… and they changed it again in 3.7 :/
21:18
<
jhass >
yeah, I tempted to try if it fixes my issue too, but then compiling LLVM takes forever...
21:18
<
jhass >
well, I think it's fair to stay only with the latest llvm release compatible until 1.0
21:18
<
asterite >
Wow, there will be a 1.0? :)
21:19
<
jhass >
somewhere in the future :P
21:19
<
asterite >
I hope, hehe
21:20
<
jhass >
we probably have to figure out a way to write bindings compatible with different ABI versions anyway before we reach that point
21:25
<
asterite >
You mean, regarding llvm?
21:25
<
jhass >
in general really
21:26
<
jhass >
the simple approach would be making the library version that's going to be linked at available as a ifdef flag
21:27
<
jhass >
though maybe we can find something that leads to less spaghetti
21:39
<
travis-ci >
manastech/crystal#2062 (master - febda50 : Ary Borenszweig): The build is still failing.
21:40
<
asterite >
Oh, you mean, make crystal compatible with many llvm versions?
21:40
<
asterite >
I'll try to stick with one version
21:40
<
jhass >
that is something I wouldn't bother with before 1.0, yeah
21:41
<
asterite >
"I tempted to try if it fixes my issue too" -> what issue you have?
21:41
<
jhass >
but in general, we'll need a way to write bindings that are compatible many ABI versions in the long term
21:41
<
jhass >
the segfault?
21:52
<
asterite >
What segfault?
21:53
<
weskinner_work >
is there any kind of syntactic sugar for struct member initialization?
21:54
<
weskinner_work >
like C has the "{1, 3, NULL}" syntax
21:55
<
asterite >
Yes, use named arguments
21:55
<
asterite >
That is, for C structs
21:55
<
weskinner_work >
ah! cool
22:01
<
asterite >
It's something special for C strutcts/unions, but I think it makes writing bindings a lot easier
22:01
<
asterite >
I wonder if we should rename "colorize" to "bash_colors"… if at one point we want to add color-related functions it will be a bit confusing :)
22:02
<
jhass >
ANSIColor.red(string) ?
22:03
<
jhass >
or even ANSICode
22:03
<
jhass >
bash is a bad name, it's a property of the terminal, not the shell
22:20
bcardiff has quit [Quit: Leaving.]
22:22
asterite has quit [Quit: Leaving.]
22:28
waj has quit [Quit: Leaving.]
22:35
waj has joined #crystal-lang
22:51
asterite has joined #crystal-lang
22:51
bcardiff has joined #crystal-lang
22:52
asterite has quit [Read error: Connection reset by peer]
22:52
asterite has joined #crystal-lang
22:54
asterite has quit [Client Quit]
23:13
bcardiff has quit [Quit: Leaving.]
23:23
waj has quit [Quit: Leaving.]
23:27
weskinner_work has quit [Ping timeout: 264 seconds]
23:56
r20 has joined #crystal-lang
23:58
r20 has quit [Client Quit]
23:59
waj has joined #crystal-lang