.NEXT (dotNext) is a set of powerful libraries aimed to improve development productivity and extend .NET API with unique features. Some of these features are planned in future releases of .NET platform but already implemented in the library:
Quick overview of additional features:
- Attachment of user data to an arbitrary objects
- Extended set of atomic operations. Inspired by AtomicInteger and friends from Java
- Fast Reflection
- Fast conversion of bytes to hexadecimal representation and vice versa using
ToHex
andFromHex
methods from Span static class ManualResetEvent
,ReaderWriterLockSlim
and other synchronization primitives now have their asynchronous versions- Atomic memory access operations for arbitrary value types including enums
- PipeExtensions provides high-level I/O operations for pipelines such as string encoding and decoding
- A rich set of high-performance memory buffers for efficient I/O
- String formatting, encoding and decoding with low GC pressure: dynamic char buffers
- Fully-featured Raft implementation
- Fully-featured HyParView implementation
All these things are implemented in 100% managed code on top of existing .NET API without modifications of Roslyn compiler or CoreFX libraries.
Release Date: 02-01-2022
- Improved scalability of mechanism that allows to attach custom data to arbitrary objects using
UserDataStorage
andUserDataSlot<T>
types. The improvement works better in high workloads without the risk of lock contention but requires a bit more CPU cycles to obtain the data attached to the object - Added ability to enumerate values stored in
TypeMap<T>
orConcurrentTypeMap<T>
- Improved debugging experience of
UserDataStorage
type - Added
Dictionary.Empty
static method that allows to obtain a singleton of empty IReadOnlyDictionary<TKey, TValue> - Fixed decoding buffer oveflow in
Base64Decoder
type - Added
Base64Encoder
type for fast encoding of large binary data - Deprecation of
Sequence.FirstOrEmpty
extension methods in favor ofSequence.FirstOrNone
- Fixed #91
- Public constructors of
PooledBufferWriter
andPooledArrayBufferWriter
with parameters are obsolete in favor of init-only properties - Reduced size of the compiled assembly: omit nullability attributes for private and internal members
- Optimized performance of
Timeout
,Optional<T>
,Result<T>
andResult<T, TError>
types - Introduced
DotNext.Runtime.SoftReference
data type in addition to WeakReference from .NET
- Improved overall performance of some scenarios where
UserDataStorage
is used - Reduced size of the compiled assembly: omit nullability attributes for private and internal members
- Improved overall performance of some scenarios where
UserDataStorage
is used - Reduced size of the compiled assembly: omit nullability attributes for private and internal members
- Updated dependencies
- Reduced size of the compiled assembly: omit private and internal member's nullability attributes
- Reduced execution time of
CreateTask
overloads declared inValueTaskCompletionSource
andValueTaskCompletionSource<T>
classes - Added overflow check to
AsyncCounter
class - Improved debugging experience of all asynchronous locks
- Reduced size of the compiled assembly: omit nullability attributes for private and internal members
- Reduced lock contention that can be caused by asynchronous locks in concurrent scenarios
- Added
Reset()
method toTaskCompletionPipe<T>
that allows to reuse the pipe
- Reduced size of the compiled assembly: omit nullability attributes for private and internal members
FileWriter
now implements IBufferWriter<byte>
- Improved compatibility with IL trimming
- Reduced size of the compiled assembly: omit private and internal member's nullability attributes
- Completely rewritten implementation of TCP transport: better buffering and less network overhead. This version of protocol is not binary compatible with any version prior to 4.2.0
- Increased overall stability of the cluster
- Fixed bug with incorrect calculation of the offset within partition file when using persistent WAL. The bug could prevent the node to start correctly with non-empty WAL
- Added Reflection-free support of JSON log entries powered by JSON Source Generator from .NET
DotNext.AspNetCore.Cluster 4.2.0
- Improved compatibility with IL trimming
- Reduced size of the compiled assembly: omit nullability attributes for private and internal members
Changelog for previous versions located here.
The libraries are versioned according with Semantic Versioning 2.0.
Version | .NET compatibility | Support Level |
---|---|---|
0.x | .NET Standard 2.0 | Not Supported |
1.x | .NET Standard 2.0 | Not Supported |
2.x | .NET Standard 2.1 | Not Supported |
3.x | .NET Standard 2.1, .NET 5 | Maintenance |
4.x | .NET 6 | Active development |
Maintenance support level means that new releases will contain bug fixes only.
Philosophy of development process:
- All libraries in .NEXT family are available for the wide range of .NET runtimes: Mono, .NET, Blazor
- Compatibility with R2R/AOT compiler should be checked for every release
- Minimize set of dependencies
- Provide high-quality documentation
- Stay cross-platform
- Provide benchmarks
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the .NET Foundation Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.