Live data from Hacker News

Viewing profile — ywei3410

ywei3410

HN member
Joined
Sat, Aug 29, 2020, 4:57 PM UTC
HN karma
230
Public activity
155 items

About ywei3410

No profile information was provided.

Recent public activity

  1. comment
    Comment #36820417

    There's also the new JVM option which eludes me at the moment which sweeps the strings which are promoted to the older generation and interns them. Not certain about whether `Strin…

  2. comment
    Comment #35708136

    They are genuine issues, within Rust, but the way you /categorize/ the severity of the issue is different within language communities. They don't impact usability /much/ because of…

  3. comment
    Comment #35702930

    Not really third-party; ocaml-ppx is something similar to `javax` in the Java space? But it is optional and doesn't come bundled with OCaml. Recursive structures are only rare in R…

  4. comment
    Comment #35702277

    They require `sexp_of_t` and `t_of_sexp` because of their workflow being based on them; such as expectation testing [1] and tools such as [2]. It's a less noisy alternative to json…

  5. comment
    Comment #35702212

    > You gave a beautiful answer about programming language You do the same thing as in Rust, Scala or Haskell and derive the printer [1]. Then at the callsite, if you know the type t…

  6. comment
    Comment #35701280

    Would you not consider the object system to be ad-hoc polymorphism?

  7. comment
    Comment #35701022

    I don't think this list is fair at all. > No standard and easy way of implementing interfaces Firstly another commenter has mentioned [1] modules as interfaces. There is also the o…

  8. comment
    Comment #35700527

    The other comments have already covered the how, but I'd like to add that the mechanism used extensively in Nix [1]. [1] https://nixos.org/

  9. comment
    Comment #35647125

    The recipe is terrible, it neither has the detailed enough ingredients list nor the cooking technique for carbonara. Someone who hasn't cooked a carbonara just isn't going to be ab…

  10. comment
    Comment #34775541

    I have seen this technique (send all the indexed search terms) a few times in the wild. Racket (a scheme derivative specifically made for teaching) has a search page where everythi…

  11. comment
    Comment #34686076

    (IANAL) The most horrible part is that _they are allowed to drop their case anytime_ in the UK civil court. In previous cases when the accused has run out of money, the defendants …

  12. comment
    Comment #34294225

    Emacs launches processes on the `PATH` so using `direnv`, you can change the `PATH` to the version of `rust-analyzer`/`gopls`/`python`/`psql`/`protoc` that you're using as well as …

  13. comment
    Comment #34066343

    I really feel this is an infra problem rather than a dev problem though; the reverse-proxy should strip 5xx response bodies before the egress no?

  14. comment
    Comment #34037147

    It's complex [1], OCaml does have a unboxed representation of floats in arrays [2] and records (provided all fields are floats), but elsewhere they are indeed boxed. [1] https://di…

  15. comment
    Comment #33991147

    Have you heard of ReScript [1]? [1] https://rescript-lang.org/

  16. comment
    Comment #33889522

    Presumably because of emacs-ng [1], from the page " additive native layer over emacs, bringing features like Deno's Javascript and Async I/O environment, Mozilla's Webrender,". [1]…

  17. comment
    Comment #33802051

    Thanks for the link; not sure how I missed that completely while going through the thread documentation. I completely forgot about native modules completely... I don't think I disa…

  18. comment
    Comment #33801780

    I meant exactly that, both core JS and ELisp share the same model of a global interpreter where blocks of code can be interleaved and yielded (both manually and in response to exte…

  19. comment
    Comment #33800527

    Regarding threads, they are definitely more co-operative co-routines than threads. However, if I recall there are only a few calls which can switch the context; the usual culprits,…

  20. comment
    Comment #33730904

    Obligatory link: [1] https://github.com/ethan-leba/tree-edit

  21. comment
    Comment #33730883

    It already has a process/event queue like JS since Emacs 26. What did you mean in particular?

  22. comment
    Comment #33730853

    Emacs threads are not parallel and are co-operative rather than preemptive. The co-operative parts mean that you can guarantee atomic updates very easily when updating global varia…

  23. comment
    Comment #33108099

    I agree, You can /always/ go from `f : t -> r` to `f' : t option -> r option` with `Option.map` (ML-syntax, translate to w/e type syntax you're most familiar with), but the reverse…

  24. comment
    Comment #32810812

    I think it's worth noting that when we talk about a system operating on a set of components, it literally means a function which either reads and creates new components or entities…

  25. comment
    Comment #32779960

    Nvidia has a visual difference, see the table [1]. [1] https://developer.nvidia.com/blog/introduction-turing-mesh-s...