Live data from Hacker News

Viewing profile — stephencanon

stephencanon

HN member
Joined
Wed, Dec 21, 2011, 1:22 AM UTC
HN karma
5,558
Public activity
1,609 items

About stephencanon

I manage the low-level swift team. Previously I worked on high-performance math libraries.

Recent public activity

  1. comment
    Comment #49130206

    That’s exactly the same rule with more words (postfix = right, prefix = left).

  2. comment
    Comment #49125153

    This comes up every so often, and while it's sort of almost true and attractive, it isn't actually correct. The correct rule is "follow the C grammar". An easier to remember and al…

  3. comment
    Comment #49091497

    It's very cool. Thank you!

  4. comment
    Comment #48676985

    "Centrist" in practice means "more or less content with the status quo." That is fundamentally a conservative position orthogonal to any notion of "facts".

  5. comment
    Comment #48511811

    The work discussed in this post shipped in the OS last year (fall 2025), so nothing here is dependent on very recent changes.

  6. comment
    Comment #48439916

    Field hockey is almost exclusively a girls sport in the US, while boys have (American) football in the fall. Both draw from the potential pool of soccer players in US middle and hi…

  7. comment
    Comment #48361605

    “in a real race we have no actual chance of winning” is an absolutely wild thing to say in response to a link to a real race in which the human has won the last few years in a row.…

  8. comment
    Comment #48063754

    What sort of engineering standards are these Cybertrucks built to? Oh, very rigorous engineering standards. The wheels aren't supposed to fall off for a start.

  9. comment
    Comment #48014034

    We have a ground-source heat pump for our ADU. We did it because we were curious about just how efficient we could make the house, but I don't expect that it will ever break even f…

  10. comment
    Comment #47964078

    Prior to the current generation Intel designs, Apple’s branch predictor tables were a good deal larger than Intel’s IIRC, so depending on benchmarking details it’s plausible that A…

  11. comment
    Comment #47951132

    Must be the water.

  12. comment
    Comment #47813074

    The CORE-MATH project authors, most of whom are French academics (including the author of the linked paper). I don’t know of any interesting work in this space that came out of Red…

  13. comment
    Comment #47534707

    "I'd like to thank my mother, Ayn Rand, and God" is the usual example. Yes, you can reorder the list to remove the ambiguity, but sometimes the order of the list matters. The seria…

  14. comment
    Comment #47446366

    That would fall under "more constrained", due to process limits.

  15. comment
    Comment #47439789

    Enlarging a branch predictor requires area and timing tradeoffs. CPU designers have to balance branch predictor improvements against other improvements they could make with the sam…

  16. comment
    Comment #47400611

    Your students should be able to figure out if a computation is exact or not, because they should understand binary representation of numbers.

  17. comment
    Comment #47344339

    You can often eke something out for order-four, depending on uArch details. But basically yeah.

  18. comment
    Comment #47340404

    For throughput-dominated contexts, evaluation via Horner's rule does very well because it minimizes register pressure and the number of operations required. But the latency can be …

  19. comment
    Comment #47338970

    When Intel specced the rsqrt[ps]s and rcp[ps]s instructions ~30 years ago, they didn't fully specify their behavior. They just said their relative error is "smaller than 1.5 * 2⁻¹²…

  20. comment
    Comment #47337582

    For the asinf libcall on macOS/x86, my former colleague Eric Postpischil invented the novel (at least at the time, I believe) technique of using a Remez-optimized refinement polyno…

  21. comment
    Comment #47337506

    Ideally either one is just a library call to generate the coefficients. Remez can get into trouble near the endpoints of the interval for asin and require a little bit of manual in…

  22. comment
    Comment #47337427

    Newer rsqrt approximations (ARM NEON and SVE, and the AVX512F approximations on x86) make the behavior architectural so this is somewhat less of a problem (it still varies between …

  23. comment
    Comment #47337022

    These sorts of approximations (and more sophisticated methods) are fairly widely used in systems programming, as seen by the fact that Apple's asin is only a couple percent slower …

  24. comment
    Comment #47322787

    Yann is definitely more well-known outside of academia. Inside academia, it's going to depend a lot on your specific background and how old you are.

  25. comment
    Comment #47261419

    Mechanically, you're probably right, but the screen-centric controls of the newer generation are _awful_ by comparison to the F generation's physical buttons and dials (this isn't …