第三个视频有关命令式的并行处理。
经验7.可以用说明式的或命令式的方式表示转换。
Lesson 7. Transformations can be expressed declaratively or imperatively.
一般来说,当描述复杂的转换时,命令式的方法更适合。
In general, the imperative approach is more adaptable when describing complex transformations.Figure 7: a pattern of model elements in a reference model.
命令式的(特别是)面向对象编程风格采用结构和消息传递作为构建块。
The imperative (and especially) object-oriented programming style uses structure and messaging as building blocks.
这种命令式的绘图模型更类似于opengl风格的绘制,而不是声明性的Web。
This model of imperative graphics owes much more to OpenGL-style drawing than to the declarative Web.
命令式的并行处理是基于并行版本的Do、For和For -Each操作。
Imperative parallelism is based on parallel versions of Do, For, and For-Each.
许多使用其他的程序设计语言范型的语言,例如面向对象的、命令式的,等等,也是动态语言。
Many languages using other programming language paradigms, such as object-oriented, imperative, and so on, are also dynamic languages.
一旦你习惯了新的绑定、触发器及动画支持,你就很难回到老风格命令式的、事件驱动的UI编程方法。
Once you get used to the new bind, trigger and animation support, it is hard to go back to the old style of imperative, event-driven UI programming.
最受欢迎的通用编程语言(包括Python和其它面向对象的语言)在样式上绝大多数都是命令式的。
The most popular general purpose programming languages -- including Python and other object-oriented languages -- are predominantly imperative in style.
这位朋友告诉我,他永远也不会忘了父亲那时的眼神和命令式的话语:“趁你妈妈没回来,帮我收拾下房间。”
He will never forget his dad looking up and demanding, "Help me clear up this mess before your mum gets home."
按钮拥有名为onclick的参数,它的值是Callback,当事件发生的时候,就会执行一段命令式的应用程序逻辑。
A button has an argument named onclick whose value is a Callback, a snippet of imperative application logic to be executed when the event occurs. In this particular case two things happen.
命令式语言程序员将对不使用流程控制就可以完成的工作而感到惊讶;如果不使用它,很多工作会更加简单,这将使他们更为惊讶!
Programmers of imperative languages will be surprised by what you can do without flow control; they'll be even more surprised at how much easier many tasks are without it!
如果您和大多数程序员一样,那么您一定是从像 C++ 的命令式语言开始您的编程生涯的。
If you're like most programmers, you started your career with an imperative language like C++.
命令式编程的用户对赋值的依赖要超过其他编程技术。
Users of imperative languages rely on assignments more than any other programming technique.
清单1展示了用命令式风格编写的数字分类器。
Listing 1 shows the number classifier written in an imperative style.
它们提供了命令式语言通常不提供的一些工具。
They provide some tools that imperative languages usually don't.
很难想像没有这些特征的编程语言,因为命令式语言“告诉我如何做”的方式是如此深刻地确立在我们的日常编程哲学中。
It's hard to imagine programming languages without these characteristics because imperative languages' "tell me how to do it" approach is so firmly entrenched in our everyday programming philosophies.
由于Rake提供了一套完整的命令式编程环境,有些在Ant里实现起来很繁琐(或者不写自定义Ant任务几乎无法实现)的事情在Rake中就变得轻而易举了。
Since Rake gives a full imperative programming environment there are some things that are trivial to do in Rake which are cumbersome (or impossible without writing a custom Ant task) in Ant.
尽管如此,对命令式语言程序员来说,状态的改变依然是程序设计错误的主要原因。
Still, state changes are consistently one of the chief causes for programming errors for imperative programmers.
在命令式语言中,输入相同而可能返回不同值的方法,都有副作用。
In imperative languages, any method that can possibly return different values, given the same input, has side effects.
函数编程方式很容易理解,但是如果您习惯了过程序和关注状态的命令式语言,可能不太容易适应它。
The functional programming approach is easy to understand, but can be difficult to apply if you are used to the more procedural and state-focused imperative languages.
函数式编程为您提供了新的、不同的构建块,可以实现命令式语言使用其他机制实现的相同效果。
Functional programming gives you new, different building blocks to achieve the same goals that imperative languages accomplish with other mechanisms.
对新程序员来说,命令式程序设计通常是一个更为自然和直观的起点,这就是为什么大部分程序设计说明都集中关注命令式语言和方法的原因。
Imperative programming is often a more natural and intuitive starting place for new programmers which is why most programming introductions focus on imperative languages and methods.
递归在haskell中至关重要。与命令式语言要求你去表达求解的方式不同,haskell更倾向于让你提供问题的描述。
Recursion is important to Haskell because unlike imperative languages, you do computations in Haskell by declaring what something is instead of declaring how you get it.
从而,在只是付出了一些指令的代价后,您的程序会拥有函数式程序的可证明性和命令式程序的速度和内存特性。
So, for the price of at most a few instructions, your program can have the provability of a functional program and the speed and memory characteristics of an imperative one.
这些公司从命令式(手工的)操作转换为声明服务器所需要的最终状态,从而达到可扩展的运维。
These companies achieve scalable operations by shifting from imperative (manual) actions to declarations about the desired end state of a server.
表1显示了几种常见的命令式或声明式编程语言。
Table 1 shows several common programming languages categorized as either imperative or declarative.
满足该要求的命令式分类如清单1所示。
An imperative class that meets these requirements appears in Listing 1.
Ocaml被选中的一部分原因是,它支持函数式、命令式和面向对象的混合编程风格。
OCaml as was chosen a basis in part because it supports a mix of functional, imperative, and object-oriented programming styles.
命令式编程和声明式编程方法之间的一个关键差异是完整性。
One critical difference between imperative and declarative programming methodologies is the notion of completeness.
应用推荐