GenVoca 架構GenVoca是一種軟體架構,與policy-based架構類似的是,它的最終成品也是由各個組件組裝而成的,但是組織的方式有所不同。在Policy-based架構中,組件作為具體的policy實現被添加到host class以實現相應的功能,而在GenVoca中組件作為wrappers (layers) on top of a more basic components adding functionality to
Lua是一種嵌入式指令碼語言,即Lua不是可以單獨啟動並執行程式,在實際應用中,主要存在兩種應用形式。第一種形式是,C/C++作為主程式,調用Lua代碼,此時可以將Lua看做“可擴充的語言”,我們將這種應用稱為“應用程式代碼”。第二種形式是Lua具有控制權,而C/C++代碼則作為Lua的“庫代碼”。在這兩種形式中,都是通過Lua提供的C API完成兩種語言之間的通訊的。 1. 基礎知識: C
hive.exec.parallel參數控制在同一個sql中的不同的job是否可以同時運行,預設為false.下面是對於該參數的測試過程:測試sql:select r1.afrom ( select t.a from sunwg_10 t join sunwg_10000000 s on t.a=s.b) r1 join (select s.b from sunwg_100000 t join sunwg_10 s on t.a=s.b) r2 on (r1.a=r2.b)
之前看到lvalue,rvalue,const lvalue,non-const lvalue,non-const rvlue?! 被搞的一直在雲端運算中…,不理解C++0X右值引用能幹些啥,看到這篇,標記一下原文: Rvalue References: C++0x Features in VC10, Part 2 譯文: VC2010中的C++0x特性 Part 2:右值引用原譯作應當是:http://www.cppblog.com/kesalin/archive/2009/06/01/86
添加引用sqldmo.dll安裝了SqlServer2000 就有了,在添加引用中找它最好使用SQL Server 2000的SP3的sqldmo.dllusing SQLDMO; SQLDMO.ApplicationClass sqlApp = new SQLDMO.ApplicationClass(); SQLDMO.NameList nameList; int i = 0; nameList =
On DotNet Board of USTC BBS, orochi recommended a book named “Functional Programming For The Real World”. It demonstrates advantages of functional programming towards traditional imperative programming, which inspires me a lot. Here, I will first
文章目錄 Text editingWebPages downloading In this article, I will introduce two sample scenes to demonstrate how we can use functional programming to make the code more intuitive, more elegant and more parallel.Text
引言最近在找C++的數值庫,最後終於找到一個近乎完美的eigen,介面優雅,使用方便,速度快,文檔詳盡。。。 幾乎沒有缺點,缺點可能是庫的設計者要辛苦一些。。。。另外疏鬆陣列的部分還在開發階段沒有完全成熟。裡面提到了矩陣相乘相加等等可以直接用 D =A * B *C 這樣寫,而不是類似boost::ublas(這個庫的好處是在boost下,其它的比eigen差遠了。。個人覺得)要寫成 prod(A,B)。為什麼ublas不用運算子號重載呢?
文章目錄 The problemThe solution http://martinbroadhurst.com/Consistent-Hash-Ring.htmlConsistent Hash RingIntroductionConsistent hashing was first described in a paper, Consistent hashing and random trees: Distributed caching