在上一期文章中,我演示了如何用运行时字节码生成来代替反射。
In the earlier article, I demonstrated how run-time bytecode generation can be used to replace reflection.
添加代码生成模型是为了让字节码生成更加模块化、更容易维护。
The code generation model was added to make the bytecode generation more modular and easier to maintain.
在这篇文章后面,当我讨论字节码生成的细节时,我还会回到这一问题上。
I'll return to this point later in the article when I discuss some of the details of the bytecode generation.
在与字节码生成相同的框架内处理源代码生成,肯定会产生一些有趣的新问题。
Handling source code generation in the same framework as bytecode generation promises to create some interesting new problems.
我在JiBX开发上花的时间,有很大一部分花在跟踪非法字节码生成问题上。
Much of the time I've spent on JiBX development went to track down invalid bytecode generation problems.
这样做有利于1代码混淆,及2在动态代码生成不允许的环境下使用Ruby。
It will be useful for 1 code obfuscation 2 use Ruby on environments where dynamic code generation is not allowed.
详细描述了状态表生成原理、状态表查询过程以及基于该方法的长码生成算法。
It describes the principle of status table production, the inquiring process of status table and long code production algorithm in detail.
同时这个应用还可以使用二维码自动安装,支持多账户和基于代码生成的时间和计数器。
This app features automatic setup via QR code, support for multiple accounts and has time and counter based code generation.
Axis2代码生成器发出采用正确xml样式表的XML文件,以用所需语言生成代码。
The Axis2 code generator emits XML files that are applied with the correct XML style sheets to generate code in the needed language.
这些变化包括:对编译器代码生成进行完全重写,添加用源代码增强代替字节码增强的选项。
These changes include a complete rewrite of the binding compiler code generation, with an added option for using source code enhancement as an alternative to bytecode enhancement.
在字节码生成的一般性问题方面,我列出了一个大问题:需要确保正在生成的代码符合JVM规范。
In the category of general problems with bytecode generation, I'd list one big issue: the need to make sure that the code you're generating is going to be valid according to the JVM specification.
因为在调试方面轻松了许多,我就可以在1.0版发行之前向字节码生成添加一些更重要的新特性了。
Because of this greater ease of debugging, I was able to add some significant new features to the bytecode generation before the 1.0 release.
对于任何想研究复杂的字节码转换实现的人来说,JiBX 1.0 字节码生成架构形成了一个有趣的案例研究。
The JiBX 1.0 bytecode generation architecture makes an interesting case study for anyone looking at implementing complex bytecode transformations.
另外,你可以写自己的Gas3代码生成模板,还能完全自定义生成的ActionScript 3类。
Additionally, you may write your own Gas3 code generation templates and fully customize generated ActionScript3 classes.
此外,GDS还提供了一个ActionScript 3代码生成器(Gas3),它大大加速了Flex应用的开发。
In addition, GDS also comes with an ActionScript3 code generator (Gas3), which greatly accelerates Flex application development.
对于WS - Policy,Axis2代码生成只适用于2004年的旧版本,而不适用2007年发布的标准W3C版本。
For WS-Policy, Axis2 code generation only works with the outdated submission version from 2004, rather than the standard W3C version released in 2007.
提出一种状态表查询的方法,可以有效地解决软件无线电和低性能平台环境下CD MA2000长码生成过程和生成时间较长的难点。
This paper proposes a status table method to solve the problem that the production of CDMA2000 long code will cost too much time under software radio and low end plat environment.
至少在目前,封装操作方法是惟一可以将JAXB用于Axis2代码生成的方法(但请立刻参考一下JAX - WS讨论了解另一种替代方法)。
At least for now, wrapped operation methods are the only way to use JAXB with Axis2 code generation (but see the JAX-WS discussion, shortly, for an alternative approach).
总体来讲,这意味着您要使用逻辑序列与字节码的组合,后者是从前者中生成的,最终会影响性能。
Overall, this means that it's the combination of the logic sequence you use and the bytecode that is generated from this that ultimately affects performance.
因此,不选中某些方法,将更容易只测试必需的生成码以理解它是如何工作的。
Therefore, uncheck the methods so it is easier to examine only the necessary generated code to understand how it works.
如果选中了所有的方法,将会有更多的生成码。
If you leave all the methods checked, there is more generated code.
如果生成的字节码指令序列的任何细节有误,那么把包含这个字节码的类装入jvm时,检验就会失败。
If any detail of a generated bytecode instruction sequence is wrong, the class containing that bytecode will fail verification when you attempt to load it into a JVM.
相反,它只运行生成的字节码。
注释还可以动态地提取HTTP请求中的信息,以及把应用程序生成的异常映射到http响应码。
Annotations can also dynamically extract information from HTTP requests and map application-generated exceptions to HTTP response codes.
对于消息摘要,算法的长度由算法生成的哈希码或者校验和决定。
For a message digest, the strength of the algorithm is determined by the size of the hash or check sum that the algorithm generates.
如果打开单事务存储特性(可选),那么必须生成一个附加的散列码(根据邮件内容和其他字段)。
If the (optional) single-instance-storage feature is turned on, an additional hash code (based on the mail content and other fields) must be generated.
Loop使用一个新生成的随机码重复这个循环,直到行扫描不再生成匹配值。
Loop repeats the cycle with a newly generated random code until a scan of the rows does not produce a match.
因为由JRuby生成的字节码最终会在JRE上运行,所以这个DSL应该被视为“内部”DSL——使用一个通用编程语言来创建一个特定编程语言。
As byte code generated from JRuby will run in the JRE, the DSL is categorized as "internal" - which USES a general programming language to create a specific programming language.
一个能生成CLR字节码的基于.NET 的Scala版本也同时在开发中。
NET version of Scala is also under development that generates CLR byte code.
如果您不知道如何生成良好的哈希码,那么最好使用arrays类,它能产生更少冲突。
Unless you know how to generate a good hash code, the one generated from the Arrays class is bound to be better, resulting in fewer collisions.
应用推荐