单词 | Clojure | ||||
释义 | Clojure
例句释义: 顺序设想,函数式编程 1. One parting thought is that I have come to think of Clojure as sort of a data structure oriented functional programming. 我把Clojure看作是一种面向函数编程的数据结构。 www.infoq.com 2. Assuming your new function is written in terms of Clojure's built-in functions, it will automatically be able to support all the same types. 假设您的新函数是用Clojure的内置函数编写的,则它将能够自动支持所有相同的类型。 www.ibm.com 3. However, like any other language, we need to set up a development environment for working with it. 不过,像其他语言一样,要想使用Clojure,我们需要先为它建立一个开发环境。 www.ibm.com 4. Clojars is a new repository that aims to make it easy to share and consume Clojure libraries. 新仓库Clojars旨在简化Clojure类库的共享与使用。 www.infoq.com 5. Making a basic linked-list data structure persistent is the easiest exercise; here, a list in Clojure is bound to a var named "a" 持久化基本链表数据结构是最简单的;在这里,Clojure中的一个列表绑定到一个名为“a”的变量 www.ibm.com 6. The other side of the medal is of course a matter of dependencies: using Clojure means another new dependency to a project. 硬币的另一面自然是依赖的问题:使用Clojure意味给项目增加一个新的依赖。 www.infoq.com 7. Agents are an important feature in Clojure and it's nice to see them show up in GPars. Agents是Clojure中的一个重要特性,很高兴可以看到它们出现在GPars中。 www.ibm.com 8. The cells where these rows and columns intersect represent existing implementations of these functions provided by Clojure. 这些行和列交叉处的单元格表示Clojure提供的这些函数的现有实现。 www.ibm.com 9. The other part that is built in Clojure is all the statistical inference and machine learning code. 二是所有的统计推断和机器学习代码。 www.infoq.com 10. Agents are used in Clojure (see Resources) to coordinate multithreaded access to an identifiable piece of changing state. Agents在Clojure(参阅参考资料)中用于协调对可识别变更状态的多线程访问。 www.ibm.com 1. Unlike the Java language, Clojure requires this to be declared as an explicit argument to the function. 不同于Java语言,Clojure需要this来声明为函数的明确参数。 www.ibm.com 2. Clojure Protocols: Take a look at slides presented by Stuart Halloway at the International Software Development Conference 2010. Clojure协议:查看在2010年国际软件开发会议中来自StuartHalloway的幻灯片。 www.ibm.com 3. One of the benefits of Clojure as a Lisp variant is that code is data (also known as homoiconicity). 作为Lips的一种变体,Clojure的优势之一就是代码即数据(也称为同像(homoiconicity))。 www.ibm.com 4. Each of the keys in the map is a Clojure keyword, which always evaluates to itself and is identical to the same keyword used anywhere else. 该map中的每个键都是一个Clojure关键字,计算结果始终得到自身,并且与其他任何位置所用的相同关键字完全相同。 www.ibm.com 5. Notice that datatypes can implement methods of any Java interface, not only those generated by Clojure protocols. 请注意数据类型可实现任何Java接口的方法,不仅仅是Clojure协议生成的那些接口。 www.ibm.com 6. Later in this article, I'll demonstrate both an object-oriented implementation in Java code and a functional variant in Clojure. 在本文稍后的内容中,我将演示使用Java代码的面向对象的实现以及Clojure中的函数式变体。 www.ibm.com 7. 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创建一个目标。 www.ibm.com 8. Structural sharing is the technique used to make Clojure's persistent data structures efficient. 结构共享这种技术使Clojure的持久数据结构更加高效。 www.ibm.com 9. A macro allows you to extend the Clojure compiler to essentially add new keywords to the language. 一个宏允许您对Clojure做扩展以向该语言中添加新的关键字。 www.ibm.com 10. Clojure does offer different styles of runtime polymorphism, for instance in the form of multimethods. Clojure还提供了不同风格的运行期多态,例如用multimethods的形式。 www.infoq.com 1. Now that we have the basic setup out of the way, let's explore the language by writing some Clojure programs. 现在,我们已经解决了基础设置的问题,接下来让我们通过编写一些Clojure程序来进一步研究这个编程语言。 www.ibm.com 2. We use Clojure data structure literals as both intermediate representation for communication, and for storage. 我们将Clojure数据结构用作通信和存储的中间表示。 www.infoq.com 3. Clojure provides a core set of persistent, immutable data structures: lists, vectors, maps, sets, and queues. Clojure提供了一组核心的持久、不可变的数据结构:列表、矢量、映射、集合和队列。 www.ibm.com 4. The Clojure core API contains an elegant zipper implementation in clojure. zip, with the API shown in Listing 11. Clojure核心API的clojure.zip中包含一个出色的zippers实现,API如清单11中所示。 www.ibm.com 5. Two main parts of the system are written in Clojure. 该系统里有两个主要部分是用Clojure编写的。 www.infoq.com 6. It converts keys in the map entries of JSON objects to Clojure keywords, which are more idiomatic to work with in Clojure. 它允许将JSON对象映射项中的键转换为Clojure关键字,后者在Clojure中更具惯用语特征。 www.ibm.com 7. The ClojureScript compiler contains no Javascript code, it's written in Clojure, which means the compiler needs to run on a Java VM. ClojureScript编译器并没有任何Javascript代码,它使用Clojure编写,这意味着编译器需要运行在JavaVM上。 www.infoq.com 8. For instance, normal Clojure functions have low call overhead as they're mostly reduced to static method calls. 例如,普通的Clojure函数都有较低的调用开销,因为它们都尽量降为静态函数调用。 www.infoq.com 9. The Fibonacci numbers form an infinite sequence, so it should be described as such using Clojure's infinite lazy sequences. Fibonacci数形成了一个无穷序列,所以应该用Clojure的无穷惰性序列描述它,如清单5所示。 www.ibm.com 10. Whether it's a good idea to add another, still little known, language like Clojure to a project, is a question every team has to answer. 这究竟是不是个好主意,把Clojure这样的语言加入一个工程,是许多团队都会面对的问题。 www.infoq.com 1. With clojure-dev, you get some basic syntax highlighting, including parentheses matching (a must-have for any Lisp). 有了clojure-dev,您就能够获得一些基本语法的亮点,包括圆括号匹配(Lisp所必需的)。 www.ibm.com 2. If you print a map you'll see commas between map entries, but it's purely for readability; commas are treated as whitespace in Clojure. 如果打印一个map,您可以看到map项之间的逗号,但这些逗号纯粹是为了可读性而添加的;在Clojure中,逗号将被作为空格处理。 www.ibm.com 3. So far, we have achieved almost the same level of essential complexity as with the clojure. walk implementation in Listing 10. 至此,我们已经达到了与清单10中的clojure.wal实现几乎相同的复杂性水平。 www.ibm.com 4. Clojure has already compiled the protocol you defined earlier into JVM bytecode representing this interface. Clojure已经将您早先定义的协议编译到代表此接口的JVM字节码中。 www.ibm.com 5. Our challenge now is to take a tree of Clojure maps and traverse or manipulate it. 我们现在的挑战在于获得一个Clojuremap树,并遍历或操作该树。 www.ibm.com 6. Download core. match: An optimized pattern-matching and predicate-dispatch library for Clojure. 下载core.match:经过优化的Clojure模式匹配和预测分派库。 www.ibm.com 7. This article covers the use of Clojure for performing basic CouchDB operations, querying CouchDB using views, and database replication. 本文涵盖了使用Clojure执行基本CouchDB操作,通过视图查询以及数据库复制。 www.ibm.com 8. There are many different concurrency problems out there, but many of them will map nicely to one of Clojure's models. 这里列出了很多不同的并发问题,但很多问题将很好地对应到Clojure的模型之一。 www.ibm.com 9. In fact, recently, a number of new languages like Scala, Clojure, and F# have evolved, all promising to simplify concurrency. 实际上,最近像Scala、Clojure和F#这样的几种新语言已经发展,它们都有可能简化并发性。 www.ibm.com 10. Clojure: Visit the Clojure website and check out the Protocols and Datatypes pages. Clojure:访问Clojure网站并查看协议和数据类型页面。 www.ibm.com 1. Here, the columns represent functions in Clojure's standard collection API: conj, nth, empty, and count. 在这里,列表示Clojure的标准集合API中的函数:conj、nth、empty和count。 www.ibm.com 2. You can find some examples of this in the core Clojure API's more advanced macro utilities. 在核心ClojureAPI的较为高级的宏实用工具中,您可以找到这些技术的一些示例。 www.ibm.com 3. In Clojure, a multimethod is a special kind of function that breaks invocation into two steps. 在Clojure中,多重方法是一种特殊的函数类型,它能将调用拆分为两个步骤。 www.ibm.com 4. Finally, Clojure is a language designed with concurrency in mind and has some unique features related to concurrent programming. 最后,Clojure在设计上也考虑了并发性,并具有并发编程的一些独特特性。 www.ibm.com 5. Another option is to use Clojure for performance bottlenecks. 还有一个选择是用Clojure来解决性能瓶颈。 www.infoq.com 6. Clojure favors uniform interfaces, so it encourages storing structured data in maps. Clojure支持统一接口,因此鼓励在映射中存储结构化数据。 www.ibm.com 7. It originally supported only Ruby, but has since expanded to cover node. js, the JVM-based Clojure, and now Java. 它最开始仅仅支持Ruby,后来扩展到覆盖node.js、基于JVM的Clojure,现在是Java。 www.infoq.com 8. Clojure libraries inspired by Ruby libraries are one way the two languages interact. Clojure库受Ruby库的启发,是这两种语言的相互影响的一种途径。 www.infoq.com 9. Clojure is a LISP and comes with a powerful macro system. Clojure是一种LISP语言,并且具有强大的宏系统。 www.infoq.com 10. Rows represent classes (Java) and datatypes (Clojure) that already exist. 行表示已经存在的类(Java)和数据类型(Clojure)。 www.ibm.com 1. Clojure's Solutions to the Expression Problem: View video and slides from a presentation by Chris Houser at Strange Loop 2010. 针对表达式问题的Clojure解决方案:查看StrangeLoop2010中ChrisHouser的视频和演示文稿的幻灯片。 www.ibm.com 2. We also need a zipper implementation that can deal with the standard Clojure data structures during traversal. 我们还需要一种zippers实现,它应能够在遍历过程中处理标准Clojure数据结构。 www.ibm.com 3. Being a functional language, Clojure brings new tricks to data query and manipulation. 作为一种函数式语言,Clojure为数据查询和操作提供了新方法。 www.ibm.com 4. Similarly, the rows represent Clojure's built-in collection types: list, vector, map, and set. 同样,行表示Clojure的内置集合类型:list、vector、map和set。 www.ibm.com 5. First we use the str function from Clojure to convert the char to a string. 首先,我们使用Clojure的str函数来将这个char转变为字符串。 www.ibm.com 6. One other important aspect of Clojure is its tight integration with the Java language. Clojure的另一个重要的方面是其与Java语言的紧密集成。 www.ibm.com 7. The Listing 1 example defines Clojure functions named invoice and manifest, both living in the com. amalgamated namespace. 清单1的示例定义了名为invoice和manifest的Clojure函数,两个都位于com.amalgamated命名空间中。 www.ibm.com 8. This is not an introductory article to Clojure, so some familiarity with it is assumed. 本文并不是要介绍Clojure,因此假定读者已对Clojure比较熟悉。 www.ibm.com 9. You start to talk to them about Clojure, Lisp, and the Expression Problem, and their eyes glaze over. 您开始跟他们谈论有关Clojure、Lisp和表达式问题,但他们对您说的全然无知。 www.ibm.com 10. Clojure is a possible solution for this problem: the language has various levels of flexbility. 要解决这个问题,Clojure是一个可能的方案:这种语言具有多种级别的灵活性。 www.infoq.com 1. But then another team of Java-only developers needs to build another invoice generator that is compatible with your Clojure code. 但是另外一个纯Java开发人员团队需要建立另外一个与您的Clojure代码兼容的发票生成器。 www.ibm.com 2. Here, we take advantage of Clojure's support for multi-line strings. 这里,我们利用了Clojure对多行字符串的支持。 www.ibm.com 3. The examples are written from the perspective of coding at the Clojure REPL. 这些示例是从ClojureREPL编码的角度进行编写的。 www.ibm.com 4. This follows Clojure naming conventions. 这遵循了Clojure的命名约定。 www.ibm.com 5. If you want to change state in a way that other threads will see it, then you might want to use Clojure's atoms. 如果想以其他线程可见的方式来变更状态,可能需要采用Clojure的atoms。 www.ibm.com 6. To fill that role, Clojure offers a variant of datatype for things that aren't records. 要填充此角色,Clojure为那些不是记录的项提供数据类型的变体。 www.ibm.com 7. Eclipse users can install the clojure-dev plug-in using its Eclipse update site. Eclipse用户可以通过Eclipse升级网站来安装clojure-dev插件。 www.ibm.com 8. With just these two simple examples, we have seen many features of Clojure. 通过上述这两个简单的例子,我们已经看到了Clojure的很多特性。 www.ibm.com 9. Clojure is fundamentally different in all respects. Clojure在各个方面都有根本的不同。 www.ibm.com 10. Clojure's refs provide its most powerful flavor of concurrency. Clojure的refs提供了其最强大的并发特色。 www.ibm.com 1. This article has shown you each of Clojure's concurrency models. 本文展示了Clojure的每个并发模型。 www.ibm.com 2. Clojure is a highly experimental language that's making inroads into industry, which is pretty rare. Clojure是一个高度实验性的稀有语言,它正在进入工业界。 www.bing.com 3. Second, you're confined to running the query only via your Clojure code. 其次,您被限制为只能通过您的Clojure代码运行查询。 www.ibm.com 4. This is where newer, more modern programming languages come into play, and Clojure is a great example. 在这里新的、更现代的编程语言开始发挥作用,Clojure就是个最好的例子。 www.ibm.com 5. In fact, every Clojure protocol is also a Java interface with the same name and methods. 实际上,每一个Clojure协议还是一个具有相同名称和方法的Java接口。 www.ibm.com 6. All in all, Clojure offers a lot of opportunities to write fast code in an elegant style. 总之,Clojure提供了很大的便利让你用优雅的风格写出运行飞快的代码。 www.infoq.com 7. I am sure that sometime soon we will have ML style pattern matching in Clojure, people have already been working on implementations. 我相信很快在Clojure里就会有ML风格的模式匹配,这一切正在实现中。 www.infoq.com 8. Listing 1 shows a simple example of using vars in Clojure. 清单1展示了在Clojure中使用vars的简单例子。 www.ibm.com 9. The key to using Clojure's STM is wrapping things inside the dosync function. 要使用Clojure的STM,关键是包装dosync函数内部的对象。 www.ibm.com 10. Clojure's core API includes a library, clojure. walk, that is specifically for traversing data structures. Clojure的核心API包含一个库,即clojure.walk,这个库专门用于遍历数据结构。 www.ibm.com 1. Clojure is built around these ideas. Clojure正是围绕这些理念构建的。 www.ibm.com 2. This is a common pattern, and Clojure provides a programming model to address this: agents. 这是个通用的模式,并且Clojure提供了编程模型来予以解决:agents。 www.ibm.com 3. The ability to write CouchDB views in Clojure means you have one less language to support in an application and more continuity in the code. 在Clojure中编写CouchDB视图的能力意味着能在应用程序中少支持一种语言并在代码中实现更多连续性。 www.ibm.com 4. Go to the Clojure site to download Clojure, read tutorials, and access reference documentation. 访问Clojuresite来下载Clojure,阅读教程,并访问参考文档。 www.ibm.com 5. This aspect of Clojure has always bothered me because I'm so steeped in state-based thinking. Clojure在这一方面一直困扰着我,因为我是如此沉迷基于状态的思考方式。 www.ibm.com 6. The HTTP-based examples I'll show use clojure. contrib. json. 稍后将展示的基于HTTP的示例使用clojure. www.ibm.com 7. There are two common ways to develop and run Clojure programs. 开发和运行Clojure程序有两种常用方式。 www.ibm.com 8. These classes implement their own generic interfaces, so it doesn't make sense for them to behave like Clojure maps. 这些类实现它们自己的一般接口,因为它们像Clojure映射那样没有意义。 www.ibm.com 9. InfoQ: Could you give a short overview of how your Clojure code is structured? InfoQ:你能简要介绍一下你们的Clojure代码是如何组织的吗? www.infoq.com 10. This tells Clojure to de-reference the pointer and gives you the actual value. 这告知Clojure取消对指针的引用,并给出真实值。 www.ibm.com 1. The Java world is showing a lot of interest now in functional languages such as Scala and Clojure. Java世界现在对一些函数式语言,例如Scala和Clojure表现出很大的兴趣。 www.ibm.com 2. The number 1 tip for working with Clojure libs is that Clojure-core and Clojure-contrib are small, so go read all the code. 使用Clojure的第一个建议是:Clojure-core和Clojure-contrib都很小,因此最好通读全部代码。 www.infoq.com 3. This is variable assignment in Clojure. 这是Clojure内的变量赋值。 www.ibm.com 4. InfoQ: You mentioned Clojure readers for importing data formats toClojure data structures; do you use Reader macros? InfoQ:你提到过用于将数据格式输入到Clojure数据结构的Clojurereader:你在使用Readermacros吗? www.infoq.com 5. For this article, Eclipse V3. 5 was used, along with clojure-dev 0. 0. 34. 在本文中,我们使用了EclipseV3.5和clojure-dev0.0.34。 www.ibm.com 6. Now you have solved several problems while learning how to use Clojure at the same time. 现在,您已经解决了几个问题,并同时掌握了该如何使用Clojure。 www.ibm.com 7. Listing 4 is a JSON document (from CouchDB) followed by an equivalent Clojure map representation 清单4是一个(来自CouchDB的)JSON文档,后面是一个对等的Clojure映射表示 www.ibm.com 8. It remains to be seen how chunked sequences are received; they obviously have advantages, but as the Clojure 1. 1 Changes file points out 现在就只是看看chunkedsequences的接受度如何了;它们显然有着很大的优点,但是Clojure1.1更新日志指出 www.infoq.com |
||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。