A pull request to add Rust extension support to rubygems

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • rubygems

    Library packaging and distribution for Ruby.

  • rustygem

    An example of a Ruby gem written in Rust

  • Nice! I did this hacky way 6 years ago https://github.com/olegantonyan/rustygem. Rust is just perfect language for high-performance extensions: no garbage collector, no sudden segfaults, builds into shared libraries

  • 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
  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

  • Someone finally did it! You should not be writing C in 2021. I have written plenty of C and it is incredibly difficult to write correctly, due to implicit type promotion between signed/unsigned types and memory mapped nature. Rust is a better option to C, and can generate C libraries due to Rust not having a GC. I also hope this could open the door to Zig extensions. Not everyone might like Rust and it's borrow checker, and might insist on sticking with C due to a false choice between Rust and C. Zig is a nice middle ground between the two, as it has all of the usual benefits of Rust (safe pointers, better type checking, integer under/overflow-checking), but with explicit memory management instead of a borrow checker.

  • zig-pypi

    The Zig programming language, packaged for PyPI

  • You could do what the Python folks did and ship Zig as a gem: https://github.com/ziglang/zig-pypi

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