Recent submissions

Comment · 1 year ago
"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?

Comment · 1 year ago
Comment · 2 years ago
> (the feeling of seeing), but it's just an illusion.

Illusion to whom? what is experiencing the illusion?

The feeling is consciousness, so this seems to be just adding an extra step in between.

Comment · 2 years ago
I believe that the documentation is a huge reason why php became so dominant on the net. Human curated, many real-work examples and helpful comments to get things done.

It's all I needed to learn web dev.

Comment · 3 years ago
Comment · 5 years ago
Do you really need "infinite" energy? the universe is a giant clock, a perfect timekeeping device for itself; but then we have nothing to compare it to.
Comment · 6 years ago
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.

Comment · 6 years ago
Getting to work or staying home has nothing to do with whether I'm writing C or ruby.

For the next 30 years I have to put effort into something, and the number of tasks that need to be done never ends, no matter how quickly I complete them.

Comment · 6 years ago
But humans don't hibernate between tasks. I continue living, using about the same amount of energy and oxygen. When one project is done, move on to the next (or have to come up with something else to do).
Comment · 6 years ago
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.

Comment · 6 years ago
That's a strange idea of what "happy path" means. An invalid request is, by definition, an error or exception.
Comment · 6 years ago
My web server gets about 1000 to 1 hits of hacking attempts to valid requests (malformed headers, etc.) so I hope nginx and fcgi handle errors efficiently, because I pay for those cycles.
Comment · 7 years ago
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.

Comment · 7 years ago
Don't forget building a new direct pipeline for sending billions to Putin.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton