ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has joined #crystal-lang
dom96_ has quit [Ping timeout: 250 seconds]
dom96 has joined #crystal-lang
deavmi_ has quit [Ping timeout: 260 seconds]
deavmi has joined #crystal-lang
kiwiroy has quit [Ping timeout: 260 seconds]
kiwiroy has joined #crystal-lang
ua_ has joined #crystal-lang
ua_ has quit [Read error: Connection reset by peer]
ua_ has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
ua_ has quit [Quit: Leaving]
ua_ has joined #crystal-lang
ur5us has joined #crystal-lang
spuun has joined #crystal-lang
<spuun> https://play.crystal-lang.org/#/r/c3ky Why is the block a captured block? I struggling to understand...
hightower2 has joined #crystal-lang
ur5us has quit [Ping timeout: 258 seconds]
<FromGitter> <jrei:matrix.org> spuun because you use `TreeNode#each(&blk)` instead of `TreeNode#each(&)`
<FromGitter> <jrei:matrix.org> Either is "better" than the other, but in `TreeNodeUser#each(&)` the block has to be captured to with `TreeNodeUser#each(&blk)` (by theyl way the usual convention is `&block`)
<FromGitter> <jrei:matrix.org> At first glance I find the `@leafs = Set(Int32).new` a bit strange
<FromGitter> <jrei:matrix.org> (unrelated to your issue)
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 252 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
hightower2 has joined #crystal-lang
<spuun> Thansk! This was just an example code, so dont ignore the @leafs thing. Will go with &block instead of &block!
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower3 has joined #crystal-lang
hightower3 has quit [Ping timeout: 258 seconds]
hightower2 has joined #crystal-lang
<FromGitter> <jrei:matrix.org> The error is quite good, by referencing the URL that explains capyured blocks
hightower2 has quit [Ping timeout: 265 seconds]
notzmv has quit [Ping timeout: 245 seconds]
<FromGitter> <deiv> HI, from 0.33.0 to 1.2.1, what's the upgrade path ? compiling from sources, i mean
<FromGitter> <deiv> @RX14 forgot to update his https://github.com/crystal-lang/bootstrap-script
<FromGitter> <deiv> xD
<FromGitter> <jrei:matrix.org> Not really forgot, because no longer active in the Crystal community
<FromGitter> <RespiteSage> Also, RX14 is she/her.
<FromGitter> <jrei:matrix.org> See the only opened issue: https://github.com/crystal-lang/bootstrap-script/issues/2
<FromGitter> <deiv> I see
<FromGitter> <deiv> anyone knows what the path without trying every release from 0.33.0
<FromGitter> <jrei:matrix.org> The path is essentially https://github.com/crystal-lang/crystal/blob/master/CHANGELOG.md
<FromGitter> <jrei:matrix.org> Good luck 😄
<FromGitter> <deiv> will make some jumps then lol
<FromGitter> <jrei:matrix.org> Anyway, seem to just add more line at the end of https://github.com/crystal-lang/bootstrap-script/blob/master/bootstrap
<FromGitter> <deiv> Added new steps in https://github.com/crystal-lang/bootstrap-script/pull/3
<FromGitter> <jrei:matrix.org> Only that?
<FromGitter> <deiv> atm
<FromGitter> <deiv> lol
<FromGitter> <jrei:matrix.org> You don't add until 1.2.1? Also, should be tested IMO - not even sure the whole script still works
<FromGitter> <deiv> I could add all, without testing
<FromGitter> <jrei:matrix.org> Then why are you doing this?
<FromGitter> <deiv> Debian package
<FromGitter> <deiv> I started it from scratch
<FromGitter> <deiv> I don't want to rely on crystal compiled version xD
<FromGitter> <jrei:matrix.org> Ok, so you'll still use it afterwards
<FromGitter> <deiv> yep, we have 0.33.0 in unstable
<FromGitter> <deiv> so i need to go for every version, for what I see
<FromGitter> <maxfierke> may want to bump the LLVM somewhere in there too? 3.9.1 is pretty old (should still work in theory, but hasn't been used for releases in quite some time AFAICT)
<FromGitter> <jrei:matrix.org> @deiv: if crystal 1.2.1 is submitted, it could go to stable? 😮
<FromGitter> <jrei:matrix.org> I've seen there are other issues https://qa.debian.org/excuses.php?package=crystal 😔
<FromGitter> <deiv> yes, to stable in the next release xD some years have to pass
notzmv has joined #crystal-lang
ur5us has joined #crystal-lang
<FromGitter> <deiv> on 0.36.0 im getting:
<FromGitter> <deiv> closures var on ->var.call (#8584) ⏎ Invalid memory access (signal 11) at address 0x0 ⏎ [0x55794ec32a26] print_backtrace at /home/deiv/dev-dinamic/debian/pkgs/crystal/crystal-lang/src/exception/call_stack.cr:129:5 ⏎ [0x55794e8b6477] __crystal_sigfault_handler at /home/deiv/dev-dinamic/debian/pkgs/crystal/crystal-lang/src/signal.cr:348:3 [https://gitter.im/crystal-lang/crystal?at=617309c498c13e7550edf993]
<FromGitter> <deiv> that's is supossed to be fixed in this version
ur5us has quit [Ping timeout: 264 seconds]
<FromGitter> <maxfierke> compiling 0.36 or compiling *from* 0.36?
<FromGitter> <deiv> compiling 0.36
<FromGitter> <deiv> from 0.35.1, lol
<FromGitter> <deiv> yeah
<FromGitter> <deiv> xD
<FromGitter> <maxfierke> haha there ya go
<FromGitter> <deiv> lol again
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #crystal-lang
<FromGitter> <deiv> i get the same compiling 0.36.1 with 0.36.0
ur5us has quit [Ping timeout: 264 seconds]
Peter0x44 has quit [*.net *.split]
Liothen has quit [*.net *.split]
pixel has quit [*.net *.split]
xybre has quit [*.net *.split]
Peter0x44 has joined #crystal-lang
Liothen has joined #crystal-lang
pixel has joined #crystal-lang
xybre has joined #crystal-lang
notzmv has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
notzmv has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #crystal-lang