Live data from Hacker News

Viewing profile — ycitm

ycitm

HN member
Joined
Fri, Apr 05, 2013, 8:12 PM UTC
HN karma
493
Public activity
46 items

About ycitm

[ my public key: https://keybase.io/richardtowers; my proof: https://keybase.io/richardtowers/sigs/M-8IG90NBwlLwpscBH7FdJjkNfov9VkYKP9rR6jHYIQ ]

Recent public activity

  1. comment
    Comment #48269227

    The next sentence in the quote hasn't aged so well - "What weather they shall have is not ours to rule."

  2. comment
    Comment #44074231

    Most importantly, this means my type system N-queens solution now works for an 8x8 chessboard (actually up to 10x10) instead of complaining about recursion depth: https://www.richa…

  3. comment
    Comment #43654118

    Doesn't seem to be any discernable improvement on the Zoom Cat Lawyer.

  4. comment
    Comment #35139862

    You can also play around with the code in the TypeScript playground: https://www.typescriptlang.org/play?#code/PTAEEkDsAsEMBsCmAa...

  5. comment
    Comment #35139821

    Ah, thank you so much! Great spot. I've corrected this, and credited you in the errata - https://www.richard-towers.com/2023/03/11/typescripting-the-...

  6. comment
    Comment #35126970

    I don't think there's any way to do iteration in the type system (other than recursion), so there's no way around it. I considered forking the compiler to set a deeper limit, but a…

  7. comment
    Comment #35124875

    I wondered if anyone would spot this :) There's a recursion depth limit of 500 on the TypeScript compiler, which prevents this solution working for N > 7 Even Aphyr's original Hask…

  8. comment
    Comment #35122644

    The series is actually by Aphyr: https://aphyr.com/tags/interviews This post is a pastiche of https://aphyr.com/posts/342-typing-the-technical-interview

  9. comment
    Comment #35122492

    The runes are mostly "just because", but there is a reason. Ideally, I would have written: type Nil = unique symbol Which would ensure the Nil type wouldn't match with anything but…

  10. story
  11. story
  12. story
  13. comment
    Comment #15352351

    If you've got any experience or interest in programming, I'd recommend having a stab at Google Summer of Code[0]. [0] - https://developers.google.com/open-source/gsoc/

  14. story
  15. comment
    Comment #13987851

    One of my new years resolutions was to learn to type faster. To get some practice I started taking notes in all the meetings I attend. This wasn't common practice in my team before…

  16. comment
    Comment #13457944

    If you have control of your nameservers you can use cloudflare's free TLS offering and keep your current webhost.

  17. comment
  18. comment
  19. comment
    Comment #12483169

    Surround support was just added in IdeaVim 0.46. From the release notes: Support for vim-surround commands ys, cs, ds, S, enable it with set surround in your ~/.ideavimrc

  20. comment
    Comment #12401896

    Looks like it's just an optimization. If you change to let test_curry x y = x + y + x You get the expected output function f(param) { return test_curry(32, param); }

  21. comment
  22. comment
    Comment #12192152

    You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.

  23. comment
    Comment #12150517

    At least in new versions of Chrome, NodeList is iterable, so you can use forEach and map on it. https://medium.com/@devlucky/nodelist-object-is-finally-an-i...

  24. comment
    Comment #12125050

    Some nice intuitive stuff in the help, too. :help paragraph [...] The default is "IPLPPPQPP TPHPLIPpLpItpplpipbp" [...] (they're nroff macros, but pretty baffling to a beginner)

  25. comment
    Comment #11715586

    Perhaps Tōkaidō Shinkansen would be a better example? 331 trains / day, 391 thousand passengers / day according to: http://english.jr-central.co.jp/company/ir/annualreport/_pdf... …