rustc_codegen_clr

A Rust compiler backend targeting CIL(.NET IR) and C. (by FractalFir)

Rustc_codegen_clr Alternatives

Similar projects and alternatives to rustc_codegen_clr

  1. rust

    Empowering everyone to build reliable and efficient software.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. go

    The Go programming language

  4. zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

  5. .NET Runtime

    .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

  6. esbuild

    An extremely fast bundler for the web

  7. Avalonia

    Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology

  8. MicroPython

    MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. Roslyn

    The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

  11. Uno Platform

    Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!

  12. TinyGo

    Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.

  13. RustPython

    A Python Interpreter written in Rust

  14. Mono

    Mono open source ECMA CLI, C# and .NET implementation.

  15. WPF

    WPF is a .NET Core UI framework for building Windows desktop applications.

  16. Silk.NET

    The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.

  17. typescript-go

    Staging repo for development of native port of TypeScript

  18. stc

    Discontinued Speedy TypeScript type checker

  19. Eto.Forms

    Cross platform GUI framework for desktop and mobile applications in .NET

  20. source-build

    A repository to track efforts to produce a source tarball of the .NET Core SDK and all its components

  21. wizer

    The WebAssembly Pre-Initializer

  22. ffidji

    🐶 FFIDJI is a tool to automatically generate bindings between languages, like calling Rust code from C# for instance.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better rustc_codegen_clr alternative or higher similarity.

rustc_codegen_clr discussion

Log in or Post with

rustc_codegen_clr reviews and mentions

Posts with mentions or reviews of rustc_codegen_clr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-12.
  • Rust to C compiler – 95.9% test pass rate, odd platforms
    8 projects | news.ycombinator.com | 12 Apr 2025
    https://github.com/FractalFir/rustc_codegen_clr - from a quick glance at it, with 1.8k stars and 17 contributors, it deserves a better treatment than a passive—aggressive dismissal like this as a top comment.

    It is a very impressive piece of work.

  • A 10x Faster TypeScript
    38 projects | news.ycombinator.com | 11 Mar 2025
    > Cue rust devotees in 3, 2, ..

    If you are a rust devotee, you can use https://github.com/FractalFir/rustc_codegen_clr to compile your rust code to the .NET runtime. The project is still in the works but support is said to be about 95% complete.

  • Rust Kernel Policy
    3 projects | news.ycombinator.com | 11 Feb 2025
    We now have https://github.com/FractalFir/rustc_codegen_clr . So we can keep all our Rust files out-of-tree and just submit C code like everyone else.
  • Rust-Query
    3 projects | news.ycombinator.com | 30 Nov 2024
    I'm impressed by this individual's effort to bring rust to the clr: https://github.com/FractalFir/rustc_codegen_clr

    It is already way more complete given it's age than I would have expected.

    I agree that the clr is a more natural target than, let's say, the JVM (at least until Project Valhalla comes out).

  • Microsoft donates the Mono Project to the Wine team
    30 projects | news.ycombinator.com | 27 Aug 2024
    No, it is not.

    The comparison we discussed was for unrepresentative code that used none of the features that make .NET fast (especially generics, SIMD and devirtualization). The closest case in there was JSON serialization. It is unfortunate that you feel a need to say this, knowing that it doesn't even show a tip of the iceberg.

    Please do not mislead casual readers here with such comments.

    They will have a bad time running basic programs - the original Mono is outdated and cannot execute assemblies that target non-legacy versions, and the Mono that lives in dotnet/runtime (which you have to go out of your way to use on CoreCLR platforms) tends to have all kinds of regressions on user-provided code that is not as robust on runtime checks to ensure that Mono does not accidentally go onto the path that that it has especially bad regression on. Even CoreLib code nowadays uses more and more struct generics assuming monomorhpization which performs poorly on Mono. There is very little work done to improve performance on Mono with effort invested mostly in WASM area and to ensure it does not regress further. Major platforms like Android and iOS are in the slow but steady progress to migrate to CoreCLR/NativeAOT (there are other reasons not in the least much smaller binary size). And for WASM there is NativeAOT-LLVM experiment that is likely to make Mono obsolete for that target too.

    The workloads that matter and are representative are the ones produced by C#, F# and VB.NET compilers as well as projects that care about exercising the standard library and/or produce recommended CIL forms (like https://github.com/FractalFir/rustc_codegen_clr).

  • Rust to .NET compiler: Statically Sized, dynamically sized, and other
    1 project | news.ycombinator.com | 6 Jun 2024
    For clarity, that portion after the : is the blog post title, the prefix was added to the submission, so they're kind of disjoint

    One will also want to temper their expectations per https://github.com/FractalFir/rustc_codegen_clr#current-stat... (MIT & Apache 2)

  • The search for easier safe systems programming
    11 projects | news.ycombinator.com | 8 May 2024
    I don't have something that could be of Crafting Interpreters level on hand, but the general suggestion given to this question on DotNetEvolution discord by Roslyn team members was to start with the spec itself: https://ecma-international.org/publications-and-standards/st...

    This might be a bit of a learning curve if you don't have experience with writing compilers like that though.

    There are other materials that might prove useful should you go down this path:

    - A series of blog posts of a student who is writing a Rust to .NET compiler which you could follow along: https://fractalfir.github.io/generated_html/home.html The project itself: https://github.com/FractalFir/rustc_codegen_clr

    - A video series on writing a compiler for .NET from scratch: https://www.youtube.com/watch?v=wgHIkdUQbp0&list=PLRAdsfhKI4... Notes: https://github.com/terrajobst/minsk/tree/master/docs

    As for CLR via C#, while it has certain facts that remained the same, the ecosystem has changed a lot since then, you really want to target the latest LTS to get best experience and performance.

    p.s.: if it's any consolation, the promise in CLR via C# of JIT having the advantage of dynamically profiling code execution and compiling to profile-guided version, tuned to the exact hardware and environment is finally fulfilled, many years later :)

  • Rust to .NET compiler – Progress update
    2 projects | news.ycombinator.com | 3 May 2024
    The author answers the "why" in the FAQ https://github.com/FractalFir/rustc_codegen_clr?tab=readme-o.... I didn't find it very convincing but I'm sure the author will learn a lot of neat things along the way.
  • Rust in .NET Projects
    1 project | news.ycombinator.com | 7 Feb 2024
  • RustPython
    14 projects | news.ycombinator.com | 7 Feb 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jul 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic rustc_codegen_clr repo stats
13
1,936
9.3
about 1 month ago

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Rust is
the 5th most popular programming language
based on number of references?