Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drmikeando
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
drmikeando
7mo ago
To me the neat bit isn't that it got the exponential decay right - that's pretty standard, its that it realised there were two different timescales for the decay and got ball-park numbers for them pretty well. This is the kind of
2.
▲
by
drmikeando
7mo ago
While this is a great article, I feels it buries the lede. For me, the key insight was from the last paragraph of the article: C++23 introduces "deducing this", which is a way to avoid the performance cost of dynamic dispatch wit
3.
▲
by
drmikeando
1y ago
My mind was exploded by this somewhat similar technique https://en.wikipedia.org/wiki/Tanh-sinh_quadrature - it uses a similar transformation of domain, but uses some properties of optimal quadrature for infinite seque
4.
▲
by
drmikeando
1y ago
You can view this result as the convolution of the signal with an exponentially decaying sine and cosine. That is, `y(t') = integral e^kt x(t' - t) dt`, with k complex and negative real part. If you discretize that using simple
5.
▲
by
drmikeando
3y ago
IMO the reason the compiler doesn't add special cases for the simplest version is that it doesn't know which of its _many_ special cases to use. If you actually use the unoptimised version of the code like void withSwitch(ve