ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.36.0 | 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
avane has quit [Ping timeout: 265 seconds]
avane has joined #crystal-lang
hightower3 has quit [Ping timeout: 272 seconds]
<raz> 650 examples, 0 failures
* raz sigh of relief
postmodern has joined #crystal-lang
<FromGitter> <Blacksmoke16> @wyhaines https://github.com/crystal-lang/crystal/pull/10353
<FromGitter> <Blacksmoke16> found the RFC about it. Also fixed it for 204 and 1xx
coderobe has quit [Ping timeout: 246 seconds]
coderobe has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 264 seconds]
avane has quit [Quit: ZNC - https://znc.in]
avane has joined #crystal-lang
deavmi has quit [Ping timeout: 258 seconds]
deavmi has joined #crystal-lang
_ht has joined #crystal-lang
postmodern has quit [Quit: Leaving]
<FromGitter> <alexherbo2> Hello guys, what is the syntax equivalent of JSON mappings and why has it been removed?
<FromGitter> <asterite> Check JSON::Serializable
lanodan has quit [Quit: WeeChat 2.9]
lanodan has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
<FromGitter> <alexherbo2> @asterite Thanks
<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?
<FromGitter> <alexherbo2> Can you explain me how `@[...]` followed by `property` does work under the hood?
<FromGitter> <alexherbo2> what does the JSON field actually generate
<FromGitter> <alexherbo2> it looks a bit magic at first glance
deavmi has quit [Ping timeout: 264 seconds]
deavmi has joined #crystal-lang
<Andriamanitra> is it possible to sort a part of array in place?
<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?
<FromGitter> <naqvis> `arr[start...end].sort!` ?
<Andriamanitra> @naqvis ah of course, thanks!
<FromGitter> <alexherbo2> Thanks for your help o/
<straight-shoota> @alexherbo2 `property` macro expands to an instance variable declaration and getter/setter methods. The annotation applies to the ivar.
<straight-shoota> so you get an ivar with JSON::Field annotation
aquijoule_ has joined #crystal-lang
richbridger has quit [Ping timeout: 264 seconds]
<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
<straight-shoota> sort! is in place
<straight-shoota> but arr[start...end] returns a new array
<straight-shoota> and that didn't change AFAICR
<Andriamanitra> you're right, i'm just printing the wrong things in the playground
<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
<FromGitter> <asterite> oh, straigh-shoota already answered... nevermind
alexherbo2 has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.0]
sorcus has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.0]
deavmi has quit [Ping timeout: 240 seconds]
deavmi has joined #crystal-lang
deavmi has quit [Ping timeout: 240 seconds]
deavmi has joined #crystal-lang
<FromGitter> <Blacksmoke16> ☝️ November 28, 2020 1:45 PM (https://gitter.im/crystal-lang/crystal?at=5fc29abad61cdb6a2097bf28) ⏎ ⏎ @straight-shoota This will be more holistically resolved next release (hopefully this weekend or so). Added an example static file listener to the cookbook as well. Can preview it here (https://github.com/athena-framework/website/blob/static-file-listener/docs/cookbook/listeners.md#static-files)
<straight-shoota> nice
<FromGitter> <Blacksmoke16> 👍
deavmi has quit [Ping timeout: 246 seconds]
deavmi has joined #crystal-lang
xaxisx has joined #crystal-lang
xaxisx has quit [Remote host closed the connection]
xaxisx has joined #crystal-lang
xaxisx has quit [Ping timeout: 240 seconds]
xaxisx has joined #crystal-lang
xaxisx has quit [Remote host closed the connection]
xaxisx has joined #crystal-lang
bcardiff has joined #crystal-lang
<FromGitter> <jrei:matrix.org> Is it *needed* to have the Crystal version on the channel topic?
ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.36.1 | 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
bcardiff has quit [Client Quit]
<FromGitter> <jrei:matrix.org> we just have to click on the site URL @bcardiff . Just saying to simplify maintenance...
xaxisx has quit [Remote host closed the connection]
xaxisx has joined #crystal-lang
xaxisx has quit [Remote host closed the connection]
<FromGitter> <djberg96> Howdy folks
<FromGitter> <Blacksmoke16> o/
<FromGitter> <bcardiff> I'm happy to drop the version information from gitter and irc :-)
<FromGitter> <bcardiff> There is a ~20 items checklist on each deploy. 18 is Update topic gitter.im/IRC.
<straight-shoota> Yeah, it's really not that important
<straight-shoota> If it was automated, that would be a different deal
<FromGitter> <bcardiff> I'm so happy last year we automated most of the signing process.
<straight-shoota> :D
bcardiff has joined #crystal-lang
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
bcardiff has quit [Client Quit]
<FromGitter> <jrei:matrix.org> Yeah, I remembered that is was longer
<FromGitter> <jrei:matrix.org> that's why I was saying initially to wait like 1 day before a tagged release
<FromGitter> <jrei:matrix.org> I have already installed 0.36.1, 15 minutes after the tag :D
* FromGitter * Blacksmoke16 still waiting on `0.36.0` on manjaro
<FromGitter> <Blacksmoke16> someone should mark it as outdated
<FromGitter> <jrei:matrix.org> If I were you I'd just use asdf, or unpack the archive in `~/.local`
<FromGitter> <Blacksmoke16> yea might do that in the meantime
<FromGitter> <jrei:matrix.org> Should not be complicated to update the AUR?
xaxisx has joined #crystal-lang
<FromGitter> <jrei:matrix.org> just a version to bump no?
<FromGitter> <Blacksmoke16> afaik AUR is already updated, just waiting on Manjaro to allow it thru
<FromGitter> <Blacksmoke16> but its outdated now given `0.36.1` is a thing
<FromGitter> <jrei:matrix.org> right
<oprypin> Blacksmoke16, there's no AUR involved
xaxisx has quit [Ping timeout: 240 seconds]
<oprypin> Blacksmoke16, also you *really* should have an alias to crystal that you compiled yourself
<FromGitter> <Blacksmoke16> yea i do, `ccrystal`
xaxisx has joined #crystal-lang
<FromGitter> <Blacksmoke16> is what i normally do but are some things that doesnt work for
<oprypin> Blacksmoke16, i actually can't think of any such things
<FromGitter> <Blacksmoke16> working with mkdocs using crystal code that requires 0.36.x code
<oprypin> hehe
<FromGitter> <Blacksmoke16> would have to be in path as `crystal`
postmodern has joined #crystal-lang
<oprypin> PATH=~/repos/crystal/bin:$PATH mkdocs serve
<FromGitter> <Blacksmoke16> i symlinked the binary from the GH release to .local/bin for it
<FromGitter> <Blacksmoke16> but at this point ill just wholesale switch
<oprypin> hm i'm surprised that works at all
<FromGitter> <Blacksmoke16> it comes first in my PATH so it finds that one before the one installed via pacman
<oprypin> @Blacksmoke16: speaking of "AUR"... you can just download this bad boy and run `makepkg -si` https://github.com/archlinux/svntogit-community/blob/packages/crystal/trunk/PKGBUILD
<FromGitter> <Blacksmoke16> oh nice
<FromGitter> <Blacksmoke16> good to know
alexherbo2 has quit [Ping timeout: 258 seconds]
xaxisx has quit [Remote host closed the connection]
xaxisx has joined #crystal-lang
_ht has quit [Remote host closed the connection]
sorcus has joined #crystal-lang
xaxisx has quit [Remote host closed the connection]
xaxisx has joined #crystal-lang
xaxisx has quit [Client Quit]
<postmodern> so where is Class#include implemented within the crystal code base? Wondering how much work would it be to add Class#prepend myself
<oprypin> postmodern, it's not a method, it's a keyword
<oprypin> postmodern, `git grep Include src/compiler/crystal`
<postmodern> ah thank you
deavmi has quit [Ping timeout: 272 seconds]
<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)`
<straight-shoota> there are several ways to write such literals
<FromGitter> <Uzay-G> oh yes i remember now. Thanks!
deavmi has joined #crystal-lang