4 ms·
C# is doing that :) https://learn.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics?view=net-8.0 https://learn.microsoft.com/en-us/dotnet/api/system.run
by neonsunset 3y ago
C# is doing that :)
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics?view=net-8.0 https://learn.microsoft.com/en-us/dotnet/api/system.runtime....
Examples of usage:
- https://github.com/U8String/U8String/blob/main/Sources/U8String/Shared/U8Searching.cs#L489-L551 https://github.com/U8String/U8String/blob/main/Sources/U8Str...
- https://github.com/nietras/1brc.cs/blob/main/src/Brc/BrcAccumulator.cs#L49-L116 https://github.com/nietras/1brc.cs/blob/main/src/Brc/BrcAccu...
- https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Encoder.cs#L241-L310 https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...
(and many more if you search github for the uses of Vector128/256<byte> and the like!)
- pjmlp 3y agoJava as well, unfortunelly it will be kept around as preview until Valhala arrives (if ever).