doc VS c2rust

Compare doc vs c2rust 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
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
doc c2rust
14 46
281 3,682
0.7% 2.9%
9.2 9.4
11 days ago 4 days ago
Raku Rust
Artistic License 2.0 GNU General Public License v3.0 or later
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.

doc

Posts with mentions or reviews of doc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-15.
  • The origin and virtues of semicolons in programming languages
    2 projects | news.ycombinator.com | 15 Apr 2024
    * list of list literals (1,2; 3,4) eqv ((1,2), (3,4));

    to paraphrase Larry Walk “everyone wants the [semi] colon”

    https://docs.raku.org/

  • Dada, an Experiement by the Creators of Rust
    9 projects | news.ycombinator.com | 6 Mar 2024
    amen to this … i recommend thinking about your problem in terms of effective data structures and then apply even a very simple DSL to handle access and transformations … fwiw the built in Grammars and Slang support in raku https://docs.raku.org are fantastic tools for this job.
  • Raku: A Language for Gremlins
    4 projects | news.ycombinator.com | 7 Aug 2023
    When I was looking at the language, I didn't find the documentation "really poor". In fact I was impressed at how much of a one-stop-shop the official docs site was for both conceptual docs and API docs.

    https://docs.raku.org/

  • Migrating Perl to Raku
    2 projects | dev.to | 4 Aug 2023
    The Raku Programming Language documentation already contains most (if not all) the documentation you need to deal with the issues you will confront in migrating Perl code to Raku. But, as documentation goes, the focus is on the factual differences. These blogs will try to go a little more in-depth about specific issues and provide a little more hands-on information based on my experience porting quite a lot of Perl code to Raku.
  • Introducing Pod Renewal Initiative
    3 projects | /r/rakulang | 30 Jun 2023
    I will start working on the new version of Pod as a branch in https://github.com/raku/doc.
  • Will Carbon Replace C++?
    14 projects | news.ycombinator.com | 27 Feb 2023
    Well, performance has been improved by several orders of magnitude since the first release. So maybe it's time to look at https://raku.org again (or first have a look at its new documentation site https://docs.raku.org)
  • What do yall use raku for?
    3 projects | /r/rakulang | 19 Jul 2022
    go to https://docs.raku.org/ and type "IO" into the search field. Behold the list that appears. Check out IO::Path or IO::Handle or whatever looks interesting. Maybe it's just me but I go "Ooh, look at all the things!".
  • Generating a hash without a helper function
    1 project | /r/rakulang | 3 Jul 2022
    Related: The Raku documentation does an excellent job explaining hashes/dictrionaries/associative arrays. If you've any issues, please submit a Github issue.
  • What are the best materials for learning raku?
    3 projects | /r/rakulang | 15 Mar 2022
    Raku has a lot of syntax. My first attempt at learning the language failed because I couldn't get past all the strange syntax I saw at https://docs.raku.org/. Sometimes I didn't know what the syntax was called, so I didn't know what to search for.
  • 2021 Advent of Code solutions in the Raku programming language
    5 projects | /r/rakulang | 2 Dec 2021
    In the course of figuring this out, I realized that our docs also (slightly) misstate what \d means in a Regex, which led to this PR. So thanks for bringing all this up!

c2rust

Posts with mentions or reviews of c2rust. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-10.
  • Converting the Kernel to C++
    3 projects | news.ycombinator.com | 10 Jan 2024
    A recent practical example of the former: the fish shell re-wrote incrementally from C++ to Rust, and is almost finished https://github.com/fish-shell/fish-shell/discussions/10123

    An example of the latter: c2rust, which is a work in progress but is very impressive https://github.com/immunant/c2rust

    It currently translates into unsafe Rust, but the strategy is to separate the "compile C to unsafe Rust" steps and the "compile unsafe Rust to safe Rust" steps. As I see it, as it makes the overall task simpler, allows for more user freedom, and makes the latter potentially useful even for non-transpiled code. https://immunant.com/blog/2023/03/lifting/

  • Best tools to convert code between languages?
    1 project | /r/learnprogramming | 11 Apr 2023
    But not all transpilers are between languages where at least one of them is designed to be transpiled. For example, c2rust can transpile, as the name suggests, C to (ugly, unsafe) Rust. A while ago there was a Java -> C compiler in GCC (GCJ), but it's pretty out of date now.
  • Translate C code to Rust working with libc
    1 project | /r/rust | 3 Apr 2023
    I do not know about your specific issue but you may be interested by https://github.com/immunant/c2rust
  • Rewrite in Rust or Use Rust-bindings
    1 project | /r/rust | 21 Mar 2023
    You should also consider using C2Rust (they're even working on C -> safe Rust translation)
  • Emitting Safer Rust with C2Rust
    3 projects | news.ycombinator.com | 15 Mar 2023
    > The date at the bottom of the article is 2022-06-13. Has there been further progress?

    The article links to their github repo:

    https://github.com/immunant/c2rust

    There's commits in the last hour, so at least some signal of life.

  • Writing an OS in Rust to run on RISC-V
    8 projects | news.ycombinator.com | 1 Mar 2023
    This is arguably already the state of things.

    Rust might get compiled down through MIR, down through LLVM IR, down to assembly or wasm... which then might be JIT or AOT (re)compiled into other bytecodes... which might perhaps be decompiled back up to C... and C might be retranslated back to horrific unsafe-spamming Rust by the likes of https://c2rust.com/. We've come full circle!

    The main issue is that retranslating high level languages into other high level languages isn't something that there's actually a lot of demand for, especially commercially, especially given the N x M translation matrix going on. So a lot of the projects "stabilize" (get abandoned). And automatically translating between the idioms of those languages gets even nastier in terms of matrix bloat.

    Well, you've got stuff like MSIL and JVM bytecodes which are higher level, and preserve more type information, and can be compiled to / decompiled from while still preserving more structure, but they still form competing incompatible ecosystems.

  • Will Carbon Replace C++?
    14 projects | news.ycombinator.com | 27 Feb 2023
    That's the wrong direction. What's needed are intelligent converters which convert less-strict languages to more-strict ones.

    Non-intelligent converters just make a mess. Here's c2rust.[1]

    Classic C++ to modern C++, plus a compiler flag to lock out all the old unsafe stuff, would be an achievement.

    [1] https://c2rust.com/

  • What would you rewrite in Rust?
    44 projects | /r/rust | 11 Feb 2023
  • Red Black Tree in Rust
    4 projects | /r/rust | 4 Jan 2023
    Well, technically, it's not hard to build such data structures. If you are willing to liberally use raw pointers, UnsafeCell, MaybeUninit and ManuallyDrop, then you can more-or-less write C-equivalent code in unsafe Rust. (there are even transpilers from C to Rust)
  • In Rust We Trust – A Transpiler from Unsafe C to Safer Rust
    1 project | /r/programmingcirclejerk | 5 Dec 2022
    /uj This transpiles from C to unsafe Rust using an existing tool, then strips the unsafe keyword from the generated function signatures

What are some alternatives?

When comparing doc and c2rust you can also consider the following projects:

advent - Contains all data relating to the annual Raku Advent event held 1-25 December

min-sized-rust - 🦀 How to minimize Rust binary size 📦

problem-specifications - Shared metadata for exercism exercises.

subsurface - This is the official upstream of the Subsurface divelog program

sparrowdo - Run Sparrow tasks remotely

librope - UTF-8 rope library for C

advent-of-raku-2020 - Advent of Code solutions in the Raku programming language

checkedc - Checked C is an extension to C that lets programmers write C code that is guaranteed by the compiler to be type-safe. The goal is to let people easily make their existing C code type-safe and eliminate entire classes of errors. Checked C does not address use-after-free errors. This repo has a wiki for Checked C, sample code, the specification, and test code.

rakudo - 🦋 Rakudo – Raku on MoarVM, JVM, and JS

zz - 🍺🐙 ZetZ a zymbolic verifier and tranzpiler to bare metal C [Moved to: https://github.com/zetzit/zz]

advent-of-raku-2021 - 2021 Advent of Code solutions in the Raku programming language

rtorrent - rTorrent BitTorrent client