RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
ternarysolo has quit [Read error: Connection reset by peer]
ternarysolo has joined #crystal-lang
mamantoha has quit [Ping timeout: 252 seconds]
mamantoha has joined #crystal-lang
ternarysolo has quit [Ping timeout: 250 seconds]
mamantoha has quit [Ping timeout: 255 seconds]
_whitelogger has joined #crystal-lang
ternarysolo has quit [Ping timeout: 255 seconds]
hightower3 has quit [Ping timeout: 245 seconds]
ternarysolo has joined #crystal-lang
ternarysolo has quit [Ping timeout: 245 seconds]
lesderid has joined #crystal-lang
<lesderid> is it not possible to get a reference to 'self' from initialize?
<FromGitter> <Blacksmoke16> to do what
<lesderid> pass as an argument to another class being initialised
<FromGitter> <Blacksmoke16> should be able to
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/6fcq
<lesderid> hm weird
<lesderid> Blacksmoke16: ^
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/6fd0
<lesderid> why does that work and does mine not?
<FromGitter> <Blacksmoke16> which is strange since it is
<FromGitter> <Blacksmoke16> removed the `@bar : Bar`
<lesderid> yeah but I mean why does that make it work?
<FromGitter> <Blacksmoke16> compile error was saying it wasnt initialized in the initialize even tho it was?
<lesderid> yeah
<FromGitter> <Blacksmoke16> maybe make a post on the forums
<lesderid> without the @bar : Bar the type is (Bar | Nil)
<FromGitter> <Blacksmoke16> hmm
<lesderid> so it can be nil (or it thinks it can nil) for some reason?
<lesderid> and yeah, with '@bar : Bar?' it compiles
<FromGitter> <Blacksmoke16> :shrug:
ternarysolo has joined #crystal-lang
ternarysolo has quit [Ping timeout: 245 seconds]
marmotini_ has joined #crystal-lang
chemist69 has quit [Ping timeout: 252 seconds]
chemist69 has joined #crystal-lang
laaron has joined #crystal-lang
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Client Quit]
laaron has joined #crystal-lang
ternarysolo has joined #crystal-lang
ternarysolo has quit [Ping timeout: 255 seconds]
marmotini_ has quit [Ping timeout: 244 seconds]
marmotini_ has joined #crystal-lang
flaviodesousa has joined #crystal-lang
laaron- has joined #crystal-lang
laaron has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 240 seconds]
<FromGitter> <pynixwang> where is crystal base image Dockerfile?
ashirase has quit [Ping timeout: 252 seconds]
<FromGitter> <j8r> omg llvm-3.5.0-1 :o
ashirase has joined #crystal-lang
flaviodesousa has quit [Ping timeout: 240 seconds]
flaviodesousa has joined #crystal-lang
flaviodesousa has quit [Max SendQ exceeded]
devil_tux has joined #crystal-lang
DTZUZO has joined #crystal-lang
<devil_tux> have there been any impl of http client redirection in cr:std yet?
<devil_tux> i see few issues here and there
<FromGitter> <pynixwang> @maiha no.
<FromGitter> <straight-shoota> @j8r I had some trouble to comprehend your post in #7480
<FromGitter> <straight-shoota> I think I got it know. Could you maybe edit it a bit? Mention that "the commit" refers to #6945 and "still segfaulting" to #6934. The link to the dockerfile pointing to a random line isn't helpful either.
<FromGitter> <j8r> sure
<FromGitter> <straight-shoota> thnanks!
marmotini_ has quit [Ping timeout: 240 seconds]
marmotini_ has joined #crystal-lang
devil_tux has quit [Ping timeout: 255 seconds]
lucasb has joined #crystal-lang
return0e has joined #crystal-lang
return0e_ has quit [Ping timeout: 240 seconds]
ma_ has joined #crystal-lang
ma_ has quit [Client Quit]
ma_ has joined #crystal-lang
ma_ has quit [Client Quit]
ma_ has joined #crystal-lang
ma_ has quit [Client Quit]
ma_ has joined #crystal-lang
ma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyberarm has quit [Read error: Connection reset by peer]
marmotini_ has quit [Ping timeout: 245 seconds]
<FromGitter> <TheOnlyArtz> Hey guys how can I
<FromGitter> <TheOnlyArtz> Find an index of an element in an array by a condition
<FromGitter> <kinxer> Is this what you're looking for?
<FromGitter> <kinxer> https://crystal-lang.org/api/0.27.2/Indexable.html#index%28offset%3AInt%3D0%2C%26block%29-instance-method
<FromGitter> <Blacksmoke16> that would do it :P
<FromGitter> <kinxer> The collection-ey modules in the Crystal stdlib are really convenient.
marmotini_ has joined #crystal-lang
<FromGitter> <kinxer> Also, @TheOnlyArtz `Array` includes `Indexable`, so you can use that method on arrays.
<FromGitter> <kinxer> Just to be clear.
<FromGitter> <TheOnlyArtz> Sweet that will do
<FromGitter> <TheOnlyArtz> Btw, is there no for loop?
<lesderid> use .each
<FromGitter> <Blacksmoke16> hm?
<FromGitter> <Blacksmoke16> yea ^
<FromGitter> <Blacksmoke16> is also `each_with_index`
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/0.27.2/Enumerable.html#each_with_index(offset=0,&block)-instance-method
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
lvmbdv has joined #crystal-lang
<FromGitter> <kinxer> I remember somewhere reading what GC algorithm Crystal uses, but I can't find it. Where is that/what is it?
marmotini_ has quit [Ping timeout: 245 seconds]
marmotini_ has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
<FromGitter> <Sija> @straight-shoota u here?
<FromGitter> <straight-shoota> back
<FromGitter> <Sija> already solved it over at GH, thanks again for your patience :)
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
<FromGitter> <j8r> > Left as an exercise to the reader.
<FromGitter> <dscottboggs_gitlab> wow, that's nice of them.
<FromGitter> <j8r> In fact, most info are in the READMEs
<FromGitter> <j8r> Their codebase is massive – i won't try to compile it anytime soon
<FromGitter> <dscottboggs_gitlab> yeah it is
DTZUZO has quit [Ping timeout: 240 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
laaron- has joined #crystal-lang
laaron has quit [Ping timeout: 256 seconds]