HN user

sixplusone

135 karma
Posts1
Comments71
View on HN

"johnnysweekends" testing Automotive 12v sodium-ion car starter battery.

I've been searching for information all over, and it's surprisingly hard to find the details. I see that sodium is much better than lead but not as good as lithium, but cheaper and nontoxic, so I went looking for why Pb batteries aren't dead yet and replaced by Na everywhere.

Looks like the alternators will have to be replaced (or can they be reprogrammed?). Any mechanics or engineers here have additional insights?

Also should be applicable to UPS batteries. Anyone building those?

For anyone else wondering: "cast into block" (^) is a non-standard lambda/closure declaration in C.

Also, Ritchie could have saved a lot of people a lot of hurt by using a "func" keyword.

You and flqn are trying to convince me that expected errors are not errors https://en.wikipedia.org/wiki/Happy_path

When I want a parameter is an integer, I don't check all the ways in which it's NOT an integer; the happy path is when it _is_ an int and the program can continue, and anything else is an _Error_. If it overflows, that's an error too.

i.e., happy means it's basically the longest path (aside from diagnosing the error).

The question is: should the subroutine set an error number or throw an exception? Knowing the cost for each might help me decide for various situations.

Understanding is not the same as performing. I can "understand" or get the gist of what is being said in german (or lisp, or rust, etc), but it's difficult to read and I can't write it; also could be understanding the mechanics or basic principles.

Literacy is complicated but indispensable in the last century.

integration between my desires and my actions

how did you decide to have these desires? if it's a good feeling, then you didn't decide that such a desire will give you this feeling; if it's based on a computed most-advantageous outcome, then you didn't decide that either. If it's a choice between the two, then who decides and how (infinite regression)?

The government has very deep pockets. And working for the biggest project of the century probably attracted decent talent, whereas there's no glory in writing supporting libs - you either did it right and nobody notices, or you messed up and get blame.

Messages via JSON 7 years ago

Also, this could be just a html page with a few lines of XMLHttpRequest/WebSocket code no?

Messages via JSON 7 years ago
  $json_array = array('reflapp'=>true,'message'=>'test');
shouldn't that be
  $json_array = array('refl.me'=>true,'message'=>'test');