jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.11.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
chrisseaton has left #crystal-lang [#crystal-lang]
tomchapi_ has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
Sadin has quit [Ping timeout: 245 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
greyblake has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
elia has quit [Quit: Computer has gone to sleep.]
Sadin has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
greengriminal has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #crystal-lang
pawnbox_ has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
jokke has quit [Quit: WeeChat 1.4]
pawnbox has quit [Read error: Connection reset by peer]
fowlduck_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
fowlduck has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
Bofu2U has quit [Read error: Connection reset by peer]
Bofu2U has joined #crystal-lang
djanatyn is now known as djan_angelica
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Sadin has quit [Read error: Connection reset by peer]
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
greengriminal has joined #crystal-lang
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]
trapped has joined #crystal-lang
djellemah_ is now known as djellemah
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
jsaak has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
greengriminal has quit [Quit: Leaving]
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
elia has joined #crystal-lang
Philpax has quit [Ping timeout: 248 seconds]
fowlduck has quit [Remote host closed the connection]
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
fowlduck has joined #crystal-lang
jokke has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
elia 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]
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has quit [Read error: Connection reset by peer]
fowlduck has joined #crystal-lang
Philpax has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
sdogruyol has joined #crystal-lang
<sdogruyol> asterite: is there way to get the GC stats like in Ruby GC.stat?
<sdogruyol> or any way to access this GC properties (if there's any of course)
pawnbox has quit [Remote host closed the connection]
Ven has joined #crystal-lang
Philpax has quit [Ping timeout: 250 seconds]
<BlaXpirit> or make a weak reference :|
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Bye]
elia has quit [Read error: Connection reset by peer]
BlaXpirit has joined #crystal-lang
sdogruyol has joined #crystal-lang
trapped has joined #crystal-lang
elia has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
djan_angelica is now known as djanatyn
elia has quit [Read error: Connection reset by peer]
kostya has joined #crystal-lang
fowlduck has joined #crystal-lang
elia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
sdogruyol has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdogruyol has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 8 new commits to master: https://git.io/vgags
<crystal-gh> crystal/master 479b66f Ary Borenszweig: BigInt: added some docs
<crystal-gh> crystal/master a3fff1e Ary Borenszweig: Errno: added some docs
<crystal-gh> crystal/master 9eeca13 Ary Borenszweig: BigInt: raise if string is invalid on creation
Ven has joined #crystal-lang
<travis-ci> manastech/crystal#46eea26 (master - Docs: hide Scheduler and Reflect): The build was broken. https://travis-ci.org/manastech/crystal/builds/108282884
elia has quit [Read error: Connection reset by peer]
<asterite> sdogruyol: GC_PRINT_STATS=1
<asterite> And in general, check what you can do with boehm, what flags it supports. But those stats aren't super useful I think
<sdogruyol> now that's interesting!
<sdogruyol> checking it out thanks a lot :)
trapped_ has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
<sdogruyol> asterite: GC_PRINT_STATS=1 works fine but after some time it kills the process.
<sdogruyol> E.g when i'm stress testing with wrk
<asterite> it?
elia has joined #crystal-lang
<asterite> Maybe the other function then
<sdogruyol> the other function?
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden closed pull request #1519: add real_path class method for File (master...real_path) https://git.io/vnLuU
emancu has quit []
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
<travis-ci> manastech/crystal#43b7c15 (master - Merge pull request #1519 from jreinert/real_path): The build is still failing. https://travis-ci.org/manastech/crystal/builds/108294926
<DeBot> https://github.com/manastech/crystal/pull/1519 (add real_path class method for File)
pawnbox has quit [Ping timeout: 250 seconds]
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
pawnbox has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vga5O
<crystal-gh> crystal/master 1db0d10 Ary Borenszweig: Fixed: missing clone in macro yield
<jokke> i have a weird bug with IO.pipe
<jokke> i have some code that tries to figure out if stuff in stdin is binary data
<jokke> so i use libmagic
<jokke> here's my code: https://p.jreinert.com/mhk8/ruby
<BlaXpirit> ah, congrats on a real certificate
<jokke> with some data (images for example) the code never moves past line 21
<jokke> whereas other file work fine. even binaries
<jokke> *files
<BlaXpirit> jokke, no no no
<jokke> no?
<BlaXpirit> type String is only for text
<BlaXpirit> it can't hold other data
<jokke> huh?
<BlaXpirit> only UTF-8
<jokke> aaah
<jokke> ok
<BlaXpirit> u need slice or whatever it's called these days
<jokke> BlaXpirit: where do you see me using string?
<BlaXpirit> but wait, yeah that's what I just realized, sorry
<jokke> here's how i call the code: https://p.jreinert.com/EfVNM/ruby
<jokke> i copy STDIN to a memory io, because i'll need it later.
<jokke> (and STDIN can't be seeked)
<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
<jokke> *hits
<jokke> and that is what blocks infinately
Ven has quit [Ping timeout: 256 seconds]
fowlduck has quit [Remote host closed the connection]
sdogruyol has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
kostya has quit [Quit: Leaving]
Sadin has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
shama has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
greengriminal has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
elia has quit [Client Quit]
tomchapin has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
Sadin has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 256 seconds]
shadeslayer has joined #crystal-lang
<waj> jokke: does it bock no matter how much data you send?
<waj> you cannot write unlimited data to a pipe without reading
sdogruyol has joined #crystal-lang
sdogruyol has quit [Ping timeout: 264 seconds]
Sadin has joined #crystal-lang
Sadin has quit [Quit: Leaving]
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal 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
sdogruyol has joined #crystal-lang
Luke has joined #crystal-lang
Luke has quit [Client Quit]
Luk3 has joined #crystal-lang
<Luk3> hey everyone I have a question
<Luk3> trying to do the cartesian product of a number of arrays
<Luk3> in ruby its pretty easy like this
sdogruyol has quit [Ping timeout: 240 seconds]
<Luk3> combos = [[1,2,3], [4,5,6], [7,8,9,10]]
<Luk3> pp combos[0].product(*combos[1..-1])
<Luk3> i get this error "argument to splat must be a tuple, not Array(Array(Int32))"
fowlduck has quit [Remote host closed the connection]
<jeromegn> you can only splat tuples
<Luk3> can what i'
<Luk3> can what i'm trying to accomplish be done with tuples?
<jeromegn> I'm not sure, but I think methods can't take a variable number of arguments.
<jeromegn> mm
<jeromegn> combos = {[1,2,3], [4,5,6], [7,8,9,10]}
<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])
<jeromegn> yea, there's no way to do a range on a tuple
<jeromegn> at least, currently
<Luk3> hmm tricky
<BlaXpirit> >> Array.product([[1,2,3],[4,5,6],[7,8,9]])
<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
<BlaXpirit> Luk3, not tricky if you stop trying random stuff that looks like ruby and read documentation instead
fowlduck has joined #crystal-lang
<Luk3> :X too easy
<Luk3> thank you
<BlaXpirit> Luk3, there is an immense number of methods here http://crystal-lang.org/api/Array
<Luk3> looks like I have some reading to do
<Luk3> now how to make it lazy lol
<BlaXpirit> Luk3, it's all there. each_product
<BlaXpirit> but of course you should start with http://crystal-lang.org/docs/
<Luk3> wow this is fast :D
sdogruyol has joined #crystal-lang
sdogruyol has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vgwP3
<crystal-gh> crystal/master 71fa8a8 Ary Borenszweig: Formatter: fixed macro expressions formatting
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
tomchapin has joined #crystal-lang
<asterite> Some docs are missing, though, particularily for those methods, but maybe they are "guessable"
<travis-ci> manastech/crystal#71fa8a8 (master - Formatter: fixed macro expressions formatting): The build passed. https://travis-ci.org/manastech/crystal/builds/108377135
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
elia has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vgwFW
<crystal-gh> crystal/master c4d47ea Ary Borenszweig: Fixed #1735: Unable to return instance of subclass or Nil
pawnbox_ has joined #crystal-lang
grindhold_ has joined #crystal-lang
jhass|off has joined #crystal-lang
omninonsense has joined #crystal-lang
pawnbox has quit [*.net *.split]
grindhold has quit [*.net *.split]
sardaukar has quit [*.net *.split]
trajing has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
braidn has quit [*.net *.split]
iamstef has quit [*.net *.split]
AckZ has quit [*.net *.split]
jhass has quit [*.net *.split]
jhass|off is now known as jhass
g3funk has joined #crystal-lang
<travis-ci> manastech/crystal#c4d47ea (master - Fixed #1735: Unable to return instance of subclass or Nil): The build passed. https://travis-ci.org/manastech/crystal/builds/108390178
<DeBot> https://github.com/manastech/crystal/issues/1735 (Unable to return instance of subclass or Nil)
ssvb has joined #crystal-lang
toydestroyer has joined #crystal-lang
iamstef has joined #crystal-lang
AckZ has joined #crystal-lang
jwaldrip has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
greengriminal has joined #crystal-lang
sdogruyol has joined #crystal-lang
iamstef_ has joined #crystal-lang
sdogruyol has quit [Ping timeout: 250 seconds]
iamstef has quit [Ping timeout: 240 seconds]
toydestroyer has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 240 seconds]
toydestroyer has joined #crystal-lang
toydestroyer has quit [Changing host]
toydestroyer has joined #crystal-lang
ponga has joined #crystal-lang
iamstef_ is now known as iamstef
fowlduck has quit [Remote host closed the connection]
greengriminal has quit [Quit: Leaving]
fowlduck has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vgrsl
<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
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vgrGY
<crystal-gh> crystal/master 2362b79 Ary Borenszweig: Merge pull request #2105 from manastech/property_getter_setter_type_restrictions...
Philpax has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci> manastech/crystal#0c03e8b (master - Fixed #2134: missing case to handle in Zlib.inflate where no output is available because we need to feed it more input): The build passed. https://travis-ci.org/manastech/crystal/builds/108411373
<DeBot> https://github.com/manastech/crystal/issues/2134 (HTTP::Client body is empty)
<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
<travis-ci> manastech/crystal#2362b79 (master - Merge pull request #2105 from manastech/property_getter_setter_type_restrictions): The build passed. https://travis-ci.org/manastech/crystal/builds/108412314
<DeBot> https://github.com/manastech/crystal/pull/2105 (Make macros property, getter, setter, etc., declare instance variables)
<crystal-gh> [crystal] asterite closed pull request #2119: Feature/sigfault handler (master...feature/sigfault-handler) https://git.io/vg4VH
<travis-ci> manastech/crystal#2949a2c (master - Merge pull request #2123 from manastech/http_client_assume_http): The build passed. https://travis-ci.org/manastech/crystal/builds/108415069
<DeBot> https://github.com/manastech/crystal/pull/2123 (HTTP::Client: assume http scheme if none given. Fixes #2117)
<travis-ci> manastech/crystal#17b8846 (master - Merge pull request #2119 from waj/feature/sigfault-handler): The build passed. https://travis-ci.org/manastech/crystal/builds/108416274
<DeBot> https://github.com/manastech/crystal/pull/2119 (Feature/sigfault handler)