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