Recent submissions

Comment · 3 years ago
Looks like angle sum identity.

    cos(x+y) = cos(x)*cos(y) - sin(x)*sin(y)     (always)
             ~ cos(x)*1      - sin(x)*y          (if y small)
Can't speak for the validity of small angle assumptions though.
Comment · 3 years ago
Polynomials with the coefficients defined in the sin and cos arrays (and likely in the referenced literature).
Comment · 3 years ago
Comment · 5 years ago
>Certainly do not use finite-math-only when dealing with external data.

so... never?

Comment · 6 years ago
Because the danger of fume is negligible. It's a thing if you put it in a 2m^2 storeroom and sniff the exhaust for 8 hours straight but in any other case it doesn't come close to concentrations you get on the street anyway.
Comment · 6 years ago
In isolation, no. You could instead spend your time optimizing something else that's currently slower and speed that up instead.
Comment · 6 years ago
Comment · 6 years ago
I think he has that correct. Ime it's split on east/north vs. north/east but wgs84 is very dominant with lat/lon.
Comment · 6 years ago
> I think the only reason people enjoy it is the fact that they have not gotten a chance to really spend time in a good tiling window manager on X11/GNU/Linux.

I did and switched back to floating. AMA

Comment · 6 years ago
And how much more do they cost in comparison with hooking a few copper wires to a simple copper plug manufactured in china?
Comment · 6 years ago
> Programming languages will generally crash at runtime when an unrecoverable error occurs (index out of bounds, memory allocation failed, null pointer, etc).

JS would like to have a word with you.

Comment · 6 years ago
It is useful with some badly written build systems that think they have to write every invocation of gcc to stdout. Like every badly written Makefile out there. Or `cat myapp/log/yesterday.log`.

You can work around both but it's clunky. And also it's a thing that's not a must have, just a nice(r) to have.

Comment · 6 years ago
Maybe, maybe not. Is the potential benefit even worth fighting over? Style is just full of so many subjective details that every discussion ends in. And everybody has their favorite it's un-fucking-readable. My oppinion converged on "Fight it out and tell me what options in $formatter I need to set. Don't even tell me reasonings, just the options. leaves room". I'd rather drink coffee than have the next horizontal real estate vs. parameter alignment debate.

The argument to match clauses/scoping for example is weird in a world where a formatter automatically applies indentation. It might make sense when you have to manually check them on print-outs without an Editor. I'd argue GNU style fulfills that role even better or Horstmann if you care about vertical real estate (or be daring and combine the two). And now everyone hates me.

Comment · 6 years ago
On the other hand I understand de data model of git and can't to the most basic shit without looking up which invocation I need via search engine/man pages. Like... deleting a branch `git branch -d` (-D for forced deletion). Deleting a remote? `git remote rm`. Knowing the model teaches me nothing about the ui.
Comment · 6 years ago
But if we get rid of a whole class of bugs and vulnerabilities, the number of bugs will go down, no?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton