Live data from Hacker News

Viewing profile — StephanTLavavej

StephanTLavavej

HN member
Joined
Sun, Jul 20, 2014, 3:36 PM UTC
HN karma
884
Public activity
160 items

About StephanTLavavej

Principal Developer, Visual C++ Libraries. Pronounced Steh-fin Lah-wah-wade, prefers STL.

Home: stl@nuwen.net

Work: stl@microsoft.com (I work for Microsoft, but I don't speak for them.)

Recent public activity

  1. comment
    Comment #33398012

    Yep, that's my pull request. :-) At the moment, it's usable if you build the microsoft/STL repo with VS 2022 17.4 Preview 3 or later. When VS 2022 17.5 Preview 1 ships (in the very…

  2. comment
    Comment #33397849

    Note that the O-rings were 12 feet in diameter - they encircled the entire solid rocket booster. They definitely didn't cost less than a dollar.

  3. comment
    Comment #32976924

    I'm glad you liked my charconv talk! Here's a complete list of my recorded conference talks: BoostCon/C++Now 2012: Regex In C++11 And Boost: https://youtu.be/mUZL-PRWMeg GoingNativ…

  4. comment
    Comment #32970570

    std::format is available, with all C++20 Defect Reports implemented, in VS 2019 16.11.14 (and all later 16.11.x) and VS 2022 17.2 (and all later 17.x).

  5. comment
    Comment #31997596

    It’s actually inverse cube for magnets - see https://en.wikipedia.org/wiki/Force_between_magnets : “One characteristic of a dipole field is that the strength of the field falls off…

  6. comment
    Comment #31229718

    Here’s what we do in MSVC’s STL: constexpr bool test_is_even() { assert(is_even(0)); assert(!is_even(1)); // … more test coverage return true; } int main() { test_is_even(); // run…

  7. comment
    Comment #30583347

    > I'm curious if anybody is working to make C++ faster to compile. Yes - C++20 added support for modules to the Core Language (both "header units" and "named modules"; header units…

  8. comment
    Comment #30055624

    Can you expand on how Roll breaks down when the players are trying to win?

  9. comment
    Comment #29294662

    Thank you!

  10. comment
    Comment #29294201

    I opened the spreadsheet, and now I can't remove it from my list of Google Sheets (unlike most shared spreadsheets). Am I missing some obscure way to remove it, despite the Remove …

  11. comment
    Comment #28899866

    MSVC has /O1 and /O2 (and /Os), but not /O3. See https://docs.microsoft.com/en-us/cpp/build/reference/compile... . (I work on MSVC's STL.)

  12. comment
    Comment #28769465

    Modern processors have integrated “firmware” TPMs, so you shouldn’t need a discrete module. See https://arstechnica.com/gadgets/2021/06/heres-what-youll-nee... for some details. I …

  13. comment
    Comment #28065716

    Well beyond exploring - microsoft/STL runs libc++’s test suite for every PR, skipping a set of known failures (for product bugs, test bugs, etc.), see https://github.com/microsoft/…

  14. comment
    Comment #26290004

    On the "How Was It Typed" page, Note 6 and beyond are using the same image, and link to an " http://xxxx " placeholder. Different images appear to have been intended (e.g. a Roman …

  15. comment
    Comment #25723783

    https://www.planetary.org/articles/08190630-curiosity-wheel-... explains the root cause.

  16. comment
    Comment #24939577

    That “weirdness” is just scientific notation, which the Ryu implementation always emits. It is “superficial” in the sense that it’s separate from the core algorithm. When I adapted…

  17. comment
    Comment #22913853

    We actually do use libc++'s test suite, which has found several bugs, but not this one (apparently because they don't yet have std::boyer_moore_searcher).

  18. comment
    Comment #22903827

    > you're guaranteed to have some bugs when implementing BM. Writing your own string search function seems nearly on the same level as implementing your own cryptographic functions,…

  19. comment
    Comment #22903765

    Very interesting, thanks!

  20. comment
    Comment #22903742

    Indeed, the randomized test in this PR uses alphabets from AB to ABCDEF, because I noticed the same thing - small alphabets make repetitions more likely, which are the tricky cases…

  21. comment
    Comment #22899085

    Apparently there are multiple fixes, some of which are said to be simpler. See https://github.com/microsoft/STL/issues/727 and the cited comments within, which quote Knuth. (I'm le…

  22. comment
    Comment #22899073

    I conclude that usage of std::boyer_moore_searcher is relatively low, despite this C++17 feature shipping in VS 2017 15.3 (August 2017). "www" triggers the bug like all 3-character…

  23. comment
    Comment #22898733

    This sounds like the vector >> fiasco, where a vector contains elements that are movable-only (you can't copy a list >, only move it), yet with throwing move constructors (as MSVC'…

  24. comment
    Comment #22898657

    I believe that fuzz testing would have found it, yes. I'm not sure if fuzz testing would have been guided towards highly repetitive patterns, given the relative lack of branches in…

  25. comment
    Comment #22898611

    After comparing the outputs of the old and new algorithms, I believe that a needle needs more than two repeats in order to trigger the bug. That is, "aa" and "abab" don't trigger t…