Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcparkyn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
jcparkyn
3y ago
How is that better than the C# solution of just making the subroutine return an IEnumerable, then yielding its elements in the calling function? (aside from maybe marginally better perf characteristics)?
122.
▲
by
jcparkyn
3y ago
That's why it'd be nice to have a general "access the internet" permission, since DOM reads are usually harmless if they can't get any data back.
123.
▲
by
jcparkyn
3y ago
So from your analogy, you're saying the average high school student (approximately the "friend" in your scenario) is incapable of reasoning? Sure, they might be bad at it (and know nothing about formal methods), but most peop
124.
▲
by
jcparkyn
3y ago
> Particularly for error handling, you always want to see what errors a function may return even in library code. Any half-decent tooling should do that, since GP was talking about compile-time type inference. Of course there are some si
125.
▲
by
jcparkyn
3y ago
> It's best that companies pick one and stick with it, so people can work in whichever environment they prefer. What about all the people that prefer some combination of the two? I'd hazard a guess that they outnumber either of
126.
▲
by
jcparkyn
3y ago
A lot of my ideas (aside from what you've already got) were very programmer-focused and not very fleshed out, so probably won't be much use. Here are some thoughts after playing with it for a bit though: - I think you should lean
127.
▲
by
jcparkyn
3y ago
If you want that but on steroids, there are quite a few extensions for vertical tabs which allow grouping and much more. My favourite (after trying most of them) is sidebery. I think there are extensions for grouping the normal horizontal t
128.
▲
by
jcparkyn
3y ago
Nice work OP, this has a lot in common with how I always wished excel worked. It's nice to see that someone's finally built it, and better than I would have. FYI your homepage has a couple of typos (spreadshet and spreadhseets).
129.
▲
by
jcparkyn
3y ago
Dupe of https://news.ycombinator.com/item?id=36802582
130.
▲
by
jcparkyn
3y ago
> Integer numbers are typically represented by the type Int, which represents a machine-size integer (usually 64 bits on modern computers). I'm not a systems programmer, but I thought there was a consensus these days that this was a
131.
▲
by
jcparkyn
3y ago
Not really, because becoming a rapist won't reduce the number of rapes committed by others. On the other hand, inventions can really only be invented once, and successfully inventing or commercialising something _will_ usually reduce t
132.
▲
by
jcparkyn
3y ago
The difference is more than just syntax, at least in the case of Java and Rust. The core problem with checked exceptions in Java (as demonstrated in most of the examples from TFA) is that they don't compose properly with generic functi
133.
▲
by
jcparkyn
3y ago
Any purely functional app still needs a mutable data store _somewhere_. And if that's all owned by one service (the "root" of your functional app, since everything else is pure by definition), then you're hardly doing mi
134.
▲
by
jcparkyn
3y ago
Your analogy is backwards, nlogn > n.
135.
▲
by
jcparkyn
3y ago
> Yes. I don't see how this is different than function call. If you need atomicity _across services_ it's very different, hence why everyone resorts to eventual consistency and all the associated extra complexity. If there'
136.
▲
by
jcparkyn
3y ago
I think the author is only concerned with decimal digits (0-9).
137.
▲
by
jcparkyn
3y ago
They're not asking for reflection on _all_ possible types (which would have the problem you mentioned), just ones explicitly requested at compile time via a function call.
138.
▲
by
jcparkyn
3y ago
I think even your example is not actually proving GCD, just that the result is _a_ common divisor. E.g. it would succeed if GCD(a, b) = 1 for all a, b.
139.
▲
by
jcparkyn
3y ago
It's still much more annoying than it should be to input Unicode characters in most operating systems and text editors, though.
140.
▲
by
jcparkyn
3y ago
Not quite what you're asking for, but you can click after the first bracket and then use the "Go to bracket" command to get roughly the same thing. You'll have to add a keybind for it though, there isn't one by defa
141.
▲
by
jcparkyn
3y ago
Not to disagree, but these days vscode (and probably others, but vscode is the best I've tried) mostly alleviates that need with remote editing. It also has a few objective benefits, like eliminating typing latency (e.g. if your remote
142.
▲
by
jcparkyn
3y ago
The light bulb moment for me learning git, which I don't see get mentioned nearly enough, was this: Stop thinking in terms of branches, and start thinking only in terms of commits. Pretty much every git operation makes so much more sen
143.
▲
by
jcparkyn
3y ago
Just in case you haven't already done this: Try using ShellExView to disable all 3rd party shell extensions. There's a good chance that something like Acrobat is running some code that doesn't play nice with your windows vers
144.
▲
by
jcparkyn
3y ago
I see, thanks.
145.
▲
by
jcparkyn
3y ago
>... 64bit runtimes can use... Did you mean 32bit?
146.
▲
by
jcparkyn
3y ago
[Citation needed]
147.
▲
by
jcparkyn
3y ago
I like them in principle, but they really get annoying for objects with lots of fields (since the order has to exactly match the constructor), or for objects that need to round-trip (because there's twice as much code to write, and no
148.
▲
by
jcparkyn
3y ago
I'd imagine that most people voluntarily using go or similar languages wouldn't be too bothered by just having all the checks occur at runtime in the generated code, rather than encoding them in the type system. Sum types are stil
149.
▲
by
jcparkyn
3y ago
Very cool project and great write-up, nice work OP.
150.
▲
by
jcparkyn
3y ago
Very fun, but I couldn't figure out why the answer to 27 is what it is
More ›