Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
branko_d
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
121.
▲
by
branko_d
2y ago
I wish Microsoft paid more attention to T-SQL though. It’s an atrociously primitive language in some ways. There is no “record” or “struct” type of any kind, table-valued functions are not composable, an error in one line may throw an excep
122.
▲
by
branko_d
2y ago
Yeah, it was a good choice. Aktau is surrounded by hundreds of kilometers of a really flat half-desert. Had they been able to land at even remotely correct orientation, they could have landed almost anywhere in that general area and would h
123.
▲
by
branko_d
2y ago
Baku is actually slightly further than Aktau, according to Google maps.
124.
▲
by
branko_d
2y ago
How do you know you have zero interest in it if you didn’t know it existed?
125.
▲
by
branko_d
2y ago
Non-determinism is when for same input you get a different output. According to that definition, the above code is deterministic. > how would we know if the calculation was completed before the exception was thrown without adding another
126.
▲
by
branko_d
2y ago
> They cause every line in a function to potentially result in a return from the function with an unexpected type. That’s not non-deterministic. It’s just not statistically typed.
127.
▲
by
branko_d
2y ago
"Most large investors vote alongside Glass Lewis and ISS recommendations, the two most prominent proxy solutions for investors. Most GL/ISS recommendations tend to vote with the board and don’t change much unless something drasti
128.
▲
by
branko_d
2y ago
When did you leave, if I may ask?
129.
▲
by
branko_d
2y ago
Intel invests ~4B per quarter on R&D. Source - Intel's income statement: https://www.intc.com/financial-info/income-statement So whatever their problems are, throwing more money at R&D is unlikely to solve
130.
▲
by
branko_d
2y ago
> I disagree that SPAs are the only solution to some problems. I disagree with that too. Did I ever say otherwise? I do believe, however, that there are problems for which a SPA offers the best trade-off. Not the only solution, but the b
131.
▲
by
branko_d
2y ago
Ugh, that's just the fundamentalistic, non-engineering approach that we need less of. Everything is a trade-off, and SPAs offer a trade-off that is right for some cases and wrong for others.
132.
▲
by
branko_d
2y ago
It sounds like the author is complaining more about SPAs than the React itself. Indeed, if your needs are more static, a SPA is probably not a good solution. But if you really do need a SPA, React is a sensible choice and can perform well a
133.
▲
by
branko_d
2y ago
I guess it's a bit of an arms race as well - if a heavier car hits a lighter car, the G forces in the lighter car will be higher, all else being equal. The tragedy of commons is that if everyone bought a lighter car, everyone would be
134.
▲
by
branko_d
2y ago
It is perfectly legitimate (and in fact preferable in many cases) to store files in database BLOBs. Backups, consistency, security and (yes!) scalability come to mind. Some early BLOB implementations had performance problems, which is where
135.
▲
by
branko_d
2y ago
Following the links, I find... pgPDF: The actual PDF parsing is done by poppler. Poppler is a PDF rendering library based on the xpdf-3.0 code base. Xpdf is based on XpdfWidget/Qt™, by Glyph & Cog. XpdfWidget is b
136.
▲
by
branko_d
2y ago
Other than the word “language”, programming languages and natural languages really have very little in common. Anecdotally, when I write code, I don’t “talk in my head”. The structures that I have in my brain are in fact difficult to put in
137.
▲
by
branko_d
2y ago
And here is the obligatory quote from Bjarne Stroustrup: "There are only two kinds of languages: the ones people complain about and the ones nobody uses."
138.
▲
by
branko_d
2y ago
Sure, having less padding increases I/O efficiency. I was just commenting on the author's apparent confusion as to why the padding is there in the first place. Here is the full(er) quote: Postgres will happily add padding to t
139.
▲
by
branko_d
2y ago
From the article: Having the data aligned ensures faster access time when retrieving pages from disk. Byte-level alignment cannot possibly have anything to do with retrieving pages from disk, simply because the unit of retrieval is t
140.
▲
by
branko_d
2y ago
> hedge funds have historically outperformed the markets According to Investopedia: "From January 1994 to June 2023—through both bull and bear markets—the passive S&P 500 Index outperformed every major hedge fund strategy by ov
141.
▲
by
branko_d
2y ago
The dies themselves are "assembled" - cut from the wafer, bonded to the wires (or solder bumps) that carry signals to the rest of the system, and packaged for physical protection and thermal management. In recent times, multi-chip
142.
▲
by
branko_d
2y ago
> you're stuck building obsolete parts on an obsolete process. TSMC's oldest plant still in operation (Fab 2) started production in 1990. So far, the only fab they have closed is Fab 1. Reference: https://en.wikipedi
143.
▲
by
branko_d
2y ago
> it's rare for a branch result to be random How rare, though? QuickSort has fundamentally unpredictable branches, and it’s a pretty widely used algorithm. Binary search, B-trees also come to mind.
144.
▲
by
branko_d
2y ago
The original promise of React was: UI = f(state) The problems come when you modify state in response to rendering the UI. This seems deceptively natural (and in fact seems encouraged by on-line tutorials), but leads to "spaghetti fetch
145.
▲
by
branko_d
2y ago
You can’t run a 30 year old driver in Windows, nor a 10 year old in all likelihood. Microsoft prioritizes userspace compatibility, but their driver models have changed (relatively) frequently.
146.
▲
by
branko_d
2y ago
I'm surprised author didn't mention foreign keys: since primary key is often referenced by foreign keys, then if you have a "fat" PK all your FKs will also be "fat". This can be solved by using the UUID as an
147.
▲
by
branko_d
2y ago
Why is the natural alignment of structs equal to the size of their largest member?
148.
▲
by
branko_d
2y ago
I’ll hazard a guess: you never liked exercise, even as a kid? If that’s the case, I’ll hazard another guess: you lived in an environment where you couldn’t just go out and play whenever you wanted? I might be completely wrong in my guesses,
149.
▲
by
branko_d
2y ago
> As I understand it: Spectre/Meltdown allow reading from the address space of the same process only. Sorry, this does not make much sense. Why would you need a timing attack to read memory from your own address space? Just a regu
150.
▲
by
branko_d
2y ago
From the linked site: > In the post-Spectre world you must have site isolation. The JS for a site (roughly, eTLD+1) must have its own OS address space separate from other sites. Wasn't the whole point of Spectre/Meltdown to rea
More ›