678 karma · joined December 4, 2016
>Two higher-end versions will be installed on more expensive BYD-branded cars and its premium Denza and Yangwang brands. These will enable a car to drive autonomously — though also under human supervision — in more complex urban traffic.
The base version is self driving as in lane assist. It will not change lanes for you or 'self drive' to your destination.
I agree with BYD that these are great safety features and give them props for not gating safety behind a paywall.
For 'large' instances, ARM64 is cheaper: https://docs.github.com/en/billing/managing-billing-for-your...
So what about regular instances?
private static uint FastDigitCount(ulong value)
{
ReadOnlySpan<byte> digitCounts = [19, 19, 19, 19, 18, 18, 18, 17, 17, 17, 16, 16, 16, 16, 15, 15, 15, 14, 14, 14, 13, 13, 13, 13, 12, 12, 12, 11, 11, 11, 10, 10, 10, 10, 9, 9, 9, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1];
ReadOnlySpan<ulong> digitCountThresholds = [0, 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, 9999999999, 99999999999, 999999999999, 9999999999999, 99999999999999, 999999999999999, 9999999999999999, 99999999999999999, 999999999999999999, 9999999999999999999];
var leadingZeros = BitOperations.LeadingZeroCount(value);
var originalDigitCount = digitCounts[leadingZeros];
return originalDigitCount + (value > digitCountThresholds[originalDigitCount] ? 1u : 0u);
}
Benchmark: https://stackoverflow.com/a/79337820/4503491Souce: https://github.com/microsoft/referencesource/blob/master/msc...
Manager: This is urgent, fix it today. Dev: Rush rush, miss deadline.
Manager: Ok no problem, let's move the deadline by a week just in case.
TimeProviderFake: https://learn.microsoft.com/en-us/dotnet/api/microsoft.exten...
ReleaseNotes: https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotn...
Is there more information available about this? Would be great to achieve this natively without requiring Fody and friends.
So it's not exactly a government free success story.