Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
swift
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
swift
9y ago
Thanks, that helped me understand better. That's really cool!
62.
▲
by
swift
9y ago
I'd love to hear more detail about the example you give of type inference over an AST. I like the idea, but I'm having trouble envisioning how to write code in that style cleanly. Did you implement that in an open source project I
63.
▲
by
swift
9y ago
The author made a small mistake in this article which may be worth pointing out: -fno-rtti does not disable the generation of vtables (which would break virtual method dispatch) but only runtime type information. The two are connected in th
64.
▲
by
swift
9y ago
I agree with almost everything in your post, but I'm surprised about your comment that unique_ptr has overhead. Since unique_ptr is a single item struct with no vtable I'd expect no space overhead at all. Similarly, while it does
65.
▲
by
swift
9y ago
One reason for the 6 week update cadence that Firefox uses was to increase stability by reducing the pressure to include a feature in a release even if it's half baked. If not shipping at release time meant that the feature would be de
66.
▲
by
swift
9y ago
That's fun. I actually like that quite a bit more than the program in the linked article.
67.
▲
by
swift
9y ago
I love the idea of registering it as a printer. Right now I do something similar (but more cumbersome) with my iPad Pro: I print to PDF, save the PDF in iCloud Drive, and then open it in Preview on the iPad, which lets me annotate it with t
68.
▲
by
swift
10y ago
They did, though of course it's open source and somebody else could pick it up and continue development if they so chose.
69.
▲
by
swift
10y ago
You can refactor it later, of course. It's even possible to opt out of static type checking if you want. GHCi also provides a REPL that makes exploratory programming easy.
70.
▲
by
swift
10y ago
If your contention is that a logical proposition like "no number of confirming observations can verify a universal generalization" can be tested empirically (i.e. by experimental observation of the physical world), then we're
71.
▲
by
swift
10y ago
You've treated the views of a small group of philosophers as if they're representative of philosophy as a whole. "Falisifiability" is not something that can be empirically tested because it is a concept that does not tal
72.
▲
by
swift
10y ago
It's justified by logical argument, but not by empirical evidence. There is no empirical measurement we can take or experiment we can perform that would falsify it, because things like "theories" and "truth" are n
73.
▲
by
swift
10y ago
Is an idea like "in science one can prove a theory false, but one cannot prove a theory true" falsifiable? If yes, what kind of experiment could be designed to test it? If no, does that mean it's of no value?
74.
▲
by
swift
10y ago
You should read some philosophy of science. Start with Karl Popper. He's the person whose work you're referencing when you talk about falsifiability, and I think you'll relate to his writing, but he'll also challenge you
75.
▲
by
swift
10y ago
Perhaps it's different where you live, but you may want to consider how not tipping will be perceived by those around you. Giving others the impression that you're selfish and lack empathy has very real costs, even though they may
76.
▲
by
swift
10y ago
To add to what you're saying, many users aren't just self-medicating emotional pain, but serious psychiatric illnesses. This can be for a number of reasons: lack of insurance coverage, difficulty navigating the medical system (whi
77.
▲
by
swift
10y ago
I wish this wasn't a deeply nested comment attached to a somewhat unrelated article because I think this is a really interesting discussion that deserves its own thread. There are some genuinely interesting ethical questions here. FWIW
78.
▲
by
swift
10y ago
A lot of people worked on the user space, too. I understand why both camps want to get some of the credit.
79.
▲
by
swift
10y ago
I enjoy functional programming because it's easier to reason about the code. Often it's easier to write it, but it's true that sometimes it's harder. I find that when I need to read and understand that code later, though
80.
▲
by
swift
10y ago
They both offer pretty much the same features for managing notifications.
81.
▲
by
swift
10y ago
"Performant" is basically just a buzzword but I've always viewed it as encompassing a bit more than "fastest" - something like "most efficient in real world use".
82.
▲
by
swift
10y ago
It doesn't, but there is a connection: for people who have a predisposition, alcohol is risky in that it can trigger a depressive episode. Typically one of the first things a psychiatrist or therapist will tell you to do in such a situ
83.
▲
by
swift
10y ago
I don't work on projects where Docker is useful in production, but I've found it tremendously useful in continuous integration. It guarantees a reproducible environment, which a VM could do, but just as importantly it documents h
84.
▲
by
swift
10y ago
Ideally you'd have automated tests that must pass before the PR is mergeable.
85.
▲
by
swift
10y ago
Opiate prohibition also has a lot to do with racism against Asians, who used to be associated with opiates in the mind of the public. Similarly the prohibition against marijuana in the US has a lot to do with racist attitudes towards Latino
86.
▲
by
swift
10y ago
You can, actually. This isn't about banning sugary drinks. It's about banning a business model that the drafters of the law believe harms the collective health of France. This has more in common with clean air legislation than it
87.
▲
by
swift
10y ago
That's how most people I know were raised in the US, too. As an adult, I've consciously tried to move away from this attitude, because it leads to obesity. It's especially problematic in the South, where I'm from, given
88.
▲
by
swift
10y ago
Point 1 presents a false dichotomy. We can absolutely let kids move at different speeds while keeping them within the same school. And we can ensure that there are still shared classes and opportunities for students with different skills an
89.
▲
by
swift
10y ago
I really hate to get into a debate about semantics, but that is not what "able" means. =) I think I understand your position better now, though. It's not so much about whether voters can vote themselves more money - it'
90.
▲
by
swift
10y ago
Are voters any less able to vote to give themselves more money now?
More ›