ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
PixeLInc has joined #crystal-lang
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<faustinoaq> Wow, crystal is available on many distros https://repology.org/metapackage/crystal-lang/versions
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
<faustinoaq> Wow, PHP is the king https://trends.builtwith.com/framework
<Papierkorb> nothing new
RickHull has joined #crystal-lang
RickHull has left #crystal-lang [#crystal-lang]
<hightower3> How can I change the uid/gid from within the program? I'm looking for equivalent of Ruby's Process::UID.change_privilege
<faustinoaq> Wow, Simple Web development in Crystal without framework is not that bad 👍
<FromGitter> <bew> hightower3 why do you want to do that?
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
sz0 has joined #crystal-lang
faustinoaq has quit [Ping timeout: 240 seconds]
faustinoaq has joined #crystal-lang
faustinoaq has joined #crystal-lang
PixeLInc has quit [Excess Flood]
PixeLInc has joined #crystal-lang
greengriminal has joined #crystal-lang
greengriminal has quit [Client Quit]
PixeLInc is now known as PixeLBot
PixeLBot is now known as PixeLInc
<FromGitter> <phoffer> I’ve been absent for some time but @RX if you want a inflector shard not part of anything else, I made https://github.com/phoffer/inflector.cr quite a while ago. Exact port of ActiveSupport’s Inflector, monkey patches are available but not required by default
astronavt has quit [Quit: Leaving...]
rohitpaulk has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
sz0 has joined #crystal-lang
<FromGitter> <sam0x17> if I have a variable that is `[Some Type] | Nil`, and right now it is uninitialized so it is actually Nil, is there some way to find out what `[Some Type]` is, like with an if statement?
<FromGitter> <sam0x17> calling `.class` on the variable just gives me `Nil` ... looking for some way to get the other type it could be
rohitpaulk has quit [Ping timeout: 268 seconds]
<FromGitter> <sam0x17> I found a better way, but curious if there is an answer to this ^
<Yxhuvud> typeof
<FromGitter> <sam0x17> ah
<FromGitter> <sam0x17> thx
rohitpaulk has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
Yxhuvud has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <sam0x17> there is no built-in way of finding out if class A is a subclass of class B unless I have an instance of class A handy and can do `A.is_a?(B)` right?
Yxhuvud has joined #crystal-lang
<Groogy> Morning! o/
<Groogy> @sam0x17 should be possible through macros, though there might already be one implemented
<FromGitter> <sam0x17> yeah, right now I have it working by having `B` keep track of a hash of all classes that have inherited from it
<Papierkorb> ...what
<Papierkorb> TypeNode#all_subclasses, TypeNode#<
<Papierkorb> There are even two documented macro solutions
<Groogy> yeah I meant what Papierkorb is referring to
<FromGitter> <sam0x17> nice!
<FromGitter> <sam0x17> yeah I couldn't find that anywhere in google
<Groogy> will save your life
<FromGitter> <sam0x17> thanks!
sz0 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<Groogy> Papierkorb what two documented macro solutions do you mean?
<Groogy> couldn't find
<Papierkorb> https://crystal-lang.org/api/0.23.1/Crystal/Macros/TypeNode.html#all_subclasses%3ACrystal%3A%3AMacros%3A%3AArrayLiteral%28TypeNode%29-instance-method
<Papierkorb> and the other one the same.
<Groogy> ah when you said documented solutions I thought you meant "there is already a is_a?() macro done" somewhere
rohitpaulk has quit [Ping timeout: 248 seconds]
<oprypin> sam0x17, https://carc.in/#/r/348c
<FromGitter> <sam0x17> omg thats perfect thx
<Groogy> I thought the class you get from #class is an instance of Class? does is_a? have some extra semantics for classes?
<FromGitter> <sam0x17> @oprypin that technique worked as a perfect drop-in replacement for what I head thanks a bunch
<FromGitter> <sam0x17> @Groogy not sure if you noticed the `.class` at the end but that may clarify your question
<FromGitter> <sam0x17> I was scratching my head at first too
<Groogy> yeah I did, but that will give you an instance of Class, not a derivative of Class, but of course is_a? could have a variant that takes a Class and knows how to interpret that
<FromGitter> <sam0x17> ah, yeah I'm guessing that since this works, it does
<FromGitter> <sam0x17> tried for like 20 mins to find the source code for the .to_a? macro but github search is terrible as ever and I'm too lazy to clone
<Groogy> Eh is_a? is special since the compiler has to be aware what it means (so you can remove types from a type union etc.)
<Groogy> so its not a method really, it's more a language construct
<FromGitter> <sam0x17> yeah I'm not even sure if it has a macro definition like what I'm thinking
<FromGitter> <sam0x17> thar be dragons
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
faustinoaq has quit [Client Quit]
rohitpaulk has quit [Ping timeout: 268 seconds]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Remote host closed the connection]
<FromGitter> <codenoid> hi, my kemal wont receive multiple value from `select[multiple]` ,
<FromGitter> <codenoid> `env.request.body` (HTTP Request) return `#<HTTP::FixedLengthContent:0x14c4540>`
DTZUZO has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
PixeLInc has quit [Excess Flood]
faustinoaq has quit [Quit: IRC client terminated!]
PixeLInc has joined #crystal-lang
faustinoaq has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
badeball has quit [Quit: leaving]
badeball has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<FromGitter> <cyclecraze_twitter> Regarding overloading, the docs uses this example: ``` ⏎ class Person ⏎ @age = 0 ⏎ ⏎ # Increases age by one ... [https://gitter.im/crystal-lang/crystal?at=5a118f83982ea2653f9ad787]
<FromGitter> <cyclecraze_twitter> Sorry for the formatting!
rohitpaulk has quit [Ping timeout: 240 seconds]
<crystal-gh> [crystal] MakeNowJust opened pull request #5313: Format: fix to format `$1?` (master...fix/crystal-format/5310-dollar-one-percent) https://git.io/vFH9C
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
astronavt has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
aroaminggeek has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
astronav_ has joined #crystal-lang
astronavt has quit [Ping timeout: 258 seconds]
astronav_ has quit [Remote host closed the connection]
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vFHbq
<crystal-gh> crystal/master 6027a94 TSUYUSATO Kitsune: Format: fix to format `$1?` (#5313)...
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astronavt has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
<hightower3> Someone mentioned that 0.24 release notes/changelog existed somewhere. Where is it?
<travis-ci> crystal-lang/crystal#6027a94 (master - Format: fix to format `$1?` (#5313)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/304368608
<DeBot_> https://github.com/crystal-lang/crystal/pull/5313 (Format: fix to format `$1?`)
hightower4 has joined #crystal-lang
hightower3 has quit [Ping timeout: 240 seconds]
astronavt has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #crystal-lang
astronavt has joined #crystal-lang
aroaminggeek has joined #crystal-lang
aroaminggeek has quit [Client Quit]
aroaminggeek has joined #crystal-lang
faustinoaq has joined #crystal-lang
woodruffw has quit [Ping timeout: 268 seconds]
woodruffw has joined #crystal-lang
woodruffw has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest57431
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest57431 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven is now known as Guest38788
<faustinoaq> In the future, would be possible a security page for crystal? like ruby one https://www.ruby-lang.org/en/security/
<Papierkorb> nice
<faustinoaq> <@oprypin> Yes, I know, Thank you for share, but I mean something like "Known issues" section
<Papierkorb> There are no CVEs ... yet
<faustinoaq> <@Papierkorb> Oh, ok CVEs for crystal is something I would like to see, after 1.0 of course
Guest38788 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<faustinoaq> Hi, @matiasgarciaisaia, I think we need to update/regenerate crystal static page, https://i.imgur.com/oFqwSM5.png
<oprypin> faustinoaq, there havent been "release notes" blog posts
<faustinoaq> <@oprypin> Oh, I just realize, no problem then
<oprypin> well, just a different kind of problem, really
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
DTZUZU has quit [Ping timeout: 240 seconds]
vivus has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
faustinoaq has quit [Quit: IRC client terminated!]