Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility? #49

Open
eregon opened this issue Apr 26, 2024 · 2 comments
Open

Compatibility? #49

eregon opened this issue Apr 26, 2024 · 2 comments

Comments

@eregon
Copy link

eregon commented Apr 26, 2024

The README doesn't mention anything about compatibility, but it seems worth having at least a sentence about it.
Does it run RubyGems/Bundler/Rails? Does it have the Ruby standard library? C extensions?

@eregon
Copy link
Author

eregon commented Apr 26, 2024

Also related is does it support e.g. large integers, redefining Integer#+, etc and monkey-patching in general, i.e. important Ruby features which have a significant impact on performance?
https://www.infoworld.com/article/2074776/so-you-want-to-optimize-ruby.html has a list of more of these.
Of course it's totally fine if it doesn't but then it should be mentioned explicitly, because this definitely affects performance and interpretation of the benchmark results.

@sisshiki1969
Copy link
Owner

Thank you for comments! and sorry for late response.

Yes, monoruby supports Bignum, redefining of basic operations (such as Integer#+, Float#*, ..), and monkey-patching.

As for compatibility, monoruby can not run Rails and there are no plans to make it work in the near future.
The same goes for C extensions.
This is my personal study project and does not aim to replace CRuby.
RubyGems does not work yet, but now I am working on it.

I'll add some documents about compatibility with CRuby later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants