ruby-packer
MRuby
ruby-packer | MRuby | |
---|---|---|
8 | 5 | |
1,555 | 5,239 | |
- | 0.2% | |
0.0 | 9.8 | |
8 months ago | 8 days ago | |
C | C | |
MIT License | MIT License |
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.
ruby-packer
- Is there a way to package up a Ruby script as a desktop executable app?
-
Hacker News top posts: Sep 21, 2021
Ruby Packer: distribute your Ruby code as a compiled binary\ (30 comments)
- Ruby Packer: distribute your Ruby code as a compiled binary
-
How do I create a ruby application?
One way around this limitation is to also include a ruby interpreter along with your source code. There are some projects out there that attempt to do just that, each with their own limitations and degrees of success. One such project is https://github.com/pmq20/ruby-packer. With this, you can give it your ruby code and it will bundle it up with a ruby interpreter so that you can hand out a single executable file to run.
-
Ruby through the lens of Go
Go has been used at Flipp for some time now, although not widely in my team. I wanted to use Go to create a command-line executable, something that Ruby unfortunately isn't capable of doing. (There are options, such as ruby-packer, but it seems like a "heavy" solution and doesn't seem to fit the Ruby paradigm.)
MRuby
-
mruby 3.2.0
not an exhaustive list but https://github.com/mruby/mruby/issues/3962 has a few examples. some neat uses though
-
Sending Emails with Ruby
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
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
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?
What are some alternatives?
ocra - One-Click Ruby Application Builder
JRuby - JRuby, an implementation of Ruby on the JVM
truffleruby - A high performance implementation of the Ruby programming language, built on GraalVM.
Rubinius - The Rubinius Language Platform
PySimpleGUI - Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, WxPython, and Remi into a simple, intuitive, and fun experience for both hobbyists and expert users.
Opal - Ruby ♥︎ JavaScript
Rake - A make-like build utility for Ruby.
Reactrb
rbs - Type Signature for 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]
Ruby on Rails - Ruby on Rails
pony - The official fork is now maintained by benprew in http://github.com/benprew/pony