ruby2d VS MRuby

Compare ruby2d vs MRuby and see what are their differences.

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
ruby2d MRuby
4 5
631 5,239
0.6% 0.2%
1.3 9.8
8 months ago 7 days ago
Ruby C
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ruby2d

Posts with mentions or reviews of ruby2d. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-25.
  • mruby 3.2.0
    9 projects | news.ycombinator.com | 25 Feb 2023
    Note that Ruby2D aims to run on both ruby and mruby:

    > Use a subset of Ruby that works everywhere. Ruby 2D applications are, of course, written in Ruby. Some users may choose to harness the full power of the language, standard library, and ecosystem of gems by writing interpreted apps targeting the standard implementation, MRI. Others may want to target the web via WebAssembly, mobile devices, or build native desktop applications, all which make use of a different Ruby implementation called mruby. Ruby 2D aims to support all of these use cases, even with the same app codebase. Your contribution must support a subset of Ruby that is compatible with and behaves similarly across MRI/CRuby and mruby.

    [0]: https://github.com/ruby2d/ruby2d#technical-contributions

  • Simple game tutorials in Ruby using Ruby2D
    2 projects | /r/ruby | 25 Aug 2022
    OK, got it working, there's a pull request up with the change: https://github.com/ruby2d/ruby2d/pull/260 so it should be in a release in the near future hopefully :)
  • What game engine is good for ruby?
    5 projects | /r/ruby | 17 Oct 2021
  • Ruby2d: Take your first steps toward animation and game design
    2 projects | dev.to | 15 Sep 2021
    "...creating 2D applications should be simple, natural, and joyful, in the spirit of the Ruby language itself" (ruby2d on Github).

MRuby

Posts with mentions or reviews of MRuby. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-25.
  • mruby 3.2.0
    9 projects | news.ycombinator.com | 25 Feb 2023
    not an exhaustive list but https://github.com/mruby/mruby/issues/3962 has a few examples. some neat uses though
  • Sending Emails with Ruby
    2 projects | dev.to | 11 Apr 2022
    From our experience, the use of that option in a regular web app is uncommon. However, sending emails via Net::SMTP could be a fit if you use mruby (a lightweight implementation of the Ruby language) on some IoT device. Also, it will do if used in serverless computing, for example, AWS Lambda. Check out this script example first and then we’ll go through it in detail.
  • Ruby Packer: distribute your Ruby code as a compiled binary
    4 projects | news.ycombinator.com | 20 Sep 2021
    It's more on the embedded end of the spectrum, but https://github.com/mruby/mruby is another option in compiling ruby code and c extensions down to a single binary.
  • Ruby 3, Concurrency and the Ecosystem
    1 project | news.ycombinator.com | 9 Jan 2021
    They downplayed the actual amount of time that went into these changes and the upcoming changes. Here's the history:

    Matz[1] released the first version of Ruby in Dec 1995.

    DHH was a major player in getting Ruby into the global spotlight with Rails[2] in 2004. Rails got very popular as a framework for developing new applications, with Basecamp being novel, showing that it could work well and introducing people to REST, in a flexible interpretation, as well as ActiveRecord, whose ease of use and migrations became a model for modern web development.

    Rails v3 divided the community, specifically around how and what Rails would support for the server and request-handling. This hinted at problems to come, but Rails was still strong, and many took it with a grain of salt and upgraded.

    However, Twitter, which had been built on Rails became popular, and the "fail whale" emerged as they were unable to handle all of the requests. This was not a problem with scaling Rails, but with them knowing how they could scale Rails without much greater expense, but since they had to rewrite things and there was pressure to get scaling done right, they switched to Scala and Java, since Scala was functional and fast, and there was a lot of support for the JVM. Functional programming had already been making a comeback in popularity in the 2000s, because it often required a lower memory footprint and was fast. But, at that point in time, many teams and developers were looking into it.

    Though it wasn't the first time he'd done optimization, in 2012, Matz released mruby[1][3], an embedded Ruby.

    Around the same time, with functional programming having been cool, Elixir was born and some of the Rails community left for writing Ruby/Rails-ish code in Erlang.

    Some had been trying to slim down Rails in core, so that there would be less code needed to serve requests.

    Tenderlove, who came from the system programming side of things, joined the Rails core team with a focus on optimization, did work on Rack, and eventually he started working to help speed up Ruby.

    For years, Matz and others had focused on speeding up and slimming down Ruby. Ruby had run on Lighttpd and Ruby on Rails could run on it also.

    But, because the language was interpreted, it wasn't trivial.

    Another team wrote Crystal hoping that a compiled Ruby-like language would take off, and there was interest, but some of the the developers excited about Ruby and what it could do for the web had gone off to JS (Node), Python (...), Erlang (Elixir), etc.

    So, no, I don't think it's realistic that they put a year into it. At least 9+ calendar years led to this point, and it's been 26+ calendar years since initial release. And this isn't the end of it. It's not trying to compete with or tank your favorite framework or language of choice, it's just been improving and its team has been improving.

    Ruby is not Rails. But, not talking about how the history of Rails in the scope of things would be remiss. I can't think of anything in the history of Ruby that has been bad, but certainly Rails has had its "fun". But right now, it's coming together, and this shit is real.

    [1]- https://en.wikipedia.org/wiki/Yukihiro_Matsumoto

    [2]- https://en.wikipedia.org/wiki/Ruby_on_Rails

    [3]- https://github.com/mruby/mruby

  • What do you use mruby for? Is the use case purely for embedded systems?
    1 project | news.ycombinator.com | 20 Dec 2020

What are some alternatives?

When comparing ruby2d and MRuby you can also consider the following projects:

Gosu - 2D game development library for Ruby and C++

JRuby - JRuby, an implementation of Ruby on the JVM

Yeah - Ruby video game framework

Rubinius - The Rubinius Language Platform

gosu - Simple Go-based setuid+setgid+setgroups+exec

Opal - Ruby ♥︎ JavaScript

Gamebox - A game template for building and distributing Gosu apps.

Reactrb

super-bombinhas - A 2D platformer written in Ruby.

traveling-ruby - Self-contained Ruby binaries that can run on any Linux distribution and any macOS machine. [Moved to: https://github.com/phusion/traveling-ruby]

Tank-Vs-Zombie-Game-Ruby - Single Player 2d top-down zombie survival shooter game. In development.

ruby-packer - Packing your Ruby application into a single executable.