Ruby Outperforms C: Breaking the Catch-22

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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...

  • 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-...)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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).

  • 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

  • HypoPG: Hypothetical Indexes for PostgreSQL

    1 project | news.ycombinator.com | 20 May 2024
  • Create partial anonymized dumps of your database using your app model relations

    1 project | news.ycombinator.com | 19 May 2024
  • Ruby 3.4.0 Preview1 Released

    1 project | news.ycombinator.com | 16 May 2024
  • Server-side cache for YugabyteDB sequences to workaround the Nspgl `DISCARD SEQUENCES`

    1 project | dev.to | 16 May 2024
  • Show HN: PostgreSQL Index Advisor

    6 projects | news.ycombinator.com | 13 Apr 2024