From: shevegen@... Date: 2018-06-28T18:40:44+00:00 Subject: [ruby-core:87668] [Ruby trunk Feature#14878] Add command line argument to deactivate JIT Issue #14878 has been updated by shevegen (Robert A. Heiler). Agreed! I guess it may have already been on Takashi's todo list but he is like doing lots of changes as-is. As for options, I think "--disable-jit" and/or "--no-jit" would be best; --disable=jit is also ok but a bit less commonly used compared to options without a '='. The flag "--jit-disable" is a bit weird because I think it is not common to have the verb last (e.g. --FEATURE--enable or --FEATURE--disable) but I think these are details, not the big picture. And on the suggestion itself to be able to have control over the jit, I fully agree. I would even enable both compilation support for jit (yes/no) and also on the commandline (yes/no). I myself would want to run with jit on all the time, but as described, there may be many reasons why some people may not want to or can not use mjit, so in these cases, I think it makes sense to have it optional (or "controllable" by the ruby hacker at hand), so +1 ---------------------------------------- Feature #14878: Add command line argument to deactivate JIT https://bugs.ruby-lang.org/issues/14878#change-72695 * Author: noahgibbs (Noah Gibbs) * Status: Open * Priority: Normal * Assignee: k0kubun (Takashi Kokubun) * Target version: 2.6 ---------------------------------------- For Ruby 2.6, JIT is off by default. But if a particular application can't use JIT for some reason, it may want to explicitly turn JIT off, even for later Ruby versions that have JIT on by default. It would be useful to have a --jit-disable command line option to turn JIT off explicitly for later Ruby versions. This option should do nothing in Ruby 2.6. Why turn JIT off? Some possible reasons: * benchmarking * no compiler installed * known compiler/library bug in non-Ruby system software * short program run-time so JIT won't help * very tight memory constraints, don't want to start a compiler process * read-only file system so you can't write .c files I'm not married to the name "--jit-disable". I'd be fine with "--no-jit" or "--disable=jit", etc. But there should be an option to disable JIT in future Ruby versions. -- https://bugs.ruby-lang.org/ Unsubscribe: