ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.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
rohitpaulk has joined #crystal-lang
faustinoaq has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<RX14> @kingsleyh thats so cool
danielpclark has quit [Ping timeout: 260 seconds]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
danielpclark has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
vivus has quit [Quit: Leaving]
danielpclark has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
danielpclark has joined #crystal-lang
<faustinoaq> Oh, benchmark results on Preview 3 aren't better than preview 2 results https://www.techempower.com/benchmarks/previews/round15/
<faustinoaq> Maybe GC_MARKERS=1 isn't useful at all
<faustinoaq> Indeed could be doing things less fast, WDYT RX14?
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
watzon_ has joined #crystal-lang
rohitpaulk has joined #crystal-lang
danielpclark has quit [Ping timeout: 240 seconds]
danielpclark has joined #crystal-lang
<hightower3> -join #vim
<hightower3> (Sorry wrong keyboard)
<faustinoaq> What kind of magic is this https://blog.rust-lang.org/2016/04/19/MIR.html
<FromGitter> <elorest> Interesting.
<FromGitter> <elorest> Rust still feels like it was designed by a robot though.
<FromGitter> <elorest> I feel much more comfortable in C++ than rust.
<faustinoaq> me too XD
<faustinoaq> But Seems like Rust is bringing new concepts about parallelism and concurrency, Maybe some day we'll see a new friendly language to avoid write Rust, just like Crystal XD
<faustinoaq> Oxide: Fast as Rust, slick as <put friendly language here>
<FromGitter> <elorest> Rust: fast as C, slick as `System.out.println`
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest66176
rohitpaulk has quit [Ping timeout: 260 seconds]
flaviodesousa has joined #crystal-lang
<faustinoaq> XD
<faustinoaq> Well, Rust is still cleaner than Java, you just need `println!("Hello World");`
<faustinoaq> and for a complete program `fn main() { println!("Hello World!"); }` https://glot.io/snippets/evsaqvxq3y
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
mark_66 has joined #crystal-lang
<faustinoaq> Wow, crystal is very fast serving json https://www.techempower.com/benchmarks/previews/round15/#section=data-r15&hw=ph&test=json 🎉
claudiuinberlin has joined #crystal-lang
<faustinoaq> Wow, japronto is very, very fast https://github.com/squeaky-pl/japronto
<Groogy_> Morning! o/
<faustinoaq> MAybe we can link crystal to h20 and be faster https://github.com/h2o/h2o H20 is the more acurrate framework on TFB tests, H2O is always on top 🙂
Groogy has quit [Disconnected by services]
Groogy_ is now known as Groogy
Groogy2 has joined #crystal-lang
<faustinoaq> <@Groogy> Hi, morning!
<faustinoaq> 4 am here 🎉
snsei has joined #crystal-lang
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<FromGitter> <unreadable> Japronto indeed, but there's picohttparsers and another c lib
<FromGitter> <unreadable> And ofc, morning all
<FromGitter> <abidon> Morning !
Bish has quit [Ping timeout: 248 seconds]
<Papierkorb_> faustinoaq: What's the point of having the fastest "framework" in existence? It should be really fast so it doesn't become a bottleneck (So no Rails lul), but after that..
<Papierkorb_> faustinoaq: And that cpu count trick there is unrealiable to say the least
Bish has joined #crystal-lang
<faustinoaq> Yeah, you're right!, enough fast is ok, most companies don't die because technology but because other things đź‘Ť
flaviodesousa has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
flaviodesousa has joined #crystal-lang
<Papierkorb_> that's not to say that I didn't actually feel a speedup after dropping rails and going full on roda. Those are the 25-50ms framework overhead shaven off. If you can get that, I'm all for it
<FromGitter> <Qwerp-Derp> I'm getting this error when I run a file using a locally cloned version of the Crystal compiler:
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <Qwerp-Derp> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a17ece0232e79134dc72532]
<FromGitter> <Rinkana> Morning
<FromGitter> <Qwerp-Derp> The `...` replaces my user's path
Alibaba has joined #crystal-lang
<Alibaba> Hello
<Alibaba> We're still on the Green-IT project and we have a compilation error : https://pastebin.com/qjQGARQY
<Alibaba> A llvm error, someone have an idea why we have this error when we build our project in release mode ?
<Alibaba> I've solved this error by adding the "--no-debug- flag..
<Papierkorb_> iirc that's a known issue with old LLVM versions
rohitpaulk has joined #crystal-lang
Guest66176 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Alibaba> They gave us an old server
Ven has joined #crystal-lang
<Alibaba> Debian 4.9
Ven is now known as Guest10002
<Papierkorb_> Debian Etch?!
<Papierkorb_> > Security updates have been discontinued as of the end of February 2010.
<Papierkorb_> If someone hijacks your server and runs bitcoin miners, is that Green IT?
<FromGitter> <Qwerp-Derp> Papierkorb_, do you know what the issue above is when I compile the Crystal compiler?
<Papierkorb_> No. Follow the instructions as given, and make sure your build environment is correctly set up.
snsei has quit [Remote host closed the connection]
<FromGitter> <Qwerp-Derp> Hmmm... that's exactly what I have done, yet this error still pops up.
Guest10002 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven is now known as Guest67205
Guest67205 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Alibaba> Moreover, someone please know how to disable kemal log ?
<Alibaba> Does the variable KEMAL_ENV set to Production disable log ?
<FromGitter> <extremety1989> guys to authenticate user with token, should i use better use http router to send token with Authentication Bearer or i can send it through websocket ?
Ven has joined #crystal-lang
Ven is now known as Guest48862
rohitpaulk has quit [Ping timeout: 240 seconds]
<RX14> @Qwerp-Derp you can't be using the makefile
<FromGitter> <Qwerp-Derp> I was using the makefile, I did `make libcrystal`
<FromGitter> <Qwerp-Derp> I got it to work in the end
<RX14> and then used the bin/crystal to compile something
<FromGitter> <Qwerp-Derp> But then I realised I needed to do `make clean crystal spec` instead, so I had to set LLVM_CONFIG and stuff
<RX14> you checked out crystal
<RX14> you need to do make deps before doing that
<RX14> yeah that fails
<RX14> oh you mean
<FromGitter> <Qwerp-Derp> Ah
<RX14> make deps depends on make libcrystal
<RX14> so its pretty much the same thing
<RX14> glad you figured it out
<crystal-gh> [crystal] mverzilli pushed 1 new commit to master: https://git.io/vFpa3
<crystal-gh> crystal/master 1b669c1 Jack Thorne: UUID revamp (#4453)...
<FromGitter> <Qwerp-Derp> I’ll take a look at CONTRIBUTING.md to see if I glossed over anything (which I probably did)
<FromGitter> <Qwerp-Derp> Thanks!
<FromGitter> <Qwerp-Derp> I think the section for editing the Crystal compiler should be updated to tell the user that they should have to set LLVM_CONFIG to wherever llvm_config is installed in order to do `make clean crystal spec`
<FromGitter> <Qwerp-Derp> in CONTRIBUTING.md
<RX14> wow
<RX14> UUID struct got merged
<RX14> its a miracle
<FromGitter> <extremety1989> @FromIRC what is UUID ?
<FromGitter> <extremety1989> @FromIRC oh okey,thanks
<travis-ci> crystal-lang/crystal#1b669c1 (master - UUID revamp (#4453)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/306742427
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
<FromGitter> <sdogruyol> @Alibaba logging false
Guest48862 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Alibaba> sdogruyol: just set logging=false ?
Ven has joined #crystal-lang
Ven is now known as Guest20721
<FromGitter> <bew> I think that `logging` is a method, you just call it with `false` to disable the logging
<FromGitter> <extremety1989> guys what is secure way to send token through headers ?( Authorization: Bearer) or through websocket payload ?
hightower2 has joined #crystal-lang
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest20721 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
rohitpaulk has joined #crystal-lang
Ven is now known as Guest25826
Guest25826 has quit [Client Quit]
Ven has joined #crystal-lang
Ven is now known as Guest92717
Guest92717 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snsei has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest9401
claudiuinberlin has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
Guest9401 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven_ has joined #crystal-lang
<crystal-gh> [crystal] mverzilli pushed 1 new commit to master: https://git.io/vFpy2
<crystal-gh> crystal/master 24ee423 TSUYUSATO Kitsune: Format: insert space between `{` and `%` to prevent writing `{%` (#5278)...
<crystal-gh> [crystal] mverzilli closed pull request #5284: Add missing `uninstantiate(ancestor)` (master...fix/crystal/5281-add-missing-uninstantiate) https://git.io/vFrVo
sz0 has joined #crystal-lang
flaviodesousa has quit [Ping timeout: 248 seconds]
<faustinoaq> ![ruby2crystal](https://i.imgur.com/ouPu9gO.png)
<faustinoaq> Just a proof of concept for a tool to check incompatibilities between ruby and crystal code
<faustinoaq> This could have some sophisticated algorithm to check invalid things and assign a score to the incompatibility change, something like: `easy to change` , `moderate change`, `hard to change`
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alibaba has quit [Remote host closed the connection]
Ven_ has joined #crystal-lang
<travis-ci> crystal-lang/crystal#24ee423 (master - Format: insert space between `{` and `%` to prevent writing `{%` (#5278)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/306805650
<DeBot_> https://github.com/crystal-lang/crystal/pull/5278 (Format: insert space between `{` and `%` to prevent writing `{%`)
<travis-ci> crystal-lang/crystal#c26c0e0 (master - Add missing `uninstantiate(ancestor)`): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/306806435
Ven_ has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven is now known as Guest32335
<FromGitter> <fridgerator> @extremety1989 headers is fine, but ensure you are using an ssl certificate on your servers
<FromGitter> <fridgerator> faustinoaq good idea
<FromGitter> <extremety1989> @fridgerator but can i accept headers tru crystal sockkets ?
<FromGitter> <extremety1989> because i want use websockets
Guest32335 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <fridgerator> I *think* so
<FromGitter> <extremety1989> @fridgerator do you know maybe where can i get exemples of crystal postgres JSONB queries ?
<FromGitter> <fridgerator> using crystal-pg, it should just work, what have you tried
rohitpaulk has quit [Ping timeout: 248 seconds]
<FromGitter> <extremety1989> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a1847598b3a9e2c0c1323e5]
<FromGitter> <extremety1989> @fridgerator my inserting does not work
<FromGitter> <extremety1989> token field is JSONB in my database
mark_66 has quit [Remote host closed the connection]
Papierkorb_ has quit [Quit: Konversation terminated!]
<FromGitter> <extremety1989> @fridgerator ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a184881e606d60e34042b86]
<FromGitter> <extremety1989> something i get wrong here
<FromGitter> <extremety1989> here some changes but anyway not working
<FromGitter> <extremety1989> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a1849efba39a53f1addd395]
balduin has joined #crystal-lang
balduin has left #crystal-lang [#crystal-lang]
<FromGitter> <fridgerator> what if you replace the values with a single `$1` and for the parameter use the entire json string?
<FromGitter> <extremety1989> lets try
<FromGitter> <fridgerator> I think thats how crecto does it
<FromGitter> <extremety1989> what do you think about this mapping ?
<FromGitter> <extremety1989> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a184c89e606d60e34043f9f]
<FromGitter> <fridgerator> I dont know if you can do that
<FromGitter> <fridgerator> just specify the token field type as JSON::Any
<FromGitter> <extremety1989> okey
greengriminal has joined #crystal-lang
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
hightower2 has quit [Ping timeout: 240 seconds]
danielpclark has quit [Ping timeout: 255 seconds]
danielpclark has joined #crystal-lang
hightower4 has joined #crystal-lang
hightower3 has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #crystal-lang
<travis-ci> crystal-lang/crystal#3f06d20 (master - Number normalization for Crystal::Hasher (#5276)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/306863511
<DeBot_> https://github.com/crystal-lang/crystal/pull/5276 (Number normalization for Crystal::Hasher)
greengriminal has quit [Quit: Leaving]
<FromGitter> <HCLarsen> Thanks @bcardiff I wasn't aware of the options parser. I'll look into that, and maybe write a follow up tutorial using that one.
mooe_ has joined #crystal-lang
snsei has joined #crystal-lang
<FromGitter> <extremety1989> anyone has exemple of Postgres with jsonb ?
snsei has quit [Ping timeout: 240 seconds]
<crystal-gh> [crystal] straight-shoota opened pull request #5324: [WIP] Add time zones support (master...jm-timezones) https://git.io/vFhU5
aroaminggeek has joined #crystal-lang
danielpclark has quit [Remote host closed the connection]
faustinoaq has quit [Ping timeout: 248 seconds]
faustinoaq has joined #crystal-lang
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faustinoaq has quit [Ping timeout: 240 seconds]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
ton31337 has joined #crystal-lang
<ton31337> hi
<ton31337> i have a code which works with 0.19 very well https://github.com/ton31337/pdns_razor/blob/master/razor.cr
<ton31337> after upgrading to 0.23.1-3
<ton31337> i get
<ton31337> Syntax error in razor.cr:104: expecting token 'EOF', not 'end'
<ton31337> any suggestions?
<FromGitter> <Rinkana> Can you check if the `main_loop` does not have too many `end`s?
<FromGitter> <Rinkana> Groogy you still here?
<FromGitter> <Rinkana> Oh ton31337, `ifdef` has been removed from Crystal
<FromGitter> <Rinkana> I guess that's your issue
<FromGitter> <Rinkana> Was removed in 0.20.0
<ton31337> +1
<ton31337> let me check
<FromGitter> <extremety1989> @Rinkana hey Rinka, do you maybe have suggestion for JSONB with crystal ?
<FromGitter> <extremety1989> i am looking for exemple code
<FromGitter> <Rinkana> I'm sorry, i've never worked with PostgreSQL before (for now at least)
<ton31337> Rinkana, yeah, that was really ifdef
<FromGitter> <Rinkana> Ifdef's where replaced by `flag?`
<FromGitter> <extremety1989> @Rinkana okey thank you
<FromGitter> <Rinkana> You should be able to run the crystal embedded formatter and it should fix it for you
<ton31337> Rinkana where can I read about that?
<ton31337> crystal tool?
<FromGitter> <Rinkana> Yeah
<FromGitter> <Rinkana> `crystal tool format`
<ton31337> Format ./razor.cr
<ton31337> but still cannot build with --release
<FromGitter> <Rinkana> If that does not work you can just rewrite the `ifdef` to `{% if flag?(:cname) %}`
<FromGitter> <Rinkana> It's a macro method now
<ton31337> Rinkana I just removed ifdef at all for testing
<ton31337> without --release it compile
<ton31337> compiles*
<ton31337> with --release not
<FromGitter> <Rinkana> Hmm, odd
<FromGitter> <Rinkana> Mac or Linux?
<ton31337> centos7.4
<FromGitter> <Rinkana> Can you try: `crystal build razor.cr --release --no-debug`
<ton31337> sure
<ton31337> looks like it works by adding no-debug
<FromGitter> <Rinkana> It seems to be an issue with that spesific LLVM version. `--no-debug` should cirumvent that issue. However it's preferred to upgrade to LLVM 4. More info about this issue can be found here: https://github.com/crystal-lang/crystal/issues/4719
<ton31337> no-debug just strips debug symbols?
hightower4 has quit [Remote host closed the connection]
<FromGitter> <Rinkana> Yeah
<FromGitter> <Rinkana> At least afaik
<ton31337> that's fine then
<ton31337> thank you very much!
<FromGitter> <Rinkana> np
baweaver is now known as baweaver_away
mooe_ has quit [Quit: Connection closed for inactivity]
baweaver_away is now known as baweaver
mooe_ has joined #crystal-lang
aroaminggeek has joined #crystal-lang
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
watzon_ has quit [Remote host closed the connection]
watzon_ has joined #crystal-lang
aroaminggeek has joined #crystal-lang
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aroaminggeek has joined #crystal-lang