ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.22.0 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
gewo has joined #crystal-lang
rocky has quit [Quit: Leaving...]
Disrecollection1 has quit [Quit: Leaving.]
Disrecollection has joined #crystal-lang
snsei has joined #crystal-lang
Disrecollection has quit [Quit: Leaving.]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
Disrecollection has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
phase has joined #crystal-lang
phase is now known as Guest67066
greengriminal has joined #crystal-lang
greengriminal has quit [Client Quit]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
A124 has quit [Ping timeout: 255 seconds]
A124 has joined #crystal-lang
snsei has quit []
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
Disrecollection has quit [Quit: Leaving.]
stnly has quit [Quit: leaving]
stnly has joined #crystal-lang
<FromGitter> <bigtunacan> How does one access form data in Kemal?
<FromGitter> <bigtunacan> I was trying out a basic form; https://gist.github.com/bigtunacan/3410d616818801909054e5577549736c
rohitpaulk has joined #crystal-lang
<FromGitter> <bigtunacan> Then on the server side I tried to access it using env.params.query
<FromGitter> <bigtunacan> But that gives me a 500 error; Missing hash key: "firstname"
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
Swey_Hey has joined #crystal-lang
Swey_Hey has quit [Excess Flood]
Swey_Hey has joined #crystal-lang
<FromGitter> <elorest> @bigtunacan Should be body instead of query for form contents. I think there's query, url, files, and body. ⏎ https://github.com/kemalcr/kemal/blob/master/src/kemal/param_parser.cr
<FromGitter> <bigtunacan> Hmm; yeah that does it
<FromGitter> <bigtunacan> Is there a way to do step through debugging currently?
<FromGitter> <bigtunacan> Right now the best thing I have found is `pp` which can be a bit difficult to parse out what I need at times.
<FromGitter> <JJJollyjim> Hmm, if I'm getting a segfault during compilation that's a problem, right? ;) ...
<FromGitter> <JJJollyjim> Is combining `--debug` and `--release` a sane thing to do anyway? I was hoping for optimisations + debug symbols
<FromGitter> <JJJollyjim> Either way, a segfault probably isn't the best error message the compiler could emit
<FromGitter> <JJJollyjim> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=593f83aee531dbc905d9ed3e]
ome has quit [Ping timeout: 255 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
ome has joined #crystal-lang
<FromGitter> <saggit> I think the debug info should print something useful, instead of `???`,
rohitpaulk has joined #crystal-lang
<FromGitter> <sdogruyol> Morning everyone
<FromGitter> <JJJollyjim> @saggit what do you mean? I didn't truncate the output, are you saying there's an error in the error handling? ;)
<FromGitter> <saggit> @JJJollyjim to be clear, i mean the crystal compile
Kug3lis_off is now known as Kug3lis
<FromGitter> <saggit> compiler
<FromGitter> <sdogruyol> --debug is not perfect
rohitpaulk has quit [Ping timeout: 260 seconds]
<FromGitter> <JJJollyjim> Hold on shouldn't `--debug` affect the compiled program, not the error output of the compiler itself?
<FromGitter> <JJJollyjim> Or is `--debug` explicitly for debugging the compiler?
Kug3lis is now known as Kug3lis_off
rohitpaulk has joined #crystal-lang
<FromGitter> <sdogruyol> nope
<FromGitter> <sdogruyol> it's debugging for the program itself @JJJollyjim
<FromGitter> <JJJollyjim> Yeah got it
<FromGitter> <JJJollyjim> So should I open an issue about `crystal build` segfaulting?
olek_poz has joined #crystal-lang
<FromGitter> <sdogruyol> well you could definitely open an issue for your specific usecase / program
mark_66 has joined #crystal-lang
Kug3lis_off is now known as Kug3lis
Swey_Hey has left #crystal-lang ["Closing Window"]
Kug3lis is now known as Kug3lis_off
olek_poz has quit [Ping timeout: 260 seconds]
[spoiler] has quit [K-Lined]
[spoiler] has joined #crystal-lang
olek_poz has joined #crystal-lang
elia has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
Philpax has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden opened pull request #4558: Fix: IO::FileDescriptor#seek from current position (master...fix/io-filedescriptor-seek-from-current) https://git.io/vHHpn
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
Kug3lis has joined #crystal-lang
Guest67066 has quit [Quit: cya l8r alig8r]
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <greentornado> hi what's the next release timeline :D with multithread support ? ;)
<FromGitter> <bew> multithreading won't be in the next release :D but next release will be soon I think!
<FromGitter> <akzhan> How to know is library fun exposed? ⏎ ⏎ Something like ⏎ ⏎ ``` {% if LibM.canonicalize_f64 %} ⏎ LibM.canonicalize_f64(self) ⏎ {% else %}``` ... [https://gitter.im/crystal-lang/crystal?at=593fc79df6a78eab4843dca6]
<FromGitter> <akzhan> First example not available outside llvm itself as I seen.
Raimondii has joined #crystal-lang
splitty_ has quit [Ping timeout: 246 seconds]
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<crystal-gh> [crystal] akzhan opened pull request #4559: Introduce floats canonicalize. (master...introduce_floats_canonicalize) https://git.io/vHQOi
elia has quit [Quit: Computer has gone to sleep.]
<FromGitter> <akzhan> implemented as a dummy {% if false %} for now.
elia has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #4558: Fix: IO::FileDescriptor#seek from current position (master...fix/io-filedescriptor-seek-from-current) https://git.io/vHHpn
elia has quit [Client Quit]
rohitpaulk has joined #crystal-lang
<crystal-gh> [crystal] akzhan opened pull request #4560: Introduce Math.frexp method. (master...introduce_math_frexp) https://git.io/vHQ4L
<travis-ci> crystal-lang/crystal#789421c (master - Fix: IO::FileDescriptor#seek from current position): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/242393973
splitty_ has joined #crystal-lang
splitty_ has quit [Ping timeout: 240 seconds]
olek_poz has quit [Ping timeout: 240 seconds]
Philpax_ has quit [Ping timeout: 260 seconds]
<FromGitter> <bigtunacan> Is there a way to do step through debugger with Crystal?
<FromGitter> <bigtunacan> Sort of like I can do in Ruby with the byebug gem?
<FromGitter> <bigtunacan> or Visual Studio in .NET
<FromGitter> <bigtunacan> Not that I would use .NET :O
<FromGitter> <sdogruyol> lldb or gdb
<FromGitter> <alibby_twitter> Sorry for the OT here, but anyone know how to submit a bug report to gitter? I can’t seem to find anything anywhere aloowing me to do so.
<FromGitter> <bew> I think you could do it here: https://github.com/gitterHQ/gitter/issues
flaviodesousa has joined #crystal-lang
<FromGitter> <alibby_twitter> Ahh, thanks @bew.
<FromGitter> <bew> and in the room https://gitter.im/gitterHQ/gitter (more active than the repo)
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Remote host closed the connection]
<FromGitter> <bigtunacan> @sdogruyol Thanks
livcd has quit [Changing host]
livcd has joined #crystal-lang
<FromGitter> <ultra2mh> hello , how can i connect to mysql database with "username" and "password" ?
<FromGitter> <ultra2mh> accourding the docs ⏎ ⏎ require "db" ⏎ require "mysql" ⏎ ... [https://gitter.im/crystal-lang/crystal?at=593ff79a31f589c64fa2450b]
<FromGitter> <ultra2mh> but where should i user the username and password ?
<FromGitter> <bigtunacan> @ultra2mh `db = DB.open"mysql://username:password@localhost/test"`
<FromGitter> <ultra2mh> thankyou!
<FromGitter> <bigtunacan> np
<livcd> I hope Crystal succeeds!
<livcd> Is there a draft of how concurrency will look like in crystal ?
<FromGitter> <bew> concurrency already work ! it's explained here: https://crystal-lang.org/docs/guides/concurrency.html
<livcd> ahh
<oprypin> livcd, not to take things out of context,.. concurrency works but currently on one CPU core. but it's meant to look the same when multicore is implemented.
flaviodesousa has quit [Ping timeout: 240 seconds]
Kug3lis_off is now known as Kug3lis
duckqlz has quit [Remote host closed the connection]
<FromGitter> <straight-shoota> Is there an easy way to determine if a class supports json mapping?
<FromGitter> <bew> using `responds_to?` on `to_json` & `from_json` maybe?
<FromGitter> <straight-shoota> `obj.responds_to?(:json)` won't work because json module defines `to_json` and `to_json(io)` on every object
rk[ghost] has joined #crystal-lang
rk[ghost] has left #crystal-lang [#crystal-lang]
<FromGitter> <akzhan> try to instantiate new JSON::PullParser. It will failed on compile phase unless mapped.
<FromGitter> <straight-shoota> yes, but I want it do dynamically call `to_json` if the class supports it, otherwise to something else
<FromGitter> <akzhan> No way unless you change JSON.mapping itself to provide this information.
<FromGitter> <straight-shoota> ===2549 seems like an idea for this, but needs implementation===
<FromGitter> <akzhan> Yes, it is
splitty_ has joined #crystal-lang
<FromGitter> <ultra2mh> hello . in kemalyst framwork what is "kgen generate scaffold" mean ? what is the word "scaffold" role ?
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
mark_66 has quit [Remote host closed the connection]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<crystal-gh> [crystal] asterite closed pull request #4553: MatchData: improve error message when refer no matched existed capture group (master...fix/regex-match-data/improve-error-message) https://git.io/vH9fn
Kug3lis has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vH7aS
<crystal-gh> crystal/master 3d5e845 Ary Borenszweig: Fixed #4563: Formatter error with lambda initializer
<crystal-gh> crystal/master 68b1e62 Akzhan Abdulin: Introduce Math.frexp method. (#4560)
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vH7Ve
<FromGitter> <johnjansen> @ultra2mh its basically the same as `rails generate scaffold` in RoR
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vH7rN
<crystal-gh> crystal/master 526837e Ary Borenszweig: XML: allow adding/changing an attribute's value. Fixes #4562
_whitelogger has joined #crystal-lang
<travis-ci> crystal-lang/crystal#1a71e3d (master - MatchData: improve error message when referring non-matched capture group (#4553)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/242524096
<DeBot> https://github.com/crystal-lang/crystal/pull/4553 (MatchData: improve error message when refer no matched existed capture group)
<FromGitter> <straight-shoota> It might not always be helpful to explain terms as Ruby/Rails analogies! ;)
<travis-ci> crystal-lang/crystal#3d5e845 (master - Fixed #4563: Formatter error with lambda initializer): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/242545801
<DeBot> https://github.com/crystal-lang/crystal/issues/4563 (Formatter error with lambda initializer)
<FromGitter> <straight-shoota> scaffold creates a model with view, controller, migration and specs
<FromGitter> <rwaweber> /quit
olek_poz has joined #crystal-lang
<travis-ci> crystal-lang/crystal#68b1e62 (master - Introduce Math.frexp method. (#4560)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/242546463
<DeBot> https://github.com/crystal-lang/crystal/pull/4560 (Introduce Math.frexp method.)
onec has joined #crystal-lang
<travis-ci> crystal-lang/crystal#526837e (master - XML: allow adding/changing an attribute's value. Fixes #4562): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/242552247
<DeBot> https://github.com/crystal-lang/crystal/issues/4562 (XML::Node attributes are read only)
<FromGitter> <drosehn> Huh. So it really does take just 90 seconds to compile the crystal compiler if `release=1` is not specified.
<crystal-gh> [crystal] akzhan closed pull request #4559: Introduce floats canonicalize, min, max intrinsics etc. (master...introduce_floats_canonicalize) https://git.io/vHQOi
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
Kug3lis_ has joined #crystal-lang