Skip to content

Instantly share code, notes, and snippets.

diff --git a/Useful-Vert.x-components-and-modules.md b/Useful-Vert.x-components-and-modules.md
index 1004aa0..150f379 100644
--- a/Useful-Vert.x-components-and-modules.md
+++ b/Useful-Vert.x-components-and-modules.md
@@ -59,7 +59,7 @@ If you're thinking of creating an application using Vert.x, here's a list of use
* io.vertx~lang-clojure - https://github.com/vert-x/mod-lang-clojure - Clojure API implementation for Vert.x
-* io.vertx~lang-dynjs - https://github.com/vert-x/mod-lang-php - JavaScript API implementation for Vert.x that uses the DynJS JavaScript engine
+* io.vertx~lang-dynjs - https://github.com/vert-x/mod-lang-dynjs - JavaScript API implementation for Vert.x that uses the DynJS JavaScript engine

Keybase proof

I hereby claim:

  • I am qmx on github.
  • I am qmx (https://keybase.io/qmx) on keybase.
  • I have a public key whose fingerprint is 41E3 D95A 0F4D BAF6 B30B 0B3D 9C07 7BDA 1C30 A949

To claim this, I am signing this object:

# These properties can be used to alter runtime behavior for perf or compatibility.
# Specify them by passing directly to Java -Ddynjs.<property>=<value>
################################################################################
# compiler
################################################################################
# Set compile mode: OFF = no compilation (interpreted); JIT = at runtime; FORCE = before execution
# Options: [OFF, FORCE, JIT], Default: JIT.
/V/v/g/dynjs git:classpath ❯❯❯ bin/dynjs --console ✭ ✱ ◼
dynjs console.
Type exit and press ENTER to leave.
dynjs> dynjs.classPath.push("/Users/qmx/dev/dynjs-0.2.2-SNAPSHOT/activemq-all-5.9.0.jar")
undefined
dynjs> org.apache.activemq.ActiveMQConnectionFactory.DEFAULT_BROKER_URL
failover://tcp://localhost:61616
dynjs> %
@qmx
qmx / Test.java
Last active August 29, 2015 13:57
@Test
public void testStackCleanup() {
DynObject e = (DynObject) (eval("function foo() { return new Error(); }; foo();"));
String stack = (String) e.get(getContext(), "stack");
System.out.println(stack);
assertThat(stack.split("\n").length).isEqualTo(4);
DynObject e2 = (DynObject) (eval("function baz() { return new Error(); }; baz();"));
String stack2 = (String) e2.get(getContext(), "stack");
System.out.println(stack2);
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 13.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/htmlconverter.ja
public static interface Pass {
Instruction[] apply(Instruction[] instrs);
}
@qmx
qmx / README.md
Last active August 29, 2015 14:02 — forked from mbostock/.block

DynJS perf numbers

Compiling rust-mustache v0.3.0 (file:///Volumes/v2/git/rust-mustache)
/Volumes/v2/git/rust-mustache/src/encoder.rs:3:5: 3:21 error: import `IoError` conflicts with type in this module
/Volumes/v2/git/rust-mustache/src/encoder.rs:3 use std::io::IoError;
^~~~~~~~~~~~~~~~
/Volumes/v2/git/rust-mustache/src/encoder.rs:24:5: 24:21 note: note conflicting type here
/Volumes/v2/git/rust-mustache/src/encoder.rs:24 IoError(IoError),
^~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `rust-mustache`.
@qmx
qmx / bench.log
Created December 15, 2014 15:27
ups bench
~/d/bench ❯❯❯ wrk -d 60 -s ups_bench.lua http://localhost:8080/ag-push/rest/registry/device
Running 1m test @ http://localhost:8080/ag-push/rest/registry/device
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 54.04ms 12.91ms 149.52ms 85.51%
Req/Sec 94.50 16.09 145.00 63.50%
11346 requests in 1.00m, 6.10MB read
Requests/sec: 189.06
Transfer/sec: 104.13KB