I hereby claim:
- I am d on github.
- I am jesusabs (https://keybase.io/jesusabs) on keybase.
- I have a public key ASBsm4kYFjoCW6q2eUZvc53l0EH0J8ENP6r1aIn9p2H0iAo
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e -u -o pipefail | |
| pretty_log() { | |
| git --no-pager log --color --abbrev=16 --abbrev-commit --topo-order -n8 -S "${func_name}" -- '*.cpp' '*.h' '*.inl' | |
| } | |
| count_occurrences() { | |
| git --no-pager log --abbrev=16 --pretty=tformat:%h -n8 -S "${func_name}" -- '*.cpp' '*.h' '*.inl' | parallel -qj1 --load 125% -X git grep -cwF "${func_name}" {} -- '*.cpp' '*.h' '*.inl' |
| CREATE TYPE ban; | |
| CREATE FUNCTION banin(cstring, oid, int) RETURNS ban | |
| IMMUTABLE STRICT LANGUAGE internal | |
| AS 'bpcharin'; | |
| CREATE FUNCTION banout(ban) RETURNS cstring | |
| IMMUTABLE STRICT LANGUAGE internal | |
| AS 'bpcharout'; |
I hereby claim:
To claim this, I am signing this object:
Our tests for pg_upgrade is its own travesty:
| #!/usr/bin/env ruby | |
| require 'forwardable' | |
| FLIP_PATTERN = /^(?:(?<file>\w+\.c(?:pp)?):\d+:\d+: warning: )|(?:In file included from (?<file>\w+\.c(?:pp)?):\d+:)/ | |
| FLOP_PATTERN = /^\d+ warnings? generated\.$/ | |
| class Warnings | |
| include Enumerable |
| n\time (ms) \branch | 5X | moving avg backport patch |
|---|---|---|
| 16384 | 53.453 | 1694.091 |
| 32768 | 95.186 | 6640.734 |
| 65536 | 187.03 | 28848.276 |
| 131072 | 398.689 | 113056.203 |
| 262144 | 809.299 | 459619.552 |
| 524288 | 1813.492 | 1876957.178 |
| 1048576 | 4751.661 | 7464597.714 |
| # TODO: clang apt source | |
| # TODO: docker apt source | |
| sudo aptitude install -y vim-gnome fish cmake ninja-build g++ ccache libxerces-c-dev- git parallel clang-tidy-6.0 clang-format-6.0 pigz p7zip-full p7zip-rar rename git-cvs patchelf shellcheck- clang-6.0 lld-6.0 direnv | |
| # TODO: extract shellcheck probably from Docker Hub? |
| xargs --verbose --no-run-if-empty -n1 --arg-file ~/src/d/naughty-booleans-sources.txt clang-query-6.0 -f (egrep -v '^//' ~/src/d/naughty-booleans-clang-query.txt | psub) | |
| parallel --no-run-if-empty --keep-order -n1 --arg-file ~/src/d/naughty-booleans-sources.txt clang-query-6.0 --extra-arg="-fcolor-diagnostics" -f (egrep -v '^//' ~/src/d/naughty-booleans-clang-query.txt | psub) |
| #!/bin/bash | |
| set -e -u | |
| _main() { | |
| cat > .clang-format <<YAML | |
| --- | |
| Language: Cpp | |
| BasedOnStyle: Google | |
| AllowShortFunctionsOnASingleLine: None |