00:02
avane has quit [Ping timeout: 265 seconds]
00:56
avane has joined #crystal-lang
01:20
hightower3 has quit [Ping timeout: 272 seconds]
01:30
<
raz >
650 examples, 0 failures
01:30
* raz
sigh of relief
01:38
postmodern has joined #crystal-lang
01:44
<
FromGitter >
<Blacksmoke16> found the RFC about it. Also fixed it for 204 and 1xx
02:04
coderobe has quit [Ping timeout: 246 seconds]
02:21
coderobe has joined #crystal-lang
03:10
f1reflyylmao has joined #crystal-lang
03:12
f1refly has quit [Ping timeout: 264 seconds]
04:02
avane has joined #crystal-lang
07:06
deavmi has quit [Ping timeout: 258 seconds]
07:12
deavmi has joined #crystal-lang
07:15
_ht has joined #crystal-lang
08:50
postmodern has quit [Quit: Leaving]
09:59
<
FromGitter >
<alexherbo2> Hello guys, what is the syntax equivalent of JSON mappings and why has it been removed?
10:04
<
FromGitter >
<asterite> Check JSON::Serializable
10:12
lanodan has quit [Quit: WeeChat 2.9]
10:41
lanodan has joined #crystal-lang
10:49
FromGitter has quit [Remote host closed the connection]
10:52
FromGitter has joined #crystal-lang
11:00
<
FromGitter >
<alexherbo2> @asterite Thanks
11:04
<
FromGitter >
<alexherbo2> To sum up, the changes from `JSON.mapping` to `JSON::Serializable` is to replace the named parameters with just normal attributes, and use the `JSON::Field` when we want the JSON keys to be different than the Crystal object?
11:05
<
FromGitter >
<alexherbo2> Can you explain me how `@[...]` followed by `property` does work under the hood?
11:06
<
FromGitter >
<alexherbo2> what does the JSON field actually generate
11:06
<
FromGitter >
<alexherbo2> it looks a bit magic at first glance
11:06
deavmi has quit [Ping timeout: 264 seconds]
11:09
deavmi has joined #crystal-lang
11:17
<
Andriamanitra >
is it possible to sort a part of array in place?
11:19
<
Andriamanitra >
or well i guess i could write the sort myself and use Array#swap, but is there a sorting method that takes start and end index?
11:20
<
FromGitter >
<naqvis> `arr[start...end].sort!` ?
11:22
<
Andriamanitra >
@naqvis ah of course, thanks!
11:22
<
FromGitter >
<alexherbo2> Thanks for your help o/
11:49
<
straight-shoota >
@alexherbo2 `property` macro expands to an instance variable declaration and getter/setter methods. The annotation applies to the ivar.
11:49
<
straight-shoota >
so you get an ivar with JSON::Field annotation
11:52
aquijoule_ has joined #crystal-lang
11:52
richbridger has quit [Ping timeout: 264 seconds]
12:01
<
Andriamanitra >
hmm, is "arr[start...end].sort!" happening in place a recent change? it didn't work on codewars which is still running 0.34.x, works nicely in crystal-playground though
12:09
<
straight-shoota >
sort! is in place
12:09
<
straight-shoota >
but arr[start...end] returns a new array
12:09
<
straight-shoota >
and that didn't change AFAICR
12:10
<
Andriamanitra >
you're right, i'm just printing the wrong things in the playground
12:48
<
FromGitter >
<asterite> @alexherbo2 but specifically for `property`, when you put an annotation before a macro call, the annotation is applied to everything that the macro expands to
12:48
<
FromGitter >
<asterite> oh, straigh-shoota already answered... nevermind
12:49
alexherbo2 has joined #crystal-lang
13:13
sorcus has quit [Quit: WeeChat 3.0]
13:33
sorcus has joined #crystal-lang
13:46
sorcus has quit [Quit: WeeChat 3.0]
14:44
deavmi has quit [Ping timeout: 240 seconds]
14:49
deavmi has joined #crystal-lang
15:16
deavmi has quit [Ping timeout: 240 seconds]
15:20
deavmi has joined #crystal-lang
15:41
<
straight-shoota >
nice
15:43
<
FromGitter >
<Blacksmoke16> 👍
15:44
deavmi has quit [Ping timeout: 246 seconds]
15:47
deavmi has joined #crystal-lang
16:02
xaxisx has joined #crystal-lang
17:06
xaxisx has quit [Remote host closed the connection]
17:07
xaxisx has joined #crystal-lang
17:11
xaxisx has quit [Ping timeout: 240 seconds]
17:16
xaxisx has joined #crystal-lang
17:41
xaxisx has quit [Remote host closed the connection]
17:56
xaxisx has joined #crystal-lang
18:16
bcardiff has joined #crystal-lang
18:16
<
FromGitter >
<jrei:matrix.org> Is it
*needed* to have the Crystal version on the channel topic?
18:16
bcardiff has quit [Client Quit]
18:17
<
FromGitter >
<jrei:matrix.org> we just have to click on the site URL @bcardiff . Just saying to simplify maintenance...
18:22
xaxisx has quit [Remote host closed the connection]
18:44
xaxisx has joined #crystal-lang
18:45
xaxisx has quit [Remote host closed the connection]
18:52
<
FromGitter >
<djberg96> Howdy folks
18:52
<
FromGitter >
<Blacksmoke16> o/
19:14
<
FromGitter >
<bcardiff> I'm happy to drop the version information from gitter and irc :-)
19:16
<
FromGitter >
<bcardiff> There is a ~20 items checklist on each deploy. 18 is Update topic gitter.im/IRC.
19:16
<
straight-shoota >
Yeah, it's really not that important
19:17
<
straight-shoota >
If it was automated, that would be a different deal
19:17
<
FromGitter >
<bcardiff> I'm so happy last year we automated most of the signing process.
19:17
<
straight-shoota >
:D
19:20
bcardiff has joined #crystal-lang
19:20
bcardiff has quit [Client Quit]
19:21
<
FromGitter >
<jrei:matrix.org> Yeah, I remembered that is was longer
19:21
<
FromGitter >
<jrei:matrix.org> that's why I was saying initially to wait like 1 day before a tagged release
19:22
<
FromGitter >
<jrei:matrix.org> I have already installed 0.36.1, 15 minutes after the tag :D
19:23
* FromGitter
* Blacksmoke16 still waiting on `0.36.0` on manjaro
19:23
<
FromGitter >
<Blacksmoke16> someone should mark it as outdated
19:24
<
FromGitter >
<jrei:matrix.org> If I were you I'd just use asdf, or unpack the archive in `~/.local`
19:24
<
FromGitter >
<Blacksmoke16> yea might do that in the meantime
19:24
<
FromGitter >
<jrei:matrix.org> Should not be complicated to update the AUR?
19:24
xaxisx has joined #crystal-lang
19:24
<
FromGitter >
<jrei:matrix.org> just a version to bump no?
19:25
<
FromGitter >
<Blacksmoke16> afaik AUR is already updated, just waiting on Manjaro to allow it thru
19:25
<
FromGitter >
<Blacksmoke16> but its outdated now given `0.36.1` is a thing
19:25
<
FromGitter >
<jrei:matrix.org> right
19:28
<
oprypin >
Blacksmoke16, there's no AUR involved
19:29
xaxisx has quit [Ping timeout: 240 seconds]
19:29
<
oprypin >
Blacksmoke16, also you
*really* should have an alias to crystal that you compiled yourself
19:29
<
FromGitter >
<Blacksmoke16> yea i do, `ccrystal`
19:30
xaxisx has joined #crystal-lang
19:31
<
FromGitter >
<Blacksmoke16> is what i normally do but are some things that doesnt work for
19:33
<
oprypin >
Blacksmoke16, i actually can't think of any such things
19:34
<
FromGitter >
<Blacksmoke16> working with mkdocs using crystal code that requires 0.36.x code
19:34
<
FromGitter >
<Blacksmoke16> would have to be in path as `crystal`
19:34
postmodern has joined #crystal-lang
19:34
<
oprypin >
PATH=~/repos/crystal/bin:$PATH mkdocs serve
19:35
<
FromGitter >
<Blacksmoke16> i symlinked the binary from the GH release to .local/bin for it
19:35
<
FromGitter >
<Blacksmoke16> but at this point ill just wholesale switch
19:35
<
oprypin >
hm i'm surprised that works at all
19:35
<
FromGitter >
<Blacksmoke16> it comes first in my PATH so it finds that one before the one installed via pacman
19:45
<
FromGitter >
<Blacksmoke16> oh nice
19:45
<
FromGitter >
<Blacksmoke16> good to know
20:11
alexherbo2 has quit [Ping timeout: 258 seconds]
20:12
xaxisx has quit [Remote host closed the connection]
20:25
xaxisx has joined #crystal-lang
21:00
_ht has quit [Remote host closed the connection]
21:08
sorcus has joined #crystal-lang
21:56
xaxisx has quit [Remote host closed the connection]
22:29
xaxisx has joined #crystal-lang
22:31
xaxisx has quit [Client Quit]
22:33
<
postmodern >
so where is Class#include implemented within the crystal code base? Wondering how much work would it be to add Class#prepend myself
22:38
<
oprypin >
postmodern, it's not a method, it's a keyword
22:41
<
oprypin >
postmodern, `git grep Include src/compiler/crystal`
22:42
<
postmodern >
ah thank you
23:04
deavmi has quit [Ping timeout: 272 seconds]
23:07
<
FromGitter >
<Uzay-G> hi, sorry for asking a dumb question but what's the syntax again to declare a Hash or Array? like `var = instance of Hash(String, String)`
23:07
<
straight-shoota >
there are several ways to write such literals
23:08
<
FromGitter >
<Uzay-G> oh yes i remember now. Thanks!
23:26
deavmi has joined #crystal-lang