Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ycitm
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
ycitm
4mo ago
The next sentence in the quote hasn't aged so well - "What weather they shall have is not ours to rule."
2.
▲
by
ycitm
1y ago
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.richard-towers.com/2023/03/11/type
3.
▲
by
ycitm
1y ago
Doesn't seem to be any discernable improvement on the Zoom Cat Lawyer.
4.
▲
by
ycitm
4y ago
You can also play around with the code in the TypeScript playground: https://www.typescriptlang.org/play?#code/PTAEEkDsAsEMBsCmAa...
5.
▲
by
ycitm
4y ago
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.
▲
by
ycitm
4y ago
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 at some point Typescript itself is going to st
7.
▲
by
ycitm
4y ago
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 Haskell solution only demonstrates N = 6, so in som
8.
▲
by
ycitm
4y ago
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.
▲
by
ycitm
4y ago
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 itself. Unfortunately, the compiler d
10.
▲
TypeScripting the technical interview
(richard-towers.com)
727 points
by
ycitm
4y ago
|
159 comments
11.
▲
The impact of removing jQuery on our web performance
(insidegovuk.blog.gov.uk)
2 points
by
ycitm
4y ago
|
0 comments
12.
▲
How and why we removed jQuery from Gov.uk
(insidegovuk.blog.gov.uk)
49 points
by
ycitm
4y ago
|
43 comments
13.
▲
by
ycitm
9y ago
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.
▲
Lessons from last week’s cyberattack
(blogs.microsoft.com)
377 points
by
ycitm
9y ago
|
282 comments
15.
▲
by
ycitm
9y ago
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, but I've found it to be really useful. I've
16.
▲
by
ycitm
10y ago
If you have control of your nameservers you can use cloudflare's free TLS offering and keep your current webhost.
17.
▲
by
ycitm
10y ago
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
18.
▲
by
ycitm
10y ago
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); }
19.
▲
by
ycitm
10y ago
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
20.
▲
by
ycitm
10y ago
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...
21.
▲
by
ycitm
10y ago
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)
22.
▲
by
ycitm
10y ago
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... (pdf)
23.
▲
by
ycitm
11y ago
Yup, see @pauljz's comment above - https://news.ycombinator.com/item?id=10375297
24.
▲
by
ycitm
11y ago
Regarding [7] and [8], Snowden has explicitly denied that he is the source for the GCHQ Oman leak - http://www.theguardian.com/commentisfree/2013/aug/23/uk-gove... .
25.
▲
by
ycitm
11y ago
Agreed, both of those are better. Hopefully one will gain traction. Thanks for the link, good to know people are thinking about the naming issues.
26.
▲
by
ycitm
11y ago
Is this just criticism of the "isomorphic" term? I'm not a fan of it either ("isomorphic" already has a different well-defined meaning in CS), but it does seem to have some traction now. Perhaps you have an alternat
27.
▲
by
ycitm
11y ago
Yes: 8170230239603769466339755071101546492494075988067987304148498844617761721719216685941480713235270161375064058231085200625048492494237002594069053132814039014100827620971595602214630489243361923840267775021772627310452003222001497
28.
▲
by
ycitm
11y ago
Nitpick: strictly speaking setting cookies is not part of ECMAScript, it's part of the DOM api.
29.
▲
by
ycitm
12y ago
The phrase "it makes for really boring dinner conversation" does though.
30.
▲
by
ycitm
12y ago
As @Joeboy points out, the title is a play on "The loneliness of the long distance runner", so it's not literally about loneliness.
More ›