kmctown has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<Blacksmoke16> would be pretty easy to implement i think, esp with type restrictions
<FromGitter>
<Blacksmoke16> at compile time get an array of all subclasses of some parent `Command` class, and build out handler methods type restricted to that type
<FromGitter>
<Blacksmoke16> ill add that to the list :p
jemc has joined #crystal-lang
jemc has quit [Client Quit]
jemc has joined #crystal-lang
<FromGitter>
<Blacksmoke16> @dscottboggs_gitlab I found an issue with my white-listing logic for the specs :(
<FromGitter>
<Blacksmoke16> it only works when doing like `User.prepare(HasRole.new "foo")` have to think if i can come up with a way to limit that outside the type
<FromGitter>
<Blacksmoke16> would do it since the type is now in the context of the class but thats a bit strange?
<FromGitter>
<Blacksmoke16> will have to do if you want everything to be type safe :shrug:
DTZUZO has joined #crystal-lang
<FromGitter>
<sam0x17> @j8r my understanding was that the plan is to eventually make fibers run in parallel by default, maybe I was mistaken about that
marmotini_ has joined #crystal-lang
moei has joined #crystal-lang
ua has quit [Ping timeout: 272 seconds]
marmotini_ has quit [Ping timeout: 250 seconds]
marmotini_ has joined #crystal-lang
<FromGitter>
<j8r> I don't know. In this case, using a mutex seems appropriate
DTZUZO has quit [Ping timeout: 250 seconds]
ashirase has quit [Ping timeout: 252 seconds]
ashirase has joined #crystal-lang
ua has joined #crystal-lang
<FromGitter>
<vladfaust> I bet @r00ster91 is a secret member of core team as well
<FromGitter>
<mavu> Morning, If any of you want to feel really facepalmingly stupid for a bit, just try to get bitwise operations right while using "&&" as your bitwise-and operator.
<FromGitter>
<kingsleyh> Hehe :g
DTZUZO has joined #crystal-lang
DTZUZO has quit [Ping timeout: 272 seconds]
<FromGitter>
<mavu> Is there a method in JSON to pretty print json?
<FromGitter>
<mavu> never mind. pp some_parsed_json works.
<FromGitter>
<Blacksmoke16> there is also a `to_pretty_json` method
marmotini_ has quit [Ping timeout: 250 seconds]
edcragg has quit [Ping timeout: 264 seconds]
edcragg has joined #crystal-lang
<FromGitter>
<j8r> mps I'm working on doing the same thing of libzip.a, but with curl this time
<mps>
j8r: you want static libcurl?
kmctown has joined #crystal-lang
fanta7531 has joined #crystal-lang
edcragg has quit [Remote host closed the connection]
edcragg has joined #crystal-lang
<mps>
j8r: are you here? forgot to mention that curl-dev on Alpine already have libcurl.a
fanta7531 has quit [Quit: fanta7531]
jemc has quit [Ping timeout: 245 seconds]
jemc has joined #crystal-lang
jemc has quit [Client Quit]
<FromGitter>
<j8r> sorry mps, I was in a meeting
<FromGitter>
<j8r> yes it already exists, but symbols are missing to build PHP statically
<mps>
j8r: np, just wanted to say that is there already to save you some time :)
<FromGitter>
<j8r> Thanks, I'll tell you if I'm really blocked :)
<mps>
libcurl is shared libs apk. for development you have to use curl-dev
DTZUZO has quit [Ping timeout: 244 seconds]
<FromGitter>
<j8r> looks like i do it :D
kmctown has joined #crystal-lang
<FromGitter>
<j8r> oh no now curl is statically linked :/
<mps>
nice. you like static programs. Sometimes they are really useful. I will try to build static crystal apk, and rust if I found time and learn how to do these things
<FromGitter>
<j8r> that's still for PHP, I don't have a simpler choice :/