在解释代码路径一定次数之后,会把它重新编译成机器码。
After interpreting a code path a certain number of times, it is compiled into machine code.
或者,在使用解释语言的情况下,调试器可以直接解释代码。
Or, in the case of interpreted languages, the debugger may interpret code directly.
散落于代码各处,解释代码在做什么的注释让人分心,也会让编译变慢。
Cluttering up the source code with lots of comments explaining what the code is trying to do is distracting and slows down the compiler.
假设您正在通过循环计时200,000次迭代,编译代码比解释代码快10倍。
Let's say you're going to time 200,000 iterations through a loop, and the compiled code is 10 times faster than the interpreted code.
要确保他们不只是解释代码是做什么的,而是努力表达思想的过程和所要完成的。
Just make sure they don't just explain what the code is doing - instead try and convey thought process and what is trying to be accomplished.
注释:程序中用来解释代码含义和运行效果的备注信息,通常给阅读代码的人准备的。
Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.
如果编译只在200,000次迭代时才发生,那么您测量的只是解释代码的性能(时间线(a))。
If compilation kicks in at 200,000 iterations, you only measure interpreted performance (timeline (a)).
这些虚拟机实际上的确相对简单,但存在严重的性能问题—解释代码的时间总是会比执行本机代码的时间长。
These actually were relatively simple, but suffered from severe performance problems — interpreting code is always going to take longer than executing native code.
根据编译时间和编译代码比解释代码快的程度,即使对迭代数量只做很小的变化,也可能造成测量的“性能”有极大差异。
Depending on the compilation time and how much faster the compiled code is than the interpreted code, small changes in the number of iterations can result in big differences in measured "performance."
可以通过谨慎地使用AOT编译代码加快应用程序启动,因为虽然这种代码通常比JIT编译代码慢,但是却比解释代码快很多倍。
You can accelerate application start-up by carefully using AOT-compiled code because this code, although typically slower than JIT-compiled code, can be many times faster than interpretation.
编译器运行的次数很难预测,JVM按照自己的想法从解释代码切换到编译代码,而且在运行期间,相同的代码路径可能编译、重新编译不止一次。
The compiler runs at less predictable times, the JVM switches from interpreted to compiled code at will, and the same code path may be compiled and recompiled more than once during a run.
这些代码是如此晦涩难懂,如此灵活,以至于无法进行合理解释。
The codes are so obscure and so flexible that they defy rational explanation.
我们研究每个代理的代码片段,解释每个片段所做的工作。
We examine code snippets for each agent, explaining what each snippet is doing.
大多数现代JVM结合使用了解释和编译的代码执行。
Most modern JVMs use a combination of interpretation and compiled code execution.
假如你友善地对待售货员,你就可以叫他们把那些代码解释给你听。
If you become friendly with a store employee, you can always ask them to decipher the code for you.
它首先解释了诸如代码页、代码点和编码模式等关键概念,并说明了如何查看它们的当前值以及如何更新该值。
It first explained key concepts such as code pages, code points, and encoding schemes, and indicated how to review their current value, and how to update the value.
一些人声称公正的代码注释是好事情,而另一些人声称代码注释只是解释过于复杂的代码的一种机制。
Some claim judicious code commenting is a good thing, while others claim it only serves as a mechanism to explain overly complex code.
RSPW 对于初学者来说是一本不错的书,其中充满了有用的建议和详细的代码解释。
RSPW is a great beginner book, full of useful advice and detailed code explanations.
处理表单中的字段、解析XML代码以及解释协议都是典型应用。
Processing fields in a form, parsing XML code, and interpreting a protocol are canonical USES.
除非多次执行代码,否则这些代价不能由本地代码相对解释的性能优势来弥补。
Unless the code is executed several times, these costs might not be offset by the performance benefit of native code versus interpretation.
解释的代码仍旧需要由现有的基于跟踪或者回调的调试器处理。
Code that is interpreted still needs to be handled by the existing trace or hook based debuggers.
如果你是想解释新代码应该做什么,那么还是用英语解释更合适。
If you mean it as an explanation of what the new code is supposed to do, write that explanation in English instead.
本文提供的源代码中也解释了这些步骤(见下载)。
The same steps are indicated in the source code provided with this article (see Download).
相反,这些代码将会由JIT解释或动态编译。
Instead, the code is either interpreted or dynamically compiled by the JIT.
该示例附带的源代码详细解释了抓取策略。
See the attached source code for complete working example illustrating the fetching strategy.
清单10逐行解释了这些代码。
Line-by-line explanations of the code appear after listing 10.
在测量工具部分,Jaibeer解释了使用静态代码分析工具的理由。
In the Measurement tools part, Jaibeer explains the reasons to use static code analysis tools.
我将解释python代码,因此只需要对这种语言有基本的了解即可。
I try to explain the Python code so that you need no more than a basic understanding of the language to follow along.
接下来解释上面的代码是如何解决之前遇到的那些问题的
The following is an explanation of how the desired features were implemented
代码引用被有意解释为伪代码(pseudo - code)。
The code references are intended to be interpreted as pseudo-code.
应用推荐