jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
trapped has quit [Ping timeout: 252 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
NeverDie has quit [Quit: http://radiux.io/]
<CompanionCube> hm
* CompanionCube wonders what the best way to check a C library's presence would be for a crystal pap
<CompanionCube> app
<jhass> well, for starters what would you do if it's not present, compile time, runtime, both?
<CompanionCube> well, the library is a dependency of the application (both at runtime and compiletime)
<jhass> so just assume it's there and try to link against it, the linker will complain soon enough
<CompanionCube> but wouldn't it be nicer to present an error when compiling the program?
<jhass> I dunno what everybody finds so hard about reading linker errors ...
<jhass> that is compile time
NeverDie has joined #crystal-lang
mrx1 has quit [Ping timeout: 260 seconds]
mrx1 has joined #crystal-lang
<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
buggs has quit [Quit: WeeChat 0.4.2]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
nakilon_ has joined #crystal-lang
leafybas_ has joined #crystal-lang
xAndy has quit [Ping timeout: 264 seconds]
nakilon has quit [Ping timeout: 264 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
blue_deref has quit [Ping timeout: 264 seconds]
Excureo has quit [Ping timeout: 264 seconds]
Excureo has joined #crystal-lang
pawnbox has joined #crystal-lang
xAndy has joined #crystal-lang
RX14 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
blue_deref has joined #crystal-lang
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 255 seconds]
blue_deref has quit [Quit: bbn]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 260 seconds]
xd1le has joined #crystal-lang
barosl has quit [Quit: Leaving]
leafybasil has joined #crystal-lang
barosl has joined #crystal-lang
zodiak_ has quit [Read error: Connection reset by peer]
leafybasil has quit [Ping timeout: 264 seconds]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
xd1le has quit [Quit: ERC (IRC client for Emacs 24.5.2)]
pawnbox_ has quit [Ping timeout: 244 seconds]
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
leafybasil has quit [Ping timeout: 255 seconds]
trapped has joined #crystal-lang
<jokke> jhass: do you need anything else for #1888 ?
<DeBot> https://github.com/manastech/crystal/pull/1888 (more sophisticated cookie parsing. Correctly handles multiple cookies)
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
benoist has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
petercommand is now known as petercommandA_A
petercommandA_A is now known as petercommand
benoist has quit []
<jokke> if i were to stream stuff to the body of a http response, how would i do this?
Ven has joined #crystal-lang
<jokke> more specifically i want to use libarchive to stream a tar archive of unknown size to the body
<jokke> the archive will be created on the fly
<jokke> basically i'd need some sort of fifo which i would use for write output in libarchive and pass that as body_io
leafybasil has joined #crystal-lang
nakilon_ has quit [Quit: WHY NOT?]
mrx1 has left #crystal-lang ["WeeChat 1.1.1"]
leafybasil has quit [Ping timeout: 240 seconds]
Ven has quit [Read error: Connection reset by peer]
ssvb has joined #crystal-lang
Ven has joined #crystal-lang
leafybasil has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven_ has joined #crystal-lang
Ven__ has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven_ has quit [Read error: Connection reset by peer]
Ven__ has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
ssvb has quit [Ping timeout: 260 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<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
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<travis-ci> manastech/crystal#ab8a2a4 (master - Merge pull request #1892 from technorama/f/pkcs5): The build passed. https://travis-ci.org/manastech/crystal/builds/91229092
<DeBot> https://github.com/manastech/crystal/pull/1892 (OpenSSL::PKCS5.pbkdf2_hmac_sha1 string size fix and error checking.)
<jhass> jokke: IO.pipe ?
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ssvb has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
sdogruyol has joined #crystal-lang
<sdogruyol> is there faster way of writing to stdout other than puts
<BlaXpirit> sdogruyol, perhaps print
<BlaXpirit> what do you mean faster
<BlaXpirit> it's not supposed to be slow
<BlaXpirit> oh, printf is also available
<sdogruyol> BlaXpirit: puts is reallyy slow
<sdogruyol> BlaXpirit: checking out STDOUT.print
<BlaXpirit> printf may be even faster but it's from libc
<sdogruyol> i'm trying to see why HTTP::LogHandler is slow
<sdogruyol> guess because of puts
<sdogruyol> let me check all of those
<BlaXpirit> sdogruyol, what about it?
<sdogruyol> this line cuts the rps output of kemal more than 2 times
<BlaXpirit> sdogruyol, if it's printed to an actual screen, then no wonder
<sdogruyol> yeah but still
<sdogruyol> BlaXpirit: i get like 60k-70k without printing and 35k with printing :(
<BlaXpirit> printing to screen really is that slow, always
<RX14> yup
<RX14> font rendering
<BlaXpirit> sdogruyol, try running your program &>/dev/null
<sdogruyol> BlaXpirit: let me see
<BlaXpirit> or maybe to file, hopefully it's buffered
<RX14> to /dev/null will cut most of that time
sdogruyol has quit [Remote host closed the connection]
sdogruyo_ has joined #crystal-lang
sdogruyo_ has quit [Remote host closed the connection]
sdogruyo_ has joined #crystal-lang
<sdogruyo_> still i really wonder how Rust can print so fast without losing any performance at all
<RX14> probbaly cause it isn't blocking?
<sdogruyo_> is it blocking in Crystal?
<sdogruyo_> we have libevent
<RX14> pretty sure it is
<RX14> sdogruyo_, well crystal uses blocking IO and fibers
<BlaXpirit> isn't blocking, eh?
<RX14> BlaXpirit, I have no idea
<RX14> but the only way it could be faster is by being noin-blocking
<BlaXpirit> that sounds awesome and surreal
<RX14> it sounds stupid
<RX14> i doubt it is really
<RX14> i guess it's a placebo
<sdogruyo_> :P
<sdogruyo_> guess i'll have to redirect the output to a file for better performance
<RX14> well that's what you will do in prod
<RX14> either way
<sdogruyo_> yeah
<sdogruyo_> just wanted to know if there's any way to speed that up other than that
sdogruyo_ has quit [Remote host closed the connection]
blue_deref has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/]
NeverDie has joined #crystal-lang
barosl has quit [Quit: Leaving]
barosl has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<jokke> jhass: yeah
<jokke> jhass: i forgot how the destructor is called in crystal again..
<jhass> finalize
<jokke> thanks
NeverDie has quit [Quit: http://radiux.io/]
Ven has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/]
NeverDie has joined #crystal-lang
qard__ has joined #crystal-lang
<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?
<jokke> i set both read and write_blocking to true but this causes the process to hang
<jhass> you need to do the writing in a new coroutine
<jokke> sure
<jokke> i did that
<jhass> well, I never tried it myself
<jokke> hmm
blue_deref has quit [Quit: bbn]
ssvb has quit [Ping timeout: 246 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven_ has joined #crystal-lang
grindhold_ is now known as friedrich_woehle
friedrich_woehle is now known as grindhold
ssvb has joined #crystal-lang
Ven_ has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
lokulin has joined #crystal-lang
lokulin has quit [Changing host]
BlaXpirit has quit [Client Quit]
BlaXpirit has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: http://radiux.io/]
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 276 seconds]
leafybasil has joined #crystal-lang
NeverDie has joined #crystal-lang
hohenfall has joined #crystal-lang
blue_deref has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 272 seconds]