Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Rust for C#/.NET Developers

Rust for C#/.NET Developers

Scheduled Pinned Locked Moved The Insider News
csharpperformancetutorial
16 Posts 7 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P PIEBALDconsult

    Along a similar line, back in college when I took a class in C, we used a book which was designed to teach C to developers who knew Pascal. "C as a Second Language" C as a second language : for native speakers of Pascal : Müldner, Tomasz : Internet Archive[^]

    A Offline
    A Offline
    Andre Oosthuizen
    wrote on last edited by
    #7

    And so the wheel turns... :-D

    1 Reply Last reply
    0
    • S Shao Voon Wong

      [Introduction - Rust for C#/.NET Developers](https://microsoft.github.io/rust-for-dotnet-devs/latest/)[^]: This is a (non-comprehensive) guide for C# and .NET developers that are completely new to the Rust programming language. Some concepts and constructs translate fairly well between C#/.NET and Rust, but which may be expressed differently, whereas others are a radical departure, like memory management. This guide provides a brief comparison and mapping of those constructs and concepts with concise examples.

      Now you have no excuse not to learn Rust!

      A Offline
      A Offline
      Andre Oosthuizen
      wrote on last edited by
      #8

      I always thought metal and water creates rust, seems I missed something if you have to learn it. I will have to follow suit and start learning then... :laugh:

      1 Reply Last reply
      0
      • P peterkmx

        Thanks ... The idea of both languages side-by-side makes it very interesting for learning :thumbsup:, and Rust Playground makes it even more interesting :)

        K Offline
        K Offline
        Kevin McFarlane
        wrote on last edited by
        #9

        peterkmx wrote:

        and Rust Playground makes it even more interesting

        [Rust Explorer](https://www.rustexplorer.com/b) is better. Richer intellisesnse and inline compiler errors. It also keeps a history even if not logged in. Though not always operational. Not working right now. Code runs but no intellisense. :(

        Kevin

        P 1 Reply Last reply
        0
        • R raddevus

          Shao Voon Wong wrote:

          Now you have no excuse not to learn Rust!

          But, Zig[^]! I think that may be a pretty good excuse. :rolleyes: Sorry, just trying to muddy the waters. :laugh:

          K Offline
          K Offline
          Kevin McFarlane
          wrote on last edited by
          #10

          But a long way from 1.0. Having said that, a while back I saw a post from someone who's used both and he feels there could be room for both.

          Kevin

          1 Reply Last reply
          0
          • P PIEBALDconsult

            Along a similar line, back in college when I took a class in C, we used a book which was designed to teach C to developers who knew Pascal. "C as a Second Language" C as a second language : for native speakers of Pascal : Müldner, Tomasz : Internet Archive[^]

            K Offline
            K Offline
            Kevin McFarlane
            wrote on last edited by
            #11

            PIEBALDconsult wrote:

            we used a book which was designed to teach C to developers who knew Pasca

            When I took a C course way back before becoming a dev they actually started with a bit of Pascal before moving to C. But I never used C very much commercially. Started with C++.

            Kevin

            1 Reply Last reply
            0
            • G GKP1992

              I've been meaning to bite the bullet. Maybe this will be the final push.

              K Offline
              K Offline
              Kevin McFarlane
              wrote on last edited by
              #12

              They have [Take your first steps with Rust - Training | Microsoft Learn](https://learn.microsoft.com/en-us/training/paths/rust-first-steps/) (5h 30m) And for a TLDR taster - [Rust for professionals](https://overexact.com/rust-for-professionals/).

              Quote:

              This is a short introduction to Rust, intended for developers that already know another language. In the examples, Rust is compared with TypeScript, JavaScript or Java, sometimes with C++ or Kotlin.

              Kevin

              1 Reply Last reply
              0
              • K Kevin McFarlane

                peterkmx wrote:

                and Rust Playground makes it even more interesting

                [Rust Explorer](https://www.rustexplorer.com/b) is better. Richer intellisesnse and inline compiler errors. It also keeps a history even if not logged in. Though not always operational. Not working right now. Code runs but no intellisense. :(

                Kevin

                P Offline
                P Offline
                peterkmx
                wrote on last edited by
                #13

                Thanks, good to know ... I'll keep it on the agenda :thumbsup: Lately I also installed RustRover, I will try it too, it will be a kind of multi-track learning :) ...

                K 1 Reply Last reply
                0
                • P peterkmx

                  Thanks, good to know ... I'll keep it on the agenda :thumbsup: Lately I also installed RustRover, I will try it too, it will be a kind of multi-track learning :) ...

                  K Offline
                  K Offline
                  Kevin McFarlane
                  wrote on last edited by
                  #14

                  [Rust for professionals](https://overexact.com/rust-for-professionals/) is also worth a look just to get a quick overview of he syntax.

                  Quote:

                  This is a short introduction to Rust, intended for developers that already know another language. In the examples, Rust is compared with TypeScript, JavaScript or Java, sometimes with C++ or Kotlin.

                  And also bookmark [GitHub - jondot/rust-how-do-i-start: Hand curated advice and pointers for getting started with Rust](https://github.com/jondot/rust-how-do-i-start) What I found initially was that when I first read the initial concepts around ownership and borrowing they seemed straightforward enough. But it's when you start writing real code that things get scary quite quickly. :laugh: I remember being stuck for three days at one point when trying to convert a C# program to Rust. I never did solve the problem. Instead I took a different approach. I'd also say don't sweat over trying to write idiomatic Rust at the first attempt. Just get something working. So in my case when porting an application I just wanted to get the correct results. Having achieved that I then successively "Rustified" it as I started to learn more.

                  Kevin

                  P 1 Reply Last reply
                  0
                  • K Kevin McFarlane

                    [Rust for professionals](https://overexact.com/rust-for-professionals/) is also worth a look just to get a quick overview of he syntax.

                    Quote:

                    This is a short introduction to Rust, intended for developers that already know another language. In the examples, Rust is compared with TypeScript, JavaScript or Java, sometimes with C++ or Kotlin.

                    And also bookmark [GitHub - jondot/rust-how-do-i-start: Hand curated advice and pointers for getting started with Rust](https://github.com/jondot/rust-how-do-i-start) What I found initially was that when I first read the initial concepts around ownership and borrowing they seemed straightforward enough. But it's when you start writing real code that things get scary quite quickly. :laugh: I remember being stuck for three days at one point when trying to convert a C# program to Rust. I never did solve the problem. Instead I took a different approach. I'd also say don't sweat over trying to write idiomatic Rust at the first attempt. Just get something working. So in my case when porting an application I just wanted to get the correct results. Having achieved that I then successively "Rustified" it as I started to learn more.

                    Kevin

                    P Offline
                    P Offline
                    peterkmx
                    wrote on last edited by
                    #15

                    Many thanks, my backlog for multi-track learning becomes still more interesting, Wish you a good weekend ... :)

                    K 1 Reply Last reply
                    0
                    • P peterkmx

                      Many thanks, my backlog for multi-track learning becomes still more interesting, Wish you a good weekend ... :)

                      K Offline
                      K Offline
                      Kevin McFarlane
                      wrote on last edited by
                      #16

                      It's fun though, even when you get stuck. :laugh: Also the Chat AIs are pretty good. Though these came out well after I'd started learning. It's best to avoid them until you've reached a certain level on your own first. Then you can gain more from them.

                      Kevin

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups