News for hackers. Stuff that matters.
Re:Ruby 2.6 by lettergram on Monday December 24, 2018 @09:34AM (#18752281)
Depends what you want to do, 90% of what I code in is python or Ruby, and I'll switch to C when I want performance. I've done a lot of rails (Ruby), Django (python), and flask (python) work in web development. Much prefer rails, eaiser, and better thought out. I have several websites with hundreds of thousands of visits a year, it is fine (all the frameworks are). I have had to do some inline C to speed up my Ruby in a couple of instances - but that's very specific (and something you can easily do).

In terms of data science, python is my go-to and much more tooled for that kind of work. For any kind of desktop app I'll use C++, and for browser extensions / add-ons it's JavaScript.

Re:Ruby 2.6 by cknoxrun on Monday December 24, 2018 @01:51PM (#18753604)
You should give crystal a go for the parts you need to be performant! You can even prototype those parts in ruby and easily convert to crystal when it becomes necessary. We’ve found a really nice balance, with business logic and interfaces in Ruby/Rails and crystal for AI/data processing.
Re:Ruby 2.6 by jaxn on Monday December 24, 2018 @02:37PM (#18753851)
Oooh, that sounds interesting. Where would be a good place to start with Crystal assuming I specifically want to use it for AI/data processing with Rails business logic / interfaces?
Re:Ruby 2.6 by ksec on Tuesday December 25, 2018 @09:55AM (#18757617)
Crystal usage in actual Production ? Any pitfalls?