Instantly share code, notes, and snippets.

View symbol113.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View patch0.patch
diff --git a/PKGBUILD.old b/PKGBUILD
index 4c46ccf..69e3ce2 100644
--- a/PKGBUILD.old
+++ b/PKGBUILD
@@ -15,32 +15,30 @@ source=(
'http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip'
)
-sha512sums=(
- 'c2777e058734f5b70f6d9d9550cd36596e6002ecfefbe2836b495c640de133f55859339e0438ce76fcf70c3bc3221ae2204ce99608dcbe9561f9b13f237fb9c9'
View bench.log
~/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
View gist:15cf7d4ae196a85e1754
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`.
View README.md

DynJS perf numbers

View Pass.java
public static interface Pass {
Instruction[] apply(Instruction[] instrs);
}
View ir.log
/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
View Test.java
@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);
View gist:9399725
/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> %
View gist:9376023
# 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.