-
Notifications
You must be signed in to change notification settings - Fork 6
Ruby ergonomics #1
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
Comments
That is possible. Most MMTk options can be set through command line arguments. And it is the preferred way to set MMTk options.
Unfortunately |
For the version string we've done ruby/ruby#5872 as preparatory work, and have a branch to actually add |
Version string done as mmtk/ruby#1. |
Heap size flag done as mmtk/ruby#9. This just leaves a runtime flag |
Runtime flag done as mmtk/ruby#14, so that's all ergonomics done now. My next step is going to be checking the diff against upstream and seeing if I can minimise it a bit. We were doing some initial benchmarking, but with the understanding that |
There's some very low-hanging fruit for basic Ruby ergonomics with MMTk. I'd like to get approval for these but then reserve them for some beginners that I'd like to encourage to try the project.
Version flag
When you run Ruby with one of the JITs you get a flag in
--version
so that it's really obvious in error messages. We should do the same for MMTk, and print the plan in use.We could add:
MMTk command-line flag
It'd be great if we could have MMTk as a run-time option. Can we do that? It'd be so much more convenient for shipping and experiments.
Plan command-line flag
Should it be possible to set the plan using a command-line flag? That's more common for these kind of options in Ruby than an environment variable.
Default heap size
Is there a default heap size we should use? What's the default if you don't set one? Can we calculate a default from system parameters?
Basic
GC.stat
supportWhat should
GC.stat
show for MMTk and the various plans? Can we get some basic stats out ofMarkSweep
andNone
already?The text was updated successfully, but these errors were encountered: