Live data from Hacker News

Viewing profile — ash_gti

ash_gti

HN member
Joined
Wed, Jul 24, 2013, 8:54 PM UTC
HN karma
242
Public activity
79 items

About ash_gti

John Harrison, iOS Dev at Google

Recent public activity

  1. comment
    Comment #40663893

    The haskell source has `let channel = "11"` vs `let channel = 11`. The example from the post is an example that looks like it should be pretty straight forward but the swift compil…

  2. comment
    Comment #40663702

    The type is an inferred integer literal in swift (in the swift standard this is the `ExpressibleByIntegerLiteral`, the string literals are `ExpressibleByStringLiteral` types). The …

  3. comment
    Comment #40662986

    Your example is different than the example in the post. Specifically, `channel = 11`, an integer. If it was a string then it parses very quickly.

  4. comment
    Comment #37999640

    You can use ‘atob’ and ‘btoa’ functions for some of that.

  5. comment
    Comment #37123654

    If you have a short lived CLI tool, disabling the GC might be useful but that’s likely an exceptional case.

  6. comment
    Comment #34053843

    I know most of these are compiler intrinsically but it’s good to have them standardized.

  7. comment
    Comment #33320534

    There is a setting in Preferences > Websites > Notifications to disable notifications entirely.

  8. comment
    Comment #31730460

    I dunno, then there would only be 2 actively maintained browser engines, Chrome and Firefox. Webkit is doing pretty good on https://wpt.fyi/interop-2022 so I'm not sure why Safari …

  9. comment
    Comment #31673312

    https://devblogs.microsoft.com/typescript/a-proposal-for-typ... Has additional context on this proposal and has previously been linked here.

  10. comment
    Comment #31371501

    There is queueMicrotask ( https://developer.mozilla.org/en-US/docs/Web/API/queueMicrot... ) to queue onto the end of the current iteration and you can use an `await 0;` to cycle th…

  11. comment
    Comment #30168865

    Node does support ESM now by default (and has supported it for a while behind a flag), https://nodejs.org/api/esm.html

  12. comment
    Comment #29313857

    > It doesn't break ARC right, it just won't do the automatic reference counting in C++ source. You can send it back and forth over the wall with CFBridgingRetain and CFBridgingRele…

  13. comment
    Comment #29312321

    If the object is not autoreleased then doing a release call will deallocate the object, otherwise it will be added to the nearest autorelease pool from the current stack and be dea…

  14. comment
    Comment #29311818

    The c++ wrappings break ARC, so if you use this library you'll have to manually retain/release any object. The autorelease pool is helpful if you autorelease an object but you'll n…

  15. comment
    Comment #27789571

    If you enable strict ( https://www.typescriptlang.org/tsconfig#strict ) or use the `strictBindCallApply` flag ( https://www.typescriptlang.org/tsconfig#strictBindCallApply ) it sho…

  16. comment
    Comment #27396255

    They went with a subset of C, its enough to write a working executable. Generally for a introduction tutorial to something as complex as writing a compiler a subset like what they …

  17. comment
    Comment #26149002

    TF can inline, but if it runs that optimization then the benchmark would be turned into a constant, so it wouldn't be measuring the call overhead of the way arguments are passed.

  18. comment
    Comment #26148960

    I think this is what WASM is meant to achieve. It allows for much more precise semantics without needing to parse an AST.

  19. comment
    Comment #24560410

    They didn't release the frameworks for those OSs. That's like how Catalysts runtime wasn't backported to older versions of macOS. They could decouple those frameworks from the OS, …

  20. comment
    Comment #24559945

    SwiftUI isn't tied to the OS version. It has a runtime API that should work with different versions of the OS. There were changes to the compiler that they didn't talk about until …

  21. comment
    Comment #24318421

    > * Apple does not allow other App Stores on their platform As a consumer, I see that as a feature not a bug. On the Switch, Play Station and Xbox I don't have other stores I can u…

  22. comment
    Comment #20112326

    How about using a web browser with JavaScript? Maybe not the best language for someone new but its widely available.

  23. comment
    Comment #19995197

    'i' suffix are often used in languages for complex numbers. For example, in ruby '1i' evaluates to 0+1i as a complex number. I suspect they didn't want to conflate the two types.

  24. story
  25. comment
    Comment #18620674

    Don't forget Opera is a re-skinned Chrome.