TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Will you switch to Rails again if truffle ruby is shipped this year?

3 pointsby pvsukale3about 8 years ago
This year or maybe the next truffle ruby will be shipped. It already has a 9x performance boost over MRI and they are working really hard to ship c extensions support and lower startup times. So will you switch back to Rails for projects that need high performance backends.will rails gain the momentum again it had in 2009-10

1 comment

briandearabout 8 years ago
JVM Ruby? Nope. If I need a high performance backend, I&#x27;d use Swift Perfect or Vapor before I&#x27;d use a JVM Ruby (some folks might prefer Rust&#x2F;Go&#x2F;etc, but it&#x27;s the same idea.) You can even use Helix to write Ruby extensions in Rust if that&#x27;s your thing. If I don&#x27;t need a high performance (whatever that means) backend I&#x27;ll stick with standard MRI.<p>Honestly the &quot;performance&quot; of Rails is rarely because of the Ruby speed but because of bad code choices (such as n+1 queries or just plan writing inefficient methods (retrieving entire objects when pluck might do, for example.)<p>If &quot;high performance&quot; is needed for specific parts of the application (such as processing and parsing large files,) then I&#x27;d just write a Swift microservice. I&#x27;d keep the ease of use of Rails overall but &quot;outsource&quot; the inneficient parts, assuming it would benefit the user experience.<p>My point: Ruby itself isn&#x27;t really the bottleneck in most Rails codebases and JRuby and it&#x27;s variants, in my past experience is just too painful to contemplate -- and rarely as necessary as people seem to think.<p>Just my opinion of course; I have been known to be wrong. ;)