Ruby Outperforms C: Breaking the Catch-22

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Judoscale - Save 47% on cloud hosting with autoscaling that just works
Judoscale integrates with Rails, Sidekiq, Solid Queue, and more to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up job queues.
judoscale.com
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. ruby

    The Ruby Programming Language

    The title is misleading, just like other commenters mentioned. Just check how much indirection "rb_iv_get()" has to make (at the end, it will call [1], which isn't "a light" call). Now, check generated JIT code (in a blog post) for the same action where JIT knows how to shave off unnecessary indirection.

    We are comparing apples and oranges here.

    [1] https://github.com/ruby/ruby/blob/b635a66e957e4dd3fed83ef1d7...

  2. Judoscale

    Save 47% on cloud hosting with autoscaling that just works. Judoscale integrates with Rails, Sidekiq, Solid Queue, and more to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up job queues.

    Judoscale logo
  3. swc

    Rust-based platform for the Web

    This is specifically about breaking the myth that performing expensive self-contained operations (e.g, parsing GraphQL) in a native extension (C, Rust, etc.) is always faster than the interpreted language.

    The JS ecosystem has the same problem, people think rewriting everything in Rust will be a magic fix. In practice, there's always the problem highlighted in the post (transitioning is expensive, causes optimization bailouts), as well as the cost of actually getting the results back into Node-land. This is why SWC abandoned the JS API for writing plugins - constantly bouncing back and forth while traversing AST nodes was even slower than Babel (e.g https://github.com/swc-project/swc/issues/1392#issuecomment-...)

  4. asyncpg

    A fast PostgreSQL Database Client Library for Python/asyncio.

    This pure Python library claims quite fabulous performance: https://github.com/MagicStack/asyncpg

    I believe it because that team have done lots of great stuff but I haven't used it, I just remembered thinking it was interesting the performance was so good. Not sure how related it is to running on the asyncio loop (or which loop they used for benchmarks).

  5. postgres-pr

    A pure-Ruby (pr) library for accessing PostgreSQL databases

    Probably, but you'd have to reimplement a lot of things you get for free out of libpq (prepared statements, pooler support, other things I'm forgetting about). But fwiw, there's already this: https://github.com/mneumann/postgres-pr

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Top .NET NuGet Packages for PostgreSQL Database

    1 project | dev.to | 24 Mar 2025
  • Build A Personal AI-Powered Finance Copilot: Maybe + CopilotKit 🪁

    1 project | dev.to | 12 Mar 2025
  • EvilSeed: A tool for creating partial dump of database based on app models

    1 project | news.ycombinator.com | 19 Feb 2025
  • IPv6 Is Hard

    2 projects | news.ycombinator.com | 16 Feb 2025
  • Better Know a Ruby Thing: Singleton Classes

    2 projects | news.ycombinator.com | 31 Jan 2025

Did you know that Ruby is
the 12th most popular programming language
based on number of references?