Better HN
topnewbestaskshowjobs
Log inSign up

richyliu

23 karma · joined Jun 25, 2020 (6y ago) · 5 submissions

Submissions

comment 3y ago · link · parent

Reversible circuits [1] built with superconductors could generate no excess heat at all.

[1]: https://spectrum.ieee.org/the-future-of-computing-depends-on...

comment 5y ago · link · parent

Here's the specific thread from smdiehl talking about how tethers are not actually worth $1 as they claim [1].

[1] https://mobile.twitter.com/smdiehl/status/139366981222046516...

comment 5y ago · link · parent

This seems similar in concept to Haskell’s QuickCheck[1]. Both generate tests based on an invariant/“property” of the output and can narrow down to the simplest failing test case.

[1]: https://hackage.haskell.org/package/QuickCheck

comment 6y ago · link · parent

Here's more information on the 3 new logical assignments

Logical OR assignment (||=) [1] Logical AND assignment (&&=) [2] Logical nullish assignment (??=) [3]

An example for OR assignment:

  let a = '';
  a ||= 'hello';
  console.log(a); // prints 'hello'
  a ||= 'not this';
  console.log(a); // prints 'hello'
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [2]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [3]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

comment 6y ago · link · parent

Although there is a Github page, the source code for hand-js seems to be completely obfuscated and restricted to working on localhost only. Handtrack.js[1] looks to be a better open source alternative.

[1]: https://github.com/victordibia/handtrack.js/