It holds the activation records (i.e. stack frames) of native code, and VM code including the interpreter loop function.
它掌握本地代码的活动记录(堆帧stack frames),VM代码包括解释器循环功能。
The core of the process is the loop function that is called each time a request is received by the main MochiWeb system.
进程的核心是loop函数,MochiWe b主系统每次接收到一条请求时都会调用此函数。
All of the above solutions use a simple loop to wait and handle requests, before dispatching the request to a separate function to handle the actual network interaction.
上面的所有解决方案都用简单的循环等待并处理请求,然后把请求分派给另一个函数以处理实际的网络交互。
With such plumbs, you can target the statement, loop, function, class, or library that is most sluggish.
有了这种垂直度,就可以将语句、循环、函数、类或者是运行缓慢的库作为分析目标。
The function accepts three arguments, and performs some simple tests on the values to ensure that the function will not start an infinite loop.
该函数接受三个参数,然后对这些值进行一些简单的测试,以确保函数不会开始一个无限循环。
Let's take a look at a common loop for printing reports and see how it can convert into a recursive function.
让我们来研究一个打印报表的常见循环,了解如何将它转化为一个递归函数。
When we converted our loop to a recursive function, the recursive call was the last thing that the function did.
当我们将循环转化为递归函数时,递归调用是函数所做的最后一件事情。
And what's this little loop say to do? This little loop says I'm going to write a function or procedures that takes in two messages.
这个小循环是做什么的,这个小的循环是,我要写一个函数或者过程来接受两条消息。
In that case, a better solution is to pass setMeta() a two-dimensional array with name-value pairs and have the function loop through it -- performing all the activities simultaneously.
在这种情况下,更佳的解决方案是将带有名称-值对的两维数组传递给setMeta() ,并且让函数循环执行该数组 — 同时执行所有操作。
The server function then implements the Web server loop.
然后服务器函数实现Web服务器循环。
Note that, although the insecure function tempnam (3) is being used, it is wrapped inside a loop using O_CREAT and O_EXCL to counteract its security weaknesses, so this use is OK.
注意,尽管使用了不安全的tempnam(3)函数,但是它被包装在循环中,并使用了O_CREAT和O_EXCL选项,从而抵消了它的安全弱点,所以这样做是可以的。
This function is optimized as a very tight loop using string instructions with the repeat prefix.
使用带有repeat前缀的字符串指令将该函数优化成一个非常紧密的循环。
A simple example is a loop that computes a particular function for multiple arguments, such as the following Fortran program.
一个简单的例子就是为多个论断计算特定函数的循环,例如接下来的Fortran程序。
If there are multiple requests, loop through the array of requests and call the doRpc function for each one.
如果有多个响应,通过请求数组循环,为每一个调用dorpc函数。
Notice that then, in the body of the loop, I use callback to invoke the passed parameter function object.
然后请注意,在循环体中,我使用callback来调用传递的参数函数对象。
Pyrex's enhanced for probably speeds it up slightly, but the whole function is mainly the loop.
虽然pyrex改进后的for循环可能有一点加速,但是整个函数主要是一个循环。
The main function creates a Glib event loop, gets a connection to the session bus, and integrates the D-BUS event handling into the Glib event loop.
main函数创建一个Glib事件循环,获得会话总线的一个连接,并将D -BUS事件处理集成到Glib事件循环之中。
The fitness function is similar to the one from the original example, but the reward structure is different and the loop is actually simplified.
fitness函数与最初示例中的相似,但“奖赏”的结构有所不同,而且循环实际上也进行了简化。
Note at the end of the loop that I recursively call the same function with an argument that is one greater than the previous, implementing the iteration of the loop.
注意,在循环的结尾处,我用一个比上次大1的参数递归地调用同一个函数,以实现循环的迭代。
Then it states that it would like to be notified when signals with the com.burtonini.dbus.Signal interface are sent, sets signal_filter as the notification function, and enters the event loop.
然后它声明愿意当具有com. burtonini . dbus . signal接口的信号被发送时得到通知,将signal_filter设置为通知函数,然后进入事件循环。
Earlier in the article I rewrote the main conversion function in c, and now I am going to rewrite the main loop in c. the new code is fairly straightforward (enter as convert_driver_c.c).
在本文开头我使用c语言重新编写了主转换函数,现在将使用c语言重新编写主循环。
Within the loop, we extract the value for the iterated key, and then we attempt to set that value into the bean through reflection, using the helper function defined in the PBHandler class.
在循环内部,我们为遍历到的键提取值,然后使用在PBHandler中定义的helper函数通过反射将该值放置到bean中。
Call, I added only the line psyco.bind (main), since the main function does loop a number of times (but only makes minimal use of integer arithmetic).
我只添加了psyco .bind (main)这一行,而不是添加一个总的psyco . jit调用,因为main函数确实要循环多次(但是仅利用了最少的整数运算)。
This function starts with the Clojure special form loop, which creates a target for the recur at the end of the function.
此函数从 Clojure特殊形式的loop 开始,它将为函数末尾处的recur创建一个目标。
To walk through the completions table, the function USES a special version of the for statement. The standard for loop in Vimscript walks through a one-dimensional list, one element at a time.
为了遍历补全列表,该函数使用一个特殊版本的for语句。
It's an anonymous function that's passed into The Times method and prints a static sentence. This code is tighter and simpler than the alternative with a for loop, shown in Listing 2.
它是一个匿名函数,times方法被传递到该函数,函数的结果是打印出静态语句。
All you're doing is promising the compiler that the argument passed to the function will be at least that large; some machines might use this for loop unrolling.
您这样做是向编译器保证传递给那个函数的参数将至少是那么大;有一些机器可能会以此来拆解循环。
The previously declared rss-summary function uses a for loop to iterate over each item by using the XPath specification to select each item.
通过使用XPath规范,前面声明的rss-summary函数使用了一个for 循环在每个项上进行迭代,以便选择每个项。
Then the last for loop in that section iterates over that quasi-RSS list, sorts the items, and uses the rss-row() function to the format the information.
然后,这一部分中的最后一个for 循环将在这个准 RSS列表上进行迭代,对项进行排序,并使用 rss-row()函数对信息进行格式化。
By adding a simple function to display a message and exit with the appropriate return code as well as moving everything into a for loop, the script looks cleaner and is easier to understand.
这个脚本增加了一个简单的函数来显示一个消息并带适当的返回码退出,还把所有操作转移到一个for循环中,这使这个脚本看起来更干净、更容易理解了。
应用推荐