<FromGitter>
<RX14> looks like too many brackets for me to parse at 1:30am
<FromGitter>
<faustinoaq> Just to say: Nice game between Panama and England 😄 Was our first goal in a fifa world cup ✨
zachk has quit [Quit: Leaving]
<FromGitter>
<S-YOU> Congrats, @faustinoaq
<FromGitter>
<girng> wow, Constants are global, didn't know that, cool!
<FromGitter>
<aisrael> They don't have to be. I mean, you can have a `module` or `class` scoped constant, right?
<FromGitter>
<girng> i love globals
<FromGitter>
<aisrael> Yeah... I used to avoid then unless necessary in Ruby since they weren't really constant (and you risk collision thus overriding/redefining constants) but at least in Crystal the compiler will complain so it's safer
<FromGitter>
<codenoid> i'm abusing computer for fun and profit
<FromGitter>
<girng> @codenoid thx
spencer has joined #crystal-lang
<spencer>
So when writing a shard if I'm extending a standard library class do I not put my code in a module?
<FromGitter>
<icyleaf> @godmode97 i missing `#new`
<FromGitter>
<snadon> @icyleaf Thanks it's working well. In the documentation it says `Time.parse("2015-10-12 10:30:00 +00:00", "%Y-%m-%d %H:%m:%s %Z")`, I suppose `%m:%s` should be `%M:%S`?
<FromGitter>
<ok2094> I keep getting this error ``` ⏎ ERROR: cast from Int64 to Hash(K, V) failed, at /usr/local/Cellar/crystal-lang/0.25.0_1/src/json/any.cr:211:5:211 (TypeCastError) ⏎ from /usr/local/Cellar/crystal-lang/0.25.0_1/src/json/any.cr:0:5 in 'as_h' ⏎ from lib/jwt/src/jwt.cr:36:15 in 'decode' ⏎ ... [https://gitter.im/crystal-lang/crystal?at=5b31dcc00168e70c08eef696]
<FromGitter>
<codenoid> are you using mac ?
<FromGitter>
<ok2094> yes
<FromGitter>
<codenoid> ok
rocx has quit [Ping timeout: 260 seconds]
<FromGitter>
<codenoid> how to encrypt somestring/base64 with crystal
<FromGitter>
<codenoid> should i create `issue` for that ?
DTZUZU has joined #crystal-lang
DTZUZO has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<FromGitter>
<bcardiff> @S-YOU rahter than inference I think that is method lookup algortihm. Some language use the result type as input for the overload to use. It's nice there, but if you only see the rhs you might no longer be sure the code to execute (and that sometimes make it harder IMO)
<FromGitter>
<bcardiff> @codenoid 0x20 is a space I think. Is the input right? Would you double check the input and check with some other base64 decoder to clarify if the problem is in crystal stdlib or somewhere else.
<FromGitter>
<S-YOU> I believe it is harder, `parse` has no idea what its gonna do alone, I guess.
<FromGitter>
<bcardiff> UFCS seems to be alternative method call syntax to avoid some amiguous cases due to the nature of those languages.
<crystal-gh>
[crystal] asterite opened pull request #6269: IO#write: return early if slice is empty (master...feature/6268-openssl-socket-write-empty-slice) https://git.io/f4Qat
<RX14>
gitter bot is still broken :(
<FromGitter>
<Val> Is this a compiler bug ?
<FromGitter>
<codenoid> the input is strict_encode
<crystal-gh>
[crystal] asterite opened pull request #6274: Formatter: fix for begin ... rescue ... end (master...bug/6256-formatter-begin-rescue-end) https://git.io/f4QDk
confact has joined #crystal-lang
<FromGitter>
<fgimian> Hey @faustinoaq, hope it's OK, I went through all the issues I could on the Sublime Text extension and tried to help.
<crystal-gh>
[crystal] bcardiff closed pull request #6266: Add dup and clone for JSON::Any and YAML::Any (master...feature/6220-json-any-dup) https://git.io/f4Qe0
<FromGitter>
<bendietze_twitter> I am a newbie to GitHub, don't know best practice: if i issued something and it got's refrenced from a pr - is it more accurate to comment thanks or is it more convinience to ignore still because every comment should be viewed by someone? What's more team friendly about issues and comments? About nettiquette or gittiquette :) i don't know 😟
<FromGitter>
<fgimian> @bendietze_twitter Really the biggest no no is the constant +1 comments you get when someone requests a feature. Saying thank you is always nice, but if you want to be safe, you can simply use an emoji (e.g. smiley or hooray) on the actual comment that you would like to appreciate.
<FromGitter>
<bendietze_twitter> @fgimian oh, yes, you are right, that feels good to me and should be helpful 😄
<FromGitter>
<bendietze_twitter> Btw, this smiley here 😄 is called smile :) but is is always laughing, right? Gitter is really happy place 😄
<FromGitter>
<bendietze_twitter> So, @fgimian , i 👍 up the pullrequest comment, because if i would smile this smiley is called laughin on GitHub comments, so for me doing 👍 was more correct as laughing about? Smileyworld is irritating sometimes :)
<FromGitter>
<faustinoaq> I always try to say "Thank you!", "No problem" or something like that, because my English is not very good, so I don't know if my comment is insulting or not 😅
<crystal-gh>
[crystal] asterite opened pull request #6275: Don't define `to_json` and `self.from_json` on Object (master...feature/5695-remove-object-to_json) https://git.io/f4QQD
<FromGitter>
<bendietze_twitter> @faustinoaq you are no native english speaker? Wow - never mentioned that
rohitpaulk has quit [Remote host closed the connection]
<FromGitter>
<giuseongit> Hi, is this channel only for the language development or can I ask some help?
<FromGitter>
<hugoabonizio> @giuseongit you can ask for help too
<FromGitter>
<bendietze_twitter> Yes, Channels will block, as long is unbuffered, buffered can get more info till blocking. While blocking the scheduler is able to switch between fibers ;)
<FromGitter>
<EmilieGliech_twitter> @hugoabonizio It's working, thank you very much.
<FromGitter>
<EmilieGliech_twitter> But it would be interesting to create a formatter for tap in spec, I'll try anyway
duane has quit [Ping timeout: 264 seconds]
<FromGitter>
<fridgerator> encrypt for what purpose?
rohitpaulk has joined #crystal-lang
<crystal-gh>
[crystal] asterite closed pull request #6275: Don't define `to_json` and `self.from_json` on Object (master...feature/5695-remove-object-to_json) https://git.io/f4QQD
duane has joined #crystal-lang
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
<FromGitter>
<codenoid> secure my data
rohitpaulk has quit [Ping timeout: 276 seconds]
snsei has quit [Remote host closed the connection]
rocx has joined #crystal-lang
<crystal-gh>
[crystal] ysbaddaden closed pull request #6274: Formatter: fix for begin ... rescue ... end (master...bug/6256-formatter-begin-rescue-end) https://git.io/f4QDk
<FromGitter>
<bendietze_twitter> Curious.. Didn't find a way to get memory usage (in bytes) of a Hash? How to archieve this? Run-trough, join,... not the cheapest in my opinion 😟 must be more easy, but i am out of words :)
rohitpaulk has joined #crystal-lang
<FromGitter>
<RX14> why must it be easy?
<FromGitter>
<bendietze_twitter> It's a cache, i need the ram usage to limit this or check how much is usage
<FromGitter>
<RX14> and hash itself's size is O(entries)
<FromGitter>
<RX14> as I said, limit on hash.size and hash.sum { |k,v| k.byesize + v.bytesize }
<FromGitter>
<sam0x17> I think something upstream might have messed it up
<FromGitter>
<RX14> the openssl package is broken
<FromGitter>
<sam0x17> well whoever maintains it would LOVE it if there were tags so we could use previous crystal versions as they come out -- as there is no way to do that otherwise with the APK packages, and would make debugging this a bit easier
<FromGitter>
<j8r> you can add older repos like 3.7
<FromGitter>
<RX14> no
<FromGitter>
<j8r> But we always depend on other people, like now with Alpine people breaking the zlib package @ edge :-}
<FromGitter>
<sam0x17> @j8r so that's what fixed it then?
<FromGitter>
<Val> @RX : thx
zachk has joined #crystal-lang
zachk has quit [Changing host]
zachk has joined #crystal-lang
wontruefree has joined #crystal-lang
<wontruefree>
sam0x17 I know docker hub has had some malicious containers on it. do you know if there is their anyway for you to sign it or verify it? Or anything to make it more secure?
daemonwrangler has quit [Ping timeout: 245 seconds]
<FromGitter>
<adamgotterer_twitter> Is it possible to see a call stack?
<FromGitter>
<MrSorcus> https://crystal-lang.org/api/0.24.2/Hash.html#merge%21%28other%3AHash%2C%26block%29-instance-method ⏎ How `merge!` with block works? In block only similar key is available for some actions?
<FromGitter>
<girng> btw, that is done inside a fiber, `handle_connection`
rohitpaulk has quit [Ping timeout: 265 seconds]
pwned has quit [Ping timeout: 276 seconds]
pbodev1 has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0/20170903140023]]
olbat has joined #crystal-lang
olbat has quit [Quit: Bye ...]
faustinoaq has quit [Quit: IRC client terminated!]
olbat has joined #crystal-lang
olbat has quit [Quit: Bye ...]
olbat has joined #crystal-lang
sz0 has joined #crystal-lang
<FromGitter>
<bew> yes it looks like synchronous inside the fiber, but if you do your `puts` in another fiber, it'll be executed while `db.query_all` is running