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
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang
moei has quit [Quit: Leaving...]
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang
erblite has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
greenbigfrog has quit [Quit: The server of my BNC just shutdown or got killed!!!]
greenbigfrog has joined #crystal-lang
moei has joined #crystal-lang
khubo has quit [Quit: EliteBNC 1.6.5 - http://elitebnc.org]
carsonbaker has joined #crystal-lang
<FromGitter> <3442853561> Hello every one, I'm a beginner for crystal-lang (I was Rust programmer
<FromGitter> <bew> welcome ;)
<FromGitter> <3442853561> Excuse me, Does the document have a Chinese version?
khubo has joined #crystal-lang
<FromGitter> <icyleaf> @3442853561 Nope
<FromGitter> <icyleaf> But here is a Chinese Traditional version http://tw.crystal-lang.org/docs
<FromGitter> <3442853561> Gracias
<FromGitter> <3442853561> @icyleaf 謝謝
carsonbaker has quit [Ping timeout: 260 seconds]
cyberarm has quit [Ping timeout: 256 seconds]
cyberarm has joined #crystal-lang
erblite has quit [Ping timeout: 276 seconds]
carsonbaker has joined #crystal-lang
carsonbaker has quit [Ping timeout: 240 seconds]
duane has joined #crystal-lang
<FromGitter> <bararchy> I'm with oz on that, really prefer we stop touching the JSON
akaiiro has quit [Ping timeout: 244 seconds]
<FromGitter> <icyleaf> @3442853561 u r welcome. best to read source.
carsonbaker has joined #crystal-lang
carsonbaker has quit [Ping timeout: 260 seconds]
snsei_ has joined #crystal-lang
akaiiro has joined #crystal-lang
carsonbaker has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
snsei_ has joined #crystal-lang
snsei_ has quit [Ping timeout: 265 seconds]
carsonbaker has quit [Ping timeout: 260 seconds]
carsonbaker has joined #crystal-lang
akaiiro has quit [Quit: Ping timeout (120 seconds)]
duane has quit [Ping timeout: 244 seconds]
_whitelogger has joined #crystal-lang
avdi has joined #crystal-lang
confact has joined #crystal-lang
Majost has joined #crystal-lang
carsonbaker has quit [Ping timeout: 240 seconds]
carsonbaker has joined #crystal-lang
snsei_ has joined #crystal-lang
snsei_ has quit [Client Quit]
carsonbaker has quit [Ping timeout: 240 seconds]
akaiiro has quit [Ping timeout: 256 seconds]
rohitpaulk has joined #crystal-lang
DTZUZO has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
rohitpaulk has joined #crystal-lang
yaewa has joined #crystal-lang
moei has quit [Ping timeout: 256 seconds]
<jokke> is ziprandom here?
<jokke> i'd love to have a working version of graphql-crystal with 0.25
<FromGitter> <Grabli66> Compiler is laughing on me. :) https://play.crystal-lang.org/#/r/4jt6
<FromGitter> <straight-shoota> @Grabli66 why?
Nik736 has joined #crystal-lang
Nik736 has quit [Client Quit]
<FromGitter> <straight-shoota> this is expected
<FromGitter> <Grabli66> UInt8 + Int32 = UIn8. Why?
<FromGitter> <straight-shoota> because the receiver is UInt8
<FromGitter> <straight-shoota> There is #6223 which will make `+` raise in case of an overflow, so the result won't be `216_u8` but an arithmethic exception
<DeBot> https://github.com/crystal-lang/crystal/pull/6223 ([WIP] Arithmetic with Overflow)
<FromGitter> <straight-shoota> But you still have to make sure to use appropriate types when performing arithmetic operations
<FromGitter> <Grabli66> Ok. Integer types in crystal is like a minefield, cause of overflow. :)
<jokke> any recommendations for a shard for some hypermedia specification?
<FromGitter> <straight-shoota> Combining different integer types is a minefield. That's not Crystal's fault.
<jokke> like HAL or JSON-API
hightower3 has quit [Ping timeout: 240 seconds]
hightower3 has joined #crystal-lang
erblite has joined #crystal-lang
alex`` has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #6407: Remove TODO in spec/std/object_spec.cr (master...fix/remove-todo-in-object-spec) https://git.io/fNGiL
alex`` has quit [Ping timeout: 260 seconds]
yaewa has quit [Quit: Leaving...]
alex`` has joined #crystal-lang
<crystal-gh> [crystal] r00ster91 opened pull request #6408: Do TODO in spec/compiler/parser/parser_spec.cr (master...patch-2) https://git.io/fNGMy
moei has joined #crystal-lang
duane has joined #crystal-lang
<FromGitter> <asterite> The reason is a += b should work, so the type is the type of the left hand side.
<vegai> Grabli66: you can use the Big* types if you don't want overflows
<FromGitter> <j8r> dealing with `YAML` is really a pain πŸ’€
rohitpaulk has quit [Ping timeout: 245 seconds]
<FromGitter> <Blacksmoke16> isnt that the same setup as json?
<FromGitter> <Blacksmoke16> with the `as_*`
daemonwrangler has quit [Ping timeout: 256 seconds]
daemonwrangler has joined #crystal-lang
<FromGitter> <Grabli66> I think i found a bug. Compiler broke my type. https://play.crystal-lang.org/#/r/4jvi
<FromGitter> <asterite> Generics inheritance doesn't work well, please don't use it
<FromGitter> <Grabli66> But i need a generic field "value". How i can replace it?
<FromGitter> <Grabli66> Ok. I can replace it with generic module :)
<FromGitter> <j8r> @Blacksmoke16 there are merged methods using a macro, and new methods to deal with dynamic JSON/YAML path
rohitpaulk has joined #crystal-lang
<FromGitter> <Blacksmoke16> gotcha
vegai has left #crystal-lang [#crystal-lang]
<FromGitter> <j8r> need them because of manipulation dynamic documents with dynamic keys
rohitpaulk has quit [Ping timeout: 244 seconds]
rohitpaulk has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #crystal-lang
hightower3 has quit [Ping timeout: 256 seconds]
<jokke> i just found quicktype
<jokke> would be cool to add a crystal language output
<jokke> there's already a ruby one
<jokke> could be pretty straightforward to port
akaiiro has joined #crystal-lang
hightower3 has joined #crystal-lang
<FromGitter> <straight-shoota> jokke, it's really interesting how much code quicktype generates for different langauges :D
<jokke> yeah :D
<jokke> should be very little code for crystal thanks to JSON::Serializer awesomeness
<FromGitter> <straight-shoota> yes
<FromGitter> <straight-shoota> although we're not yet completely settled on the exact API regarding constructors, JSON::Any, multiple serializers etc.
<jokke> straight-shoota: regarding json parsing. i'm really missing something like a "discriminator" field definition which would allow choosing the class based on the value of that field
<FromGitter> <straight-shoota> and of course it makes a difference if a language was created long before one would think about having JSON serialization by default
<jokke> yeah sure
<jokke> but the golang code is also pretty lengthy
<FromGitter> <straight-shoota> you mean like a polymorphic attribute?
<jokke> yeah
<FromGitter> <straight-shoota> a simple converter should do it... =)
<jokke> i know it's already possible in a way using union types but this requires them to have differing keys
<jokke> hmm
<jokke> actually i'm not sure if this is possible at all because i would have to make assumptions on the order of the keys
<jokke> this: { attributes: { foo: 'bar', foobar: 'baz' }, type: 'SomeType' } wouldn't work
<jokke> or i would have to use JSON::Serializer::Unmapped and then run SomeType.from_json(generic_type.to_json) :/
hightower3 has quit [Ping timeout: 245 seconds]
erblite has quit [Ping timeout: 276 seconds]
<FromGitter> <straight-shoota> yes, you can't expect guaranteed order of elements
<FromGitter> <straight-shoota> but an array should work: `["SomeType", { foo: 'bar', foobar: 'baz' }]`
<jokke> hm yeah that should do it
<jokke> another question: do you know of any easy way to inherit a class and make all json serializable attributes nilable in that subclass?
rohitpaulk has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
wontruefree has joined #crystal-lang
DTZUZU has quit [Quit: WeeChat 1.9]
DTZUZU has joined #crystal-lang
<FromGitter> <straight-shoota> hm, no
erblite has joined #crystal-lang
akaiiro has quit [Ping timeout: 244 seconds]
carsonbaker has joined #crystal-lang
wontruefree has quit [Quit: bye]
rohitpaulk has quit [Ping timeout: 264 seconds]
akaiiro has joined #crystal-lang
akaiiro has quit [Ping timeout: 240 seconds]
duane has quit [Ping timeout: 276 seconds]
<FromGitter> <sam0x17> gcf.cr, my tool for deploying serverless crystal code to Google Cloud Functions is now functional and working for http-trigger-based functions: https://github.com/sam0x17/gcf.cr
<FromGitter> <sam0x17> it includes a crystal API that maps to all of the redirect/data sending/file sending/logging features normally available from a js-based cloud function
<FromGitter> <sdogruyol> Congrats @sam0x17 πŸ‘
<FromGitter> <sam0x17> thx!
<FromGitter> <sam0x17> I imagine it could be ported to lambda as well, but I have less experience with that platform
duane has joined #crystal-lang
wontruefree has joined #crystal-lang
carsonbaker has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
rohitpaulk has joined #crystal-lang
erblite has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
akaiiro has joined #crystal-lang
carsonbaker has joined #crystal-lang
alex`` has quit [Read error: Connection reset by peer]
carsonbaker has quit [Ping timeout: 255 seconds]
<FromGitter> <yorci> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b4f9bef3187ca3ee8bf7d45]
<FromGitter> <Blacksmoke16> whats the rest of your code
<FromGitter> <yorci> πŸ˜† well nevermind i get it whats wrong
<FromGitter> <yorci> its happend only to me? i couldnt find out whats wrong when i looking code, but found after write here πŸ˜†
<FromGitter> <sdogruyol> that's same for everyone
akaiiro has quit [Ping timeout: 244 seconds]
Jenz has joined #crystal-lang
Jenz has quit [Quit: Lost terminal]
wontruefree has quit [Quit: bye]
carsonbaker has joined #crystal-lang
duane has quit [Ping timeout: 245 seconds]
carsonbaker has quit [Quit: WeeChat 2.2]
moei has quit [Read error: Connection reset by peer]
moei has joined #crystal-lang
wontruefree has joined #crystal-lang
<crystal-gh> [crystal] RX14 closed pull request #6407: Remove TODO in spec/std/object_spec.cr (master...fix/remove-todo-in-object-spec) https://git.io/fNGiL
wontruef_ has joined #crystal-lang
wontruefree has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] RX14 closed pull request #6408: Do TODO in spec/compiler/parser/parser_spec.cr (master...patch-2) https://git.io/fNGMy
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/fNZND
<crystal-gh> crystal/master 6ab9c60 Johannes MΓΌller: Add API docs for StaticArray (#6404)...
duper has quit [Ping timeout: 268 seconds]
wmoxam has quit [Ping timeout: 265 seconds]
<travis-ci> crystal-lang/crystal#5cdd3a4 (master - Remove TODO in spec/std/object_spec.cr (#6407)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/405572611
<DeBot> https://github.com/crystal-lang/crystal/pull/6407 (Remove TODO in spec/std/object_spec.cr)
moei has quit [Quit: Leaving...]
<travis-ci> crystal-lang/crystal#2cbd546 (master - Do TODO (#6408)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/405575399
<DeBot> https://github.com/crystal-lang/crystal/pull/6408 (Do TODO in spec/compiler/parser/parser_spec.cr)
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/4jz3 how do you use YAML::NODES::BUILDER?
wontruef_ has quit [Quit: bye]
<travis-ci> crystal-lang/crystal#6ab9c60 (master - Add API docs for StaticArray (#6404)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/405577908
<DeBot> https://github.com/crystal-lang/crystal/pull/6404 (Add API docs for StaticArray)
go|dfish has quit [Ping timeout: 264 seconds]
akaiiro has joined #crystal-lang
go|dfish has joined #crystal-lang
Vexatoast has quit [Quit: ZNC Quit]
RX14 has quit [Quit: Fuck this shit, I'm out!]
RX14 has joined #crystal-lang
RX14 has quit [Excess Flood]
wontruefree has joined #crystal-lang
RX14 has joined #crystal-lang
RX14 has quit [Excess Flood]
RX14 has joined #crystal-lang
RX14 has quit [Excess Flood]
Guest45523 has joined #crystal-lang
Guest45523 has quit [Excess Flood]
RX14- has joined #crystal-lang