MySqlConnector VS .NET Runtime

Compare MySqlConnector vs .NET Runtime and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
MySqlConnector .NET Runtime
8 621
1,364 14,409
0.7% 2.2%
9.0 10.0
11 days ago 1 day ago
C# C#
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

MySqlConnector

Posts with mentions or reviews of MySqlConnector. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-06.
  • Faster MySQL with HTTP/3
    2 projects | news.ycombinator.com | 6 Jan 2023
    MySqlConnector (the most popular .NET library for MySQL, and the one that I authored) has supported protocol compression for many years: https://github.com/mysql-net/MySqlConnector/issues/31.
  • Implementing the MySQL server protocol for fun and profit
    2 projects | news.ycombinator.com | 22 Dec 2022
    > I kept technical notes about the protocol, to serve as a future reference for myself and for other developers.

    As someone who's written a MySQL client (in C#: https://github.com/mysql-net/MySqlConnector), I'd be very interested to see your notes. Are they available anywhere, or were they the confidential IP of your client?

    > Unsurprisingly, bugs were uncovered every time a new client was added.

    I've faced the same thing, from a client perspective. Every time a new server is tested (MySQL, MariaDB, Amazon Aurora, Azure Database for MySQL, etc.), I find slightly different interpretations of the protocol and have to accommodate them.

  • Ask HN: Examples of Top C# Code?
    29 projects | news.ycombinator.com | 25 Oct 2022
    I have had the pleasure of contributing to a couple different networked drivers with very talented maintainers that I like to use as references.

    One supports a wide array of Framework versions and has both Sync and Async I/O, as it must to implement the ADO.NET database driver interfaces. Reading the internals really highlight the way that .NET has evolved over the years and what must be done in each target version to maximize performance:

    https://github.com/mysql-net/MySqlConnector

    The other supports .NET 6 only with Async I/O only. This support policy seems to be the way that "modern" .NET development is headed, as .NET 6 will be the floor for LTS .NET (formerly .NET Core) releases in a few months. Async APIs only greatly simplify development, and make it simpler to remain performant when targeting WASM.

    https://github.com/Cysharp/AlterNats

    As a library maintainer, one thing I often wonder about is how to indicate .NET version support. One option would be for the major version of the library to track the major version of .NET, so if I were to publish a new library today then start with .NET 6 support and start with version number 6.0.0 instead of 1.0.0. This would limit the library to only making breaking changes when the .NET version changes though.

  • Do I need to worry about connection pooling/etc with MySql.Data.MySqlClient?
    1 project | /r/dotnet | 5 Oct 2022
  • Need some help/direction reading CSV into MySQL without duplication
    3 projects | /r/csharp | 30 Aug 2022
    Use the MySqlConnector to load the data into a temp table using the bulk copy API. Both of my libraries implement the IDataReader (DbDataReader) interface, so they can be directly used with the bulk copy APIs. Then insert into the final table from the temp table filtering out rows that are already in the final table.
  • Finding an Authorization Bypass on My Own Website
    8 projects | news.ycombinator.com | 5 Mar 2022
  • Performance Improvements in .NET 6
    14 projects | news.ycombinator.com | 19 Aug 2021
    I'm the author of what you might call the "new" MySQL ADO.NET library: https://github.com/mysql-net/MySqlConnector

    I agree with your impression that developers of the other library don't seem to be "plugged in to" the .NET ecosystem. As an independent developer (not affiliated with Oracle or Microsoft), I've been able to influence GitHub PRs that shape the ADO.NET API for .NET 6.0, just by showing up and contributing; I haven't seen anyone from the Oracle MySQL team participating. Meanwhile, they violate basic principles of the .NET Framework Design Guidelines that have been around for over a decade (https://docs.microsoft.com/en-us/dotnet/standard/design-guid...), which makes their library feel alien to a .NET programmer (regardless of the quality issues it might have).

  • MongoDB C# Driver Vs. MongoDB.Entities Benchmark
    2 projects | /r/dotnet | 18 Jun 2021
    e.g. this community effort of a MySQL ADO.NET provider is miles ahead of Oracle's driver.

.NET Runtime

Posts with mentions or reviews of .NET Runtime. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-06-13.
  • Scan HTML faster with SIMD instructions – Chrome edition
    4 projects | news.ycombinator.com | 13 Jun 2024
    A little more on topic, if you like SIMD and C#, dotnet/runtime now has an introductory guide to Vector128/256/512 API:

    https://github.com/dotnet/runtime/blob/main/docs/coding-guid...

    Now, the default syntax can still be a bit more wordy with byref arithmetics than ideal, but you can add a few extension methods to look it closer to Rust's pointer arithmetics: https://github.com/U8String/U8String/blob/main/Sources/U8Str...

  • in Rust, methods should be object safe
    2 projects | news.ycombinator.com | 10 Jun 2024
    You must be trolling and not evaluating either on their current state, or have little understanding of the subject matter as others have pointed out.

    Please write an efficient text element scanner that uses all AVX512 vector width in Java that matches LLVM codegen and can take any source of memory? You can easily do that in C#, it's impossible to do it in Java alone.

    https://github.com/dotnet/runtime/blob/7cd8459e7bd3883f0aa86...

  • C# Zip Archive Entry
    2 projects | dev.to | 31 May 2024
    This library is based on modified code from the Microsoft System.IO.Compression repository, and includes the Deflate64 algorithm from the same source.
  • Runtime code generation and execution in Go
    8 projects | news.ycombinator.com | 29 May 2024
    This looks like a fun project but for serious work, if you need runtime codegen, you should use .NET which has been successfully using reflection and IL emit for more than a decade:

    - Regex https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...

    - Json https://github.com/neuecc/Utf8Json/tree/master?tab=readme-ov... (this project is archived but nonetheless impressive and continues to show good numbers despite obsoletion)

    - LINQ to DB query compilation https://github.com/dotnet/efcore/blob/main/src/EFCore/Query/...

  • Core .NET engineer: why it takes longer to implement groundbreaking features
    1 project | news.ycombinator.com | 25 May 2024
  • Clever code is probably the worst code you could write
    3 projects | news.ycombinator.com | 21 May 2024
    There is nothing wrong with System.Linq just like there's nothing wrong with Rust's std::iter::Iterator. If anything, this makes writing Rust very familiar if you have C# experience and vice versa.

    The performance profile of LINQ, while much maligned, has been steadily improving over the years and, in the example of Sum itself, you actually do want to use it because it will sum faster than open-coded loop[0].

    I do have grievances regarding LINQ still - my (non-negotiable) standpoint is that Roslyn (C# compiler) must lower non-escaping LINQ operations to open-coded loops, inline lambdas at IL level and similar, making it zero-cost - .NET (IL compiler/runtime) provides all the tools necessary to match what Rust's zero-cost-ish iterator expressions offer and there just needs to be more political will in the Roslyn teams to do so. Because of this, I'm holding my breath waiting for DistIL[1] to be production-ready which does just that.

    [0]: https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...

    [1]: https://github.com/dubiousconst282/DistIL

  • Microsoft's $1M Vote of Confidence in Rust's Future
    1 project | news.ycombinator.com | 12 May 2024
    When .NET (that is, what became CoreCLR runtime flavour) became open-sourced, it was done in such a way as not to cause issues for existing Mono, Xamarin and Unity code, and allow cleanly merging the first two into overarching .NET ecosystem.

    https://github.com/dotnet/runtime/blob/main/LICENSE.TXT

    https://github.com/dotnet/runtime/blob/main/PATENTS.TXT

    Given that MSFT never sued anyone for .NET or .NET-related matters, so far their reputation is clean in that area, unlike certain Java-related company.

  • How to Use the Foreign Function API in Java 22 to Call C Libraries
    11 projects | news.ycombinator.com | 8 May 2024
    Async/await is not a tight corner as showcased by a multitude of languages adopting the pattern: Rust, Python, JavaScript and Swift.

    In fact, it is a clean abstraction where future progress is possible while retaining the convenience of its concurrency syntax and task composition.

    Green threads experiment proved net negative in terms of benefit but its the follow-up work on modernizing the implementation detail was very successful: https://github.com/dotnet/runtime/issues/94620 / https://github.com/dotnet/runtimelab/blob/feature/async2-exp...

    It also seems that common practices in Java indicate that properties are not a mistake as showcased by popularity of Lombok and dozens of other libraries to generate builders and property-like methods (or, worse, Java developers having to write them by hand).

  • The search for easier safe systems programming
    11 projects | news.ycombinator.com | 8 May 2024
    .NET has explicit tailcalls - they are heavily used by and were made for F#.

    https://learn.microsoft.com/en-us/dotnet/api/system.reflecti...

    https://github.com/dotnet/runtime/blob/main/docs/design/feat...

  • Arena-Based Parsers
    4 projects | news.ycombinator.com | 8 May 2024
    The description indicates it is not production ready, and is archived at the same time.

    If you pull all stops in each respective language, C# will always end up winning at parsing text as it offers C structs, pointers, zero-cost interop, Rust-style struct generics, cross-platform SIMD API and simply has better compiler. You can win back some performance in Go by writing hot parts in Go's ASM dialect at much greater effort for a specific platform.

    For example, Go has to resort to this https://github.com/golang/go/blob/4ed358b57efdad9ed710be7f4f... in order to efficiently scan memory, while in C# you write the following once and it compiles to all supported ISAs with their respective SIMD instructions for a given vector width: https://github.com/dotnet/runtime/blob/56e67a7aacb8a644cc6b8... (there is a lot of code because C# covers much wider range of scenarios and does not accept sacrificing performance in odd lengths and edge cases, which Go does).

    Another example is computing CRC32: you have to write ASM for Go https://github.com/golang/go/blob/4ed358b57efdad9ed710be7f4f..., in C# you simply write standard vectorized routine once https://github.com/dotnet/runtime/blob/56e67a7aacb8a644cc6b8... (its codegen is competitive with hand-intrinsified C++ code).

    There is a lot more of this. Performance and low-level primitives to achieve it have been an area of focus of .NET for a long time, so it is disheartening to see one tenth of effort in Go to receive so much spotlight.

What are some alternatives?

When comparing MySqlConnector and .NET Runtime you can also consider the following projects:

Pomelo.EntityFrameworkCore.MySql - Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector

Ryujinx - Experimental Nintendo Switch Emulator written in C#

Avalonia.FuncUI - Develop cross-plattform GUI Applications using F# and Avalonia!

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

openiddict-core - Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET

actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

Hot Chocolate - Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.

WASI - WebAssembly System Interface

Marten - .NET Transactional Document DB and Event Store on PostgreSQL

CoreCLR - CoreCLR is the runtime for .NET Core. It includes the garbage collector, JIT compiler, primitive data types and low-level classes.

aqtinstall - aqt: Another (unofficial) Qt CLI Installer on multi-platforms

vgpu_unlock - Unlock vGPU functionality for consumer grade GPUs.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured