Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
moring
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
331.
▲
by
moring
4y ago
Even Rust has panic for things like out-of-bounds access. In fact, Rust's panic / Result is actually very similar technically to Java's checked / unchecked exceptions. I'd argue that this is more a difference in usa
332.
▲
by
moring
4y ago
The full quote is: "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%." It doesn't mean "
333.
▲
by
moring
4y ago
If you want to avoid risks both in the encoder and decoder, you might have success with a function that takes an encoded strict and a decoded string and compares them directly, encoding/decoding (whatever works better) on the fly. This
334.
▲
by
moring
4y ago
I find it incredibly frustrating that again and again, the Lagrangian gets introduced and then said it should be minimized without ever explaining the motivation behind doing so. What is the Lagrangian and why should it be minimized? I
335.
▲
by
moring
4y ago
> Special relativity states that a fast moving object experiences time dilation – its clocks slow down relative to a stationary observer. For more fun: A less known fact is that SR also states that from the POV of the satellite, the sate
336.
▲
by
moring
4y ago
> you can now set a minimum number of instances with Cloud Functions so they don't scale to 0 You can set that, but the setting gets ignored and latency is still abysmal. That was literally the reason we moved our backend to Cloud R
337.
▲
by
moring
4y ago
I could only read the second article for now (the first one is blocked at work), but while interesting it's not quite what my question was aiming at. That is, it solves the malloc/free hassle in an elegant way, but it doesn't
338.
▲
by
moring
4y ago
> Allocating all required memory is, IMHO, a great practice for almost any type of program. Do you know any good resources to get into that mode of thinking, including common patterns, for sombody who is used to malloc everything? I coul
339.
▲
by
moring
4y ago
> But there is a network in between That's exactly my argument...? Seems to be a misunderstanding. > I'm not sure why pretending there isn't can somehow make a system less complex. Yes, that is exactly why pre-SPA web p
340.
▲
by
moring
4y ago
It was definitely the case for most applications I have worked with because they had to perform client-side logic on the server side. Most SPAs I've seen at least have clearly separated responsibilities between the two, AND they don&#x
341.
▲
by
moring
4y ago
This argument can be used word-by-word in favor of SPAs and against earlier web applications, but it's a No True Scotsman either way.
342.
▲
by
moring
4y ago
Not all SPAs do it wrong either, that's my point. Caring about the user is orthogonal to the technology used.
343.
▲
by
moring
4y ago
Prior to SPAs we had multi-page applications telling the user "don't use the back button or tabs, they break the website". Was that really better?
344.
▲
by
moring
4y ago
Others have mentioned IntMap, and in a more general way, I'd recommend treating those standard classes as a general-purpose implementation that should be replaced be specialized implementations -- to improve performance, memory footpri
345.
▲
by
moring
4y ago
The Data Matrix spec allows certain rectangular sizes, they are just not used often.
346.
▲
by
moring
4y ago
What did the error correction report -- is it valid on a byte level? They might use a new highlevel encoding, but I doubt it, and they are certainly not re-inventing the error correction level. This stuff is hard math and there is no valu
347.
▲
by
moring
4y ago
If the picture is an actual code used (BTW it's a data matrix, not QR, you can tell by the solid L / dotted L outline): The code has 48x16 pixels. Subtract the outlines (solid) / timers (dotted), that's 44x14 = 616 bits.
348.
▲
by
moring
4y ago
I first wanted to write: Generating a GUI can happen as a fully automated build stepü, without runtime reflection. But then I realized that such build steps re-introduce the same problems as runtime reflection does: You cannot understand th
349.
▲
by
moring
4y ago
IMHO, in retrospect, runtime access to annotations was a mistake. Possibly the level of reflection it offers, too. These two make all that code possible that cannot be understood statically. And yes, lambdas and macros would probably have b
350.
▲
by
moring
4y ago
Also repeated below, but it applies here too: I don't get it. Isn't the point of the EU directive that the cables are interchangeable to reduce waste? Why do different cables behave differently then?
351.
▲
by
moring
4y ago
I don't get it. Isn't the point of the EU directive that the cables are interchangeable to reduce waste? Why do different cables behave differently then?
352.
▲
by
moring
4y ago
Did the current cable used by the iPhone have this problem too? If not, isn't this changing it to the worse? edit to clarify: ... because while Apple might still include a working cable, but if you grab one of the 10 cables out of your
353.
▲
by
moring
4y ago
I found the open-soruce toolchain to be a good first step into that direction, that is, not having to jump through hoops to get the vendor toolchain to work. It's only a first step though. Still needed: an Arduino-like IDE where you ca
354.
▲
by
moring
4y ago
Could you elaborate? I can't find anything there that would prevent a Thompson-style backdoor.
355.
▲
by
moring
4y ago
That's something I wondered too, but I doubt it. The model used to explain benzene's bonds superficially sounds like superposition, and I can't really speak about the electrons involved (way too complex for me to even imagine
356.
▲
by
moring
4y ago
If "we have the API but not the docs" is a thing, what's the meaning of "we don't have the API" then? Not being able to access the API at all? Failing auth/auth?
357.
▲
by
moring
4y ago
Your second paragraph is basically what I meant: The complexity is just too high. This is especially true when downloading data from the internet is involved. But the first example, git housekeeping, depends only on information readily avai
358.
▲
by
moring
4y ago
> There is obviously no way of knowing the actual time that will take without trying (...) How is that obvious? Deleting a file doesn't just block for no reason. The OS (usually) or disk hardware (rarely) are the ones that decide to
359.
▲
by
moring
4y ago
> We could also just put straight-up compiler IR in the object files (...) Just a reminder that we're talking about LLVM here, whose whole point from the beginning was exactly what you described ;)
360.
▲
by
moring
4y ago
Depends on the definition of "linking". Having multiple source files each compiled to LLVM bitcode and not re-doing this if another file changes is fine. Turning the bitcode to native code is where traditionally the compiler back-
More ›