Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wk_end
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
541.
▲
by
wk_end
2y ago
As far as I understand it, row polymorphism wouldn’t allow the given example. Or to put it another way, the spread operator is impossible to type soundly in the presence of structural subtyping because the type system doesn’t capture the “o
542.
▲
by
wk_end
2y ago
The syntax of Lisp is made up of the same fundamental data types as you use when writing Lisp programs. `(+ 1 2 3)` is both a Lisp expression that evaluates to 6 and also a list containing four items, the symbol `+` and the numbers 1, 2
543.
▲
by
wk_end
2y ago
Both Dylan and Sk8 were available on Macintosh Garden last I checked.
544.
▲
by
wk_end
2y ago
Neither here nor there, but in my cultural context (Anglo-Canadian, middle millennial) “shit” is usually considered one of the most vulgar swear words (second only to “fuck”) outside of the slurs.
545.
▲
by
wk_end
2y ago
I would say that the Cuban Missile Crisis, indeed, would not have constituted a good reason to invade Cuba. US foreign policy during the Cold War was often pretty indefensible. But there’s still a number of things about this situation that
546.
▲
by
wk_end
2y ago
None of this is a legitimate casus belli in any sense of the term. You’re suggesting we ought to take seriously the geopolitical equivalent of “he looked at me funny”.
547.
▲
by
wk_end
2y ago
But the 6502's "registers" are much smaller and you can do much less with them. You can't really sensibly compare the two approaches so superficially.
548.
▲
by
wk_end
2y ago
Using JS/TS in a functional style doesn’t mean using prototypes or function binding or anything. I’m not sure how you inferred that from the comment you’re replying to…it just means using plain objects (TypeScript even, a little awkwar
549.
▲
by
wk_end
2y ago
Well, sure, but "people in their life that they talk to" aren't really therapists. They're functioning quite differently - they can have a personal involvement that a therapist, ethically, isn't permitted to have. T
550.
▲
by
wk_end
2y ago
I feel like a large slice of JS’s complexity comes from footguns you aren’t really supposed to use anymore; whereas with C# the complexity feels quite layered, multiparadigmatic, something-for-everyone, syntactic-sugary. But I probably know
551.
▲
by
wk_end
2y ago
Making easy things easy and hard things possible is great, I agree...but that's not what I wrote. And I don't think that's what HTMX provides - it mostly gets in your way with the hard things.
552.
▲
by
wk_end
2y ago
But easy things are also relatively easy when using other tools that scale up better. Even if HTMX makes the easy things slightly easier, is that worth investing time and energy into learning it in addition to those tools that scale up bett
553.
▲
by
wk_end
2y ago
It seems like it makes easy things easy and hard things hard, which seems like a pretty poor value proposition - at least relative to some of the hype around it.
554.
▲
by
wk_end
2y ago
I don’t know if that’s the case, simply because all code that I see written by array language programmers looks like code golf. Even the language implementation itself! https://code.jsoftware.com/wiki/Essays/Incu
555.
▲
by
wk_end
2y ago
It’s important to distinguish “Vancouver” (a city on the mainland) and “Vancouver Island” (an island off the coast). Vancouver Island has a population nearing a million, but half of it live in the greater Victoria area, which occupies a tin
556.
▲
by
wk_end
2y ago
Apologies for donning my grumpy old man hat. I like CL as much as the average dev who's dabbled with it on weekends but can't find anyone to pay me to use it, but...this essay really adds so little to the conversation about it. Th
557.
▲
by
wk_end
2y ago
It reads as a little ambiguous to me in your comment, so just to be clear: A polymorphic type - "a type wrapping another type" - isn't the same thing as a higher-kinded types. Higher-kinded types are what let you express, in
558.
▲
by
wk_end
2y ago
The "(and makes certain guarantees)" is the important-and-not-unnecessary part, rather than a parenthetical.
559.
▲
by
wk_end
2y ago
A book like this doesn’t need to be “practical” and “useful” - I don’t think, say, the shortage of libraries for Chez Scheme is going to hamstring you in anyway.
560.
▲
by
wk_end
2y ago
On a CPU with 8- or even 16-bit instructions, if at all possible (I don't know much about AVR8) it's probably better to use jump tables than to try to decode bit-wise when emulating I think.
561.
▲
by
wk_end
2y ago
VR FS2020 is so good that it made me get a pilot's license.
562.
▲
by
wk_end
2y ago
I dunno your age or background, but FWIW I feel like his shtick made a lot more sense in the context of early 90s Canadian media. The zeitgeist was unpretentious, goofy, "slack", earnest-but-also-ironically-detached. So Gen X, but
563.
▲
by
wk_end
2y ago
They're discouraged because they conflict with JSX. For instance, in the eslint documentation: > Most codebases will want to enforce not using angle-bracket style because it conflicts with JSX syntax, and is confusing when paired wi
564.
▲
by
wk_end
2y ago
Namespaces do as well, but I think it's just those two.
565.
▲
by
wk_end
2y ago
So, since they're now a part of JS - aside from namespaces and enums (which are discouraged) - none of those features generate code anymore. Moreover, aside from namespaces and enums (which are discouraged), none of those features were
566.
▲
by
wk_end
2y ago
What's not explained by the quoted excerpt? Instead of writing, e.g. `const n = <number>someValueThatYouKnowIsANumber;`, you should write `const n = someValueThatYouKnowIsANumber as number;` (well, really, you shouldn't writ
567.
▲
by
wk_end
2y ago
> Skipping this work is what makes this a swift approach. Hmm...
568.
▲
by
wk_end
2y ago
There's actually two ways that the situation described above undermines the incentive to work. The first is that - and this is one of the key distinctions - welfare programs are means-tested whereas UBI is (as the name implies) univers
569.
▲
by
wk_end
2y ago
> No true Scotsman or appeal to purity is an informal fallacy in which one attempts to protect an a posteriori claim from a falsifying counterexample by covertly modifying the initial claim. No one has covertly modified the initial claim
570.
▲
by
wk_end
2y ago
What you’re describing isn’t UBI; it’s just traditional welfare. UBI advocates are aware of problems with welfare and believe that UBI wouldn’t suffer from the same issues.
More ›