00:00
chrisseaton has left #crystal-lang [#crystal-lang]
00:05
pawnbox has joined #crystal-lang
00:09
pawnbox has quit [Ping timeout: 248 seconds]
00:12
Sadin has quit [Ping timeout: 245 seconds]
00:34
pawnbox has joined #crystal-lang
00:39
pawnbox has quit [Ping timeout: 250 seconds]
00:45
elia has quit [Quit: Computer has gone to sleep.]
00:55
Sadin has joined #crystal-lang
01:15
pawnbox has joined #crystal-lang
01:19
pawnbox has quit [Ping timeout: 252 seconds]
01:34
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
01:54
pawnbox has joined #crystal-lang
01:59
pawnbox has quit [Ping timeout: 240 seconds]
02:20
greengriminal has joined #crystal-lang
02:24
pawnbox has joined #crystal-lang
02:25
pawnbox has quit [Read error: Connection reset by peer]
02:25
pawnbox_ has joined #crystal-lang
02:26
pawnbox_ has quit [Read error: Connection reset by peer]
02:26
pawnbox has joined #crystal-lang
02:27
pawnbox has quit [Read error: Connection reset by peer]
02:27
pawnbox has joined #crystal-lang
02:31
jokke has quit [Quit: WeeChat 1.4]
02:31
pawnbox has quit [Read error: Connection reset by peer]
02:42
fowlduck_ has quit [Remote host closed the connection]
02:52
pawnbox has joined #crystal-lang
02:55
greengriminal has quit [Quit: Leaving]
02:57
fowlduck has joined #crystal-lang
02:57
pawnbox has quit [Ping timeout: 264 seconds]
03:22
pawnbox has joined #crystal-lang
03:27
pawnbox has quit [Ping timeout: 252 seconds]
03:33
pawnbox has joined #crystal-lang
03:43
pawnbox has quit [Remote host closed the connection]
03:58
pawnbox has joined #crystal-lang
04:03
pawnbox has quit [Ping timeout: 276 seconds]
04:13
pawnbox has joined #crystal-lang
04:15
Bofu2U has quit [Read error: Connection reset by peer]
04:16
Bofu2U has joined #crystal-lang
04:52
djanatyn is now known as djan_angelica
05:01
pawnbox has quit [Remote host closed the connection]
05:06
pawnbox has joined #crystal-lang
05:11
Sadin has quit [Read error: Connection reset by peer]
05:57
fowlduck has quit [Remote host closed the connection]
06:18
fowlduck has joined #crystal-lang
06:34
pawnbox has quit [Remote host closed the connection]
07:11
greengriminal has joined #crystal-lang
07:12
pawnbox has joined #crystal-lang
07:17
pawnbox has quit [Remote host closed the connection]
07:18
pawnbox has joined #crystal-lang
07:20
pawnbox has quit [Remote host closed the connection]
07:27
trapped has joined #crystal-lang
07:30
djellemah_ is now known as djellemah
07:30
pawnbox has joined #crystal-lang
07:35
pawnbox has quit [Ping timeout: 264 seconds]
07:39
jsaak has quit [Ping timeout: 240 seconds]
07:40
pawnbox has joined #crystal-lang
07:44
pawnbox has quit [Remote host closed the connection]
07:45
pawnbox has joined #crystal-lang
07:50
trapped has quit [Read error: Connection reset by peer]
08:02
greengriminal has quit [Quit: Leaving]
08:05
Ven has joined #crystal-lang
08:09
pawnbox has quit [Remote host closed the connection]
08:19
pawnbox has joined #crystal-lang
08:24
pawnbox has quit [Ping timeout: 252 seconds]
08:24
pawnbox has joined #crystal-lang
08:28
pawnbox has quit [Ping timeout: 240 seconds]
08:45
Ven has quit [Read error: Connection reset by peer]
08:46
Ven has joined #crystal-lang
08:51
pawnbox has joined #crystal-lang
08:51
pawnbox has quit [Remote host closed the connection]
09:03
elia has joined #crystal-lang
09:14
Philpax has quit [Ping timeout: 248 seconds]
09:18
fowlduck has quit [Remote host closed the connection]
09:30
elia has quit [Read error: Connection reset by peer]
09:31
elia has joined #crystal-lang
09:38
fowlduck has joined #crystal-lang
09:39
jokke has joined #crystal-lang
09:44
elia has quit [Read error: Connection reset by peer]
09:48
pawnbox has joined #crystal-lang
09:49
elia has joined #crystal-lang
09:53
pawnbox has quit [Remote host closed the connection]
09:59
pawnbox has joined #crystal-lang
10:03
pawnbox has quit [Remote host closed the connection]
10:04
pawnbox has joined #crystal-lang
10:04
pawnbox has quit [Remote host closed the connection]
10:06
elia has quit [Read error: Connection reset by peer]
10:08
elia has joined #crystal-lang
10:39
elia has quit [Read error: Connection reset by peer]
10:41
elia has joined #crystal-lang
10:43
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:44
fowlduck has quit [Read error: Connection reset by peer]
10:45
fowlduck has joined #crystal-lang
10:46
Philpax has joined #crystal-lang
10:51
elia has quit [Read error: Connection reset by peer]
10:54
elia has joined #crystal-lang
11:00
pawnbox has joined #crystal-lang
11:02
pawnbox has quit [Remote host closed the connection]
11:03
pawnbox has joined #crystal-lang
11:07
elia has quit [Read error: Connection reset by peer]
11:10
elia has joined #crystal-lang
11:27
elia has quit [Read error: Connection reset by peer]
11:31
elia has joined #crystal-lang
11:49
sdogruyol has joined #crystal-lang
11:50
<
sdogruyol >
asterite: is there way to get the GC stats like in Ruby GC.stat?
11:51
<
sdogruyol >
or any way to access this GC properties (if there's any of course)
11:58
pawnbox has quit [Remote host closed the connection]
12:01
Ven has joined #crystal-lang
12:13
Philpax has quit [Ping timeout: 250 seconds]
12:13
<
BlaXpirit >
or make a weak reference :|
12:14
BlaXpirit has quit [Quit: Bye]
12:14
BlaXpirit has joined #crystal-lang
12:17
sdogruyol has quit [Remote host closed the connection]
12:27
BlaXpirit has quit [Quit: Bye]
12:27
elia has quit [Read error: Connection reset by peer]
12:27
BlaXpirit has joined #crystal-lang
12:34
sdogruyol has joined #crystal-lang
12:34
trapped has joined #crystal-lang
12:36
elia has joined #crystal-lang
12:38
fowlduck has quit [Remote host closed the connection]
12:38
pawnbox has joined #crystal-lang
12:39
djan_angelica is now known as djanatyn
12:48
elia has quit [Read error: Connection reset by peer]
12:51
kostya has joined #crystal-lang
12:58
fowlduck has joined #crystal-lang
12:59
elia has joined #crystal-lang
13:09
pawnbox has quit [Remote host closed the connection]
13:10
pawnbox has joined #crystal-lang
13:24
pawnbox has quit [Ping timeout: 240 seconds]
13:28
pawnbox has joined #crystal-lang
13:29
pawnbox has quit [Remote host closed the connection]
13:30
pawnbox has joined #crystal-lang
13:32
sdogruyol has quit [Remote host closed the connection]
13:35
sdogruyol has joined #crystal-lang
13:39
sdogruyol has quit [Remote host closed the connection]
13:45
elia has quit [Read error: Connection reset by peer]
13:46
elia has joined #crystal-lang
14:01
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:04
sdogruyol has joined #crystal-lang
14:11
<
crystal-gh >
crystal/master 479b66f Ary Borenszweig: BigInt: added some docs
14:11
<
crystal-gh >
crystal/master a3fff1e Ary Borenszweig: Errno: added some docs
14:11
<
crystal-gh >
crystal/master 9eeca13 Ary Borenszweig: BigInt: raise if string is invalid on creation
14:21
Ven has joined #crystal-lang
14:24
elia has quit [Read error: Connection reset by peer]
14:28
<
asterite >
sdogruyol: GC_PRINT_STATS=1
14:29
<
asterite >
And in general, check what you can do with boehm, what flags it supports. But those stats aren't super useful I think
14:29
<
sdogruyol >
now that's interesting!
14:29
<
sdogruyol >
checking it out thanks a lot :)
14:31
trapped_ has joined #crystal-lang
14:31
trapped has quit [Read error: Connection reset by peer]
14:31
<
sdogruyol >
asterite: GC_PRINT_STATS=1 works fine but after some time it kills the process.
14:32
<
sdogruyol >
E.g when i'm stress testing with wrk
14:32
elia has joined #crystal-lang
14:32
<
asterite >
Maybe the other function then
14:32
<
sdogruyol >
the other function?
14:44
elia has quit [Read error: Connection reset by peer]
14:55
elia has joined #crystal-lang
15:03
<
crystal-gh >
[crystal] ysbaddaden closed pull request #1519: add real_path class method for File (master...real_path)
https://git.io/vnLuU
15:05
elia has quit [Read error: Connection reset by peer]
15:10
elia has joined #crystal-lang
15:19
pawnbox has quit [Ping timeout: 250 seconds]
15:20
elia has quit [Read error: Connection reset by peer]
15:21
elia has joined #crystal-lang
15:31
pawnbox has joined #crystal-lang
15:32
elia has quit [Read error: Connection reset by peer]
15:34
elia has joined #crystal-lang
15:34
<
crystal-gh >
crystal/master 1db0d10 Ary Borenszweig: Fixed: missing clone in macro yield
15:46
<
jokke >
i have a weird bug with IO.pipe
15:46
<
jokke >
i have some code that tries to figure out if stuff in stdin is binary data
15:46
<
jokke >
so i use libmagic
15:47
<
BlaXpirit >
ah, congrats on a real certificate
15:48
<
jokke >
with some data (images for example) the code never moves past line 21
15:48
<
jokke >
whereas other file work fine. even binaries
15:49
<
BlaXpirit >
jokke, no no no
15:49
<
BlaXpirit >
type String is only for text
15:49
<
BlaXpirit >
it can't hold other data
15:49
<
BlaXpirit >
only UTF-8
15:49
<
BlaXpirit >
u need slice or whatever it's called these days
15:50
<
jokke >
BlaXpirit: where do you see me using string?
15:50
<
BlaXpirit >
but wait, yeah that's what I just realized, sorry
15:51
<
jokke >
i copy STDIN to a memory io, because i'll need it later.
15:51
<
jokke >
(and STDIN can't be seeked)
15:52
<
jokke >
so basically that hit's the second constructor overload which then opens a pipe and copies the contents of the MemoryIO to the pipe
15:53
<
jokke >
and that is what blocks infinately
15:57
Ven has quit [Ping timeout: 256 seconds]
15:58
fowlduck has quit [Remote host closed the connection]
16:03
sdogruyol has quit [Remote host closed the connection]
16:18
fowlduck has joined #crystal-lang
16:19
kostya has quit [Quit: Leaving]
16:27
Sadin has joined #crystal-lang
16:31
elia has quit [Read error: Connection reset by peer]
16:31
elia has joined #crystal-lang
16:42
elia has quit [Read error: Connection reset by peer]
16:43
elia has joined #crystal-lang
16:46
shama has joined #crystal-lang
16:50
pawnbox has quit [Remote host closed the connection]
16:51
pawnbox has joined #crystal-lang
17:10
elia has quit [Read error: Connection reset by peer]
17:13
elia has joined #crystal-lang
17:20
greengriminal has joined #crystal-lang
17:28
elia has quit [Read error: Connection reset by peer]
17:29
elia has joined #crystal-lang
17:30
elia has quit [Client Quit]
17:33
tomchapin has joined #crystal-lang
17:35
greengriminal has quit [Quit: This computer has gone to sleep]
17:39
greengriminal has joined #crystal-lang
18:00
Sadin has quit [Remote host closed the connection]
18:01
shadeslayer has quit [Ping timeout: 256 seconds]
18:03
shadeslayer has joined #crystal-lang
18:04
<
waj >
jokke: does it bock no matter how much data you send?
18:05
<
waj >
you cannot write unlimited data to a pipe without reading
18:10
sdogruyol has joined #crystal-lang
18:14
sdogruyol has quit [Ping timeout: 264 seconds]
18:21
Sadin has joined #crystal-lang
18:31
Sadin has quit [Quit: Leaving]
18:34
greengriminal has quit [Quit: This computer has gone to sleep]
18:39
greengriminal has joined #crystal-lang
18:55
pawnbox has quit [Remote host closed the connection]
18:55
pawnbox has joined #crystal-lang
18:55
pawnbox has quit [Remote host closed the connection]
18:56
pawnbox has joined #crystal-lang
18:56
pawnbox has quit [Remote host closed the connection]
18:57
pawnbox has joined #crystal-lang
19:11
sdogruyol has joined #crystal-lang
19:13
Luke has joined #crystal-lang
19:13
Luke has quit [Client Quit]
19:13
Luk3 has joined #crystal-lang
19:14
<
Luk3 >
hey everyone I have a question
19:15
<
Luk3 >
trying to do the cartesian product of a number of arrays
19:15
<
Luk3 >
in ruby its pretty easy like this
19:15
sdogruyol has quit [Ping timeout: 240 seconds]
19:15
<
Luk3 >
combos = [[1,2,3], [4,5,6], [7,8,9,10]]
19:15
<
Luk3 >
pp combos[0].product(*combos[1..-1])
19:16
<
Luk3 >
i get this error "argument to splat must be a tuple, not Array(Array(Int32))"
19:18
fowlduck has quit [Remote host closed the connection]
19:27
<
jeromegn >
you can only splat tuples
19:28
<
Luk3 >
can what i'm trying to accomplish be done with tuples?
19:31
<
jeromegn >
I'm not sure, but I think methods can't take a variable number of arguments.
19:32
<
jeromegn >
combos = {[1,2,3], [4,5,6], [7,8,9,10]}
19:34
<
Luk3 >
no overload matches '{Array(Int32), Array(Int32), Array(Int32)}#[]' with types Range(Int32, Int32) Overloads are: - {Array(Int32), Array(Int32), Array(Int32)}#[](index : Int) puts combos[0].product(*combos[1..-1])
19:35
<
jeromegn >
yea, there's no way to do a range on a tuple
19:35
<
jeromegn >
at least, currently
19:37
<
BlaXpirit >
>> Array.product([[1,2,3],[4,5,6],[7,8,9]])
19:37
<
DeBot >
BlaXpirit: # => [[1, 4, 7], [1, 4, 8], [1, 4, 9], [1, 5, 7], [1, 5, 8], [1, 5, 9], [1, 6, 7], [1, 6, 8], [1, 6, 9], [2, 4, 7], [2, 4, 8], [2, 4, 9], [2, 5, 7], [2, 5, 8], [2, 5, 9], [2, 6, 7], [2, 6, 8], [2, 6, 9], [3, 4, 7], [3, 4, 8], [3, 4, 9], [3, 5, 7], [3, 5, 8], [3, 5, 9], [3, 6, 7], [3, 6, 8], [3, 6, 9]] -
https://carc.in/#/r/rwn
19:37
<
BlaXpirit >
Luk3, not tricky if you stop trying random stuff that looks like ruby and read documentation instead
19:38
fowlduck has joined #crystal-lang
19:45
<
Luk3 >
looks like I have some reading to do
19:49
<
Luk3 >
now how to make it lazy lol
19:50
<
BlaXpirit >
Luk3, it's all there. each_product
20:02
<
Luk3 >
wow this is fast :D
20:13
sdogruyol has joined #crystal-lang
20:17
sdogruyol has quit [Ping timeout: 272 seconds]
20:38
<
crystal-gh >
crystal/master 71fa8a8 Ary Borenszweig: Formatter: fixed macro expressions formatting
20:40
tomchapin has joined #crystal-lang
20:42
<
asterite >
Some docs are missing, though, particularily for those methods, but maybe they are "guessable"
20:55
Philpax has joined #crystal-lang
21:13
Philpax has quit [Ping timeout: 240 seconds]
21:29
elia has joined #crystal-lang
21:37
<
crystal-gh >
crystal/master c4d47ea Ary Borenszweig: Fixed #1735: Unable to return instance of subclass or Nil
21:39
pawnbox_ has joined #crystal-lang
21:45
grindhold_ has joined #crystal-lang
21:47
jhass|off has joined #crystal-lang
21:48
omninonsense has joined #crystal-lang
21:48
pawnbox has quit [*.net *.split]
21:48
grindhold has quit [*.net *.split]
21:48
sardaukar has quit [*.net *.split]
21:48
trajing has quit [*.net *.split]
21:48
[spoiler] has quit [*.net *.split]
21:48
braidn has quit [*.net *.split]
21:48
iamstef has quit [*.net *.split]
21:48
AckZ has quit [*.net *.split]
21:48
jhass has quit [*.net *.split]
21:48
jhass|off is now known as jhass
21:50
g3funk has joined #crystal-lang
21:54
ssvb has joined #crystal-lang
21:55
toydestroyer has joined #crystal-lang
21:55
iamstef has joined #crystal-lang
21:55
AckZ has joined #crystal-lang
21:57
jwaldrip has joined #crystal-lang
21:58
greengriminal has quit [Quit: Leaving]
22:01
greengriminal has joined #crystal-lang
22:14
sdogruyol has joined #crystal-lang
22:17
iamstef_ has joined #crystal-lang
22:19
sdogruyol has quit [Ping timeout: 250 seconds]
22:22
iamstef has quit [Ping timeout: 240 seconds]
22:22
toydestroyer has quit [Ping timeout: 240 seconds]
22:22
ponga has quit [Ping timeout: 240 seconds]
22:23
toydestroyer has joined #crystal-lang
22:23
toydestroyer has quit [Changing host]
22:23
toydestroyer has joined #crystal-lang
22:24
ponga has joined #crystal-lang
22:24
iamstef_ is now known as iamstef
22:38
fowlduck has quit [Remote host closed the connection]
22:51
greengriminal has quit [Quit: Leaving]
22:58
fowlduck has joined #crystal-lang
23:13
<
crystal-gh >
crystal/master 0c03e8b Ary Borenszweig: Fixed #2134: missing case to handle in Zlib.inflate where no output is available because we need to feed it more input
23:16
<
crystal-gh >
crystal/master 2362b79 Ary Borenszweig: Merge pull request #2105 from manastech/property_getter_setter_type_restrictions...
23:23
Philpax has joined #crystal-lang
23:24
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:29
<
crystal-gh >
[crystal] asterite closed pull request #2123: HTTP::Client: assume http scheme if none given. Fixes #2117 (master...http_client_assume_http)
https://git.io/vgRqG
23:36
<
crystal-gh >
[crystal] asterite closed pull request #2119: Feature/sigfault handler (master...feature/sigfault-handler)
https://git.io/vg4VH