RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.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
alex`` has quit [Quit: WeeChat 2.1]
<travis-ci> crystal-lang/crystal#1bedce6 (master - Merge pull request #6413 from asterite/bug/6014-parse-named-tuple-inside-paren): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/406468125
<DeBot> https://github.com/crystal-lang/crystal/pull/6413 (Parser: fix parsing of named tuple inside generic type)
phvse has joined #crystal-lang
phvse has quit [Quit: Konversation terminated!]
<FromGitter> <Blacksmoke16> if using property macro is no way to have the doc comment message be different for getter/setter right?
<FromGitter> <Blacksmoke16> on another note
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/4kms this could prob have a better error message
<FromGitter> <Blacksmoke16> line number/variable name maybe?
akaiiro has joined #crystal-lang
<FromGitter> <bew> @Blacksmoke16 good idea!
<FromGitter> <bew> @RX14 awesome PR! Why is the personality fun `_CxxThrowException` though?
akaiiro has quit [Ping timeout: 244 seconds]
akaiiro has joined #crystal-lang
akaiiro has quit [Ping timeout: 276 seconds]
akaiiro has joined #crystal-lang
dhk has joined #crystal-lang
dhk has quit [Client Quit]
<FromGitter> <straight-shoota> @soanvig The existing JS didn't follow any conventions, so I didn't bother
bmcginty has quit [Ping timeout: 260 seconds]
bmcginty has joined #crystal-lang
akaiiro has quit [Ping timeout: 276 seconds]
bmcginty has quit [Ping timeout: 276 seconds]
bmcginty has joined #crystal-lang
bmcginty has quit [Ping timeout: 244 seconds]
bmcginty has joined #crystal-lang
<RX14> @bew because thats the personality for C++-style exceptions on windows
<RX14> its just how it works
<RX14> windows provides that function
<RX14> also it's __CxxFrameHandler3 for the personality not _CxxThrowException
bmcginty has quit [Ping timeout: 240 seconds]
alex`` has joined #crystal-lang
<FromGitter> <godmode97> have you ever encountered this error?
rohitpaulk has joined #crystal-lang
duane has joined #crystal-lang
<FromGitter> <straight-shoota> If someone want's to get started working on the Compiler, #6417 could be a great feature for beginners. =)
<DeBot> https://github.com/crystal-lang/crystal/issues/6417 (Missing Crystal::Macros::TypeNode#class_vars)
duane has quit [Remote host closed the connection]
<Groogy> Is faustino online?
<Groogy> I'm getting wonky syntax highlighting with divider and regexp :/
<literal> when parsing JSON with from_json I seem to get strings that are double-encoded, any tips? https://gist.github.com/hinrik/af9603ec514175cd3418999066bcc0e8
<literal> the JSON file uses \uXXXX in its strings for non-ASCII
<literal> and e.g. when I do "puts msg.sender_name" it gives me "Ãrn" instead of "Örn"
rohitpaulk has quit [Ping timeout: 276 seconds]
<literal> pp JSON.parse %{["\u00c3\u0096rn"]} # prints garbage
rohitpaulk has joined #crystal-lang
alex`` has quit [Ping timeout: 256 seconds]
alex`` has joined #crystal-lang
Ven`` has joined #crystal-lang
Ven`` has quit [Ping timeout: 248 seconds]
Ven`` has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
bmcginty has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <j8r> How can I split simply an array in two parts a `x` index? something like `array1, array2 = old_array.split(x)`
<FromGitter> <j8r> for now I use `array1 = old_array[0...x]; array2 = old_array[x..-1]` :/
<Groogy> partition maybe?
<Groogy> but yeah that works, you don't need two assignments though
<Groogy> array1, array2 = old_array[0...x], old_array[x..-1]`
<Groogy> should work I think?
<FromGitter> <bew> Our use `...split(x, limit: 2)`
<FromGitter> <bew> Or*
<Groogy> where's split defined?
<Groogy> I can only find split being defined in String
<FromGitter> <bew> Ah true
<FromGitter> <j8r> there is a difference between `array1, array2 = old_array[0...x], old_array[x..-1]` and `array1 = old_array[0...x]; array2 = old_array[x..-1]` ?
<Groogy> no, just it becomes a one liner :P
<FromGitter> <jspillers> my program is intermittently terminating and simply dumping `gmp: overflow in mpz type` to the terminal with no backtrace or any clue as to where the failure occurred. I am pretty sure the issue is with a BigDecimal calculation (GMP is used for all the classes in "big" I believe), but no idea how to debug when there is no backtrace. Any recommendations on how to approach?
<FromGitter> <j8r> @jspillers how much memory takes your application?
<FromGitter> <jspillers> let me see...
<FromGitter> <j8r> maybe you have somewhere a "big" operation, and this go beyond the memory limit of a crystal program
<FromGitter> <jspillers> 1) 594768 mb according to `ps`
<FromGitter> <jspillers> @j8r ^
<Groogy> eh what
<Groogy> are you sure that's mb?
<Groogy> because that would be 600gb
<FromGitter> <jspillers> you are missing the `.` in there
<FromGitter> <jspillers> its 4.5 mb
<Groogy> I don't see a single dot
<FromGitter> <jspillers> must be lost in gitter -> irc translation
<FromGitter> <j8r> Julian has the same problem https://github.com/JuliaLang/julia/issues/8286
<FromGitter> <j8r> no fix yet
<FromGitter> <j8r> or only partial, with links to explanations
<FromGitter> <jspillers> oh yeah that is the exact error i am dealing with
<FromGitter> <jspillers> i don't *really* need the precision of BigDecimal... maybe ill just switch to Float64
<FromGitter> <j8r> the difference is the stack trace, there is none in Crystal (not normal)
<FromGitter> <j8r> you do mathematical operations?
<FromGitter> <jspillers> im not doing anything crazy... just normal arithmetic on fairly tiny decimals
<FromGitter> <jspillers> calculating technical analysis indicator values
Ven`` has joined #crystal-lang
<FromGitter> <j8r> so yes you can use float32
<FromGitter> <j8r> or if you prefer float64
<FromGitter> <jspillers> yeah float32 should be plenty of precision id guess
Ven`` has quit [Remote host closed the connection]
<FromGitter> <jspillers> interesting that the type inference defaults to Float64 when you do something like `blah = 1.2345`
Ven`` has joined #crystal-lang
<crystal-gh> [crystal] RX14 closed pull request #6418: Give proper error when doing sizeof uninstantiated generic type (master...bug/6415-sizeof-uninstantiated-generic) https://git.io/fNCPi
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #crystal-lang
<Yxhuvud> groogy: it is only defined on String. What do you want to split that isn't one?
<Groogy> no wasn't me
<Groogy> was j8r
<oprypin> Yxhuvud, Groogy, how about that meetup
<Groogy> Huh? have I missed something?
<Groogy> I would love a crystal meetup
<oprypin> Groogy, there's no meetup, i mean we could do an informal one in stockholm
<Groogy> that would be cool, I'm game for that
<Groogy> as long as the place has AC haha
<oprypin> lol
<Groogy> god my appartment was built to keep heat in, not out
<Groogy> Where would work for you guys? I work at södermalm but I can reach anywhere of course
<crystal-gh> [crystal] j8r opened pull request #6423: Create an abstract Any for JSON/YAML (master...any_abstract_struct) https://git.io/fNWXs
<travis-ci> crystal-lang/crystal#753325a (master - Give proper error when doing sizeof uninstantiated generic type (#6418)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/406620992
<DeBot> https://github.com/crystal-lang/crystal/pull/6418 (Give proper error when doing sizeof uninstantiated generic type)
hightower4 has quit [Ping timeout: 240 seconds]
<Yxhuvud> I work and live on södermalm, but I have vacation so I can basically reach anywhere. I'll be out of town during weekends for a long while though
<Yxhuvud> but outside weekends, I'd love to meet up
<oprypin> weekdays are fine by me, almost any time or place
<Groogy> yeah weekdays are preferable since I live outside of södermalm and I don't have vacation yet
hightower4 has joined #crystal-lang
GoldenBear has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite opened pull request #6424: Formatter: don't format code fence when language is not crystal (master...bug/6422-formatter-code-text) https://git.io/fNWDV
DTZUZO has quit [Ping timeout: 240 seconds]
akaiiro has joined #crystal-lang
akaiiro has quit [Ping timeout: 248 seconds]
<crystal-gh> [crystal] asterite opened pull request #6425: Compiler: fix overload order for unnamed splat vs double splat (master...bug/5328-unnamed-splat-vs-double-splat-overload) https://git.io/fNWyp
<crystal-gh> [crystal] asterite closed pull request #6425: Compiler: fix overload order for unnamed splat vs double splat (master...bug/5328-unnamed-splat-vs-double-splat-overload) https://git.io/fNWyp
akaiiro has joined #crystal-lang