Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
branko_d
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
branko_d
1y ago
In C#, you can implement an iterator method with the signature like this: public static IEnumerable<TNode> DepthFirstTraverse<TNode>( TNode root, Func<TNode, IEnumerable<TNode>> children )
92.
▲
by
branko_d
1y ago
Haven’t worked with Oracle in over a decade, but SQL Server’s tooling is actually quite decent in that regard. You can attach the Visual Studio debugger to a T-SQL stored procedure, set breakpoints, step, inspect variables etc. There are ro
93.
▲
by
branko_d
1y ago
Under SQL Server’s SNAPSHOT transaction isolation level, writers don’t block readers. We use it in production with good results. While the internal implementation details differ from Oracle, the end result seems quite similar in practice.
94.
▲
by
branko_d
1y ago
> It's not about cars but speeding in cars. That's like saying "it's not about guns but killing by guns". If we could only identify those pesky people that will kill with their guns before they do it, we could so
95.
▲
by
branko_d
1y ago
Gun deaths: 46,000 Car deaths: 40,901 Gun utility: small Car utility: large (data from CDC and NHTSA for 2023)
96.
▲
Is Intel About to Rewrite the Rules of Chipmaking?
(hillsboroherald.com)
3 points
by
branko_d
1y ago
|
0 comments
97.
▲
by
branko_d
2y ago
> I'd guess Ukraine falls within months at most That's a bad guess. Ukraine has destroyed ~4000 Russian main battle tanks, a 3rd of the Black Sea fleet and many more thousands of pieces of equipment so far. They have proven how
98.
▲
by
branko_d
2y ago
> Everything we have, everything we're permitted to do, is at the pleasure and permission of our governments. Wrong! The people are ultimately responsible for reigning-in their governments and are the ultimate source of any rules or
99.
▲
by
branko_d
2y ago
> Chinese no-names Sorry, but that's just short sighted. Did you actually sit in a Chinese car, or at least seen any with your own eyes? I can tell you that ZEEKR, Changan, Exeed, Li Auto, BYD, Jac and others are well known and well
100.
▲
by
branko_d
2y ago
We built a document management system as React SPA which is very performant. Key: when user clicks on something, this causes 0 to 1 HTTP requests. We didn’t do lazy loading or caching either.
101.
▲
by
branko_d
2y ago
What is truly remarkable about it is that it’s just JavaScript (after some transpilation), which means you can easily use JavaScript’s control structures. Conditional rendering has never been so easy!
102.
▲
by
branko_d
2y ago
> Also, React is a nightmare. I think React is a “nightmare” in similar way that JavaScript is a ”nightmare” - it certainly can be, if you abuse it, and it makes it a little too easy to do so. However, you can take “just the good parts”
103.
▲
by
branko_d
2y ago
> Networks are fast. Well, it depends on what you mean by “fast”: bandwidth or latency? While the bandwidth has improved enormously over the years, latency… not so much. And it never will due to the simple fact that the speed of light is
104.
▲
by
branko_d
2y ago
> Signal on Android uses your phone PIN, for some insane reason. The reason is simple: 95% of people would just set-up the same PIN anyway. In unrelated news: Password reuse is rampant: nearly half of observed user logins are compromise
105.
▲
by
branko_d
2y ago
0-based indexing aligns better with how memory actually works, and is therefore more performant, all things being equal. Assuming `a` is the address of the beginning of the array, the 0-based indexing on the left is equivalent to the memory
106.
▲
by
branko_d
2y ago
Hydrogen sulfide is highly toxic (it's comparable to carbon monoxide). I doubt anyone in their right mind would put it intentionally in a place where it could leak around humans. But it can occur naturally in natural gas.
107.
▲
by
branko_d
2y ago
> Together, we will work hard to restore Intel’s position as a world-class products company, establish ourselves as a world-class foundry and delight our customers like never before. Sounds like he wants design and foundry to stay togeth
108.
▲
by
branko_d
2y ago
> Some of the biggest EDA tools come from companies that use them for a reason (NX by Siemens, CATIA by Dassault, ...). What do you mean? NX and CATIA are mechanical CAD systems, not EDA tools.
109.
▲
by
branko_d
2y ago
> These passive custodian investor companies just vote along with the board's recommendation I know that's true, but I'm wondering - why? Why wouldn't they just withhold their vote and let the remaining (active) inves
110.
▲
by
branko_d
2y ago
> I ask for narration That's a mistake. There are plenty of people who are not good multitaskers and cannot effectively think AND talk at the same time, myself included. IMHO, for programming, monotaskers tend to do better than mult
111.
▲
by
branko_d
2y ago
I have the same experience. Where AI shines for me is as a form of a semantic search engine or even a tutor of sorts. I can ask for the information that I need in a relatively complex way, and more often than not it will give me a decent su
112.
▲
by
branko_d
2y ago
> Can't build chips True, but that's true for every country, even Taiwan. If ASML (Dutch company), Applied Materials, LAM Research, KLA, Synopsys, Cadence (US companies), Tokyo Electron, Shin-Etcu (Japan) and literally hundreds
113.
▲
by
branko_d
2y ago
This assumes USA was taken advantage of by globalization, which is not actually the case - USA benefitted disproportionally from it. USA's GDP growth is substantially based on the consumers (~70% compared to ~50% in the EU and other co
114.
▲
by
branko_d
2y ago
I remember working with SDRC I-DEAS API in the early 2000s - it was well documented and "clean looking" compared to something like PTC's Pro/TOOLKIT. Interestingly, it was also CORBA-based, and it worked quite well over
115.
▲
by
branko_d
2y ago
> afford to pay tremendous sums for being wrong Or they can just haul you forcefully from the flight you paid for: https://en.wikipedia.org/wiki/2017_United_Express_passenger_...
116.
▲
by
branko_d
2y ago
On the other hand, some of the biggest performance wins come from the architectural choices, and those are often done before most of the code is written.
117.
▲
by
branko_d
2y ago
I agree. As someone who watched Magic, Bird and MJ in their prime, I think the modern basketball is at much higher level of both skill and athleticism. The level of "4D chess" going on is incredible and very enjoyable to watch! I
118.
▲
by
branko_d
2y ago
From the article: > What you hope happens is that Postgres will recursively inline every view, merge them all together into a gigaquery, and shuffle the predicates up and down to maximally optimize the query. That was the conceit. And of
119.
▲
by
branko_d
2y ago
I don't understand what you are trying to say about foreign keys. Are you advocating moving FKs from database to application? If yes, you are opening yourself up to race conditions that will only become visible in concurrent environmen
120.
▲
by
branko_d
2y ago
NULLs are weird because they are basically two different types under the same name. The 3-value logic type is useful for representing "missing" foreign keys, but 2-value logic type is arguably more useful when searching/sorti
More ›