Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
branko_d
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
branko_d
1y ago
I think you have a specific class of race conditions in mind where tight control of the hardware is desirable or even possible. But what to do if you have a race condition in a database stored procedure? Or in a GUI rendering code? Even web
62.
▲
by
branko_d
1y ago
Yes, but to a lesser extent.
63.
▲
by
branko_d
1y ago
Assuming you meant C's printf, why would you subject yourself to the pain of recompilation every time you need to look at a different part of code? Isn't the debugger easier than adding printf and then recompiling?
64.
▲
by
branko_d
1y ago
Well, if you have a race condition, the debugger is likely to change the timing and alter the race, possibly hiding it altogether. Race conditions is where print is often more useful than the debugger.
65.
▲
by
branko_d
1y ago
Can Elon Musk confiscate your property, limit your freedom of movement, or outright kill you? There were times in history where having a lot of money was correlated to having all those powers. There are places in this world where that’s sti
66.
▲
by
branko_d
1y ago
> ...between the current position and winning. (Because chess is entirely deterministic, that distance always exists. We are (currently) unable to measure it in most cases, but we can be sure it does exist.) Can we? Just because it'
67.
▲
by
branko_d
1y ago
In my experience, coding is much faster when doing it this way. Yes, you can produce a small amount of code faster if you don’t “waste” your time on documentation, but that becomes counterproductive as soon as you can no longer keep the ent
68.
▲
by
branko_d
1y ago
Is a foreign student who finishes the university and then stays in America an American?
69.
▲
by
branko_d
1y ago
Most other brands had very similar problems (including my trusty Nokia at the time). You can still attenuate antennae on modern phones if you hold it just right. It's just a matter of physics. Here is what Nokia N97 does when you "
70.
▲
by
branko_d
1y ago
> In many cases it's guaranteed to be small or small-ish. And in many cases it's assumed to be small, but not guaranteed. That's where the trouble lies. A classic example is Windows using a quadratic algorithm for arrangin
71.
▲
by
branko_d
1y ago
Even if it's slower for the vast majority of cases, but there are rare cases where the computer would otherwise freeze, that's still a win.
72.
▲
by
branko_d
1y ago
There is a lot of value in explaining the gist of something, even if it's not entirely accurate. In my experience, the cases where even that is impossible are very rare, at least when it comes to practical computer programming.
73.
▲
by
branko_d
1y ago
You could also have the number of code UNITS, which is the route C# took.
74.
▲
by
branko_d
1y ago
The problem is not that the experts have dismissed vibe coding without even trying it. The problem is that the experts have tried it and found that vibe coding doesn't actually work at scale that they need. Will it ever? Perhaps, but I
75.
▲
by
branko_d
1y ago
> Note that “uniform service layer” doesn’t necessarily mean “networked service layer”, this can be in-process if you can prevent people from bypassing your querying functions and going directly to the DB. You can take it one step furthe
76.
▲
by
branko_d
1y ago
> Indexes work like nested dictionaries If the author meant “dictionary” in a sense of a hash map, that’s not quite correct. In relational databases, indexes are usually B-trees, which are ordered, unlike hash maps. A B-tree can help wit
77.
▲
by
branko_d
1y ago
On the other hand, dinosaurs may have survived if they had a space program! :)
78.
▲
by
branko_d
1y ago
And as a consequence, C# can pack the value types directly in the generic data structure, instead of holding references to heap-allocated objects. This is very important both for cache locality and for minimizing garbage collector pressure.
79.
▲
by
branko_d
1y ago
Don't Look Up!
80.
▲
by
branko_d
1y ago
Probably because of the "D" in ACID transactions, so the transaction log cannot be meaningfully write-cached. OTOH, writing to tables/indexes is already done "out of order" and aggressively cached in the buffer pool
81.
▲
by
branko_d
1y ago
I would love to see Web platform become more similar to JVM or .NET CLR - just a bytecode JIT with access to rich layout/rendering engine. Then build whatever you want on top of it.
82.
▲
by
branko_d
1y ago
> looping through cursors, making business logic decisions, calculating things, etc. Interesting. Can you share more details about the "non-data" processing that was done? Were they doing heavy mathematical calculations and suc
83.
▲
by
branko_d
1y ago
I never quite understood these kinds of arguments, event though they seem to be repeated a lot: > 1. Many critical APIs call would spend most of its CPU time inside the finite database servers. New APIs, or updating existing APIs meant
84.
▲
by
branko_d
1y ago
> why doesn't it happen with the chinese supply chain There are already "dark factories" that don't require light or heating because they are fully automated and don't require human presence. Guess where they are
85.
▲
by
branko_d
1y ago
> The hardware is dirt cheap. Programmers aren't cheap. That may be fine if you can actually improve the user experience by throwing hardware at the problem. But in many (most?) situations, you can't. Most of the user-facing so
86.
▲
by
branko_d
1y ago
Often, this is presented as a tradeoff between the cost of development and the cost of hardware. However, there is a third leg of that stool: the cost of end-user experience. When you have a system which is sluggish to use because your ski
87.
▲
by
branko_d
1y ago
The above was copy-pasted from the article.
88.
▲
by
branko_d
1y ago
Summary: 1. Write some docs in a text editor. 2. Using git, send your new docs to GitHub. 3. Follow some steps on GitHub to finish adding your new docs to the site. 4. A process runs which takes your changes, builds everything into a websit
89.
▲
by
branko_d
1y ago
I remember, at the turn of the century (was is 2001?) when Microsoft was touting "weak coupling" achievable through "web services" and demoing the support for SOAP in Visual Studio. To me, that was the strangest idea - h
90.
▲
by
branko_d
1y ago
https://en.wikipedia.org/wiki/Moose_test "It is noteworthy that the previous record holder (set in 1999) was the Citroën Xantia 3.0i V6 Activa, an unassuming family car with a unique active roll bar system.[15]&q
More ›