RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.1 | Fund Crystal's 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
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
akwiatkowski has quit [Ping timeout: 264 seconds]
bjz has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
jhass has quit [Ping timeout: 268 seconds]
asterite has quit [Ping timeout: 248 seconds]
DeBot has quit [Ping timeout: 260 seconds]
soveran has quit [Ping timeout: 256 seconds]
asterite has joined #crystal-lang
jhass has joined #crystal-lang
greengriminal has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
dtzu has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
greengriminal has joined #crystal-lang
greengriminal has quit [Client Quit]
triangles has joined #crystal-lang
triangles has quit [Max SendQ exceeded]
triangles has joined #crystal-lang
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triangles2 has joined #crystal-lang
triangles has quit [Ping timeout: 265 seconds]
triangles2 has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
pilne has quit [Quit: Quitting!]
bjz has joined #crystal-lang
soveran has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DeBot has joined #crystal-lang
akwiatkowski has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
vivus-ignis has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
triangles has joined #crystal-lang
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] MakeNowJust opened pull request #3766: Iterator#flat_map returns an iterator (master...feature/iterator/flat-map) https://git.io/vMvSl
matp_ has quit [Remote host closed the connection]
soveran has joined #crystal-lang
matp has joined #crystal-lang
bjz has quit [Ping timeout: 265 seconds]
bjz has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] KCreate opened pull request #3767: Fixed Iterator#map_with_index (master...fix-map-with-index) https://git.io/vMvHX
soveran has joined #crystal-lang
triangles has quit [Quit: Leaving]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
soveran has quit [Remote host closed the connection]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite closed pull request #3767: Fixed Iterator#map_with_index (master...fix-map-with-index) https://git.io/vMvHX
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Ven has joined #crystal-lang
<travis-ci> crystal-lang/crystal#929a551 (master - Added test case for Iterator#map_with_index): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/186528969
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
splitty_ has quit [Ping timeout: 248 seconds]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
bew78 has joined #crystal-lang
<bew78> Hey, How can I do a simple division which leads to a float ? (ex: 3 / 2)
<FromGitter> <Sija> `3.0 / 2`?
<FromGitter> <Sija> or `3.to_f / 2`
<bew78> I have 2 Int32 variable..
<bew78> ah to_f I forgot that, this should work
<bew78> I'm wondering where is the definition of function Crystal::Macros::TypeNode#subclasses ? in src/compiler/crystal/macros.cr there is just a def subclasses; end
<bew78> def subclasses : ArrayLiteral(TypeNode)
<bew78> end
<Papierkorb> bew78: It's implemented in the parser somewhere, that one is just a mock for the documentation
<bew78> Sija, thanks, but that's the code used for the documentation, not the code used when doing MyClass.subclasses I think
<FromGitter> <Sija> @bew78, on the contrary
<bew78> But I don't undeerstand where does the 'type' variable comes from..
<FromGitter> <Sija> yeah, that code calls #subclasses from the first link I’ve included
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
<bew78> Ok finally, the code is in https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/types.cr in abstract Type and ClassType and other real types
<FromGitter> <airinfection> crystal-db is dead with 0.20.3 . RIP
<FromGitter> <Sija> @airinfection why’s that?
<FromGitter> <airinfection> i dont know
<FromGitter> <airinfection> maybe changes to new version
<FromGitter> <airinfection> instance variable '@remaining' of MySql::ReadPacket must be Int32, not Nil ⏎ ⏎ Error: instance variable '@remaining' is initialized inside a begin-rescue, so it can potentially be left uninitialized if an exception is raised and rescued
<FromGitter> <Sija> yep, since 0.20.3 ivars initialized inside of begin…rescue blocks are being marked as nillable
<FromGitter> <Sija> and that’s the case for crystal-mysql
<FromGitter> <airinfection> yes
<FromGitter> <airinfection> can i be your fan?
<FromGitter> <airinfection> sijawusz pur rahnama fan club
<FromGitter> <Sija> lol :D
<FromGitter> <piedoom> Hi all
soveran has joined #crystal-lang
<FromGitter> <piedoom> I came across this interesting SO question and I was wondering if anybody had input on a better way to solve it. ⏎ ⏎ http://stackoverflow.com/questions/41291605/make-class-member-attribute-of-type-arrayt-accept-2d-arrays-of-t/41306113#41306113
<FromGitter> <piedoom> will doing something like ⏎ ⏎ ```def initialize(value : Array(Array | Int32 | Float64)) ⏎ @values = value ⏎ end``` ⏎ ⏎ be possible in the future? [https://gitter.im/crystal-lang/crystal?at=585ea4eec5a4e0233bc6a331]
bew78 has quit [Read error: Connection reset by peer]
<FromGitter> <Sija> @piedoom https://play.crystal-lang.org/#/r/1hqt
<FromGitter> <piedoom> Oh cool! That's much cleaner. Thanks.
<FromGitter> <piedoom> Play link isn't working for me though
<FromGitter> <piedoom> oh hm worked when I opened it in a new window, nevermind
mgarciaisaia has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Ven has joined #crystal-lang
<crystal-gh> [crystal] Sija opened pull request #3769: Update playground CodeMirror to v5.22 (master...playground-codemirror-5.22) https://git.io/vMvAA
mgarciaisaia has quit [Quit: Leaving.]
ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.3 | Fund Crystal's 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
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<crystal-gh> [crystal] ysbaddaden opened pull request #3771: Fix: UNIXServer shouldn't delete path on bind failures (master...fix-unix-server-deletes-file-on-bind-failures) https://git.io/vMvp5
mgarciaisaia has joined #crystal-lang
yeah has joined #crystal-lang
yeah has quit [Client Quit]
mgarciaisaia has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
TheGillies has joined #crystal-lang
<TheGillies> how do you compile a project folder?
<TheGillies> Or do you have to explicitly list a filename?
<RX14> you compile a specific file
<FromGitter> <sdogruyol> shards build may help
<FromGitter> <sdogruyol> if you have a target in your shard.yml
<RX14> you still need an input file
<TheGillies> i have a target
<RX14> shards build just makes your build command like 2 character shorter
<TheGillies> ah
<TheGillies> I don't have shards command
<RX14> crystal deps?
<TheGillies> ah TIL shards
<RX14> if you downloaded the distribution folder it's crystal deps not shards
<TheGillies> I'm a crystal newb
<RX14> how did you install crystal?
<TheGillies> sudo pacman -S crystal
<RX14> ah
<RX14> then yes
<RX14> shards is in community
<RX14> like crystal
<TheGillies> Yeah just installed it, thanks
<TheGillies> weird that shards isn't a build dependency
<TheGillies> since crystal deps throws an error without it
<RX14> well it should be a recommended dep
<RX14> i'd be surprised if it wasnt
soveran has quit [Remote host closed the connection]
mgarciaisaia has quit [Quit: Leaving.]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
<crystal-gh> [crystal] Sija opened pull request #3774: Fix issue #3772 (master...fix-issue-3772) https://git.io/vMff3
vivus-ignis1 has joined #crystal-lang
vivus-ignis has quit [Remote host closed the connection]
vivus-ignis1 is now known as vivus-ignis
vivus-ignis has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
bjz has joined #crystal-lang
splitty_ has joined #crystal-lang