Live data from Hacker News

Viewing profile — dcode

dcode

HN member
Joined
Sun, Jul 25, 2021, 11:43 PM UTC
HN karma
12
Public activity
18 items

About dcode

No profile information was provided.

Recent public activity

  1. comment
    Comment #39992674

    > the Web side is largely complete and successful Perhaps from a C++ perspective, say a monolith with kilobytes of bindings driving a canvas. Yet > the original purpose of Wasm inc…

  2. comment
    Comment #33807831

    I guess we are about to find out whether there is substance to the precedents. My bet is on "what can go wrong, will go wrong", even more so on Web scale. Let's hope I'm wrong.

  3. comment
    Comment #33806309

    I do understand the desire to switch all languages and systems to one encoding, of course. However, Switching a WTF-16 language to UTF-8 removes previously valid values from string…

  4. comment
    Comment #33805853

    In more technical jargon, it is about value spaces. All UTF-8 strings map to WTF-16 strings semantically (lists of Unicode Scalar Values are a subset of lists of Unicode Code Point…

  5. comment
    Comment #33803710

    To me it's not so much a question of what's the best / recommended (for new languages) / most used encoding. It's rather the observation that there are so many popular languages op…

  6. comment
    Comment #33802780

    That's not the issue / impression. The issue is that well-formed UTF-16 is rarely used in practice. All of JavaScript, Java, C#, Dart, Kotlin etc. effectively use WTF-16 for compat…

  7. comment
    Comment #32798467

    The value spaces are in fact asymmetric. In Unicode jargon, UTF-8 is a "list of Unicode scalar values" while WTF-16, i.e. UTF-16 as seen in practice, is a "list of Unicode code poi…

  8. comment
    Comment #32789966

    Except that picking the most restrictive option prevents two components that are using the same less restrictive semantics to communicate with each other securely (without throwing…

  9. comment
    Comment #32786048

    Despite that speed is not the critical concern (asymmetric value spaces are), UTF-8 must guard against invalid byte sequences, while WTF-16, where all possible values are valid as …

  10. comment
    Comment #32781125

    Well, I tried. Anyway, even if I was the abhorrent monster you keep painting in your almost exclusively ad hominem argumentation while accusing me of what you are undoubtedly guilt…

  11. comment
    Comment #32773628

    Allow me to focus on the technical arguments, that I think fall short. Sure, one can go and make a second string type, or a bunch of throwing APIs. I'd question that this actually …

  12. comment
    Comment #32772627

    Perhaps this is missing some necessary context. Note that the threads happened before a resolution, and have been created a few days before using them as an argument in Wasm. There…

  13. comment
    Comment #32567825

    It is almost funny, almost sad, that we were in this for nearly five years, every single day, and despite that a cartel created for the occasion completely evaporated us politicall…

  14. comment
    Comment #29595107

    AssemblyScript maintainer here. Can confirm, other language communities have practically zero influence on the design. In fact, AS was present during "specification" and has been c…

  15. comment
    Comment #27972573

    Sure, we could resolve this problem by either a) giving these languages a separate fitting string type to use internally or externally (Rust for instance can use 'string' everywher…

  16. comment
    Comment #27971944

    This is common indeed, and isn't a bug in the affected source languages for reasons. How it displays when printed is irrelevant. Here's Linus Torvalds explaining it better than I c…

  17. comment
    Comment #27967648

    At that time, it was ~ "you either stop advocating for the security concern, or we make sure you get nothing at all". In fact, I believe we would need to trap to at least make the …

  18. comment
    Comment #27954400

    The security aspect is separate from whether UTF-16 lowering and lifting is supported. One simply cannot roundtrip every possible DOMString, C#, Java etc. String through the single…