00:05
trapped has quit [Ping timeout: 252 seconds]
00:13
Ven has quit [Read error: Connection reset by peer]
00:15
Ven has joined #crystal-lang
00:15
Ven has quit [Client Quit]
00:43
* CompanionCube
wonders what the best way to check a C library's presence would be for a crystal pap
00:43
<
CompanionCube >
app
00:44
<
jhass >
well, for starters what would you do if it's not present, compile time, runtime, both?
00:44
<
CompanionCube >
well, the library is a dependency of the application (both at runtime and compiletime)
00:45
<
jhass >
so just assume it's there and try to link against it, the linker will complain soon enough
00:46
<
CompanionCube >
but wouldn't it be nicer to present an error when compiling the program?
00:47
<
jhass >
I dunno what everybody finds so hard about reading linker errors ...
00:47
<
jhass >
that is compile time
00:54
NeverDie has joined #crystal-lang
01:01
mrx1 has quit [Ping timeout: 260 seconds]
01:15
mrx1 has joined #crystal-lang
01:23
<
crystal-gh >
[crystal] technorama opened pull request #1892: OpenSSL::PKCS5.pbkdf2_hmac_sha1 string size fix and error checking. (master...f/pkcs5)
http://git.io/v4Yxx
03:19
buggs has quit [Quit: WeeChat 0.4.2]
04:12
pawnbox has joined #crystal-lang
04:24
pawnbox has quit [Remote host closed the connection]
04:35
pawnbox has joined #crystal-lang
04:38
pawnbox has quit [Remote host closed the connection]
04:42
nakilon_ has joined #crystal-lang
04:43
leafybas_ has joined #crystal-lang
04:44
xAndy has quit [Ping timeout: 264 seconds]
04:45
nakilon has quit [Ping timeout: 264 seconds]
04:45
leafybasil has quit [Ping timeout: 264 seconds]
04:45
blue_deref has quit [Ping timeout: 264 seconds]
04:45
Excureo has quit [Ping timeout: 264 seconds]
04:45
Excureo has joined #crystal-lang
04:48
pawnbox has joined #crystal-lang
04:49
xAndy has joined #crystal-lang
04:51
RX14 has joined #crystal-lang
04:53
pawnbox has quit [Remote host closed the connection]
04:59
blue_deref has joined #crystal-lang
05:35
leafybas_ has quit [Remote host closed the connection]
05:36
leafybasil has joined #crystal-lang
05:41
leafybasil has quit [Ping timeout: 255 seconds]
05:45
blue_deref has quit [Quit: bbn]
06:37
leafybasil has joined #crystal-lang
06:43
leafybasil has quit [Ping timeout: 260 seconds]
06:51
xd1le has joined #crystal-lang
08:52
barosl has quit [Quit: Leaving]
08:53
leafybasil has joined #crystal-lang
08:58
barosl has joined #crystal-lang
08:58
zodiak_ has quit [Read error: Connection reset by peer]
08:58
leafybasil has quit [Ping timeout: 264 seconds]
09:22
pawnbox has joined #crystal-lang
09:33
pawnbox_ has joined #crystal-lang
09:34
pawnbox has quit [Ping timeout: 244 seconds]
09:51
xd1le has quit [Quit: ERC (IRC client for Emacs 24.5.2)]
10:04
pawnbox_ has quit [Ping timeout: 244 seconds]
10:09
leafybasil has joined #crystal-lang
10:09
pawnbox has joined #crystal-lang
10:12
pawnbox has quit [Remote host closed the connection]
10:14
pawnbox has joined #crystal-lang
10:14
leafybasil has quit [Ping timeout: 255 seconds]
10:31
trapped has joined #crystal-lang
10:46
<
jokke >
jhass: do you need anything else for #1888 ?
10:57
pawnbox has quit [Remote host closed the connection]
10:58
pawnbox has joined #crystal-lang
11:03
trapped has quit [Read error: Connection reset by peer]
11:07
trapped has joined #crystal-lang
11:07
benoist has joined #crystal-lang
11:17
pawnbox has quit [Ping timeout: 255 seconds]
11:20
petercommand is now known as petercommandA_A
11:21
petercommandA_A is now known as petercommand
11:35
benoist has quit []
11:37
<
jokke >
if i were to stream stuff to the body of a http response, how would i do this?
11:37
Ven has joined #crystal-lang
11:37
<
jokke >
more specifically i want to use libarchive to stream a tar archive of unknown size to the body
11:38
<
jokke >
the archive will be created on the fly
11:39
<
jokke >
basically i'd need some sort of fifo which i would use for write output in libarchive and pass that as body_io
11:40
leafybasil has joined #crystal-lang
11:41
nakilon_ has quit [Quit: WHY NOT?]
11:42
mrx1 has left #crystal-lang ["WeeChat 1.1.1"]
11:44
leafybasil has quit [Ping timeout: 240 seconds]
11:45
Ven has quit [Read error: Connection reset by peer]
11:45
ssvb has joined #crystal-lang
11:46
Ven has joined #crystal-lang
12:16
leafybasil has joined #crystal-lang
12:29
Ven has quit [Read error: Connection reset by peer]
12:30
Ven has joined #crystal-lang
12:44
leafybasil has quit [Remote host closed the connection]
12:44
Ven has quit [Read error: Connection reset by peer]
12:46
Ven has joined #crystal-lang
12:48
pawnbox has joined #crystal-lang
13:00
Ven_ has joined #crystal-lang
13:02
Ven__ has joined #crystal-lang
13:02
Ven has quit [Read error: Connection reset by peer]
13:02
Ven_ has quit [Read error: Connection reset by peer]
13:15
Ven__ has quit [Read error: Connection reset by peer]
13:15
Ven has joined #crystal-lang
13:30
Ven has quit [Read error: Connection reset by peer]
13:30
Ven has joined #crystal-lang
13:39
ssvb has quit [Ping timeout: 260 seconds]
13:45
Ven has quit [Read error: Connection reset by peer]
13:46
Ven has joined #crystal-lang
13:55
leafybasil has joined #crystal-lang
13:59
leafybasil has quit [Ping timeout: 240 seconds]
14:01
Ven has quit [Read error: Connection reset by peer]
14:03
Ven has joined #crystal-lang
14:15
Ven has quit [Read error: Connection reset by peer]
14:16
Ven has joined #crystal-lang
14:17
pawnbox has quit [Remote host closed the connection]
14:18
pawnbox has joined #crystal-lang
14:34
pawnbox has quit [Remote host closed the connection]
14:35
pawnbox has joined #crystal-lang
14:35
<
crystal-gh >
[crystal] jhass closed pull request #1892: OpenSSL::PKCS5.pbkdf2_hmac_sha1 string size fix and error checking. (master...f/pkcs5)
http://git.io/v4Yxx
14:38
pawnbox has quit [Remote host closed the connection]
14:39
pawnbox has joined #crystal-lang
14:39
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:47
<
jhass >
jokke: IO.pipe ?
14:49
Ven has joined #crystal-lang
14:58
pawnbox has quit [Remote host closed the connection]
14:58
pawnbox has joined #crystal-lang
15:03
pawnbox has quit [Remote host closed the connection]
15:04
pawnbox has joined #crystal-lang
15:05
pawnbox has quit [Remote host closed the connection]
15:06
pawnbox has joined #crystal-lang
15:15
ssvb has joined #crystal-lang
15:24
pawnbox has quit [Ping timeout: 276 seconds]
15:46
sdogruyol has joined #crystal-lang
15:48
<
sdogruyol >
is there faster way of writing to stdout other than puts
15:51
<
BlaXpirit >
sdogruyol, perhaps print
15:51
<
BlaXpirit >
what do you mean faster
15:51
<
BlaXpirit >
it's not supposed to be slow
15:51
<
BlaXpirit >
oh, printf is also available
15:51
<
sdogruyol >
BlaXpirit: puts is reallyy slow
15:51
<
sdogruyol >
BlaXpirit: checking out STDOUT.print
15:51
<
BlaXpirit >
printf may be even faster but it's from libc
15:52
<
sdogruyol >
i'm trying to see why HTTP::LogHandler is slow
15:52
<
sdogruyol >
guess because of puts
15:52
<
sdogruyol >
let me check all of those
15:53
<
BlaXpirit >
sdogruyol, what about it?
15:53
<
sdogruyol >
this line cuts the rps output of kemal more than 2 times
15:54
<
BlaXpirit >
sdogruyol, if it's printed to an actual screen, then no wonder
15:54
<
sdogruyol >
yeah but still
15:54
<
sdogruyol >
BlaXpirit: i get like 60k-70k without printing and 35k with printing :(
15:54
<
BlaXpirit >
printing to screen really is that slow, always
15:55
<
RX14 >
font rendering
15:55
<
BlaXpirit >
sdogruyol, try running your program &>/dev/null
15:55
<
sdogruyol >
BlaXpirit: let me see
15:55
<
BlaXpirit >
or maybe to file, hopefully it's buffered
15:56
<
RX14 >
to /dev/null will cut most of that time
15:57
sdogruyol has quit [Remote host closed the connection]
15:59
sdogruyo_ has joined #crystal-lang
15:59
sdogruyo_ has quit [Remote host closed the connection]
16:00
sdogruyo_ has joined #crystal-lang
16:00
<
sdogruyo_ >
still i really wonder how Rust can print so fast without losing any performance at all
16:02
<
RX14 >
probbaly cause it isn't blocking?
16:03
<
sdogruyo_ >
is it blocking in Crystal?
16:03
<
sdogruyo_ >
we have libevent
16:03
<
RX14 >
pretty sure it is
16:03
<
RX14 >
sdogruyo_, well crystal uses blocking IO and fibers
16:03
<
BlaXpirit >
isn't blocking, eh?
16:03
<
RX14 >
BlaXpirit, I have no idea
16:04
<
RX14 >
but the only way it could be faster is by being noin-blocking
16:04
<
BlaXpirit >
that sounds awesome and surreal
16:04
<
RX14 >
it sounds stupid
16:04
<
RX14 >
i doubt it is really
16:04
<
RX14 >
i guess it's a placebo
16:12
<
sdogruyo_ >
guess i'll have to redirect the output to a file for better performance
16:14
<
RX14 >
well that's what you will do in prod
16:15
<
sdogruyo_ >
just wanted to know if there's any way to speed that up other than that
16:22
sdogruyo_ has quit [Remote host closed the connection]
16:26
blue_deref has joined #crystal-lang
16:31
Ven has quit [Read error: Connection reset by peer]
16:32
Ven has joined #crystal-lang
16:46
Ven has quit [Read error: Connection reset by peer]
16:47
Ven has joined #crystal-lang
17:17
NeverDie has joined #crystal-lang
17:17
barosl has quit [Quit: Leaving]
17:30
barosl has joined #crystal-lang
18:17
Ven has quit [Read error: Connection reset by peer]
18:18
Ven has joined #crystal-lang
18:18
<
jokke >
jhass: yeah
18:18
<
jokke >
jhass: i forgot how the destructor is called in crystal again..
18:33
Ven has quit [Read error: Connection reset by peer]
18:33
NeverDie has joined #crystal-lang
18:33
Ven has joined #crystal-lang
18:34
Ven has quit [Read error: Connection reset by peer]
18:34
Ven has joined #crystal-lang
19:02
Ven has quit [Read error: Connection reset by peer]
19:04
Ven has joined #crystal-lang
19:49
Ven has quit [Read error: Connection reset by peer]
19:50
Ven has joined #crystal-lang
20:03
Ven has quit [Read error: Connection reset by peer]
20:04
Ven has joined #crystal-lang
20:19
Ven has quit [Read error: Connection reset by peer]
20:20
Ven has joined #crystal-lang
20:33
Ven has quit [Read error: Connection reset by peer]
20:34
Ven has joined #crystal-lang
20:34
Ven has quit [Read error: Connection reset by peer]
20:34
Ven has joined #crystal-lang
20:35
Ven has quit [Read error: Connection reset by peer]
20:35
Ven has joined #crystal-lang
20:54
NeverDie has joined #crystal-lang
20:55
qard__ has joined #crystal-lang
21:12
<
jokke >
jhass: how does pipe work exactly..? i'm wondering about the read_blocking and write_blocking args. If i want to write my archive to a pipe in the moment that the server reads the body_io (which would be the reader of the pipe) how would i do this?
21:12
<
jokke >
i set both read and write_blocking to true but this causes the process to hang
21:14
<
jhass >
you need to do the writing in a new coroutine
21:14
<
jhass >
well, I never tried it myself
21:26
blue_deref has quit [Quit: bbn]
21:27
ssvb has quit [Ping timeout: 246 seconds]
21:34
Ven has quit [Read error: Connection reset by peer]
21:34
Ven_ has joined #crystal-lang
21:40
grindhold_ is now known as friedrich_woehle
21:40
friedrich_woehle is now known as grindhold
21:41
ssvb has joined #crystal-lang
21:49
Ven_ has quit [Read error: Connection reset by peer]
21:54
Ven has joined #crystal-lang
22:05
Ven has quit [Read error: Connection reset by peer]
22:08
Ven has joined #crystal-lang
22:10
BlaXpirit has quit [Quit: Bye]
22:13
BlaXpirit has joined #crystal-lang
22:14
lokulin has joined #crystal-lang
22:14
lokulin has quit [Changing host]
22:15
BlaXpirit has quit [Client Quit]
22:17
BlaXpirit has joined #crystal-lang
22:19
Ven has quit [Read error: Connection reset by peer]
22:22
Ven has joined #crystal-lang
22:27
Ven has quit [Ping timeout: 276 seconds]
22:33
leafybasil has joined #crystal-lang
22:38
NeverDie has joined #crystal-lang
22:47
hohenfall has joined #crystal-lang
23:04
blue_deref has joined #crystal-lang
23:43
Ven has joined #crystal-lang
23:49
Ven has quit [Ping timeout: 272 seconds]