7 ms·
Rails 4.0.1 has been released
- gesman 13y agoAny chance of it to get off the bottom of the charts? http://www.techempower.com/benchmarks/#section=data-r7&hw=i7&test=query http://www.techempower.com/benchmarks/#section=data-r7&hw=i7...
- rubiquity 13y agoBenchmarks aren't, and never will be, the reason for using Ruby on Rails. Quite a bit would have to change in Ruby the language in order for the detractors of Rails to change their minds, and lets be honest, Rails wasn't built for those type of people anyway.
- FooBarWidget 13y agoI agree. Ruby is slow for certain types of workloads, but for many kinds of workloads it simply doesn't matter, and Ruby is fast enough. For workloads that require super high performance, one can simply use something else... Java, Node.js or whatever. Now that Phusion Passenger supports Node.js as well, it's very easy to write some parts of an app in Rails, and write other (performance-critical parts) of an app on Node.js, and deploy them together on a single server with ease.
- vinceguidry 13y agoI daresay you'd be better off writing a C extension to Ruby than you would bolting a Node app onto a Rails codebase.
- FooBarWidget 13y agoOnly if you're proficient in C. I think that for a lot of people writing Javascript is the easier option.
- vinceguidry 13y agoA C extension in Ruby can be nothing more than an algorithm implementation accepting strings or numbers and returning such. Where you need proficiency in C is when you're building something substantial in it. The problem with Node is, you have to load up a runtime. That can not only kill your performance gains, but actually make things slower.
- shanemhansen 13y agoI'd say standardize on a deployment model that leverages lots of nuts and bolts ruby doesn't care about. Specifically, try using the apr (apache portable runtime), or leverage tomcat (which can use apr) + jruby + jndi jdbc connection pools. Let rails be rails, your best bet for performance is either making the underlying ruby runtime better or leveraging things that are designed to be high performance.
- PetrolMan 13y agoWhy even bother making this comment? It's completely unrelated and somewhat juvenile.
- dataminer 13y agoThere seems to be something wrong with this round, whats causing so many errors (over 2 million)? Round 6 didn't have this many errors http://www.techempower.com/benchmarks/#section=data-r6&hw=i7&test=query http://www.techempower.com/benchmarks/#section=data-r6&hw=i7...
- xentronium 13y agoNo, there is no chance it will happen, since it's more of a runtime/language problem.
- dgregd 13y agoExactly, we have to wait for something like Rails on Dart to have better performance.
- gprasanth 13y agotime to learn rails.
- DanielKehoe 13y agoIf you want to get started, my 'Learn Ruby on Rails' [1] covers Rails 4.0. It's for absolute beginners and good preparation for more advanced books. If you're more experienced, start with books by Hartl [2], Fernandez [3], Ruby [4], or Bigg [5]. [1] http://learn-rails.com/learn-ruby-on-rails.html http://learn-rails.com/learn-ruby-on-rails.html [2] http://ruby.railstutorial.org/ruby-on-rails-tutorial-book http://ruby.railstutorial.org/ruby-on-rails-tutorial-book [3] https://leanpub.com/tr4w https://leanpub.com/tr4w [4] http://pragprog.com/book/rails4/agile-web-development-with-rails http://pragprog.com/book/rails4/agile-web-development-with-r... [5] http://www.manning.com/bigg2/ http://www.manning.com/bigg2/
- TallboyOne 13y agoI concur Daniel is awesome. ALso, http://pineapple.io http://pineapple.io
- 1qaz2wsx3edc 13y agoIt's nice to see the `order` stuff reverted. It would be a boon to scopes though, so I like the idea, but backwards compatibility here is key.
- josephlord 13y agoThe logic of the 4.0.0 way was better as the conceptual order of operation was correct. I don't have legacy app that needs major modification though. Do you know off the top of your head if reorder will behave as order does in 4.0.0 (including nested scopes and associations)? [Edit: It doesn't look like reorder does the job as it just drops existing orderings so you can't have a sequence of such calls. Don't think I like the reversion better to fix the API and the applications at migration to Rails 4 rather than persist the mistake.]
- dboyd 13y agoRails 4.0.0 was released 129 days earlier, on June 25... http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/ I'm very impressed with Rails 4, not just the overall level of improvements, but also the stability of what was released. To go more than 4 months without a patch is especially impressive for something like Rails.
- danso 13y agoI've dabbled with toy apps in 4 and have been very impressed with how smooth the change has been from 3 to 4. I haven't tried directly migrating a Rails 3 app so far (as 3.2.15 has been holding up quite well) but would anticipate it being far less of a hassle than moving from 2 to 3. AFAIK, Github is still on Rails 2
- Axsuul 13y agoUpgraded a pretty big Rails app from 3 to 4 a month ago, only took an afternoon.
- kingnothing 13y agoGithub is basically on their own branch of rails at this point. They use the 2.x base, but have pulled in pieces and parts of subsequent releases.
- deleted 13y ago[deleted]
- dominotw 13y agoTo be fair non obvious bugs come from being used in production apps. And 4 months is not enough time for those bugs to surface.
- steveklabnik 13y agoBasecamp in particular is usually running on near-edge Rails, so we have at least one big production app to find out things. "Agile Web Development with Rails" also does CI against edge edge Rails, so that's being checked at all times too. I'm not going to say there's a ton of production apps using latest, but there are some, at least.
- deleted 13y ago[deleted]
- deleted 13y ago[deleted]
- sergiotapia 13y agoCan someone highlight the goodies on this patch? Sure we can read the changelogs entirely but a little bullet list of the best changes would be awesome. :)
- andyl 13y agoRails4 has been great - esp like the ability to use Hstore/UUID/JSON/Array datatypes with Postgres.
- jordanthoms 13y agoThis is my favorite new feature as well - I love how this stuff (including loading extensions) can be represented in the schema.rb now, so you don't have to switch to sql-format schemas.
- garysweaver 13y agoThough we had a bit of fun in the past when multiple people are merging migrations at once, since it keeps version #s in the bottom of structure.sql and that can get out-of-whack if things aren't handled carefully, using structure.sql (config.active_record.schema_format :sql) is really not a bad way to handle a legacy schema/DB, depending on your process and requirements.
- hamxiaoz 13y agoFor new project, would you recommend rails 4 or rails 3? My concern is that not all gem are updated to support rails 4?
- senorprogrammer 13y agoI would recommend 4 unless you have prior knowledge of an incompatible gem you can't live without. The benefits are worth it. I've built two small-scale Rails 4 apps now and all incompatible gems have been easily replaced with either custom code or other gems.
- Axsuul 13y agoYou can upload your Gemfile to this site and it'll tell which gems are ready for Rails 4: http://ready4rails4.net/ http://ready4rails4.net/
- piratebroadcast 13y agoFucking awesome. Thanks for that link.
- te_chris 13y agoAR::Base#find still throws an exception if a malformed uuid is passed in. Looks like my dirty hack is going to hang around a bit longer https://github.com/rails/rails/issues/11902?source=cc https://github.com/rails/rails/issues/11902?source=cc
- mhartl 13y agoFWIW, the Ruby on Rails Tutorial book has been updated accordingly: http://news.railstutorial.org/rails_4_0_1/ http://news.railstutorial.org/rails_4_0_1/
- mattsfrey 13y agoDamn Mike, you sure stay on top of the times. (Note to any aspiring rails coders, rails tutorial is an awesome place to start)
- henrikm85 13y agoAnd here I thought that meteor killed this thing like a week ago.
- darkbot 13y agoThis is great. I love Rails 4. It's mature and solid. It's pure bliss to work with it.
- infocollector 13y agoFor people who have used both flask and rails. Any pros and cons pointers that I could read?
- sghill 13y agoFlask and Rails have different focuses. I've used both and like them both quite a bit, but I've found there is often a clear winner depending on the task at hand. Flask is a microframework that often fits within one file and is probably more comparable to Sinatra than Rails. I've only ever used it for setting up really small webservices and stubbing webservices. It could certainly scale up to larger apps, but it doesn't give you a lot of direction in how best to do so. Rails is a full-stack framework. Out of the box it gives you everything from the view to the database and strong conventions for where to place classes as your app grows. In general, it's more often compared to Django.
- infocollector 13y agoThanks.