Skip to content

Instantly share code, notes, and snippets.

Avatar

John Ericson Ericson2314

View GitHub Profile
@Ericson2314
Ericson2314 / new.csv
Created Mar 18, 2019
Non Empty benchmarks
View new.csv
Name Mean MeanLB MeanUB Stddev StddevLB StddevUB
lookup absent 1.4007964633596225e-4 1.3900306838617821e-4 1.409959984292045e-4 3.2162088819940293e-6 2.648684847834189e-6 3.83513797907703e-6
lookup present 1.2117600631473935e-4 1.1851317519930134e-4 1.2574100658612418e-4 1.1057038376041312e-5 7.252960401636669e-6 1.637170638272232e-5
map 5.057731259235705e-5 5.0025441909808805e-5 5.139016198780145e-5 2.2986131071978577e-6 1.6904593537096626e-6 2.8833240164946756e-6
map really 1.444479940687761e-4 1.425895371067314e-4 1.4683249713804366e-4 7.061473659430992e-6 4.685957519936656e-6 9.859418129494422e-6
<$ 4.264173764509787e-5 4.23183397385437e-5 4.313439037686621e-5 1.2858929625874046e-6 9.252226197568667e-7 1.8055386283925947e-6
<$ really 1.0126553001072617e-4 1.0001713674700016e-4 1.027073541604897e-4 4.55194471229765e-6 3.6169918634136838e-6 5.6691994635147006e-6
alterF lookup absent 1.3962772214066053e-4 1.3885112512818752e-4 1.406086706259139e-4 2.9508081603108147e-6 2.3597635442256163e-6 4.12647681753023e
View default.nix
{ me ? "5acef014fd9ca6119226d7c5373b1b8cc4df1376"
, base ? "b09435ea51caaae1865e667aaa32f7cba4cc4ff2"
}:
rec {
inherit me base;
myNixpkgsFunc = import (builtins.fetchTarball "https://github.com/Ericson2314/nixpkgs/archive/${me}.tar.gz");
myNixpkgs = myNixpkgsFunc {};
@Ericson2314
Ericson2314 / playground.rs
Last active Dec 19, 2015 — forked from anonymous/playground.rs
More associated types
View playground.rs
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
View eddyb.rs
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
View scrabble.rs
use std::fs::File;
use std::path::Path;
use std::io::Error;
use std::io::BufReader;
use std::io::BufRead;
use std::collections::HashMap;
use std::io::stdin;
fn sort_str(s: &str) -> String {
let mut v: Vec<char> = s.chars().collect();
@Ericson2314
Ericson2314 / dumb-client.c
Last active Dec 20, 2015
Using this dummy ENet client basically ripped from the tutorial to try to connect to pysnip
View dumb-client.c
#include <stdio.h>
#include <stdbool.h>
#include <enet/enet.h>
ENetAddress address;
ENetEvent event;
ENetPeer* peer;
int main (int argc, char* argv[])
You can’t perform that action at this time.