The performance of an application/runtime is usually thought of as a continuous function where, the lower the amount of memory/time used on a given workload, then the better the compiler/runtime is. However, in practice, good performance of an application is conceptually more of a binary function -- either the application responds in under, say 100ms, and is fast enough for a user to barely notice, or it takes a noticeable amount of time, leaving the user waiting and potentially abandoning the task. Thus, performance really means how often the application is fast enough to be usable, leading industrial developers to focus on the 95th and 99th percentile latencies as heavily, or moreso, than average response time.
Unfortunately, tracking and optimizing for these high percentile latencies is difficult and often requires a deep understanding of the application, runtime, GC, and OS interactions. This is further complicated by the fact that tail performance is often only seen occasionally, and is specific to a certain workload or input, making these issues uniquely painful to handle. Our vision is to create a language and runtime that is designed to be $Ω(c)$ in its performance -- that is, it is designed to have an effectively constant time to execute all operations, there is a constant fixed memory overhead for the application footprint, and the garbage-collector performs a constant amount of work per allocation + a (small) bounded pause for all collection/release operations.
A Constraint and Object Oriented Fifth Generation Programming Language and its Compiler and Runtime System
自LISP语言问世以来,第五代程序设计语言已经发展了几十年。然而,与第四代程序设计语言相比,第五代程序设计语言由于语义晦涩、问题表示严谨、推理能力有限等原因,一直没有得到广泛应用。为此,本文提出的第五代程序设计语言COOL(Constraint and Object Ordered Language)克服了以往第五代程序设计语言语义直观、处理问题条件限制严格等问题,提高了其推理能力。具体改进如下:第一,COOL支持面向过程和面向对象,便于在生产项目中应用;第二,COOL支持表达式作为函数声明和函数返回,提高了对数学公式的语言亲和力,支持将函数参数嵌入函数名字符串,使函数命名更接近自然语言。使数学问题更容易描述;第三,COOL引入了加权机制,通过累积加权加速推理过程。第四,COOL在编程中引入了正向和反向函数的概念,这样计算机就可以推断和执行具有逻辑顺序约束的问题。第五,计算机可以通过回溯算法和动态规划算法,利用正解过程推导出逆解过程,从而使计算机能够推导出具有时序约束的问题。第六,引入预执行步骤,将程序的推理和函数查询过程与执行过程分离,提高程序的执行速度。
BISM: Bytecode-Level Instrumentation for Software Monitoring
BISM(Bytecode-Level Instrumentation for Software Monitoring)是一个轻量级的字节码插装工具,它具有一种表达性高的高级控制流感知插装语言。该语言遵循面向方面的编程范式,采用了joinpoint模型、通知内联和单独的插装机制。BISM提供了从字节码指令到方法执行的连接点、对全面的静态和动态上下文信息的访问以及插装方法。BISM在两种检测模式下运行:构建时和加载时。我们证明了BISM的有效性,使用两个实验:安全方案和一般运行时验证的情况下。结果表明,BISM插装引起低的运行时间和内存开销。
Welterweight Go: Boxing, Structural Subtyping, and Generics (Extended Version)
Queen Mary University of London(伦敦大学皇家玛丽学院);Royal Holloway, University of London(伦敦大学皇家霍洛威学院);Instituto Superior Técnico, University of Lisbon(里斯本大学高等技术研究所);INESC-ID(葡萄牙信息科学与工程研究所);University of Edinburgh(爱丁堡大学);Google(谷歌)
JooFlux: Hijacking Java 7 InvokeDynamic To Support Live Code Modifications
在运行时更改功能性和非功能性软件实现在开发和生产环境中是有用的,有时甚至是至关重要的。JooFlux是一个JVM代理,它允许方法实现的动态替换和方面建议的应用。它通过字节码转换来利用Java SE 7中添加的新invokedynamic指令来帮助实现JVM的动态语言。JooFlux可以使用JMX代理进行管理,以便在运行时进行动态修改,而无需求助于专用的特定领域语言。我们将JooFlux与现有的AOP平台和动态语言进行了比较。结果表明,JooFlux的性能接近Java的--与大多数时间边际开销,有时增益--在AOP平台和动态语言提出显着的开销。这为JooFlux未来有趣的发展和应用铺平了道路。