Skip to content

Instantly share code, notes, and snippets.

@logicchains
logicchains / Sched Test
Created September 3, 2013 13:46
Rust: undefined scheduler behaviour
use std::{os, vec,comm};
static NUM_TA: uint = 1000;
static NUM_CORES: uint = 4;
static NUM_TB: uint = 50_000;
#[deriving(Clone)]
struct TypeB { a: uint, b: uint, c: uint, d: uint}
#[deriving(Clone)]
@logicchains
logicchains / PR.rs
Created August 26, 2013 14:42
Buggy Rust level generation code.
use std::{os, vec,comm};
static TILE_DIM: uint = 50;
static MIN_WID: uint = 2;
static MAX_WID: uint = 8;
static NUM_LEVS: uint = 1000;
static NUM_CORES: uint = 4;
static NUM_TRIES: uint = 50_000;