Squish also replaces consecutive whitespace with a single space. " foo bar \n \t boo".squish # => "foo bar boo" https://api.rubyonrails.org/classes/String.html#method-i-squ...
HN user
p8
Today with Spring Boot, for instance, you can bootstrap and develop your app as quickly and easily as any other cool and alternative framework but with the advantage of using a really popular and fast language.
Looking at the Spring Boot guides, the amount of setup, complexity and lines of code just to get an application running with MySQL doesn't support this statement: https://spring.io/guides/gs/accessing-data-mysql/ Even 20 years ago this would be easier in Rails.
Or try building the blog demo that's build on the Rails homepage video in Spring Boot. 35 minutes to build a blog with rich text (including image uploads), live comments, notification mails and tests. And after changing the database to PostgreSQL, deploy it to production. https://rubyonrails.org/
The 15% is for the total request time including waiting for blocked IO.
All that work allowed us to speedup our storefront total web request time by 10% on average, which is including all the time the web server is blocked on IO, for example, waiting for data from the DB, which YJIT obviously can't make any faster.
Amazon was founded in 1994, that's not the same era.
Ruby didn't even exist back then and was released a year later. Rails was released in 2004. Shopify was founded in in 2006, 12 years after Amazon.
Overall YJIT is 61.1% faster than interpreted CRuby! On Railsbench specifically, YJIT is 68.7% faster than CRuby!
For 3.2 there also was an improvement of the interpreter:
We now speed up railsbench by about 38% over the interpreter, but this is on top of the Ruby 3.2 interpreter, which is already faster than the interpreter from Ruby 3.1. According to the numbers gathered by Takashi, the cumulative improvement makes YJIT 57% faster than the Ruby 3.1.3 interpreter.
So where are the Shopify's of that era build on Struts and JSF?
There's also a reason Kotlin has become the language of choice for the Android development industry, Scala became a thing, and ThoughtWorks recommended against using JavaServerFaces.
Nobody cares about performance if you build a business application with a couple of users, a common use-case in 2005. The reason a lot of Java people jumped on the Rails bandwagon, was that an application that would take a month to build in Java with Spring/Hibernate, would take a day in Rails. See also: https://www.oreilly.com/library/view/beyond-java/0596100949/
Yaroslav Shmarov - 18 months of using hotwire and viewcomponent in production https://www.youtube.com/watch?v=9-btmed9CMw
RailsConf 2022 - React-ing to Hotwire by David Hill https://www.youtube.com/watch?v=6uj5o7U-3Y4
Stackoverflow uses Stimulus.
Github uses Turbo.
DrNic has a video series recreating Notion in Ruby on Rails: https://www.youtube.com/watch?v=XWfyffFWbDI
This is great news for the Rails community! Looking forward to what this will bring.
Andrew Kane wrote gems similar to popular ML libraries which are wrappers around C code: https://ankane.org/new-ml-gems
pytorch: https://github.com/ankane/torch.rb Tensorflow: https://github.com/ankane/tensorflow-ruby
Chef, Puppet, Dragonruby, Brew, Hanami, Roda..
Even better:
scala> println("5" + 5 + 5)
555