Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
branko_d
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
branko_d
10mo ago
Tragedy of commons.
32.
▲
by
branko_d
11mo ago
Is there anything especially hard about decompiling (to) Java? .NET/C# decompilers are widespread and generally work well (there is one built into Visual Studio nowdays, JetBrains have their own, there were a bunch of stand-alone tools
33.
▲
by
branko_d
11mo ago
China imports substantially all of its uranium from Kazakhstan and Namibia, and a tiny bit from US. Russia is insignificant. https://wits.worldbank.org/trade/comtrade/en/country/CHN/yea...
34.
▲
by
branko_d
11mo ago
Probably because must “emulation” is more like “transpilation” these days - there is a hit up front to translate into native instructions, but they are then cached and repeatedly executed like any other native instructions.
35.
▲
by
branko_d
11mo ago
I would respectfully disagree with most of what you said. I guess individual perspective depends a lot on the kinds of code you work on. The point about being explicitly part of the API stands, though.
36.
▲
by
branko_d
11mo ago
Sure, but the same is true of any error handling strategy. When you work with exceptions, the key is to assume that every line can throw unless proven otherwise, which in practice means almost all lines of code can throw. Once you adopt tha
37.
▲
by
branko_d
11mo ago
According to Project Farm, Sylvania is the best headlight restoration kit: https://www.youtube.com/watch?v=kyVCEbfrU-c
38.
▲
by
branko_d
11mo ago
Safe things should be easy, dangerous things should be hard. This .unwrap() sounds too easy for what it does, certainly much easier than having an entire try..catch block with an explicit panic. Full disclosure: I don't actually know R
39.
▲
by
branko_d
11mo ago
> Exceptions force a panic on all errors What do you mean? Exceptions do not force panic at all. In most practical situations, an exception unhandled close to where it was thrown will eventually get logged. It's kind of a "loca
40.
▲
by
branko_d
11mo ago
Did you try No Country Redirect? http://www.google.com/ncr
41.
▲
by
branko_d
11mo ago
This is not even a regression - it has always been there, unnoticed!
42.
▲
by
branko_d
1y ago
> Windows still rules the roost, though it wouldn’t be referred to as Win32 today for various reasons. Win32 is stable, supported and will stay supported forever, as various technologies built on top of it come and go. It is the API fo
43.
▲
Smart beds began roasting their owners during AWS outage
(pcworld.com)
5 points
by
branko_d
1y ago
|
2 comments
44.
▲
by
branko_d
1y ago
Why? It's just a property of type transformation. Assuming Parent <- Child ("<-" denotes inheritance): - If Generic<Parent> <- Generic<Child>: it's covariant. - If Generic<Parent> -> Generic
45.
▲
by
branko_d
1y ago
> But I haven't used source generators in C# in at least 10 years Source generators didn't exist in C# 10 years ago. You probably had something else in mind?
46.
▲
by
branko_d
1y ago
Some examples: - Attributes can do a lot of magic that is not always obvious or well documented. - ASP.NET pipeline. - Source generators. I love C#, but I have to admit we could have done with less “magic” in cases like these.
47.
▲
by
branko_d
1y ago
I was disappointed that men in the video were sorted by their numbers, but not their height! ;)
48.
▲
by
branko_d
1y ago
> would happen the same in a single-threaded event loop Well...if you implemented a relational DBMS server without using threads. To my knowledge, no such DBMS exists, so the distinction seems rather academic. > Btw if you really want
49.
▲
by
branko_d
1y ago
“Running 4 SQL queries in parallel” is not thread-safe if done in separate transactions, and on data that is not read-only. If some other transaction commits at just the wrong time, it could change the result of some of these queries but no
50.
▲
by
branko_d
1y ago
That’s my experience too. It’s so infuriating! The solution is to disable Wake Timers.
51.
▲
by
branko_d
1y ago
> businesses should stop quarterly reporting That might actually not be such a bad thing, if it removes some of the pressure to think overly short-term from the company management.
52.
▲
by
branko_d
1y ago
Hram Svetog Save (Church of Saint Sava) in Belgrade/Serbia started construction in 1935 and the exterior was finished in 2017. I haven’t been there in several years, but my understanding is that the interior is still being worked on an
53.
▲
by
branko_d
1y ago
> have you not even had any issues with sleep mode on the laptop? Now that I think of it, I did disable sleep and just use hibernate instead. I no longer remember why - perhaps I too had some issues. Maybe I was just annoyed by Windows r
54.
▲
by
branko_d
1y ago
Curious, my experience could not have been more different. I still use Asus Zephyrus G15 (GA503QR from 2021) as my main development machine, and also game occasionally on it. It's AMD Zen 3 CPU with GeForce 3070. As I write this, the f
55.
▲
by
branko_d
1y ago
> app-runtime version of NAND In the last 10 years, 3D NAND memory has scaled 10x (in bits per unit area). So… maybe not the best analogy?
56.
▲
by
branko_d
1y ago
I think React can be approached a little like JavaScript at this point: just use the good parts! In my case that means using it as a rendering library and component composer, but not for managing state or side-effects.
57.
▲
by
branko_d
1y ago
> That's part of .NET Framework and therefore legacy, right? Do the database libraries from recent versions of .NET do this? ADO.NET is available both in the legacy Windows-only .NET Framework and in the new cross-platform .NET (pre
58.
▲
by
branko_d
1y ago
> when a particular build of your app executes a query that calls out to a user-defined function, it uses the SQL function code from the same commit that the app itself was built from I don't really see a "problem" here. H
59.
▲
by
branko_d
1y ago
> You want all of your query logic to be versioned with your application code. SQL can be stored in version control just as well as any other code. This can include application-level queries as well as the DDL SQL which defines the actua
60.
▲
by
branko_d
1y ago
> Only for parameterization over scalar values. ADO.NET has full support for table-valued parameters.
More ›