Live data from Hacker News

Viewing profile — bPspGiJT8Y

bPspGiJT8Y

HN member
Joined
Fri, Apr 14, 2023, 2:00 AM UTC
HN karma
38
Public activity
48 items

About bPspGiJT8Y

No profile information was provided.

Recent public activity

  1. comment
    Comment #40533053

    I'd like to believe this too, but given that medieval peasants and antique slaves worked more or less the same hours as we do I'm quite pessimistic. Whenever we automate something …

  2. comment
    Comment #40315671

    > And defining a function that will only accept particular variant is nice This is possible to achieve (or hack your way through, if you will) by parameterizing the type and using …

  3. comment
    Comment #40231900

    It is well known that Binance, among many other crimes, runs many internal trading desks which trade against Binance's own customers.

  4. comment
    Comment #40141837

    > so I eventually gave up and just made fish itself my nushell's completion engine That's an interesting idea. Do you have a link to show how you did this?

  5. comment
    Comment #40141728

    > BTW I believe `-C` will disable some cache checking, caching is enabled by default You're right, my memory has let me down. > Do you have any pointers for the "load on tab" idea?…

  6. comment
    Comment #40128606

    > much faster than zsh script completions I'm curious where did you get that from. Edit: I read the note in your dotfiles repo. Yes calling `compinit` on each shell invocation is g…

  7. comment
    Comment #40093742

    I'm shifting towards simply "not having" a home directory. Actual data is stored on other partitions, eg `~/git/project1` => `/git/project1`, `~/Pictures/Wallpapers` => `/data/Pict…

  8. comment
    Comment #40020575

    Not fast at all in my experience. Just running (for the first time) what would take seconds with something like `asdf` could take up to half an hour with Nix.

  9. comment
    Comment #39977710

    Gnome terminal would also need some unicode handling improvements, its current score in `ucs-detect` rating is D-[0]. [0] https://ucs-detect.readthedocs.io/results.html

  10. comment
    Comment #39970071

    This function would use an anonymous record: splitString :: { pattern :: String, string :: String } -> Array String splitString { pattern, string } = ... This function would use po…

  11. comment
    Comment #39959984

    > Because possibly you return the partial assuming it's a number, and try to use it somewhere else, possibly even in another file. Sorry, I must've been more explicit instead of im…

  12. comment
    Comment #39959831

    I don't really understand the distinction between "multi-arity" and "unary" functions. In my mental model, all functions are unary, it's just that in "traditional", non-FP language…

  13. comment
    Comment #39959786

    > What if you forget, not in quotes, to give the second argument? I will get a type error and it will take me 2-3 seconds to figure out what it is about. > Why on earth would you w…

  14. comment
    Comment #39958918

    In Gleam it also seems to be done well: https://tour.gleam.run/functions/function-captures/

  15. comment
    Comment #39958541

    > After like ten or fifteen hours of trying to understand what currying is, I still have no idea Maybe you could recall which learning materials you used?

  16. comment
    Comment #39787224

    Tree-sitter optimizes for performance (to use in editors), not for correctness. In fact even TS' core developers advocate for not bothering too much with correctness of grammars[1]…

  17. comment
    Comment #37621332

    > If you have pickRandom x y you would get nested Either's If this wasn't the case, how would the information about what you got be retained? It's either positional, or by a tag/ke…

  18. comment
    Comment #37619141

    > Either ,A>> doesn't express our intent for a function return or parameter type if we don't care about the position of A, just whether it is an A > so we'd want all nested variati…

  19. comment
    Comment #37618724

    So basically the idea here is that you want to have TS-style untagged unions, but instead they're also tagged, but still unify and compose the way they do in TS? Then why couldn't …

  20. comment
    Comment #37618511

    > Because your code might not need to care about the position you insert your A or B This is understandable. But what does it have to do with "collapsing" `a | a` into `a`? Through…

  21. comment
    Comment #37618198

    You can try Kakoune or Helix.

  22. comment
    Comment #37618069

    There's also a Chez backend in development for PureScript.

  23. comment
    Comment #37618031

    > because Either > cannot type check as Either Why would you want the former to type check as the latter? Where do you see the complexity?

  24. comment
    Comment #37617754

    > To be concrete, I am talking about tagged, disjoint union type But you just said "For example `A | B | A` is the same type as `A | B`". How would this be possible for tagged unio…

  25. comment
    Comment #37617438

    So you're talking about untagged unions? > This is useful as a shorthand when you don't want/need a new type to represent your problem, similar to tuples. Yes this is handled perfe…