<FromGitter>
<picatz> @KCreate I've never touched rails myself.
<FromGitter>
<picatz> ( late to the partayyy on that one / was in class )
danielpclark has joined #crystal-lang
<FromGitter>
<elorest> @fridgerator I didn't check what the current test coverage was at before I said that. However there's an old joke in rails that no matter how many tests you have you always need 1% more.
<FromGitter>
<domgetter> How do you convert an Int32 to a UInt32 ? `as` isn't working
<DavidAlexander[m>
renich: There has been some effort into cross-compiling and putting it on Alpine, but no joy so far with MUSL
DavidAlexander[m has left #crystal-lang ["User left"]
DavidAlexander[m has joined #crystal-lang
<DavidAlexander[m>
test
DavidAlexander[m is now known as thelonelyghost
<Renich>
DavidAlexander[m: well, that sounds much better.
<Renich>
I hope some progress can be made on that regard
<Renich>
what is the MUSL test, btw?
<Renich>
ok, libc test; found out
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vSrv5
<crystal-gh>
crystal/master 2229513 Ary Borenszweig: WeakRef: use instance_sizeof in allocate
sz0 has quit [Quit: Connection closed for inactivity]
olek_poz has joined #crystal-lang
<FromGitter>
<drosehn> @bew : I expect the problem is because within macros, there is an instance-method named debug. Though obviously the messages that the compiler to an attempt to define a new `macro dump` could be more helpful! I wonder if there would be similar errors for other methods defined for use with macros: https://crystal-lang.org/api/Crystal/Macros.html
<FromGitter>
<drosehn> *(I wrote that some time ago, but forgot to hit `return`...)*
<FromGitter>
<redcodefinal> oh btw anyone here going to the Crystal CodeCamp in san fran?
greengriminal has quit [Quit: Leaving]
<FromGitter>
<sdogruyol> @redcodefinal i am going
leonardschuetz has joined #crystal-lang
leonardschuetz is now known as KCreate
<KCreate>
Hey everyone, is there a way to check if a type is defined at compile time?
<KCreate>
maybe via macro?
<BlaXpirit>
i think not
<BlaXpirit>
they'd tell you that you're not supposed to need this
<Yxhuvud>
may be needed eventually so easen up to simplyfy depending on having any of multiple different libs
<Yxhuvud>
(wtf sentence building)
olek_poz has quit [Ping timeout: 268 seconds]
<BlaXpirit>
lol
_whitelogger has joined #crystal-lang
KCreate has quit [Ping timeout: 260 seconds]
bjz has joined #crystal-lang
KCreate has joined #crystal-lang
<FromGitter>
<chuckremes> question… I have created a record like so: `record GreetCommand, name : Symbol = :greet` and then created a channel to send it down like so: `ch = Channel(GreetCommand).new(2)
<FromGitter>
<chuckremes> Hmmm, while rubber ducking this here I may have a solution… never meind for now :)
<FromGitter>
<chuckremes> solved it (for now).
<FromGitter>
<chuckremes> Just spiked a (very) simple proof-of-concept for doing actors in crystal a la ruby’s `celluloid` gem. It’s rough and all of the dynamically generated code produced by ruby was hand written, but it works. I now need to clean it up and dive into the `macro` system to see how to generate/write classes at compile time.
<FromGitter>
<chuckremes> neat language (and fast!)
<FromGitter>
<chuckremes> time for a well deserved adult beverage. have a nice weekend.
onionhammer has quit [Read error: Connection reset by peer]
onionhammer has joined #crystal-lang
fenicks has joined #crystal-lang
KCreate has quit [Quit: leaving]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<jwoertink> Anyone know what the crystal equivalent would be of this ruby code?
<FromGitter>
<bew> @jwoertink if you want to do (de)serialization of classes state you can use to/from_json/yaml... If you need byte level (de)serialization you should go with
<FromGitter>
<jwoertink> Cool. That's what I figured
<FromGitter>
<bew> Roughly, the Crystal version would be `"abc".to_json` or sth :smile:
<FromGitter>
<jwoertink> haha. Not quite, but I'm running with that anyway
<FromGitter>
<jwoertink> Thanks for the msgpack suggestion!
<FromGitter>
<bew> You're welcome! There is also a BSON lib (https://github.com/jeromegn/bson.cr) but the last commit is 11 month ago, and does not compile with current crystal version last time I checked :worried:
<FromGitter>
<jwoertink> yikes. Yeah. JSON will work for now. It will limit the users, but not in a horrible way
<FromGitter>
<jwoertink> and things will always progress later anyway