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
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
teardown has quit [Ping timeout: 268 seconds]
teardown has joined #crystal-lang
woodruffw has quit [Ping timeout: 276 seconds]
woodruffw has joined #crystal-lang
baweaver has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 240 seconds]
f1reflyylmao is now known as f1refly
chachasmooth has quit [Ping timeout: 265 seconds]
chachasmooth has joined #crystal-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
hendursa1 has quit [Ping timeout: 268 seconds]
hendursa1 has joined #crystal-lang
_ht has joined #crystal-lang
hendursaga has joined #crystal-lang
hendursa1 has quit [Ping timeout: 268 seconds]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
hightower2 has joined #crystal-lang
<hightower2> A historical day.
postmodern has quit [Quit: Leaving]
<straight-shoota> yay! =)
teardown has quit [Ping timeout: 268 seconds]
snapcase_ is now known as snapcase
sorcus has quit [Ping timeout: 272 seconds]
FromGitter has joined #crystal-lang
<FromGitter> <jwaldrip:matrix.org> does this not mean 1.0.0? `crystal: ">= 0.34.0"`?
<FromGitter> <Blacksmoke16> looks right
<FromGitter> <Blacksmoke16> sure you dont have a dep that doesnt have it?
<FromGitter> <jwaldrip:matrix.org> I had the operand backwars
<FromGitter> <jwaldrip:matrix.org> ignore me
<FromGitter> <jwaldrip:matrix.org> nvm still broken: - `crystal (>= 0.34.0)` required by `admiral 1.11.4`
<FromGitter> <jwaldrip:matrix.org> and thats coming from 1.0.0
<FromGitter> <Blacksmoke16> got a link to the project/error?
<FromGitter> <jwaldrip:matrix.org> ya, one sec
<FromGitter> <jwaldrip:matrix.org> https://github.com/psykube/psykube
<FromGitter> <jwaldrip:matrix.org> Pull that down and shards update
<FromGitter> <jwaldrip:matrix.org> you will see the error
<FromGitter> <jwaldrip:matrix.org> only one of the deps actually has an issue
_ht has quit [Remote host closed the connection]
<FromGitter> <erdnaxeli:cervoi.se> hi, did I just find a bug? https://carc.in/#/r/al1b
<FromGitter> <erdnaxeli:cervoi.se> (0.36.1)
dfdx has joined #crystal-lang
<straight-shoota> looks like it
<FromGitter> <jwaldrip:matrix.org> Well I dont think so
<FromGitter> <Blacksmoke16> sorry @jwaldrip:matrix.org looking at that now
<FromGitter> <jwaldrip:matrix.org> Its technical a NilLiteral ast node
<straight-shoota> why not? @jwaldrip
<FromGitter> <erdnaxeli:cervoi.se> Actually I am not sure it is a bug, `NilLiteral` is not `nil`, but it feels weird
<FromGitter> <erdnaxeli:cervoi.se> I will fill an issue
<FromGitter> <jwaldrip:matrix.org> Right, exactly
<straight-shoota> So when would `.nil?` macro method be true if not for a NilLiteral?
<FromGitter> <jwaldrip:matrix.org> ```{{ nil }}.nil?```
<FromGitter> <Blacksmoke16> @jwaldrip:matrix.org the problem is `MakeNowJust/crustache` doesnt have it's `crystal` value updated
<FromGitter> <jwaldrip:matrix.org> because nil then gets transformed into nil
<FromGitter> <jwaldrip:matrix.org> @Blacksmoke16: But its raising errors on the other packages too
<FromGitter> <jwaldrip:matrix.org> I have an MR out to crustache to fix the version
<f1refly> is someone here running a gitlab runner on debian for a crystal repo?
<straight-shoota> But `{{ nil }}.nil?` is the runtime method
<FromGitter> <Blacksmoke16> i think its just showing you all the deps, not just the ones that couldnt be satisfied
<FromGitter> <erdnaxeli:cervoi.se> yeah, the macro one should returns true on NilLiteral
<FromGitter> <erdnaxeli:cervoi.se> but I don't known how macro are implemented, NilLiteral inherits nil? from Object
<FromGitter> <erdnaxeli:cervoi.se> (in the doc)
<straight-shoota> yeah, that's entirely different
<straight-shoota> macro language is it's own thing
<FromGitter> <jwaldrip:matrix.org> yep
<FromGitter> <jwaldrip:matrix.org> could overload nil? on the macro literal to return true
<FromGitter> <erdnaxeli:cervoi.se> i looked into compiler/macro/ but didn't find anything realted to `nil?`
<straight-shoota> yeah, it should be in crystal/macros/methods.cr but it isn't
<FromGitter> <jwaldrip:matrix.org> its a psuedo method
<straight-shoota> that's not the macro language
<straight-shoota> I know what's going on
<FromGitter> <jwaldrip:matrix.org> its built into the compiler
<straight-shoota> .nil? is treated specially directly in the parser. It transforms to .is_a?(Nil)
<straight-shoota> and that happens even in macro expressions
<straight-shoota> but NilLiteral is not Nil
<straight-shoota> jwaldrip: that to_s code is completely unrelated
<FromGitter> <jwaldrip:matrix.org> gotcha. well I was warm :-)
<FromGitter> <jwaldrip:matrix.org> I was just looking for references too it
<FromGitter> <jwaldrip:matrix.org> I found it in parser.cr
<straight-shoota> the runtime implementation being a compiler intrinsic is not relevant, because we're in the macro language
<straight-shoota> the macro language is entirely interpreted in the compiler
<straight-shoota> I suppose .nil? just shouldn't be a thing in the macro language
<FromGitter> <jwaldrip:matrix.org> gotcha. Got a file for me to read where that is done?
<straight-shoota> and other files in that dir
<FromGitter> <jwaldrip:matrix.org> Thank you.
<FromGitter> <erdnaxeli:cervoi.se> actually I fixed my use case as `NilLiteral` is still evaluated to false
<straight-shoota> @jwaldrip def visit(node : Assign) should be a good example to grasp what's going on there
<FromGitter> <erdnaxeli:cervoi.se> https://carc.in/#/r/al28
<FromGitter> <Blacksmoke16> what is your use case @erdnaxeli:cervoi.se ?
<straight-shoota> @erdnaxeli Yes, that works the same way as in non-macro land
<straight-shoota> the only reason for .nil? is to distinguish falsey values
<FromGitter> <erdnaxeli:cervoi.se> checking if an annotation is here or not. I was doing `!ivar.annotation(SomeAnnotation).nil?`, but I can just do `ivar.annotation(SomeAnnotation)`
<FromGitter> <Blacksmoke16> yup
drakonis has joined #crystal-lang
<FromGitter> <jrei:matrix.org> what will happen now when a breaking change is wanted? Merging to a next/2.0 branch?
<FromGitter> <jrei:matrix.org> and master would still be the next minor/patch release.
<straight-shoota> we'll see
<FromGitter> <Blacksmoke16> https://github.com/crystal-lang/crystal/pull/9091#issuecomment-615497080 can we start now? 😏
<FromGitter> <Blacksmoke16> although at this point id rather have https://github.com/crystal-lang/crystal/issues/9802