This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGnBr0+tZB/MH2UomfMqV/v6HilS14zLtdYDI9wbR/Ll cgaebel@iMac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am cgaebel on github. | |
* I am cgaebel (https://keybase.io/cgaebel) on keybase. | |
* I have a public key whose fingerprint is 3937 223E 2005 3C0D 8FD2 2C52 0C5A 665C ABCE B75E | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[inline] | |
fn memmove(&self, dst: uint, src: uint, len: uint) { | |
unsafe { | |
debug_assert!(dst + len <= self.cap, "dst={} src={} len={} cap={}", dst, src, len, self.cap); | |
debug_assert!(src + len <= self.cap, "dst={} src={} len={} cap={}", dst, src, len, self.cap); | |
ptr::copy_memory( | |
self.ptr.offset(dst as int), | |
self.ptr.offset(src as int) as *const T, | |
len); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 8280d46c5b815cdb979c37e4b725fe4d28e9ae5c | |
Author: Clark Gaebel <cgaebel@mozilla.com> | |
Date: Fri Nov 21 12:47:28 2014 -0800 | |
fixed undefined behavior in u8 peeking | |
diff --git a/src/bufspan.rs b/src/bufspan.rs | |
index 7788949..b517e71 100644 | |
--- a/src/bufspan.rs | |
+++ b/src/bufspan.rs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cargo.toml b/Cargo.toml | |
index 92a6cdb..59e6fda 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -4,6 +4,9 @@ name = "html5ever" | |
version = "0.0.0" | |
authors = [ "The html5ever Project Developers" ] | |
+[dependencies.time] | |
+git = "https://github.com/rust-lang/time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oxidize: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd | |
:1015:25: 1015:30 error: cannot borrow `*self` because it is already borrowed as mutable | |
:1015 let probe = self.probe(hash, dib); | |
: ^~~~~ | |
:1028:44: 1028:54 note: previous borrow of `*self` as mutable occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `*self` until the borrow ends | |
:1028 let (bucket_k, bucket_v) = self.table.read_mut(&idx); | |
: ^~~~~~~~~~ | |
:1055:6: 1055:6 note: previous borrow ends here | |
:1012 &'a mut self, hash: u64, k: K, v: V) -> &'a mut V { | |
:1055 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To run, copy the below code into a .sh file and execute it. | |
// | |
// > #!/usr/bin/env bash | |
// > clang++ -std=c++11 -O3 alloctest.cpp -o alloctest | |
// > ./alloctest | |
// > rm alloctest | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdint.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sokethig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Calculus ( integrate, | |
derivative, | |
arclength, | |
arclength_inv | |
) where | |
δx :: Double | |
δx = 0.00001 | |
-- a slightly larger delta, for when we need it ;) | |
dx :: Double |
NewerOlder