jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.12.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
emancu has quit [Ping timeout: 244 seconds]
deverly has joined #crystal-lang
<travis-ci> crystal-lang/crystal#7282cf3 (master - BigInt: only test to_u64 bug in 64 bits): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/113537167
trapped has quit [Read error: Connection reset by peer]
deverly has quit []
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
nakilon has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
nakilon has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
kulelu88 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
shama has quit [Read error: Connection reset by peer]
A124 has quit [Read error: Connection reset by peer]
shama has joined #crystal-lang
A124 has joined #crystal-lang
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
emancu has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
BlaXpirit has quit [Ping timeout: 240 seconds]
ytti has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #crystal-lang
Dreamer__ has quit [Ping timeout: 268 seconds]
BlaXpirit has joined #crystal-lang
bougyman has quit [Ping timeout: 250 seconds]
bougyman has joined #crystal-lang
pawnbox has joined #crystal-lang
ytti has joined #crystal-lang
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 246 seconds]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 252 seconds]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
bjz has joined #crystal-lang
nakilon has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
trapped has joined #crystal-lang
nakilon has quit [Ping timeout: 276 seconds]
ruslux has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 252 seconds]
Dreamer3_ has quit [Ping timeout: 276 seconds]
Dreamer3_ has joined #crystal-lang
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
<BlaXpirit> Hello. What are my options if I would like to distribute binaries compiled with Crystal? Looking mainly for Linux currently.
<BlaXpirit> My main concerns are dynamically linked libraries, all kinds of unexpected dependencies that won't let someone run it on another computer
Gasher has joined #crystal-lang
sp4rrow has joined #crystal-lang
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 268 seconds]
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
trapped has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 2 new commits to master: https://git.io/v25cy
<crystal-gh> crystal/master 43bcd77 Nicolas: Add Char::Reader documentation
<crystal-gh> crystal/master 8f871a9 Jonne Haß: Merge pull request #2247 from Zavydiel/char-reader...
<travis-ci> crystal-lang/crystal#8f871a9 (master - Merge pull request #2247 from Zavydiel/char-reader): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113621542
[spoiler] has quit [Quit: Cheers!]
[spoiler] has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
rok has joined #crystal-lang
ruslux has quit [Remote host closed the connection]
bjz_ has quit [Ping timeout: 244 seconds]
umurgdk has quit [Remote host closed the connection]
bjz has joined #crystal-lang
fowlduck has joined #crystal-lang
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
umurgdk has joined #crystal-lang
rok has quit [Quit: rok]
bjz has quit [Ping timeout: 260 seconds]
bjz has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 260 seconds]
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/v25Qb
<crystal-gh> crystal/master c73d932 Jonne Haß: Compile all libcrystal.a objects with -fPIC...
<travis-ci> crystal-lang/crystal#c73d932 (master - Compile all libcrystal.a objects with -fPIC): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113652699
umurgdk has quit [Read error: Connection reset by peer]
emancu has quit []
<crystal-gh> [crystal] HeleneMyr opened pull request #2265: add tests for BitArray (master...bitArrayTest) https://git.io/v25j5
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
umurgdk has joined #crystal-lang
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
<crystal-gh> [crystal] HeleneMyr opened pull request #2266: add tests for Tuple (master...tupleTest) https://git.io/v2dYm
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
trapped has joined #crystal-lang
waghanza has joined #crystal-lang
<waghanza> hi all
<waghanza> new in crystal community
umurgdk has quit [Ping timeout: 260 seconds]
<waghanza> I wonder know how to solve type inference
<waghanza> I have `Error type must be (Nil | String | Float64 | Bool | Int64 | Array(JSON::Type) | Hash(String, JSON::Type)), not (Nil | String | Float32 | Float64 | Bool | Int32 | Int64 | Int8 | Int16 | UInt8 | UInt16 | UInt32 | UInt64 | Array(JSON::Type) | Hash(String, JSON::Type) | Array(MessagePack::Type) | Hash(MessagePack::Type, MessagePack::Type))`
<waghanza> where could I check if type check is forced ?
trapped has quit [Ping timeout: 248 seconds]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
<travis-ci> MakeNowJust/crystal#c73d932 (master - Compile all libcrystal.a objects with -fPIC): The build passed. https://travis-ci.org/MakeNowJust/crystal/builds/113673407
nakilon has joined #crystal-lang
umurgdk has joined #crystal-lang
nakilon has quit [Ping timeout: 264 seconds]
umurgdk has quit [Ping timeout: 250 seconds]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 248 seconds]
umurgdk has joined #crystal-lang
waghanza has quit [Quit: Leaving]
<crystal-gh> [crystal] asterite closed pull request #2191: Validate HTTP header content's characters (master...fix/check-http-header-invalid-char) https://git.io/v2dg9
thor77 has left #crystal-lang ["Leaving"]
<crystal-gh> [crystal] Dreauw opened pull request #2267: Add FileUtils#cp (master...fileutils_cp) https://git.io/v2daY
fowlduck has joined #crystal-lang
<crystal-gh> [crystal] HeleneMyr opened pull request #2268: add documentation and tests for Char (master...char) https://git.io/v2dw2
jeromegn has quit [Read error: Connection reset by peer]
fowlduck has quit [Ping timeout: 250 seconds]
jeromegn has joined #crystal-lang
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
<travis-ci> crystal-lang/crystal#5dec485 (master - Merge pull request #2191 from MakeNowJust/fix/check-http-header-invalid-char): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113687982
umurgdk has quit [Remote host closed the connection]
luislavena has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
nightmared has left #crystal-lang ["WeeChat 1.4"]
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
trapped has joined #crystal-lang
fowlduck has joined #crystal-lang
shama has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #2140: Improve URI#escape and URI#unescape (master...feature/escape-unescape-with-block) https://git.io/v2d71
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 264 seconds]
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #crystal-lang
<travis-ci> crystal-lang/crystal#ca830a3 (master - Merge pull request #2140 from MakeNowJust/feature/escape-unescape-with-block): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113709601
<crystal-gh> [crystal] asterite opened pull request #2269: Syntax: allow parentheses for tuple literals. Fixes #2261 (master...feature/parens_for_tuples) https://git.io/v2dpq
<asterite> BlaXpirit: that's a good question. I don't have an answer, but we should maybe think of a way to do it. Maybe if the programmer provides static libraries, somehow (option to the compiler) then it can link them statically
shama_ has joined #crystal-lang
shama has quit [Ping timeout: 250 seconds]
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
shama_ has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
umurgdk has joined #crystal-lang
shama has joined #crystal-lang
luislavena has quit [Quit: Leaving]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/v2FkX
<crystal-gh> crystal/master 011f3da Nicolas: Fix documentation formatting in various classes
<crystal-gh> crystal/master 3e4268b Ary Borenszweig: Merge pull request #2262 from Zavydiel/formatting...
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/v2FIv
<crystal-gh> crystal/master 43afe71 Ary Borenszweig: Parser: argument with proc type restriction and default argument didn't parse
<crystal-gh> crystal/master 87f7125 Ary Borenszweig: Fixed more formatting issues
rok has joined #crystal-lang
<travis-ci> crystal-lang/crystal#3e4268b (master - Merge pull request #2262 from Zavydiel/formatting): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113728773
<travis-ci> crystal-lang/crystal#87f7125 (master - Fixed more formatting issues): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113728991
sp4rrow has joined #crystal-lang
DeBot has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
ton31337 has joined #crystal-lang
<ton31337> it's from an example: http://crystal-lang.org/api/UDPSocket.html
<asterite> Oh, seems the example is outdated, that method doesn't exist anymore
<ton31337> what should I use?
<asterite> Do you need to read an exact number of bytes?
<ton31337> actually I want to read the whole message
<ton31337> no need to limit characters
<asterite> You can use `.gets_to_end`
<ton31337> let me check
BlaXpirit_ has joined #crystal-lang
BlaXpirit_ has quit [Client Quit]
<jhass> asterite: https://bugs.archlinux.org/task/48407 what do you guts say about a release? ;)
<jhass> *your
<ton31337> asterite: you mean like this? server.gets_to_end
<asterite> ton31337: yes
<asterite> jhass: oh, we broke the release with libcrystal?
<jhass> broke is too harsh
<jhass> but for some environments, kind of
<asterite> jhass: I was planning on doing a release one of these days, so sure :-)
<jhass> it's something that also could be worked around at package built time
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v2Fue
<crystal-gh> crystal/master 904db77 Ary Borenszweig: UDPSocket: fixed outdated docs sample
<ton31337> asterite: strange, no errors, but it hangs on 'crystal udp.cr'
<asterite> ton31337: I'd have to see the full code. However, I think UDPSocket is kind of broken
_whitelogger has quit [Excess Flood]
_whitelogger has joined #crystal-lang
<ton31337> got it
ton31337 has left #crystal-lang [#crystal-lang]
<RX14> jhass, hah i forgot I even had hardening-wrapper installed
<jhass> hehe
<RX14> it confused me because building crystal, and the tarball worked for me
<RX14> the release tarball must have -fPIC
<travis-ci> crystal-lang/crystal#904db77 (master - UDPSocket: fixed outdated docs sample): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/113749196
sp4rrow has joined #crystal-lang
<RX14> yup, new crystal build fixed it
<RX14> :3
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
bjz has joined #crystal-lang
plukevdh has joined #crystal-lang
<plukevdh> having some trouble with recursive alias types
<plukevdh> Couldn't find overloads for these types:
<plukevdh> - Hash(String, HashFormatter::Type)#[]=(key : String, value : Array(String | Float64 | Bool | Int64 | Hash(String, HashFormatter::Type)))
<plukevdh> where HashFormatter::Type is defined as
<plukevdh> alias TerminalTypes = String | Bool | Int64 | Float64
<plukevdh> alias Type = TerminalTypes | Array(Type) | Hash(String, Type)
<plukevdh> i figure the case being complained about is captured by Type
trapped has quit [Ping timeout: 252 seconds]
<plukevdh> its very similar to what JSON::Type is doing
<plukevdh> asterite ^^
<asterite> plukevdh: add `as Type` after `hash_key(k)` and `hash_key(v).not_nil!`
trapped has joined #crystal-lang
sp4rrow has joined #crystal-lang
nakilon has joined #crystal-lang
<crystal-gh> [crystal] bcardiff opened pull request #2270: Add BitArray#to_slice to return a UInt8 slice useful for (master...feature/bit-array-slice) https://git.io/v2FFo
bcardiff has joined #crystal-lang
<plukevdh> asterite, that solves the error but it causes the has to return with blank values
<plukevdh> {"add" => {"headers" => }
plukevdh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BlaXpirit> >> [1,2,3,4,5].in_groups_of(5).to_a
<DeBot> BlaXpirit: # => [[1, 2, 3, 4, 5]] - https://carc.in/#/r/tlx
<BlaXpirit> >> [1,2,3,4,5].in_groups_of(2).to_a #oops
<DeBot> BlaXpirit: # => [[1, 2], [3, 4], [5, nil]] - https://carc.in/#/r/tly
<BlaXpirit> >> [1,2,3,4,5].cons(2).to_a
<DeBot> BlaXpirit: undefined method 'cons' for Array(Int32) - https://carc.in/#/r/tlz
<BlaXpirit> >> [1,2,3,4,5].each_cons(2).to_a
<DeBot> BlaXpirit: # => [[1, 2], [2, 3], [3, 4], [4, 5]] - https://carc.in/#/r/tm0
<BlaXpirit> ooh so that's what the difference is
<jhass> >> [1,2,3,4,5].each_slice(2).to_a
<DeBot> jhass: # => [[1, 2], [3, 4], [5]] - https://carc.in/#/r/tm1
<BlaXpirit> I can't find a "transpose" which usually would be done with `zip` in Python
<BlaXpirit> [[1,2],[3,4]] -> [[1,3],[2,4]]
<jhass> I seem to remember a discussion about transpose
<BlaXpirit> lol it's literally there, sorry
<BlaXpirit> now I wish it was possible to construct a Matrix from such an array
<BlaXpirit> and there is, LOL
rok has quit [Quit: rok]
Philpax has joined #crystal-lang
fowlduck has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
<adam|> Any way to override output of `inspect` at instance level?
<jhass> Since you can't redefine methods of instances in Crystal, no
<jhass> why?
<adam|> Just looking at prettying up some output when inspecting.
<jhass> well, you can redefine inspect on the class and try to detect the correct instances or whatever
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<adam|> jhass: thnx.
<pawnbox> In case you missed the news : https://www.youtube.com/watch?v=FNoMAxuaTqM
<BlaXpirit> I find it hard to follow
<BlaXpirit> pawnbox, did you hear anything exciting there?
<pawnbox> It's ongoing. And yes.
sp4rrow has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Gasher has quit [Ping timeout: 244 seconds]
sp4rrow has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<BlaXpirit> i was lucky to run into the part that's interesting to me
<BlaXpirit> at -56 they talk about compiler reimplementation
<BlaXpirit> ah I can link it https://youtu.be/FNoMAxuaTqM?t=15m41s
<BlaXpirit> too bad :/
pawnbox has quit [Ping timeout: 268 seconds]
Gasher has joined #crystal-lang
<sp4rrow> is there any news on how the compiler rewrite is going?
<sp4rrow> is there a branch
trapped has quit [Read error: Connection reset by peer]
A124 has quit [Quit: '']
trapped has joined #crystal-lang
A124 has joined #crystal-lang
nakilon has quit [Quit: WHY NOT?]
pawnbox has joined #crystal-lang