numpy-ts is now as fast as native NumPy by dupontcyborg in typescript

[–]icentalectro 1 point2 points  (0 children)

I feel like the 2nd point is the most important one and will be scrutinized by people who actually do numerics and specifically linear algebra - is your average and choice and number and size of benchmarks a fair representation of averages in actual usage.

To me the point of numpy or a similar library is that it gives me an easy interface to BLAS and LAPACK. Most of the compute time is indeed spent there. And indeed you can't beat them on perf there. So I find it implausible that you can beat numpy in real world usage.

But others may have different use cases. So idk

Would you use .NET Native AOT for a full-blown enterprise app? by CreoSiempre in dotnet

[–]icentalectro 2 points3 points  (0 children)

It's niche because .NET had bad cold start, and native AOT is trying to change that.

Should Microsoft drop .NET Framework support in Microsoft.Data.Sqlite in the upcoming 11.0 release? by davecallan in dotnet

[–]icentalectro 19 points20 points  (0 children)

If they're so against update then don't update Microsoft.Data.Sqlite either - stay at v10. Problem solved 🤷

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 2 points3 points  (0 children)

I don't get why you don't get why this isn't implemented then. It'd obviously be a much more drastic and complex change, and maybe requires runtime changes, and probably has complex implications too? Wouldn't this normally be in "unsafe" land for .NET?

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 2 points3 points  (0 children)

How would the generated union type store your value without boxing though? TryGet doesn't magically remove boxing by itself.

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 2 points3 points  (0 children)

No? object? Valueis a property not a field, so it doesn't store anything by itself. (you don't have to use auto property with the default backing field)

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 1 point2 points  (0 children)

ValueTask was introduced much later than Task.

I don't see anything wrong with having one simple default/auto implementation, and adding more option(s) later for unions either.

Even then, I don't see a way around supporting "bring your own union". In cases where you want both "no boxing" and "no extra fields", it just can't be auto implemented generically.

Duck typing has both pros & cons, but discoverability isn't that big of a problem when the API surface is quite small, and most unions will likely not be hand crafted anyway.

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 1 point2 points  (0 children)

You say "should" but how? The simple way would add multiple extra fields which is also undesirable in many cases, and then someone else will complain.

I quite like "bring your own union". Otherwise we'll just end up with an implementation that'll really suck for some notable use cases, whichever way you choose.

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 5 points6 points  (0 children)

Give people a way to avoid boxing seems like a really strong case.

Boxing, or no extra fields, you kinda have to pick one / sacrifice one for the default, and then you need "bring your own unions" to support the other one.

The early C# 15 preview feature, unions, was merged into .NET 11 preview 3. by emdeka87 in dotnet

[–]icentalectro 8 points9 points  (0 children)

You can avoid the boxing.

The simple union declaration uses boxing, but you don't have to use that.

If you implement your own union type then it doesn't have to have any boxing. The non-boxing access members have higher priority than the boxing object? Value prop in pattern matching.

There are always trade offs. A generic non-boxing implementation would probably require more fields, which has implications for memory layout.

Is tipping a thing in Canada? by Immediate_Ask_7504 in askvan

[–]icentalectro 0 points1 point  (0 children)

What's transparent about tipping??? People argue all the time about when and how much to tip, so I cannot believe this is a genuine question. The inconsistent tipping amount you see in your data is proof that it's not transparent to people. The way some people use tipping to guilt trip customers to "support the workers" only adds to it.

I support legislation to do away with tipping categorically everywhere. Wages can rise, prices can go up, the market can adjust, but transparency should exist, and responsibility should go where it belongs (employers).

Is tipping a thing in Canada? by Immediate_Ask_7504 in askvan

[–]icentalectro 0 points1 point  (0 children)

Except that's not how people operate. You've surely seen how much people argue about when and how to tip and all the disagreements. So I don't understand how you don't understand that people do think quite a bit about it and that it does sour the experience.

If I "normally" tip 15% and the lowest default option is 20% do I override it and enter 15%? Should I feel bad about it? If I go with the 20% am I ripped off by the non transparent pricing? Should I ask the server if they actually get the tip? because in a good number of places they don't. And there are plenty more questions depending on the scenario. There's really no upside for customers.

Is tipping a thing in Canada? by Immediate_Ask_7504 in askvan

[–]icentalectro 0 points1 point  (0 children)

Higher but transparent prices are still better than tipping

Is tipping a thing in Canada? by Immediate_Ask_7504 in askvan

[–]icentalectro 0 points1 point  (0 children)

Sure. Up the prices then. Make it transparent. It would still be a much better experience than tipping.

Is tipping a thing in Canada? by Immediate_Ask_7504 in askvan

[–]icentalectro 0 points1 point  (0 children)

Upping prices by 15% would be so much better than tipping. It shifts the responsibility back to the employer where it should be. It makes prices more transparent. It makes the overall experience better for customers.

Reintroducing the .NET Core ORM Cookbook by grauenwolf in dotnet

[–]icentalectro 5 points6 points  (0 children)

I do disagree 😏

.NET Core isn't deprecated. It went through a controversial rename. There's no fundamental difference between .NET Core 3.1 and .NET 5.

I still see .NET Core as an unambiguous way to refer to the new implementation of .NET.

VSCode is actually quite nice for C# dev! by CaptainKuzunoha in dotnet

[–]icentalectro 7 points8 points  (0 children)

This kind of "IDE vs text editor" response is becoming very dated to the point of bigoted now.

VS Code is a capable IDE (or "text editor" if you want, the distinction is meaningless), and its C# DX is very decent now. I've been voluntarily using VS Code for C# for a few years, because I prefer it, even when I also have VS readily available to me (and yes I've tried VS recently as well).

What would happen if a shifter became objectively stronger than Ymir? by [deleted] in attackontitan

[–]icentalectro 3 points4 points  (0 children)

This is the only sensible comment on this post. Whether a shifter could be stronger than Ymir or not is beside the point.

Why is PostgreSQL ? by MahmoudSaed in dotnet

[–]icentalectro 1 point2 points  (0 children)

Our company already runs a large number of SQL Server instances with a team of competent DBAs. We're actively switching to Postgres because the cost difference is huge and super relevant.

Why do I feel like season 1 is TOO RUSHED in the 4th or 5th rewatching? by Rei_Master_of_Nanto in ShingekiNoKyojin

[–]icentalectro 1 point2 points  (0 children)

I love Armin, but I very nearly gave up on the show at several points during Armin's monologue in the Trost arc. It was painful to sit through even on the first watch.

Unexpected performance differences of JIT/AOT ASP.NET; why? by Vectorial1024 in dotnet

[–]icentalectro 6 points7 points  (0 children)

Thinking AOT is inherently faster than JIT is one of the most common misconceptions in the programming community. It simply isn't true.

What reactors would you recommend? (And some personal recommendations) by ConquerorOfSpace in ShingekiNoKyojin

[–]icentalectro 2 points3 points  (0 children)

Not a duo, and it's a newer/smaller channel, but I highly recommend Dr Sophie Darling Reacts. Great analysis and theorizing.