duckscript VS rustc_codegen_clr

Compare duckscript vs rustc_codegen_clr and see what are their differences.

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
featured
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.
getstream.io
featured
duckscript rustc_codegen_clr
4 13
558 1,936
1.8% 1.3%
7.7 9.3
about 1 month ago about 1 month ago
Rust Rust
Apache License 2.0 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.

duckscript

Posts with mentions or reviews of duckscript. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-07.
  • Duckscript
    1 project | news.ycombinator.com | 19 Jan 2025
  • RustPython
    14 projects | news.ycombinator.com | 7 Feb 2024
  • New alternative for clap (declarative, basic and simple)
    7 projects | /r/rust | 5 Aug 2022
    Currently i'm using it in cargo-make but will also use it later to parse args for duckscript commands.
  • Are there any embeddable languages in rust?
    6 projects | /r/rust | 22 Oct 2021
    At it's most basic you could make a really simple interpreter by just doing such a thing, and there is essentially already such a simple language like that built for/in rust called Duckscript (rust has a surprisingly large number of little embedded languages), and that would be completely and entirely sufficient for many purposes, though if you want speed then you'll need to JIT or AOT the code, which is why wasm is so handy as you can interpret or JIT (or even AOT it with wasmer) without the much larger overhead of a, for example, javascript or java embedded runtime.

rustc_codegen_clr

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

What are some alternatives?

When comparing duckscript and rustc_codegen_clr you can also consider the following projects:

wasmi - Embeddable, efficient and versatile WebAssembly interpreter.

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

clap4shell - Standalone wrapper of clap for shell scripts

openEcommerce - .NET 6, ASP.NET Core 6, Entity Framework Core 6, C# 10, Angular 14, CQRS, Clean Architecture,SOLID, DDD.

vonuvoli-scheme - vonuvoli Scheme -- an R7RS interpreter written in Rust focused on systems programming and scripting (i.e. processes, file-system, etc.) with performance and safety in mind

pavex - An easy-to-use Rust framework for building robust and performant APIs

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
featured
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.
getstream.io
featured

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