Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
onetoo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
onetoo
3y ago
I would still recommend running it properly locally, but whatever. Pseudo-devcontainer it is. I assume the code is properly volume mounted. In production, you would want to run your app through gunicorn/uvicorn/whatever on an inte
32.
▲
by
onetoo
3y ago
The restart isn't expensive in absolute terms, on a human level it's practically instant. You would only do this during development, hopefully your local machine isn't the production environment. It's also very easy, oft
33.
▲
by
onetoo
3y ago
You can't possibly optimize sorting in a way that makes sense for every user. Let us use insertion sort in our standard library and call it a day. Why are you bothering to discuss general-case sorting algorithms?
34.
▲
by
onetoo
3y ago
We should use the right words for things. Insertion sort is heuristically good in many practical circumstances. You wouldn't call it optimal, nor choose to use it as your general-purpose sorting algorithm.
35.
▲
by
onetoo
3y ago
Strictly speaking, that approach would help you find a heuristically good algorithm, but not necessarily the optimal one. Those are very different.
36.
▲
by
onetoo
3y ago
I think it's to communicate that even if you think it's not that bad, it's never good: A single beer every month probably won't kill you, but there is a non-zero increase in risk. By definition, any amount is a danger. I
37.
▲
by
onetoo
3y ago
Having a strong default starting point is nothing to scoff at. You wouldn't want a standard library to use insertion sort because "no singular approach works optimally in all cases, so why bother trying for good general case?"
38.
▲
by
onetoo
3y ago
I'm sad that this ends on a cliffhanger, I was excited to see the results for the circular array version. Hopefully I don't lose track of this story when (if) someone who knows what they're doing does that test (I am not such
39.
▲
by
onetoo
3y ago
Not an expert in this field, but I don't believe we are looking for any directed "Hello, we are over here! Look at us! Hey, humans, hey, over here!" signals, but more "literally anything that would imply the existence in
40.
▲
by
onetoo
3y ago
It is always sobering to read this story. I feel an obligation to read it through every time I stumble upon it. A lot of what we do as software developers really doesn't matter, so it's easy to forget that sometimes it does. Regul
41.
▲
by
onetoo
3y ago
This happens to me about once every few months. As the article states, just learning about it and feeling reassured that nothing is wrong turned the experience from terrifying to just slightly annoying. In my case, getting my sleep apnea tr
42.
▲
by
onetoo
3y ago
I feel like Microsoft's naming division has a mandate to cause as much name collision as possible, so that "out of date" requirements at very big very slow enterprises suddenly and magically target the latest hotness. It is m
43.
▲
by
onetoo
3y ago
Blazor Server isn't inherently latency riddled. Blazor Wasm isn't necessarily slow to initial load with .NET 8. IIRC the compiler is also really good at trimming the Wasm bundle when publishing in Release mode. The neat thing
44.
▲
by
onetoo
3y ago
Full .NET stack. - Self-hosted identity management, "ASP.NET Core Identity", using new scaffolding from .NET 8 - Blazor, using the "Auto" mode from .NET 8: Default to SSR, autopromote to Server mode for live updating com
45.
▲
by
onetoo
3y ago
Christmas is on December 24 where I'm from.
46.
▲
by
onetoo
3y ago
Not all UI elements scale with font size. Illustrations, nested element containers, navigation controls, etc. It looks very comical when you first see it.
47.
▲
by
onetoo
3y ago
FWIW the (seemingly?) complete lack of bikeshedding makes it a lot easier to approach Go over Python wrt. tooling. IME it feels impossible to make an informed decision without already being knee-deep in the ecosystem, and yet new developers
48.
▲
by
onetoo
3y ago
Disregarding moral or sustainability reasons and taking a more cynical view, I can understand taking a long-term bet on the technology improving enough for lab-grown to become a cheaper alternative. If we ever reach that point, whoever'
49.
▲
by
onetoo
3y ago
At the risk of being a pedant, I think your argument is too absolutist for it to really mean anything. The exact same argument can be used by a sufficiently stubborn greybeard to bemoan the fact that C implicitly decides what registers to u
50.
▲
by
onetoo
3y ago
The mental model of "a single DB file" is a easier to grog than a large and seemingly opaque DB server. Most (all?) of the well-known RDBMS are designed to host the data needs of multiple separate applications, which makes configu
51.
▲
by
onetoo
3y ago
I am not from the US, but I always have a union lawyer look at my employment contracts before I sign them. It's part of my union's service. If you ask me, "expert legal team on retainer" is one of the primary reasons for
52.
▲
by
onetoo
4y ago
I believe most European countries have their own solutions similar to this. e.g. in Denmark we have NemID/MitID as the way to digitally authenticate yourself to the healthcare system, your bank, etc. If I understand correctly, this E
53.
▲
by
onetoo
6y ago
Probability of no collision in a single millisecond: p_1 = 999999999/1000000000 Milliseconds in a year: t = 1000 * 60 * 60 * 24 * 365 Probability of no collision happening for every millisecond of a year: p_2 = p_1^t Probability of a c
54.
▲
by
onetoo
6y ago
What you are describing is essentially a nondeterministic Turing machine. "What can you compute"-wise, NTMs are equivalent with TMs, and the halting problem still applies. NTMs are interesting when it comes to computation time, ho
55.
▲
by
onetoo
6y ago
PoE is a great game, but this post just seems like an ad for RMT services, which are very not allowed in PoE and will get you very banned. Looking at OP's post history, it seems like all they do is advertise these RMT services. This po
56.
▲
by
onetoo
6y ago
Good question. I suppose I am basing my argument on text-based GUIs as a whole instead of this library in particular. I have no opinion about this library vs. other text UI libraries, other than the fact that it is visually stunning. In my
57.
▲
by
onetoo
6y ago
While the interfaces this creates look absolutely gorgeous, I struggle to see actual use cases for this outside of toy examples and browser replacement apps that are going to be used by no one. If that is all that this is intended to be, th
58.
▲
by
onetoo
7y ago
This is also an issue in video game programming, where this lack of consistency causes issues in the implementation of replays or lockstep networking. The core idea of both is to store/share the inputs for each frame, such that the gam