(pencil) ~
blt> wrk -t8 -c100 -d30s http://localhost:1234/
Running 30s test @ http://localhost:1234/
8 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 19.71ms 16.46ms 185.53ms 68.15%
Req/Sec 699.43 217.36 2.10k 72.45%
166305 requests in 30.00s, 27.96MB read
Non-2xx or 3xx responses: 1
View rebar.config
This file contains 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
(walden) /tmp/lazybones | |
blt> rebar --version | |
rebar 2.1.0-pre R16B02 20131011_060444 git 2.1.0-pre-46-g78fa8fc | |
(walden) /tmp/lazybones | |
blt> rebar get-deps | |
==> lazybones (get-deps) | |
Pulling libsass from {git,"git://github.com/hcatlin/libsass.git", | |
{tag,"v1.0.1"}} | |
Cloning into 'libsass'... |
View met_or_resp.erl
This file contains 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(met_or_resp). | |
-export([whatdo/1]). | |
-type diagnosis() :: metabolic_acidosis | | |
respiratory_acidosis | | |
respiratory_alkalosis | | |
metabolic_acidosis_respiratory_alkalosis | | |
metabolic_acidosis_respiratory_acidosis | | |
respiratory_acidosis_metabolic_alkalosis | |
View gist:9697538
This file contains 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 blt on github. | |
* I am troutwine (https://keybase.io/troutwine) on keybase. | |
* I have a public key whose fingerprint is 2F6B F792 C076 5F00 62DC 40C8 1705 B016 9169 D9F8 | |
To claim this, I am signing this object: |
View gist:9696752
This file contains 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 blt on github. | |
* I am troutwine (https://keybase.io/troutwine) on keybase. | |
* I have a public key whose fingerprint is 97F0 B3BD 7E22 E6D0 132C F798 CB45 DAD8 A410 01EA | |
To claim this, I am signing this object: |
View lua_code_cache off.md
View ohlord.erl
This file contains 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
lists:reverse(lists:sort([{(MemWords * erlang:system_info(wordsize)) / math:pow(1000, 2), Tables, Pid} || {Pid, Tables, MemWords} <- lists:foldl(fun({Pid, Tab, MemWords}, [{Pid, TabList, TotMemWords} | Rest]) -> [{Pid, [Tab | TabList], TotMemWords + MemWords} | Rest]; (Elem, Acc) -> [Elem | Acc] end, [], lists:sort([{ets:info(E, owner), E, ets:info(E, memory)} || E <- ets:all()]))])). |
View main.rs
This file contains 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
fn main() { | |
funvsn(&mut std::io::stdio::stdin().chars()); | |
} | |
// I'd like to make the function type here as generic as possible. All I really | |
// care about is getting a character iterator but I have two challenges: | |
// | |
// * this doesn't compile (rust 0.13.0, nightly) | |
// * there's a pesky std::io::IoResult in there | |
fn funvsn<I>(it: I) where I: Iterator<std::io::IoResult<char>> { |
View gist:751476fe90072cdf82db
This file contains 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
{plugins, | |
[ | |
rebar_gdb_plugin, | |
{pc, {git, "file:////Users/blt/projects/us/troutwine/port_compiler", {branch, "master"}}} | |
]}. |
View gist:92c609fca93d75d5a35a
This file contains 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
(walden-2) ~/projects/com/github/jiffy | |
blt> rm -rf _build/ && DEBUG=1 rebar3 pc clean, pc compile | |
===> Evaluating config script "rebar.config.script" | |
===> Consult config file "rebar.lock" | |
===> error function_clause | |
===> Plugin rebar_gdb_plugin not available. It will not be used. | |
===> Consult config file "/Users/blt/projects/com/github/jiffy/_build/default/plugins/pc/rebar.config" | |
===> Consult config file "/Users/blt/projects/com/github/jiffy/_build/default/plugins/pc/rebar.lock" | |
===> Fetching pc ({git,"file:///Users/blt/projects/us/troutwine/port_compiler", |
View gist:33a037c76efda8215dfe
This file contains 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
(walden-2) ~/projects/com/github/jiffy | |
blt> rm -rf _build/ && DEBUG=1 rebar3 pc clean, pc compile | |
===> Evaluating config script "rebar.config.script" | |
===> Consult config file "rebar.lock" | |
===> error function_clause | |
===> Plugin rebar_gdb_plugin not available. It will not be used. | |
===> Consult config file "/Users/blt/projects/com/github/jiffy/_build/default/plugins/pc/rebar.config" | |
===> Consult config file "/Users/blt/projects/com/github/jiffy/_build/default/plugins/pc/rebar.lock" | |
===> Fetching pc ({git,"file:///Users/blt/projects/us/troutwine/port_compiler", |
OlderNewer