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
ur5us has joined #crystal-lang
avane_ has joined #crystal-lang
avane has quit [Ping timeout: 252 seconds]
ulyssa has quit [Remote host closed the connection]
ulyssa has joined #crystal-lang
avane_ has quit [Ping timeout: 244 seconds]
avane has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
hamoko has quit [Ping timeout: 250 seconds]
fifr[m] has quit [Ping timeout: 252 seconds]
hamoko has joined #crystal-lang
fifr[m] has joined #crystal-lang
<hightower2> Hey do you folks have a comment/suggestion on https://github.com/j8r/crystalizer/pull/15#issuecomment-912399267 . The intention of the code is to try the "bytesize" thing only if `object.class == String` and `variable.type == String.class`. But I am not managing to restrict types sufficiently so it thinks that "bytesize" can be passed even to other types (like UInt8 in the example).
<FromGitter> <jrei:matrix.org> if object.is_a? String
<hightower2> Yes, that already happens in the code, and it takes care of `object`. But it doesn't take care of `variable.type`, which is where the problem happens.
<hightower2> (In the code, class of `object` and class stored in `variable.type` are always in sync. But the compiler doesn't know that)
<hightower2> but you gave me an idea, let me try
<FromGitter> <jrei:matrix.org> I pushed a fix
<hightower2> awesome, thanks
<FromGitter> <jrei:matrix.org> starting to think, may make no sense to have both the serializer and deserializer methods in the same module
<FromGitter> <jrei:matrix.org> but it is really convenient
deavmi_ has joined #crystal-lang
deavmi has quit [Ping timeout: 252 seconds]
deavmi_ has quit [Ping timeout: 252 seconds]
deavmi has joined #crystal-lang
hightower2 has quit [Ping timeout: 244 seconds]
elf_fortrez has joined #crystal-lang
<FromGitter> <MrSorcus> Hi guys. 😸
<FromGitter> <MrSorcus> https://gist.github.com/MrSorcus/bfaccffefddab6cd4b05c66f75d361a9 - why this code stuck on `puts "Before"`? I run `curl --verbose "http://[::]:3000"` and sample.cr shows only `Listening on [::]:3000\nBefore`, until i kill curl process. Only then `After` will be printed. Hmm...
<FromGitter> <Blacksmoke16> can you actually skip to the end of a socket given it doesnt really have an end?
<FromGitter> <MrSorcus> @Blacksmoke16 🤔
<FromGitter> <Blacksmoke16> i mean you could like keep sending data thru a the socket forever, so your `io.skip_to_end` prob is blocking/trying to get to the end
elf_fortrez has quit [Ping timeout: 256 seconds]
nopcOde has joined #crystal-lang
nopc0de_ has quit [Ping timeout: 252 seconds]
<FromGitter> <MrSorcus> @Blacksmoke16 thanks 😉
brw7 has joined #crystal-lang
brw has quit [Read error: Connection reset by peer]
brw7 is now known as brw
notzmv has quit [Ping timeout: 252 seconds]
ur5us has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
nopcOde has quit [Ping timeout: 245 seconds]