ITeye博客

“D”中海的橄榄

hqs7636 · 共 128 篇文章

[置顶] 三访安德烈Alexandrescu(第2部)

Google翻译哦 面试------> 应翻成 访谈 这部分大约为D编程语言面试2认为埃里克Niebler和Andrei Alexandrescu在讨论中深切地关注结构体与班,复制语义,右值引用的困难,垃圾收集复杂,和安德烈的偶尔失败作为旗手服务政策为基础的设计。 See Part 1 of this interview.见第1部分的采访。 Eric: D supports both value semantics (structs) and reference semantics (classes).埃里克:D支持两个值语义(结构)和参考语义(班)。 One surprising thin…

2010-08-20 12:53 · DMD 2.0 · 评论(0)

[置顶] 三访安德烈Alexandrescu(第一部分)

google翻译哦 Interview with Andrei Alexandrescu (Part 1 of 3) 文章分类: C++编程 文章分类: C + +的编程 In part 1 of this three-part series, Eric Niebler talks with his pal and fellow InformIT contributor Andrei Alexandrescu about the D programming language and Andrei's new book about it: what makes D different from…

2010-08-20 12:43 · DMD 2.0 · 评论(0)

[置顶] template metaprogramming 9

原文: https://docs.google.com/Doc?docid=0AR8C1hO5R8S1ZGZiNHZoeGZfMmdiNzJwcGZi&hl=zh_CN&pli=1 作者:Bartosz 翻译:hurd “I’ve been doing some template metaprogramming lately”, he said nonchallantly. "我近来在做模板元编程" ,他漠然的说。 Why is it funny? Because template metaprogramming is considered really hard. I mean, über…

2009-09-09 16:08 · DMD 2.0 · 评论(0)

[置顶] Floating Point in D (2.030 新)

5.17 23:50 更新 5.16 20:30 翻译更新 Real Close to the Machine: Floating Point in D 走近真实的机器: D 中的浮点 Introduction 介绍 by Don Clugston Computers were originally conceived as devices for performing mathematics. The earliest computers spent most of their time solving equations. Although the engineering and sci…

2009-05-12 23:27 · DMD 2.0 · 评论(0)

[置顶] std.range (2.030)

5.19 15点 更新 (2.030 翻译完成,格式已调整) 5.12 22:30 更新(最后面蓝色部分为 2.030) 5.1 16点 更新(2.029 完成) 4.30 0 点 更新 4.29 19点 更新 4.28 19点 更新 4.27 12点 更新 4.26 12点 更新 4.25 9点 更新 昨天努力的翻译了两小时,结果昏头昏脑刷新了一下,全丢了。。。。。 重来 Jump to: isInputRange isOutputRange isForwardRange isBidirectionalRange isRandomAccessRange ElementType hasSwa…

2009-04-22 12:03 · Phobos 翻译2.030 · 评论(2)

[置顶] 公 告

热烈庆祝 2009.5.28,16:00:00 浏览量达 25006 次 了 热烈庆祝 博客一周年 22660 次访问量,鞭炮。。。。。 热烈庆祝 2009.4.21,20:17:00 浏览量达 22222 次 了 热烈庆祝 10/25 20:44' 浏览量达 12345 次 了 热烈庆祝 10/10 11:10' 浏览量达 11111 次 了 举国欢庆 9/24 00:25'55" 浏览量达10000次 了 热烈庆祝 9/5 20:15'38" 浏览量达8888次 了 更新 关键字 8.20 更新 转义序列 8.20 安装配置 dwt 8月6日更新 热烈庆祝 8/5 11:45'00" 浏…

2008-06-11 02:12 · 黑板报 · 评论(0)

土耳其文《d编程》range 翻译 一

Ranges 范围 Ranges are an abstraction of element access. This abstraction enables the use of great number of algorithms over great number of container types. Ranges emphasize how container elements are accessed, as opposed to how the containers are implemented. Ranges是一个抽象的元素访问。这种抽象允许使用大量的算法到容器类型。Ran…

2011-11-15 02:01 · DMD 2.0 · 评论(0)

土耳其文《d编程》range 翻译 二

As you can see, that output does not match what we have seen in the Characters and Strings chapters. Since the elements of string and wstring are char and whar respectively, one might expect to see UTF code units in the previous output. As a reminder, let's use the following function to see how dif…

2011-11-15 01:59 · DMD 2.0 · 评论(0)

d2 range 和 标准C++中的Iterator(迭代器)简介

原文: http://hi.baidu.com/crash1/blog/item/90269a088a8000d562d986b3.html 只引用标准C++中的Iterator(迭代器)的介绍,关于d range 的介绍请参阅相关文章,是否一一对应或相关区别,请高手点评 :arrow: d2 range 相关参考: D2 的 range设计 http://dolive.iteye.com/blog/373077 std.range (2.030) http://dolive.iteye.com/blog/372383 标准C++中的Iterator(迭代器)简介 2007-12-23 22…

2011-05-07 12:59 · DMD 2.0 · 评论(0)

英国人是这样背的!

原文: http://ckwn.iteye.com/blog/611910 文章分类:IT生活 请大家想一想,英语是谁发明的?英国人呗!英国人认不认识汉语?不认识!那么英国人在学英语单词的时候需不需要记住单词的汉语意思?不需要,英国人的英语课本里根本就没有汉字,何谈记住单词的汉语意思?那么既然英国人学英语不需要记住(甚至根本就见不到)单词的汉语意思,那么中国人学英语为什么要去记住单词的汉语意思呢?这种做法大家不觉得奇怪吗? 然而由于中国人学英语时都在背单词的汉语意思,因此大家反而觉不出“背汉字”有什么奇怪的了。其实仔细想一想,这个行为真的很奇怪,奇怪的根源不在于行为本身,而在于中国人普遍不会…

2010-03-11 23:34 · 转载 · 评论(1)

GtkD 1.3 is out! Download it now!

what is new on GtkD: fully automated binding/wrapping Cairo, Gda, Gl, and Gstreamer support works with Phobos and Tango works with D 1.0 and D 2.0 wraps GTK+ 2.18.x API cario,过去叫做Xr或Xr/Xc,是一个跨平台的开放源代码的矢量图形函数库,可以提供高质量的显示和打印输出。通过Glitz函数库, Cairo 能使用 OpenGL或X Render扩展的硬件加速功能来绘制图像,这使得基于Cairo的应用能在现代化的3D显…

2009-10-27 16:25 · 转载 · 评论(0)

llvm 简介

原标题: llvm/clang将把FreeBSD带向何方? http://www.linuxsir.org/bbs/showthread.php?t=353921 对于FreeBSD最近的发展,最引人注目、最让人有所期待、最让人遐想的就是在将来的某个版本里将引入llvm/clang。这是一个什么东西?为什么值得期待?请听我慢慢地扯。 llvm/clang是一个编译器,llvm是类似虚拟机的东西(www.llvm.org),这个虚拟机不是类似java或者说python的VM,llvm的目的不是运行而是编译生成代码。也就是说这个llvm是编译器的后端。clang呢,(clang.llvm.org…

2009-10-25 21:54 · 转载 · 评论(0)

Ownership Systems against Data Races 10

September 22, 2009 Posted by Bartosz Milewski under C++, Concurrency, Programming, Type System Comments Here’s the video from my recent talk to the Northwest C++ Users Group (NWCPP) about how to translate the data-race free type system into a system of user-defined annotations in C++. I start with …

2009-10-21 04:04 · D3 并发 vs AST · 评论(0)

Spawning a Thread, the D way 8

September 1, 2009 Posted by Bartosz Milewski under Programming Comments Spawning a thread in non-functional languages is considered a very low-level primitive. Often spawn or CreateThread takes a function pointer and an untyped (void) pointer to “data”. The newly created thread will execute the fun…

2009-10-21 04:02 · D3 并发 vs AST · 评论(0)

The Anatomy of Reference Counting 7

August 19, 2009 Posted by Bartosz Milewski under C++, Concurrency, D Programming Language, Multithreading, Programming Comments What is there to reference counting that is not obvious? In any language that supports deterministic destruction and the overloading of the copy constructor and the assign…

2009-10-21 04:01 · D3 并发 vs AST · 评论(0)