1,027 karma · joined Jun 13, 2008 (18y ago) · 143 submissions
comment 8y ago · link · parent
Haskell: https://github.com/codahale/hs-shamir Go: https://github.com/codahale/sss Rust: https://github.com/codahale/sss.rs Java: https://github.com/codahale/shamir
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 11y ago · link · parent
And that 'fizzle' used to mean 'fart quietly'? http://www.etymonline.com/index.php?term=fizzle
And that 'wench' used to mean 'child'? http://www.etymonline.com/index.php?term=wench
And that 'meat' used to mean 'food'? http://www.etymonline.com/index.php?term=meat
Etymology is fascinating (a word which itself may be related to the Latin 'fascinum', or penis).
comment 11y ago · link · parent
http://wholehealthsource.blogspot.com/2015/08/a-new-human-tr...
http://wholehealthsource.blogspot.com/2015/08/more-thoughts-...
comment 11y ago · link · parent
The code you write is either thread-safe, used in a single-threaded context, or a pinless grenade.
comment 11y ago · link · parent
If you have a bunch of immutable state, then build unexported package variables in the package’s `init` func and export funcs which use those variables.
If you have a bunch of mutable state, then don’t use a singleton.
comment 11y ago · link · parent
First, you're describing RSA signatures. "Encrypt X with your private key" means "X^D mod N" which is how RSA signatures work. In the context of RSA-based cryptosystems, it's clearer to just say "signed".
Second, the ghsign library uses the `RSA-SHA1` signer, which runs the message through SHA1 before signing it. The reason it does this is because "textbook" RSA (i.e. RSA on arbitrary messages) is vulnerable to chosen-plaintext attacks.
comment 11y ago · link · parent
comment 11y ago · link · parent
* Non-repudiable. Everything you send is signed with the public key on your GitHub account.
* Uses SHA1. (via the ghsign NPM module)
* Uses mDNS and BlueTooth LE and a gossip topology algorithm, so I'm not sure what would prevent a random third party from eavesdropping.
I would hesitate to market this as "secure".
comment 11y ago · link · parent
comment 11y ago · link · parent
As for aws-go, I had some APIs I needed to use and a machine-readable description of those APIs. The choice was pretty clear.
comment 11y ago · link · parent
I just opened up this repo yesterday: https://github.com/stripe/aws-go.
It's really raw, but it uses the JSON API descriptions from botocore to generate Go clients for all 40 public AWS services.
comment 12y ago · link · parent
A single producer and single consumer means zero contention for either for most implementations. How well does this scale to your actual workload? What’s the overhead of a producer or a consumer? What’s the saturation point or the sustainable throughput according to the Universal Scalability Law? It’s impossible to tell, since this is a data point of one, which means it can’t distinguish between a system which has a mutex around accepting producer connections and a purely lock-free system. And that’s a shame because wow would those two systems have very different behaviors in production environments w/ real workloads.
Finally, measuring the mean of the latency distribution is wrong. Latency is never normally distributed, and if they recorded the standard deviation they’d notice it’s several times larger than the mean. What matters with latency are quantiles, ideally corrected for coordinated omission (http://www.infoq.com/presentations/latency-pitfalls).
This is not a benchmark, this is a diary entry.