From: shevegen@... Date: 2018-12-27T22:29:44+00:00 Subject: [ruby-core:90756] [Ruby trunk Misc#15474] Running Rails with jit Issue #15474 has been updated by shevegen (Robert A. Heiler). There is some documentation at: https://bugs.ruby-lang.org/projects/ruby/wiki/MJIT#Basic-usage I believe Takashi and others may update that page every now and then. To the suggestion of a new environment variable: - I have no particular pro or con opinion; to me it seems fine but I think this has to be decided by Takashi, matz, the ruby core team etc... If I understood you correctly you refer to RUBY_JIT as an additional option to RUBYOPT, right? Again, I have no preference, I just want to make the proposal itself more accurate when possible. (It may help the ruby core team decide on the proposal; I assume it may be that RUBYOPT might suffice.) The example given on the wiki-page is this by the way: RUBYOPT="--jit" I think people may not easily find the page as of yet. I have bookmarked it locally so that I can find the page easily and not forget it. :) ---------------------------------------- Misc #15474: Running Rails with jit https://bugs.ruby-lang.org/issues/15474#change-75929 * Author: foonlyboy (Eike Dierks) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- I have installed ruby-2.6.0 I want to try to run my rails app with the jit. How can this be done? I should try env RUBY_OPTS='--jit' Is this the way the go? The jit ist experimental, but promising, so we need to try it wherever we can. there needs to be a clear documentation, how to enable or disable jit I'd like to enable jit by default, when running 2.6.0 running 2.5.3 with --jit gives: /opt/local/bin/ruby --jit -e 'puts "hello world"' /opt/local/bin/ruby: invalid option --jit (-h will show valid options) (RuntimeError) I'd like to suggest a new env: RUBY_JIT which should only be respected by ruby >= 2.6.0 ~eike -- https://bugs.ruby-lang.org/ Unsubscribe: