Live data from Hacker News

Viewing profile — ryanprichard

ryanprichard

HN member
Joined
Sat, Jul 20, 2013, 6:42 AM UTC
HN karma
48
Public activity
16 items

About ryanprichard

No profile information was provided.

Recent public activity

  1. comment
    Comment #13343136

    To do that, you have to attach the conhost.exe process to its own console with AttachConsole, right? I tried that and also noticed the deadlock. An out-of-context handler avoids th…

  2. comment
    Comment #13334249

    Yeah, I considered that route, but I was concerned that it'd be unreliable -- maybe with other programs doing clever tricks with import/export tables, or maybe with antivirus. I ca…

  3. comment
    Comment #13331158

    Yes, it's a tiny program that (1) detaches the console, (2) attaches a new console, (3) closes all screen buffer handles, then (4) creates a new screen buffer. The fourth step caus…

  4. comment
    Comment #13325637

    Regarding a public API, this GitHub comment suggests that people at Microsoft are working on it.[1] Of course, Microsoft can't commit to anything. As the winpty maintainer, I hope …

  5. comment
    Comment #11460709

    FWIW, the tis-interpreter doesn't flag that code (aside from the missing semicolon). I think you're right, though, that it has UB.

  6. comment
    Comment #11331994

    If you haven't seen it, I'd also recommend looking at the excel1040[1] spreadsheet. It's been developed for about 20 years by a single author, AFAICT. It has numerous forms, schedu…

  7. comment
    Comment #11138443

    I tried it on this bit of code, but it didn't detect a type mismatch. Is it supposed to? def foo(n: int): pass def bar(): foo("123") It does detect this mismatch: def foo(n: int): …

  8. comment
    Comment #11078525

    _Generic might not work so well to handle int vs double vs pointer-to-T. Apparently, even unselected associations must type-check. e.g.: Here's a simple implementation: enum AnyKin…

  9. comment
    Comment #11078450

    Compound literals were never formally added to C++. Still, that hasn't stopped various front-ends (including GCC and Clang) from adding them to their C++ dialects. My code compiles…

  10. comment
    Comment #11078418

    My impression is that it's impossible in MSVC's C dialect today. (Obviously there's std::min in C++.) AFAICT, it could be done using _Generic and inline functions, if/when MSVC add…

  11. comment
    Comment #11077970

    The example does not actually use compound literals. (i.e. _arg's initializer would work in C89.) It does use two other C99 features, though -- variadic macros and a for-loop-scope…

  12. comment
    Comment #10947257

    Someone just sent a patch this morning upgrading it to Clang 3.7, which is available in the Ubuntu 15.10 repository, but not earlier. There are also official x64 llvm.org binaries …

  13. comment
    Comment #10947157

    SourceWeb needs a list of C++ invocations (compile_commands.json), but it ignores compiler errors, so I'm not sure how precise the invocations need to be. If all the C++ source fil…

  14. story
  15. comment
    Comment #10416548

    Will this OpenSSH server be able to run interactive console programs (like cmd.exe or python.exe), or will it be limited to (say) PowerShell? Windows doesn't have a good API for ho…

  16. comment
    Comment #9164554

    At least there seems to be a supported method for updating the 14.04 kernel: https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes#LTS_Hardware... Apparently, Ubuntu 14.04.2 installs a 3…