Skip to content

Instantly share code, notes, and snippets.

arr = new Uint8Array(8)
dump(arr instanceof Uint8Array) // emits TRUE
localforage.setItem('Uint8Array', arr).then (writeValue) ->
..
// in localstorage.js file
function setItem(key, value, callback) {
__utils__.echo(arr instanceof Uint8Array); // emits FALSE
diff --git a/nlpio.py b/nlpio.py
index 4f0500a..2485af0 100644
--- a/nlpio.py
+++ b/nlpio.py
@@ -13,9 +13,12 @@ class Document(object):
raise Exception('No text in document %s' % name)
self.modelPath = modelPath
self.peerPath = peerPath
- self.modelFileNames = glob.glob(self.modelPath + '*' + self.name)
+
After fixing the bug that declared root_tmp as int instead of an double and cleaning up the code heavily:
CREATING PROFILE: <operational_intensity, flops_per_cycle, GFlops, GCycles>
baseline baseline_improved spatial_locality_e reoder_loop init_w_e_inside_loop flatten_w_array flatten_e_array unrolling_i_4
100 <0.645, 0.428, 0.062, 0.144> <0.795, 0.568, 0.054, 0.095> <0.662, 0.537, 0.054, 0.101> <0.678, 0.562, 0.054, 0.096> <0.646, 0.546, 0.054, 0.099> <0.823, 0.633, 0.055, 0.086> <0.936, 0.646, 0.054, 0.083> <1.095, 0.765, 0.053, 0.069>
200 <0.903, 0.510, 0.486, 0.954> <1.075, 0.626, 0.432, 0.691> <0.982, 0.643, 0.423, 0.658> <0.962, 0.670, 0.424, 0.633> <0.998, 0.674, 0.422, 0.627> <1.167, 0.723, 0.427, 0.591> <1.228, 0.722, 0.419, 0.580> <1.567, 0.858, 0.414, 0.482>
300 <1.080, 0.546, 1.694, 3.103> <1.208, 0.659, 1.516, 2.298> <1.074, 0.680, 1
➜ build git:(master) ✗ make && make check
/Users/jviereck/develop/servo/build/x86_64-apple-darwin//rust_snapshot/rust-0.11.0-pre-x86_64-apple-darwin/bin/rustc -D unused-imports -O -g -L /Users/jviereck/develop/servo/build/workspace/lib/x86_64-apple-darwin /Users/jviereck/develop/servo/src/platform/macos/rust-core-foundation/lib.rs --out-dir .
touch libcore_foundation.dummy
/Users/jviereck/develop/servo/build/x86_64-apple-darwin//rust_snapshot/rust-0.11.0-pre-x86_64-apple-darwin/bin/rustc -D unused-imports -O -g -L /Users/jviereck/develop/servo/build/workspace/lib/x86_64-apple-darwin -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/platform/macos/rust-core-foundation -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/platform/macos/rust-core-foundation/.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/platform/macos/rust-core-foundation/src/.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/ -L /Users/jviereck/develop/servo/build/x86_64-apple-dar
4 warnings generated.
testVersion.cpp
/usr/bin/clang++ -o testVersion.o -c -fvisibility=hidden -DJS_NO_JSVAL_JSID_STRUCT_TYPES -DEXPORT_JS_API -DIMPL_MFBT -I/Users/jviereck/develop/servo/src/support/spidermonkey/mozjs/js/src -I.. -I/Users/jviereck/develop/servo/src/support/spidermonkey/mozjs/js/src/jsapi-tests -I. -I../dist/include -fPIC -Qunused-arguments -Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags -fno-common -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe -DNDEBUG -DTRIMMED -g -O3 -fno-stack-protector -fomit-frame-pointer -Qunused-arguments -DMOZILLA_CLIENT -include ../js-confdefs.h -MMD -MF .deps/testVersion.o.pp /Users/jviereck/develop/servo/src/support/spidermonkey/mozjs/js/src/jsapi-tests/t
check: rust-layers
/Users/jviereck/develop/servo/build/x86_64-apple-darwin//rust_snapshot/rust-0.11.0-pre-x86_64-apple-darwin/bin/rustc -D unused-imports -O -g -L /Users/jviereck/develop/servo/build/workspace/lib/x86_64-apple-darwin -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/support/geom/rust-geom -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/support/geom/rust-geom/.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/support/geom/rust-geom/src/.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/support/opengles/rust-opengles -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/support/opengles/rust-opengles/.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/support/opengles/rust-opengles/src/.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src/ -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src//.libs -L /Users/jviereck/develop/servo/build/x86_64-apple-darwin/src//src/.libs -L /Users/j
impl DOMImplementation {
pub fn new_inherited(owner: &JSRef<Document>) -> DOMImplementation {
DOMImplementation {
owner: JS::from_rooted(owner),
reflector_: Reflector::new(),
}
}
pub fn new(owner: &JSRef<Document>) -> Temporary<DOMImplementation> {
reflect_dom_object(box DOMImplementation::new_inherited(owner), owner,
#[deriving(Encodable)]
pub struct DOMImplementation {
owner: JS<Document>,
reflector_: Reflector,
}
impl DOMImplementation {
pub fn new_inherited(owner: &JSRef<Document>) -> DOMImplementation {
DOMImplementation {
owner: JS::from_rooted(owner),
➜ build git:(fix_2230_link_DOMImplementation_to_document) ./servo ../src/test/content/test_document_adoptNode.html
DEBUG:script::script_task: ScriptTask: loading url::Url{scheme: collections::string::String{vec: collections::vec::Vec<u8>{len: 4u, cap: 4u, ptr: (0x10dc1f078 as *mut ())}}, user: None, host: collections::string::String{vec: collections::vec::Vec<u8>{len: 0u, cap: 0u, ptr: (0x0 as *mut ())}}, port: None, path: collections::string::String{vec: collections::vec::Vec<u8>{len: 75u, cap: 75u, ptr: (0x10dc450b0 as *mut ())}}, query: collections::vec::Vec<(collections::string::String,collections::string::String)>{len: 0u, cap: 0u, ptr: (0x0 as *mut ())}, fragment: None} on page msg::constellation_msg::PipelineId(0u)
DEBUG:script::dom::bindings::js: rooting (0x111309060 as *mut ())
DEBUG:script::dom::bindings::js: rooting (0x11130a340 as *mut ())
DEBUG:script::dom::bindings::js: unrooting &(0x11130a340 as *mut ()) (expecting (0x11130a340 as *mut ())
DEBUG:script::dom::bindings::js: rooting (0x1113
# Note:
# - using xelatex as latex engine
# - using a special `default.latex` file in the same directory to use the `FreeMono` font.
report:
pandoc -V geometry:margin=1in -f markdown index.md -o homework.pdf --latex-engine=xelatex --template=default.latex