News for hackers. Stuff that matters.
Re:Crystal in Production: Diploid by WJW on Saturday October 28, 2017 @08:01AM (#15574862)
Crystal is a super cool project and doing websockets with Kemal (Crystals Sinatra equivalent) was one of the easiest ways of hosting websockets I've encountered so far.

That said, I'm eagerly waiting for true paralellism support since the use case we have in mind would greatly benefit from that. Some of the testing tools are also not quite as polished as Rspec (yet).

Re:Crystal in Production: Diploid by sdogruyol on Saturday October 28, 2017 @08:06AM (#15574874)
Kemal: Fast, Effective, Simple web framework for Crystal Website: http://kemalcr.com/

P.S: I'm the author of Kemal :)

Re:Crystal in Production: Diploid by WJW on Saturday October 28, 2017 @08:52AM (#15574990)
So cool! I really enjoy working with Kemal. :)

The State of Crystal at v0.21 article (https://crystal-lang.org/2017/02/24/state-of-crystal-at-0.21...) stated that multithreading with work stealing was coming "soon" and that you already managed to run kemal in parallel. Can you share anything about the current state of that project?

Re:Crystal in Production: Diploid by sdogruyol on Saturday October 28, 2017 @08:57AM (#15574999)
Even though it's experimental I've successfully compiled Kemal with multi-thread support. The throughput was OK. It's promising and will definitely help CPU bound apps :)

You can check the wiki for more info https://github.com/crystal-lang/crystal/wiki/Threads-support

Re:Crystal in Production: Diploid by nurettin on Saturday October 28, 2017 @01:58PM (#15576022)
Is it possible to pass a cookie (session id) using websockets with kemal? or do I have to manage authentication manually?
Re:Crystal in Production: Diploid by solisoft on Monday October 30, 2017 @08:50AM (#15584593)
I use to send my JWT token to check validity of the user's session
Re:Crystal in Production: Diploid by cyberferret on Saturday October 28, 2017 @08:06AM (#15574870)
Actually, the two projects I am currently working on use Websockets, and for certain, Crystal is the fastest and easiest way to prototype a Websockets server, and then turn it into a production server in quick time.
Re:Crystal in Production: Diploid by sdogruyol on Saturday October 28, 2017 @08:53AM (#15574991)
Here's a great blog post about Kemal and Websockets :) http://kemalcr.com/blog/2016/11/13/benchmarking-and-scaling-...