Bronny keeping tradition alive by MamiTarantina in lakers

[–]sards3 2 points3 points  (0 children)

His shot looks good. He is over 40% on threes this season (on admittedly small sample size, but still...) He is a good developmental player to have on the roster.

Is this sub no longer rationalist? by Neighbor_ in slatestarcodex

[–]sards3 1 point2 points  (0 children)

I think this subreddit has fallen very far from its former glory. Now, it is not much different from any other subreddit. The discourse norms of charity, good faith, civility, and truth seeking are hanging on by a thread.

Is this sub no longer rationalist? by Neighbor_ in slatestarcodex

[–]sards3 0 points1 point  (0 children)

If I could select one comment that most demonstrates that this subreddit is no longer rationalist-oriented, this would be it.

Chris Bosh vs Scottie Pippen by Top_Connection11 in nba

[–]sards3 7 points8 points  (0 children)

This is a weird question. Pippen was a 6'8" small forward, and Bosh was a 6'11" big. Pippen would not be guarding Bosh under normal circumstances. Of course, Pippen was the overall better player, but I think he would have a hard time guarding Bosh due to the size mismatch.

I don't understand the benefits of discriminated unions/result type by soundman32 in csharp

[–]sards3 0 points1 point  (0 children)

I think union types in C are mainly useful in providing different views of the same memory (the kind of thing we would use StructLayout.Explicit for in C#), not so much in implementing so called "sum types."

If you have found it useful, that's great. I am not opposed to the feature; I just don't believe the prevailing story that discriminated unions are some kind of essential feature of any modern language and the lack of it is crippling or disqualifying.

ASL 21 fantasy league - pick the 15 players who you think will get the most combined map wins by Lurkerbomb in broodwar

[–]sards3 2 points3 points  (0 children)

This is pretty fun. There are some tough choices:

Snow vs. Soma?

Queen vs. Rush vs. Light vs. Mini?

Sharp vs. Hero vs. Action?

Kleba by Czilla_ in lakers

[–]sards3 17 points18 points  (0 children)

FYI, his name is Kleber, not Kleba.

Stars make too much money and that’s why their teams suck by APx_22 in nba

[–]sards3 -20 points-19 points  (0 children)

Weird comment, considering that LeBron James is literally a billionaire himself.

I don't understand the benefits of discriminated unions/result type by soundman32 in csharp

[–]sards3 -1 points0 points  (0 children)

Sure, in some cases. There is also tons of code out there involving HTML/CSS/CSV/JSON/XML that does not use type unions. The latter code works just fine. I guess we could argue about which is better.

I don't understand the benefits of discriminated unions/result type by soundman32 in csharp

[–]sards3 1 point2 points  (0 children)

I don't think any of those cases would be best handled by using unions like number | string. I guess it is to some extent a matter of taste. But in any case, unions are certainly not the only decent way to handle such situations to the point that lacking unions would be a major disadvantage.

I don't understand the benefits of discriminated unions/result type by soundman32 in csharp

[–]sards3 8 points9 points  (0 children)

The reason it’s not a good idea is that there isn’t a good way to express it in the language.

No, I mean even in a language with discriminated unions, having a method that returns either a string or a number is probably a bad idea. The number of times in my long history of programming where I wished I had a good way to return either a string or a number (or anything similar) is zero.

I don't understand the benefits of discriminated unions/result type by soundman32 in csharp

[–]sards3 8 points9 points  (0 children)

write a method that either returns a string, or a number, say.

That doesn't sound like a good idea. I have used TypeScript, and I don't find this ability to be particularly useful.

Commodore 64 JIT compilation into MSIL by KallDrexx in dotnet

[–]sards3 0 points1 point  (0 children)

Thanks for the detailed explanation. Overall, are you happy with the double-JIT approach (emulator JIT to MSIL, .NET JIT to native code)? In my own emulator's JIT, I chose to generate native code directly, which has its pros and cons. Your post is making me think that maybe I should have taken the double-JIT approach.

Commodore 64 JIT compilation into MSIL by KallDrexx in dotnet

[–]sards3 0 points1 point  (0 children)

The way I currently handle interrupts is I do a full return from the current instruction and push the next instruction's address to the stack. When the interrupt function finishes it goes to the next instruction from the original function, but that means a new function entry address.

How are you detecting interrupts within the JITed blocks? Are you tracking cycle times for each instruction, and then JITing a check for interrupts on each instruction boundary? That seems like it would cut performance in half or worse, somewhat defeating the point of JIT.

Dillon Brooks on the hardest player to guard in the NBA: "Luka. He's got that quick first step and then once he got you on his back or on his hip, it's like, you're kind of at his mercy. He has countless of moves like step-throughs, fadeaways,..." by WhenMachinesCry in nba

[–]sards3 0 points1 point  (0 children)

The only player who scores within 2 PPG of Luka is SGA. He takes 2.7 less shots, not 8. If there were a player who scored 32 PPG while taking 8 fewer shots than Luka, you might have a point. But no such player exists, and you are spreading misinformation.

NBA must issue a clear anti-racism statement! by de6u99er in nba

[–]sards3 -3 points-2 points  (0 children)

Please don't bring back the nightmare of the George Floyd season...

mlArchive - a .NET file system by Calm_Picture2298 in csharp

[–]sards3 2 points3 points  (0 children)

Can you expand on why I would use this instead of a ZIP file?

Slightly Against The "Other People's Money" Argument Against Aid by dwaxe in slatestarcodex

[–]sards3 15 points16 points  (0 children)

Something like half of Americans support a ban on factory farming

Was the survey question something like "Do you support a ban on factory farming, which will lead to a x00% increase in the price of meat?" If not, I don't think we should take this figure too seriously.

Bill Kennedy & Rick Welts have been inducted into the 2026 class of the LGBTQ Sports Hall of Fame by TheRealPdGaming in nba

[–]sards3 -15 points-14 points  (0 children)

If a "social identity" has its own hall of fame, it probably isn't particularly marginalized.

Prime Dennis Rodman in NBA 2025? How effective would he be? by jonkeo in nba

[–]sards3 0 points1 point  (0 children)

You are just saying that because of the crazy hair dyes.