RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.26.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
bazaar has joined #crystal-lang
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
non-aristotelian has quit [Quit: non-aristotelian]
jemc has quit [Ping timeout: 268 seconds]
_ore has joined #crystal-lang
_ore has quit [Client Quit]
_ore has joined #crystal-lang
rohitpaulk has joined #crystal-lang
moei has quit [Ping timeout: 272 seconds]
_ore has quit [Ping timeout: 240 seconds]
_whitelogger has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
<FromGitter> <proyb6> How do I enable opt-in flag when compile with 0.27.0?
_whitelogger has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
<FromGitter> <bew> what kind of flags?
rohitpaulk has joined #crystal-lang
Raimondii has joined #crystal-lang
ashirase has quit [Ping timeout: 268 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
ashirase has joined #crystal-lang
moei has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
_ore has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
<FromGitter> <girng> love u all, thank you for being a part of my life. will miss u all and thanks for everything you have done with crystal lang
<FromGitter> <girng> and the support in this channel has been amazing, every single one of you are extremely nice and caring. especially for putting up with me. it is appreciated more than you know
<FromGitter> <fusillicode_twitter> 🖤
<FromGitter> <bararchy> @girng are you going somewhere?
<FromGitter> <bararchy> or just dropping Crystal?
<FromGitter> <bararchy> @vladfaust seems like people are posting at https://crystaljobs.org/ already :) someone want's to pay for rails port
<FromGitter> <vladfaust> Indeed!
<FromGitter> <proyb6> At the Next Step which is bottom of the page
rohitpaulk has joined #crystal-lang
<FromGitter> <proyb6> "Please update your Crystal and report any issues. We have scheduled some breaking changes for 0.28.0 but we will aim to include them in a 0.27.x version with an opt-in flag so you can try them earlier."
<FromGitter> <bew> it means that in versions after 0.27.0 (so 0.27.1, 0.27.2, ..) there will be flags, not in 0.27.0
rohitpaulk has quit [Ping timeout: 252 seconds]
<FromGitter> <proyb6> @vladfaust It's idea to verify their busines existing by contact thru work email to avoid getting work scams
<FromGitter> <proyb6> @bew Oh I see, thanks!
_ore has quit [Ping timeout: 268 seconds]
<FromGitter> <proyb6> Oh girng's github repo was deleted too
<FromGitter> <fusillicode_twitter> :(
<FromGitter> <dscottboggs_gitlab> I hope everything is ok with him
<FromGitter> <fusillicode_twitter> @dscottboggs_gitlab +1 here :(
<FromGitter> <fusillicode_twitter> what he spoke is truth though, I totally feel the same about this place and community. I really hope he's all right :(
<FromGitter> <dscottboggs_gitlab> yeah every interaction I've had everyone's been super nice
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
ua has quit [Ping timeout: 240 seconds]
daemonwrangler has quit [Quit: ZNC 1.6.5 - http://znc.in]
daemonwrangler has joined #crystal-lang
akaiiro has quit [Remote host closed the connection]
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 245 seconds]
ua has joined #crystal-lang
<FromGitter> <proyb6> How much memory does each new fiber consume?
<FromGitter> <bew> iirc when you make a new fiber, it is initialized with 8MB of virtual memory for the stack, which means about a page (4KB) of real memory (until it need more)
<FromGitter> <j8r> threads are more expensive
<FromGitter> <j8r> and for a process even more
<FromGitter> <dscottboggs_gitlab> 4kb seems like a lot but if a process is more expensive than that then I really see the issue and why it may have been less used in the past.
<FromGitter> <dscottboggs_gitlab> is there a reason why `Int` can't just be `Int8 | Int16 | Int32 | Int64 | UInt8 | UInt16 | UInt32 | UInt64`?
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/5f86
<FromGitter> <dscottboggs_gitlab> so it is?
<FromGitter> <dscottboggs_gitlab> O
<FromGitter> <Blacksmoke16> because they all inherit from Int
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/5f87 which encompasses Int and Floats
<FromGitter> <dscottboggs_gitlab> I've had compiler warnings saying you can't use `Int` as a type, when I mean to use any integer type, so I've taken to creating an Integer type that is the above union and using that
<FromGitter> <dscottboggs_gitlab> is this a recent change?
<FromGitter> <Blacksmoke16> thats diff
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/5f8b
<FromGitter> <dscottboggs_gitlab> I see
<FromGitter> <dscottboggs_gitlab> I had been thinking you couldn't use it as the other type either but I see now it must just be in the `initialize` func because you can't use that as the actual value
<FromGitter> <dscottboggs_gitlab> What I wanted was to be able to accept any integer to a method anyway
<FromGitter> <Blacksmoke16> in that case it works, but cant use it with ivar's since it would be too generic of a type
<FromGitter> <Blacksmoke16> maybe in future
<FromGitter> <dscottboggs_gitlab> I see, I need to use `Int` and call `#to_i` rather than just letting it be anything in this case anyway
<FromGitter> <dscottboggs_gitlab> yeah I would like an `Int` to default to whatever's most efficient for the architecture, or perhaps an `Int32` to avoid weird bugs, and then expand if it get's overflowed, but I understand that that's a stupidly hard to write feature for the tiny benefit it provides
<FromGitter> <Blacksmoke16> at that point you're not really in a static typed language tho are you?
<FromGitter> <dscottboggs_gitlab> it seems like a fair balance if you use it explicitly over `Int32` and it's well documented
<FromGitter> <dscottboggs_gitlab> although just using untyped constants (which was added recently, no?) resolves basically any issues with that and it's certainly something I would respect an explicit decision to not have.
<FromGitter> <Blacksmoke16> not sure, is that a thing?
<FromGitter> <dscottboggs_gitlab> it's a thing in go and I saw a discussion about adding it, I'm not sure if it's a thing for sure yet
<FromGitter> <dscottboggs_gitlab> https://play.crystal-lang.org/#/r/5f8z
<FromGitter> <dscottboggs_gitlab> yup
<FromGitter> <dscottboggs_gitlab> I think @asterite did that one, love that
<FromGitter> <Blacksmoke16> ah the automatic casts
<FromGitter> <dscottboggs_gitlab> yes. much thanks, that is such a good feature
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <codenoid> weird
<FromGitter> <codenoid> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5bddd0da6eb1e3597aa55030]
<FromGitter> <codenoid> but, i can't find the code in line 24
<FromGitter> <codenoid> and memory.cr code is so different with the trace
<FromGitter> <Blacksmoke16> @codenoid if you running crystal 0.27.0 `epoch_ms` isnt a thing anymore just fyi
<FromGitter> <dscottboggs_gitlab> @codenoid have you tried using `crystal tool expand`
<FromGitter> <codenoid> not yet
<FromGitter> <dscottboggs_gitlab> so, was there any reason why the keyword operator equivalents like "not", "or", and "and" were removed in the early days?
<FromGitter> <codenoid> what replacement for `Time#to_unix_ms` :/
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
<FromGitter> <codenoid> #unix_ms
<FromGitter> <codenoid> lol, see yaa
<FromGitter> <j8r> @codenoid you can also use `Time::UNIX_EPOCH` https://crystal-lang.org/api/master/Time.html#UNIX_EPOCH
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
akaiiro has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 250 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 245 seconds]
<FromGitter> <kaukas_gitlab> Is there a way to specify that a property is a class that includes or extends a certain module? Something like this: ⏎ ⏎ ```class Foo ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5bddf6816eb1e3597aa63be4]
<FromGitter> <kaukas_gitlab> Specifically I am looking at writing an adapter for Crecto but it will not allow me to add anything else (https://github.com/Crecto/crecto/blob/master/src/crecto/repo/config.cr#L6). Instead of listing the particular classes could it just specify that it wants any class that extends a certain module?
<oprypin> kaukas_gitlab, `property bar : SomeModule` ???
<FromGitter> <kaukas_gitlab> @oprypin, I think that works?... 😆
_ore has joined #crystal-lang
_ore has quit [Ping timeout: 268 seconds]
_ore has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 244 seconds]
_ore has quit [Ping timeout: 272 seconds]
_ore has joined #crystal-lang
_ore has quit [Ping timeout: 252 seconds]
z64 has quit [Ping timeout: 250 seconds]
_ore has joined #crystal-lang
<FromGitter> <kingsleyh> evening - who maintains the brew package - it doesn't seem to have Crystal 0.27.0 in it yet
<FromGitter> <kingsleyh> could someone update homebrew to 0.27.0 for us Mac users :)
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 250 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
non-aristotelian has joined #crystal-lang
<FromGitter> <bew> hey @Val thank you for `crun` I use it now for some scripts :)
<FromGitter> <j8r> I think i'll send a PR to https://github.com/alpinelinux/aports/pulls
teardown has quit [Read error: Connection reset by peer]
teardown has joined #crystal-lang
<FromGitter> <dscottboggs_gitlab> @j8r oh wow those are just like PKGBUILDs on arch, now I get why alpine is so popular haha
<oprypin> uh huh
<oprypin> it's actually a rip-off :D
<FromGitter> <dscottboggs_gitlab> nothing wrong with a rip off of something open-source; that's the whole point haha