CoreOS and Nuxeo: How We Built nuxeo.io
译者注:
Nuxeo: nuxeo是使架构师和开发者能够构建、部署和运行内容为中心的开源内容管理系统平台。属于开源ECM厂家,是一个创新的,基于标准的,开放源码平台,企业内容管理的应用。它涉及的应用领域如:文件管理,协作,记录管理,文档为中心的业务流程管理, Web内容管理。wiki 官方网站
nuxio.io: 基于nuxeo平台构建的企业级应用的PaaS平台
| import language.{ higherKinds, implicitConversions } | |
| trait Unapply[TC[_[+_]], FA] { | |
| type F[+_] | |
| type A | |
| def TC: TC[F] | |
| def apply(fa: FA): F[A] | |
| } | |
| object Unapply { |
| package wrm | |
| import org.objectweb.asm.MethodVisitor | |
| import org.objectweb.asm.Label | |
| import org.objectweb.asm.Opcodes | |
| import org.objectweb.asm.FieldVisitor | |
| import org.objectweb.asm.AnnotationVisitor | |
| import org.objectweb.asm.ClassWriter | |
| object invokeHelper1 { | |
| def apply(method: String) {} |
| #lang racket | |
| (define (e311) | |
| (let ((x (call/cc (lambda (k) (list 0 k))))) | |
| (display (car x)) | |
| (newline) | |
| ((car (cdr x)) (cons (+ 1 (car x)) (cdr x))))) | |
| (e311) |
| -module(pvsl). | |
| -define(LIST_SIZES, [10000, 100000, 1000000]). | |
| -define(RETRIES, 1000). | |
| -compile(export_all). | |
| start() -> | |
| % test for different list sizes | |
| lists:foreach(fun(N) -> test_list(N) end, ?LIST_SIZES). | |
| test_list(ListSize) -> |
| class Field | |
| attr_reader :length, :width, :bad_points | |
| include Enumerable | |
| def initialize length, width | |
| @length = length | |
| @width = width | |
| @bad_points = [] | |
| end |