chruby
Changes the current Ruby (by postmodern)
cinder
Cinder is Meta's internal performance-oriented production version of CPython. (by facebookincubator)
chruby | cinder | |
---|---|---|
17 | 43 | |
2,834 | 3,379 | |
- | 0.6% | |
2.6 | 9.4 | |
about 1 year ago | 3 days ago | |
Shell | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
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.
chruby
Posts with mentions or reviews of chruby.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-11.
-
Test Driving a Rails API - Part One
Let’s get started. I prefer to manage my Ruby installations on my development machine with chruby paired with ruby-install. Another outstanding set of tools is rbenv with ruby-build. I highly recommend installing Ruby with one of those two sets of tools. Follow the instructions on their project’s READMEs. For this article, I’ll be running Ruby (MRI) v3.3.0.
-
Jekyll Tutorial: How To Create a Static Website
To fix this, you’d need to install Ruby correctly using a version manager such as chruby. You’d need to install Homebrew on your Mac first using the command below in your terminal:
-
As if there weren't enough packaging tools already: mitsuhiko/rye: an experimental alternative to poetry/pip/pipenv/venv/virtualenv/pdm/hatch/…
Now about the second point on the complexity of the shim strategy (cf. the rbenv implementation) with respect to the PATH update strategy (cf. the chruby implementation), what do you think?
-
Local dev environment management tool
I don’t want any of the bells & whistles that come with rvm and rbenv; I prefer the simplicity of chruby. I’ve used it for 10 years (is that possible?!) and I’ve never cursed at it.
-
command outputting source instead of executing
When you type chruby, the function is executed. If it doesn't do what you expect, it's either an issue with the function or your expectations aren't warranted. In any case you'll need to seek help from people who supplied you with this function. If your chrubby function is this one, you can ask from help on https://github.com/postmodern/chruby.
-
Fixing Ruby gems installation once and for all
I knew I saw your username somewhere in my investigation: Properly handle gems installed via --user-install.
- Fastlane is so bad
-
Mac M1 ruby 2.3
I use homebrew, chruby, and ruby-install.
- Ruby feature I want
- Ruby Mac M1 Chip Monterey issues
cinder
Posts with mentions or reviews of cinder.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-08.
-
Meta Used Monolithic Architecture to Ship Threads in Only Five Months
Meta is actually contributing directly to upstream cpython. If you really wanted to, the internal fork is also open source: https://github.com/facebookincubator/cinder
- Meta pledges Three-Year sponsorship for Python if GIL removal is accepted
- Back end of Meta Threads is built with Python 3.10 with some interesting tweaks
-
Lessons from Mojo for PHP 10+ ?
Just one example: last year Meta open-sourced Cinder, which powers Instagram and provides sizeable speedups compared to CPython.
- Python true static typing
-
Best book on writing an optimizing compiler (inlining, types, abstract interpretation)?
I used to work on the Cinder JIT and can help document any passes you find interesting or confusing.
-
Python-based compiler achieves orders-of-magnitude speedups
You might enjoy Cinder then. It's based on CPython so it is nearly 100% compatible.
https://github.com/facebookincubator/cinder/
Disclaimer: I used to work on it.
-
beartype: It has documentation now. It only took two years, my last hair follicle, precious sanity points (SPs), and working with Sphinx. Don't be like @leycec. Go hard on documentation early.
I think Cinder's Static Python, which also performs runtime type checking, is more ambitious. Though it's not production ready yet.
-
If there’s gonna be a Python 4.0 one day, what’s a breaking change you’d like to see? Let’s explore the ideas you have that can make Python even better!
Here's a fork that implements that https://github.com/facebookincubator/cinder - it might be nice to one day get that up streamed but obviously it'll be controversial and it certainly needs more time to bake. Hopefully at some point we can make it a pip installable extension though.
-
Is it time for Python to have a statically-typed, compiled, fast superset?
The other thing that was interesting to me, was the potential of type annotations to help make for a faster, safer experience on the compiler end of things. One example is seen in Meta’s Cinder project, on the docs it explains how typing can be used to reduce the number of steps for the compiler ([cinder/static_python.rst at cinder/3.8 · facebookincubator/cinder · GitHub](https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/static_python.rst)), making it more effective.
What are some alternatives?
When comparing chruby and cinder you can also consider the following projects:
rbenv - Manage your app's Ruby environment
faster-cpython - How to make CPython faster.
RVM - Ruby enVironment Manager (RVM)
Pyjion - Pyjion - A JIT for Python based upon CoreCLR
ruby-build - A tool to download, compile, and install Ruby on Unix-like systems.
Pyjion
ruby-install - Installs Ruby, JRuby, Rubinius, TruffleRuby or MRuby
graalpython - A Python 3 implementation built on GraalVM
asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
MonkeyType - A Python library that generates static type annotations by collecting runtime types
fry - Simple ruby version manager for fish
hpy - HPy: a better API for Python