cci

CCI vs. Mono.Cecil — advantages and disadvantages

℡╲_俬逩灬. 提交于 2019-12-08 23:13:00
问题 I have seen articles discussing these two similar frameworks, but most of them are two years old or so. I assume both projects are much more mature now than they were two years ago, and the situation is a more complex one. So given the current states of each of the libraries, I was hoping someone could provide a detailed explanation of the advantages and disadvantages of each, and which should be preferred at present time. 回答1: CCI Pros: Can give you finer-grained control on your performance

Microsoft CCI - resources, references for writing compilers

好久不见. 提交于 2019-11-29 10:22:18
问题 Some time ago, I was working on compiler, I've used System.Reflection to generate code (IL) from my AST. Now, I've an idea for another compiler that I'd like to work on (it will be another pet project, nothing that will be used in production code, at least, not now). As you know, pet projects have one big advantage over production code: you can experiment and fail. So, I've decided to try to write compiler using Microsoft's CCI. The only good reference I've found is a sample compiler of basic

Using Roslyn Emit method with a ModuleBuilder instead of a MemoryStream

为君一笑 提交于 2019-11-29 05:51:31
I was having trouble with performance when using Roslyn to compile to a dynamic assembly. Compilation was taking ~3 seconds, compared to ~300 milliseconds to compile the same code when using the CodeDom compiler. Here's a pared-down version of the code I'm using to do the compilation: var compilation = CSharpCompilation.Create( "UserPayRules.dll", syntaxTrees, assembliesToAdd); using (var stream = new MemoryStream()) { stopWatch.Start(); var result = compilation.Emit(stream); stopWatch.Stop(); Debug.WriteLine("Compilation: {0}", stopWatch.ElapsedMilliseconds); if (!result.Success) { throw new

Using Roslyn Emit method with a ModuleBuilder instead of a MemoryStream

隐身守侯 提交于 2019-11-27 23:27:27
问题 I was having trouble with performance when using Roslyn to compile to a dynamic assembly. Compilation was taking ~3 seconds, compared to ~300 milliseconds to compile the same code when using the CodeDom compiler. Here's a pared-down version of the code I'm using to do the compilation: var compilation = CSharpCompilation.Create( "UserPayRules.dll", syntaxTrees, assembliesToAdd); using (var stream = new MemoryStream()) { stopWatch.Start(); var result = compilation.Emit(stream); stopWatch.Stop()

CCI指标之指标用法以及CCI指标之指标用途

末鹿安然 提交于 2019-11-27 12:52:05
CCI指标这个指标,可以说是非常重要的。所以股民务必要熟练掌握这个指标。下面为你介绍一下CCI指标之指标用法以及CCI指标之指标用途,如果想要了解更多CCI指标方面的知识,敬请关注QR量化投资社区,下面让我们了解一下CCI指标方面的知识吧! CCI指标之指标用法 1.CCI指标什么意思?当CCI指标曲线在+100线~-100线的常态区间里运行时,CCI指标参考意义不大,可以用KDJ等其它技术指标进行研判。 2.CCI指标什么意思?当CCI指标曲线从上向下突破+100线而重新进入常态区间时,表明市场价格的上涨阶段可能结束,将进入一个比较长时间的震荡整理阶段,应及时平多做空。 3.CCI指标什么意思?当CCI指标曲线从上向下突破-100线而进入另一个非常态区间(超卖区)时,表明市场价格的弱势状态已经形成,将进入一个比较长的寻底过程,可以持有空单等待更高利润。CCI指标什么意思?如果CCI指标曲线在超卖区运行了相当长的一段时间后开始掉头向上,表明价格的短期底部初步探明,可以少量建仓。CCI指标什么意思?CCI指标曲线在超卖区运行的时间越长,确认短期的底部的准确度越高。 CCI指标什么意思?更多CCI指标方面的知识,建议你学习一下QR相对强弱,对于操盘技巧帮助很大! CCI指标之指标用途 4.CCI指标什么意思?CCI指标曲线从下向上突破-100线而重新进入常态区间时

LR(1)语法分析器生成器(生成Action表和Goto表)java实现(二)

倖福魔咒の 提交于 2019-11-26 19:41:40
  本来这次想好好写一下博客的...结果耐心有限,又想着烂尾总比断更好些。于是还是把后续代码贴上。不过后续代码是继续贴在BNF容器里面的...可能会显得有些臃肿。但目前管不了那么多了。先贴上来吧hhh。说不定哪天觉得羞耻又改了呢。参考资料建议参考《编译器设计》一书。   目前完成进度 : 目前已经完成了表驱动,通过函数输出这个Action 和 Goto表。然后使用者就可以根据两个表来进行LR(1)语法分析。且经过比对,发现和书上的例子(括号语法)是完全吻合的。    1 package cn.vizdl.LR1.version3; 2 3 import java.util.ArrayList; 4 import java.util.HashMap; 5 import java.util.HashSet; 6 import java.util.List; 7 import java.util.Scanner; 8 import java.util.Set; 9 10 /* 11 项目名 : LR(1) parser generator (LR(1)语法分析器生成器) 12 项目分析 : 13 输入 : 输入某文件内存地址。且内部采用 <Expr> ::= <Term> + <Factor>; 的结构输入的LR(1)语法。 14 这里的仅支持 BNF范式内部的 终结符,非终结符,或运算