Better HN
topnewbestaskshowjobs
Log inSign up

CapacitorSet

1,489 karma · joined Jul 27, 2016 (10y ago) · 313 submissions

[ my public key: https://keybase.io/capacitorset; my proof: https://keybase.io/capacitorset/sigs/3XQYiFYsETBVes6mFixMECaVoMYCJBjVFgwf6JikpeY ]
Submissions

comment 10y ago · link · parent

If anyone is interested, this is known as p-hacking in statistics (https://en.wikipedia.org/wiki/Data_dredging), and works in a similar way.

For instance, you have a statistical population of one hundred men and one hundred women: you collect as much data as possible about them - as many features as possible, actually - until you find something which happens to be statistically significant for your group (eg. salt consumption). Then, you publish your results, pretending that the feature you found was the original hypothesis for the study ("Our study confirms that salt consumption is higher in males.")

comment 10y ago · link · parent

I wonder if such a "low-level" coding style, based on bitfields and state machines, generally leads to better performance than more abstract patterns. While the former is close to how a human would design hardware for that task, the latter can be better optimised by the compiler.

303.

Identity/Persona Shutdown Guidelines for Reliers(wiki.mozilla.org ↗)

118 points · by CapacitorSet · 10y ago · 49 comments

comment 10y ago · link · parent

>I don't neccessarily think vscode needed to reach out to NPM to let them know they were going to be consuming their public API.

VSCode is used by a non-negligible number of users, and seems to rely on npm to operate at its best. It would have been good etiquette to let npm know, even though they couldn't forecast this exact situation.

comment 10y ago · link · parent

Why not both? It is trivial to make a circuit such that the LED is on if either there is power to the camera, or the software tells you to.

comment 10y ago · link · parent

Still, I don't think you can use it to avoid (physical) crashes due to an incorrect algorithm, simply because theorem provers work on a cognitive basis but control systems operate on continuous fields (i.e. transfer functions defined over the complex numbers).

307.

Analysis of a decentralized internet worm for IoT devices [pdf](security.rapiditynetworks.com ↗)

3 points · by CapacitorSet · 10y ago · discuss

comment 10y ago · link · parent

Thank you for your feedback.

* I don't think the asynchronous flow can be further simplified. If you do find a sleek solution, do submit a PR, or even an issue with some sample code.

* Stack overflow is not an issue at this time (and even less in the future, with tail call optimization in V8), except for pathological objects. As such, I didn't use lodash, to keep the library as small as possible.

* JSON.parse errors are not an issue, under the assumption that the Redis database is only written to by Rebridge itself. If you find otherwise, do submit an issue. Circular references are indeed a known limitation, documented in the README.

* Thanks, I removed it in beda881. It was probably a debug line.

For the sentinel, I haven't yet had to use it (I used it in a small Telegram bot with a single Redis server on a cheap VPS). I'll open an issue for that.

comment 10y ago · link · parent

What do you mean by micros?

Anyway, yeah, it's just meant to be some sort of synchronous syntactic sugar on Redis.

Edit: I think you meant macros. In that case, consider that it's not as simple as that, because a) the redis library is only asynchronous, and b) such an approach requires to implement wrappers for every function that writes to the object, eg. Array.proto.splice.

310.

Show HN: Rebridge – A transparent bridge between JavaScript and Redis(npmjs.com ↗)

57 points · by CapacitorSet · 10y ago · 21 comments

311.

Bitmessage: a decentralized, encrypted, trustless communications protocol(en.wikipedia.org ↗)

70 points · by CapacitorSet · 10y ago · 26 comments

312.

Box-js – a tool for studying JavaScript malware(github.com ↗)

2 points · by CapacitorSet · 10y ago · discuss

1
7891011