Rust (game) is being rewritten in C#

(rust.facepunch.com)

142 points | by flykespice 1 day ago

30 comments

  • andrewjvb 22 hours ago
    This is Rust -the game- and for those who love PvP experiences, and anarchic social interactions then look no further.

    It was C# already, just built on the Unity C# abstractions. It’d be pretty interesting to know the porting methodology and what was salvaged vs wholesale rewrite, or if there was a long-standing design edict which had been positioning them for this for some period of time. It’d also be interesting to know the justification for the rewrite. The game posted it’s highest steam CCU last year or the year prior. It’s clearly making money hand over fist, so I’m a bit surprised they’d fund an engine port for something that works (even though unity is a pig for their use case, and gives players a hard time unless they’re running a large-cache CPU).

    • MeetingsBrowser 22 hours ago
      > It’s clearly making money hand over fist, so I’m a bit surprised they’d fund an engine port for something that works

      Projects making money hand over fist are one of the only times it might make sense to do an engine rewrite. Why waste the effort on a game that is losing money?

      Either Unity the technology is holding them back or Unity the company is charging too much.

      • somenameforme 15 hours ago
        > Why waste the effort on a game that is losing money?

        Kenshi [1] is a good answer to this. It launched with a sputter and shortly thereafter was down to 10s of players. But the dev behind it kept working on it for years. It's now made the dev behind it millions and in the top 250 games being currently played, more than a decade after release.

        No Man's Sky [2] is another far more high profile example of something kind of similar, except it started off with a HUGE bang - and that sputtered down losing more than 98% of their players, because it was marketed on lies. The devs there could have just cashed out, but they kept working on it for for more than a decade trying to make the game the marketing promised. It's now in the top 150 games being currently played.

        The whole agile, mvp, etc stuff for games just seems dumb, at least for small studios. If you're making something you would like then there's approximately a 100% chance that other people would like it too. It's just a matter of being objective enough to understand whether you'd actually like what you've made or are just convincing yourself of that. It's also way less stressful than constantly trying to do a 'market fit' for a market that you yourself aren't a core part of.

        [1] - https://steamcharts.com/app/233860#All

        [2] - https://steamcharts.com/app/275850#All

        • vips7L 15 hours ago
          I really wanted to like No Man’s Sky but it spawned me on a toxic waste planet and it was a struggle right from the get go.
          • LoganDark 13 hours ago
            That's intentional to teach you the basic mechanics. You always spawn there.
            • drivingmenuts 5 hours ago
              I've played that game, as well. The first couple of times, it's OK to spawn on a toxic hellworld with noj resources nearby, but after a while, it gets old.
            • vips7L 11 hours ago
              It was not fun.
      • 22c 17 hours ago
        Even if it didn't make complete financial sense to do so, Garry Newman (founder of Facepunch) is an outspoken critic of Unity and it wouldn't surprise me if he wanted Rust to get off Unity regardless.

        https://garry.net/posts/unity-can-get-fucked

        • mr_roboto 16 hours ago
          I've played Rust the game and always walk away in disbelief at how crummy the engine is. It just feels pathetic.
          • k12sosse 1 hour ago
            Tarkov had the same feeling. They managed to work the jank out but it took years. They recently did a unity version overhaul. I think it's the 3rd or 2nd one they've done for that game. But tarkov is a testament to what the engine can do, or rather, what someone can manage to do with that engine.
      • chii 11 hours ago
        > Unity the technology is holding them back or Unity the company is charging too much.

        or both.

        I do think unity as an architecture has some hard caps on how many objects can exist and such. Rust, being a game based on building and crafting stuff, can potentially (and quite likely) hit those limits. Working around them is almost as hard as porting imho.

        • torginus 4 hours ago
          My experience is that Unity's native GameObject system quickly becomes a bottleneck, and their official replacement, DOTS is a headache, and still not that peformant.

          What you do if you own your engine, is you start going lower level, perhaps straight to the metal with graphics calls, and build your system directly on top. Unity does offer a couple intermediate levels compared to that, but they're usually poorly documented, tested and the API changes all the time.

          Additionally they're completely unique to Unity, general graphics programming experience isn't gonna help you.

          But you can also go almost to the Graphics API level, which does mostly look like something an OpenGL programmer would be familiar with.

          I wouldn't be surprised if Rust has been gradually replacing Unity systems with their own, and now they're asking what's left of Unity that's still worth keeping.

        • paradox460 10 hours ago
          Quite frequently

          Some YouTubers such as twig have managed to crash servers by placing too many spike traps

          • k12sosse 1 hour ago
            I am not a Claude level programmer, the server wouldnt need to be written in unity would it?
      • dEnigma 12 hours ago
        In their regular dev logs they often talk about replacing Unity systems with their own implementations, either for performance or usability reasons, so this is just the next step in this regard. Of course the "Unity tax" would also factor into this decision, even if they haven't mentioned it recently.
      • nfriedly 18 hours ago
        > Either Unity the technology is holding them back or Unity the company is charging too much.

        Quite possibly both.

      • ZiiS 11 hours ago
        Very unlikly they would be that successful if it was truely holding them back. Risky to make large changes, expecially lead by developer experiance to somthing that is working. However as you say this is simply a case of charging too much.
    • pennomi 20 hours ago
      Surely the seed was planted when Unity reminded the world that they can and will change their licensing terms retroactively. For a big game like Rust, it could easily take that long to rewrite the whole engine.
    • hirvi74 20 hours ago
      It seems to me that Unity has become some sort of stepping-stone or rite of passage engine. I can think of multiple games that started in Unity only to hit some roadblock and then jump ship to something else like Unreal or a custom engine.

      I like to pretend that I am a game developer when time permits. My experiences with Unity were so unpleasant that I did not want to put forth any more effort into learning it. I do not doubt it's powerful, and the name carries a lot of weight.

      However, at first, I thought that I would find certain things less annoying as I learned more, but the opposite ended up happening.

      • Rohansi 14 hours ago
        It sounds like the Unity workflow is just not what you prefer. I imagine you're more a fan of code-first, minimal game engines/frameworks. Nothing wrong with that but an easy to use editor is a big deal when you're working on a team where not everyone knows how to code.
        • ErroneousBosh 12 hours ago
          > when you're working on a team where not everyone knows how to code.

          Why have you got people on a software development team that don't know how to write code?

          • dontlaugh 10 hours ago
            All large enough teams will have a majority of designers and artists that aren’t programmers.

            While there’s an argument to be made that designers should be programmers, in practice it’s not the case.

            • ErroneousBosh 9 hours ago
              Okay, so why - and this is the bit that the people downvoting my previous comment probably don't understand - why are you trying to get people who aren't programmers to write code?

              Let the artists do art. They don't need to write code.

              Do you want the joiners that built the office desks to write code too?

              • dontlaugh 9 hours ago
                I don’t think anyone was suggesting that.

                A bit part of what game engines like Unity and Unreal do is provide a way for non-programmer artists and designers to interact with the game so they can do their work. LLMs don’t suddenly make that need disappear.

              • hirvi74 1 hour ago
                I think the main takeaway is with Unity, you do not have to write much code, thus artists and whatnot can work on the game too. In a code-first solution, I would share your opinion and concerns.
      • bob1029 19 hours ago
        Unity is a very accessible engine that is difficult to beat for rapid prototyping. It has the ability to publish to webgl targets which makes distribution of new concepts trivial. There is a one-click path to deploy directly to play.unity.com. No fees, certificates, etc.
        • 0x1ch 19 hours ago
          Also if you're in school, you're going to be either learning Unity or Unreal if you pickup a game dev elective. It's marketable and you're shown industry standard tools.
      • flykespice 19 hours ago
        Resident evil 7 was initially prototyped in Unity while they were building their in-house RE Engine (see https://www.youtube.com/watch?v=zAynp4MSIfw)

        I think unity role of quick prototyping your ideas before you begin implementing them on a more "serious" engine will stay. Specially since it has a very mature ecosystem of assets and community resources.

    • neuroelectron 19 hours ago
      Yes, from an accounting perspective, it makes so sense to improve your product that has already been sold. Apparently, the people making decisions at this company have some bizarre obsession with their product. Clearly, these people need to be removed and replaced with outsourced intellectual labor.
  • lazypenguin 22 hours ago
    > The only graphics API we support is Vulkan

    I think this is the most noteworthy choice. Instead of D3D12/Metal/Vulkan split they are choosing only Vulkan. Not sure if they support MacOS but that's interesting choice for Windows by default. It's either a sign that Vulkan is mature and stable enough that it's a fine default even on Windows OR this is just a trade-off Facepunch made for a simpler implementation

    • rbits 17 hours ago
      They do support MacOS, so Vulkan is probably the best choice. Vulkan support is relatively good on MacOS with MoltenVK, whereas I haven't heard of good DirectX support on MacOS. And there's not much point implementing multiple graphics APIs if Vulkan works on everything.
      • MBCook 16 hours ago
        There had been no “native” DirectX for the Mac, as far as I know. By which I mean some little library that you can just use that translates things the way MoltenVK does.

        Usually you would just run the Windows version in a VM or use Wine or whatever.

        Apple’s game porting toolkit seems like it might provide one, but I thought they still didn’t allow you to actually ship software using that. It was only supposed to be to help you transition and know what to do during development or something like that. But I haven’t kept up with it in the last year+, so I could be wrong.

        I agree with you on multiple APIs. The only reason I could think it would be worth it is it one was significantly faster, like Glide vs OpenGL in the early accelerator days.

    • nxobject 16 hours ago
      FWIW, FP's other game – S&Box – has been Vulkan-only for long time already.
    • jshier 22 hours ago
      Rust did support macOS (or perhaps does, if this change hasn't shipped yet), so either they're dropping it or mapping Vulkan to Metal in some way.
      • ChocolateGod 18 hours ago
        There are two major implementations of Vulkan on macOS, MoltenVK and KosmicKrisp.
        • flykespice 16 hours ago
          For someone unfamiliar with both API, how seamless is the API layer translation from Vulkan to Metal?

          Do they have similar levels of GPU features exposition so that the API translation is practically zero-cost (1:1) or is one limited over another, and the layer of emulation incurs a cost compared to writing a Metal native implementation?

    • dartharva 15 hours ago
      OOTL, was Vulkan not stable and mature already?

      IIRC the 2016 Doom reboot and all its sequels used Vulkan, right?

      • paavohtl 9 hours ago
        Vulkan is stable and widely used, but most engines support Vulkan as just one of the render backends. Vulkan is fine on Windows and Linux, but for macOS you either need to implement a Metal backend, or use a Vulkan-on-Metal emulator like MoltenVK (which works mostly fine but cannot support all features). You need Direct3D12 for Xbox, and Playstation has its own graphics API. So generally speaking most production-quality engines have to support multiple graphics backends.
  • tester756 23 hours ago
    C# is really well designed language (lowest count of WTF per line of code) and has great ecosystem

    I wish more interesting projects used this technology

    • flykespice 22 hours ago
      Most people (particulary in HN) get scared away from the language because it's maintaned by a big propietary for-profit corporation called Microsoft, it gives a sense of uneasy to them. In comparison to C/C++ that is maintaned by neutral institutions.
      • thayne 13 hours ago
        It's not just that, after all Typescript is also developed by Microsoft, and that is generally well-loved. Although I think that is certainly a big factor. Others include:

        * For a long time, it only ran on a single platform (Windows), and while it does support other platforms now, they are still kind of second class citizens. In particular developer tooling on other platforms isn't as mature. Swift has the same problem.

        * It has a close relationship with Visual Studio, and there is a history of not really supporting other editors, including VS Code. And there is an obvious incentive there as Visual Studio is a commercial product MS makes money from.

        * For a long time, it was completely proprietary.

        * It is in a very similar niche to Java, and other JVM languages. And while java isn't perfect it doesn't have the above issues.

        • mort96 6 hours ago
          There's also the fact that it makes your choice of language into your users' problems, since you're either depending on your users to already have a .NET runtime or you're putting a whole .NET runtime onto their machines. If you use Go or Swift you just ship a binary with normal executable machine code, same as if you'd used C or C++.

          TypeScript also has a similar benefit, since you just ship JavaScript. You don't need your users to have a special TypeScript runtime.

          • Rohansi 5 hours ago
            You ship the runtime with your app so users don't need to do anything. If you want a single file you can use NativeAOT (most like Go) or, if you need reflection, the runtime can be packed into the executable and it will be extracted out if needed.
            • mort96 4 hours ago
              I don't believe you. I have used a lot of Java software where dealing with the JVM is a massive pain in the ass. It's either that, or making software huge by having every app bundle its own separate giant copy of the runtime.
              • Rohansi 2 hours ago
                For a .NET 10 "hello world" app targeting Windows it's ~1MB NativeAOT and ~12MB JIT, not including symbols. A single executable file and no system level .NET runtime required.
                • mort96 2 hours ago
                  12MB is absolutely insane for a hello world.
                  • ABoredBirb 1 hour ago
                    Yes, it is not the best language for hello worlds. If you have a business shipping hello world apps, you might be best served by another language.
                    • mort96 44 minutes ago
                      I mean you jest but I have 3550 unique files in my /usr/bin. If they were all C# programs I'd have ~43GB of only C# runtime duplicates!

                      It's not such a big problem if you have one mega-executable, but it's really not suitable for the unix style of "lots of tiny executables".

      • hasley 11 hours ago
        Yes!

        I really like the language and I would like to use it to create things on Linux (which then possible can also run under Windows). But it does not feel right...

        • high_na_euv 10 hours ago
          why it doesnt?

          ive used it (c#+linux) on prod since 2018

          • load-bearing 7 hours ago
            Yeah, same. Not a single line of C# written or hosted outside of linux, and I've been using it heavily since about the same time. Non windows platforms definitely not as well supported for development, but everything really important works fine, and the rest is easily covered by LLMs if you're fine with using them.
            • hasley 7 hours ago
              Which compiler (roslyn?), IDE/editor, and other tooling are you using?
              • Rohansi 5 hours ago
                The compiler is the same on all platforms because it ships with the .NET SDK. Rider is great and VSCode works well too.
              • high_na_euv 5 hours ago
                ppp use vs code or rider, but ive been developing on windows with vs and deploying on linux
          • hasley 7 hours ago
            Maybe a prejudice that Microsoft may at any time stop supporting the open source ecosystem of C#/.NET and letting me left with outdated compilers and libraries that are not (or cannot be) developed at the same pace.
            • Rohansi 4 hours ago
              That was the concern when .NET was Windows-only and you needed to use Mono on other platforms. But now it is all cross platform, open source, MIT licensed.
      • ameliaquining 22 hours ago
        It's also just one competitor among many in a crowded space, and offers few major unique benefits that can't be had any other way.
      • bena 22 hours ago
        However, C# and Typescript are in the hands of Anders Hejlsberg, the guy who made Turbo Pascal. Microsoft poached him from Borland.

        So despite C# being the property of Microsoft, it's the product of Hejlsberg.

        • HeavyStorm 21 hours ago
          Was*
          • JRandomHacker42 16 hours ago
            Mads has been treating C# pretty darn well too, I'd say
        • ErroneousBosh 12 hours ago
          I did not know that and now I am more interested in both.

          Please tell me there's a Borland-style editor for them.

      • chii 11 hours ago
        > it gives a sense of uneasy to them

        yet you hear golang praised. Or kotlin praised. Or typescript. Hell, even java (tho less praised - it's more business oriented).

        I think it's just bias, rather than actual reasoned thought, that makes people feel the unease.

      • locknitpicker 10 hours ago
        > Most people (particulary in HN) get scared away from the language because it's maintaned by a big propietary for-profit corporation called Microsoft, it gives a sense of uneasy to them.

        I don't think that's it.

        Java is still controlled by Oracle. TypeScript is also Microsoft. Go is Google's language.

        You don't see comments regarding users feeling ever mattered when discussing these languages.

        The only languages that are actually open are the ones specified by international standards. This means programming languages such as C or C++. Yet, you don't hear good things about them.

        It all boils down to tribalism.

    • a34729t 22 hours ago
      [flagged]
      • Tallain 22 hours ago
        No, it's the equivalent of having two drinks, taking an Uber home, and getting a good night's rest.
        • ShroudedNight 21 hours ago
          Ah yes, Tim Minchin's Rock and Roll Nerd:

          > While his mates all go out late

          > Popping pills and having fun

          > He goes home and showers

          > And gets a good eight hours

          > He gets his thrills from his morning run

      • Rapzid 17 hours ago
        It's the equivalent of getting black-out drunk off a single Rolling Rock and imagining some dude that never looked in your direction made a pass at you, making a scene, and then getting driven home by a co-worker at the job you just started last week.
      • closingreunion 17 hours ago
        Cant C# after four cocktails…
  • CharlieDigital 22 hours ago
    I think a few languages are going to grow in the AI age.

        - Rust for CLIs, tooling; backends that need to be maximally optimized (the bigger the org, the more reason to switch to Rust)
        - C# for games, web backends
        - TypeScript for web frontends
    
    Why not Go? Might as well use Rust. Google will shift more of their internal platform to Rust over time because they will save money. A small 10% improvement for them could be $ millions/year. Then there is no longer a reason for Go. Go will fade in the longer scale because Rust does the same things, but better.

    Why C#? Entrenched in game dev, actual teams at Microsoft patching and maintaining wide first party libraries makes it "safer" in this era of exploits that some team owns patching it. "Fast enough" and flexible enough to cover a lot of use cases. Still getting faster.

    Python will return to its roots. PHP is gone. TS on the backend will be gone (risky supply chain; high transitive deps). Java likely supplanted by Rust over time.

    • qaq 21 hours ago
      There's a huge reason for Go, and it's the exact same one you just gave for C#: first-party libraries. All of my projects now use only the Go standard library plus a DB driver—no other dependencies. Rust's minimal stdlib pulls you into a deep crate tree for basic web/service work, so unless the performance gap is actually critical, I opt for Go to avoid the supply-chain risk.
      • Cyph0n 20 hours ago
        That doesn’t really matter much for large corps like Google. At that scale, you already have an internal stdlib implementation.
        • vips7L 15 hours ago
          Not everyone is Google.
          • CharlieDigital 6 hours ago
            Problem is that once Google moves off, it's just a hobby language.

            Go is already a relatively small dev community.

            • qaq 2 hours ago
              Go is still above Rust in usage. Google is porting C++ codebases to Rust not Go codebases. Kubernetes, Docker, Terraform, Prometheus, Caddy & Traefik, Grafana, etcd, MinIO and a pretty long list of other important projects. Kubernetes alone has over 100,000 contributors across its entire ecosystem.
          • Cyph0n 14 hours ago
            I am continuing a point made by the grandparent comment:

            > Why not Go? Might as well use Rust. [..]

      • CharlieDigital 21 hours ago
        What will happen is that Google will see that they can save millions in opex for their bigger services by moving to Rust. They will move to Rust and probably open source a bunch of their libraries and own those. Microsoft is internally also doing a lot of work in Rust as well. Community will use these because there will be supply chain trust.

        They will abandon Go because it has no reason to exist; it does nothing better than Rust. It has no entrenched use case that wouldn't be better served by Rust. Python has data science and ML. C# has games (where it's seeing a lot of growth). TS has web frontends, desktop apps via Electron. What is the entrenched use case for Go that wouldn't be better off with Rust?

        K8s will be rebuilt in Rust simply because at the scale of Google, it will save (hundreds of?) millions (billions??) in operational cost for them. Less electricity, less CPU, less RAM.

        • rienbdj 19 hours ago
          I think you are right.

          Google are (cautiously) porting Bazel to Rust and not Go.

        • load-bearing 7 hours ago
          "Will"? Didn't we read just a few weeks ago that all of Google's internal codebase was being autonomously ported to rust by their most advanced LLM? Was it a marketing stunt?
          • CharlieDigital 5 hours ago
            Have a link? I saw Bazel is moving. What else?
    • deepsun 18 hours ago
      Enterprise will stay on Java for the next 50 years. "Entrenched" is the word for enterprise-dev, game-dev can shift much quicker. C# is prevalent only in Microsoft-heavy companies.

      In enterprise you mostly don't care much about performance optimizations, but care a lot about reliability, so in AI-dominated enterprise development most focus will be on formal code verification.

      • brnt 11 hours ago
        > C# is prevalent only in Microsoft-heavy companies.

        Which most game companies are.

    • scrame 15 hours ago
      Rust isn't supplanting java any time, ever. something like 20% of enterprise is still running java 6/7. Shops that can't even bump up the JVM for easy speed increases are not jumping ship to a language that involves fighting the compiler over memory allocation. This stuff isn't even being migrated to kotlin which already seamlessly on the platform.
      • CharlieDigital 7 hours ago
        That's because the previous limitation was humans porting code and the risk + complexity.

        What are see from Anthropic and Microsoft porting the Copilot SDK to Rust "online" are patterns to modernization.

    • CSMastermind 22 hours ago
      I just migrated a bunch of stuff off C# into TypeScript. I don't think C# is going to have a renaissance on the backend.
      • UK-Al05 10 hours ago
        What do you mean renaissance? I'm in the UK, and it's probably the most advertised language.
      • CharlieDigital 22 hours ago
        That's funny because we did the opposite move last year (YC, $500m, Series-C): https://engineering.usemotion.com/moving-off-of-typescript-e.... TS at scale became self-inflicted pain (2m+ LoC).

        C# is growing driven largely by games. AI has made it more accessible for folks to build games and C# adoption is trending up (will find the report)

        Edit: https://www.slashdata.co/research/topic/programming-language...

            > Key Findings: C# is becoming a strategic powerhouse, growing from 10.2M to 13.9M developers in two years, a growth backed by Unity's dominance in mobile gaming and Microsoft's push to make NET a credible cross-platform environment.
        
        It was also TIOBE's language of the year in 2025: https://www.infoworld.com/article/4112993/c-wins-tiobe-progr...

        Pretty confident that Rust and C# are the big winners in the AI era. TS on the FE, but not on the BE. Microsoft teams owning patches for big first party libraries is an understated angle in this era of exploits. Node ecosystem's high transitive package deps on the backend is a recipe for disaster.

        • Rapzid 16 hours ago
          IDK about the usage growth in the games space, but Microsoft has been putting tons of investment into C# and DotNet over the past 10 years motivated primarily by their increased internal use of it at scale in the cloud and that's not games. It is/was Bing, Azure, and etc.

          So their investment into it translated directly into $$$$. Span<T> and all the CLR improvements. AOT. That's all to improve performance and lower compute usage.

          The rest of us have been riding high off those motivations for a while now.

        • MeetingsBrowser 22 hours ago
          TIOBE index is trash.

          Visual Basic is in the top ten (above both Rust and Go), and Scratch is just barely outside the top ten.

          For reference, TypeScript is currently ranked 41.

          • CharlieDigital 22 hours ago
            Gave multiple datapoints.

            Slashdata shows the same story.

            • MeetingsBrowser 20 hours ago
              I agree with the overall message, but using a bad data point detracts from the point being made.
              • locknitpicker 10 hours ago
                > I agree with the overall message, but using a bad data point detracts from the point being made.

                I don't think you realize that the TIOBE argument refutes a personal assertion that is completely baseless and unsupported.

                Here you are complaining about tangible proof that rejected a baseless assertion, but apparently you have no qualms about just making bullshit claims and expecting everyone should be taking them at face value.

                That passion for rigour seems lopsided doesn't it?

          • locknitpicker 10 hours ago
            > TIOBE index is trash.

            We live in an age where AI drives most development, and AI is trained based on content scraped from anywhere.

            If there is a lot of people online using the language, discussing the language, and generating content for said language, this will reflect and contribute back to how well AI code assistants support said language.

            If anything, TIOBE matters more than ever.

            • MeetingsBrowser 3 hours ago
              > If anything, TIOBE matters more than ever.

              I'll have codex try porting some of my TypeScript projects to scratch, thanks!

        • Shalomboy 22 hours ago
          Shoutout CharlieDigits for speaking the truth the masses are too afraid to hear
      • gopher_space 22 hours ago
        LLMs seem to have an easier time working in it if we need dependencies in certain areas. They're also not slowed down by a verbose or unaesthetic language, much less demotivated by thinking about using it.
        • hirvi74 20 hours ago
          > unaesthetic language

          Thank you for writing this. I am glad I am not alone in this opinion. I do not think C# is a bad language by any means. I have used it professionally for over a decade. However, I do think it's kind of kludgy and more on the uglier side of the spectrum, syntactically speaking.

          I do think Rust is probably the ugliest of the popular, modern languages, but many of Rust's benefits make the trade-off far more justifiable.

      • TrueSlacker0 22 hours ago
        What were the reasons to do this?
        • Rapzid 16 hours ago
          IKR? Great threading performance and concurrency privatives. Language that still hasn't hit its peak. AOT. Amazing language tooling. Bomber standard library and also Asp.Net and Entity Framework.

          I can imagine some niche reason for moving from C# to TypeScript on the backend, but in the age of agentic coding holy cow why for the common cases?!

      • locknitpicker 10 hours ago
        > I just migrated a bunch of stuff off C# into TypeScript. I don't think C# is going to have a renaissance on the backend.

        Your comment is meaningless. It doesn't make any sense to compare programming languages for backend work. What matters are the frameworks and target infrastructure. Backend work is the epitome of inversion of control, and what matters is what framework features you use. You barely use the language itself for the actual core work.

    • Sleaker 22 hours ago
      I really doubt this take. I think currently entrenched languages just get more entrenched. Python is huge in data processing, java in business apps. JS/ts for web related stuff (even backends!) I haven't seen any meaningful discussions about shifting languages used even starting to surface where I work, just people generally vibing changes into existing frameworks or having AI regurgitate JS/Python throwaway garbage.
      • CharlieDigital 22 hours ago
        Anthropic just moved their API off of Python to Rust: https://www.anthropic.com/research/migrating-api-to-rust

        Memory savings of 80%. That's the difference between a 1x node and a 5x node even for a small scale. Once you move an API off of Python, you never build another one in Python again; Anthropic will never build another Python backend again.

        Thus my claim: Python will return to its roots in data science and ML. Not widely adopted in most enterprise applications[0].

        [0] https://itnext.io/python-on-the-backend-is-dead-865da84db00d

        • Sleaker 22 hours ago
          Business Intelligence is the new data science/ML they are too linked now that basically everything I see interacting with data lakes is python. I don't really see this changing anytime soon for very large non-tech companies that have bought into this era of data processing.

          It's easy for a tech company to talk about api savings on serving because that's their primary product, but that's because that is their main cost and impacts margins. In most businesses tech decisions around stack are not directly related to swapping to language x will give us perf/cost savings of y to our bottom line. Business decisions are much more bludgeoned. We're cutting your budget so 'figure it out' which equals layoffs, not necessarily tech changes or even language jumps. More likely its replacing one tech with another slightly different tool.

      • Bolwin 19 hours ago
        By "business apps" do you mean desktop apps? Practically nobody uses Java for desktop apps anymore.
    • lenkite 16 hours ago
      Time & Tokens >= 10% improvement. Many people have tried Rust and then moved to Go since both agent and human velocity are much faster. In Rust, you are still on your first compile, while in Go you are on your second prototype.

      And having tried both on large projects. gopls is generally faster than rust-analyzer for initial indexing, incremental analysis, and large workspace responsiveness. Far easier to code-review and test things quickly.

      Sure infrastructure services may be re-written in Rust - after things get stable. But developer/compiler/agent velocity is far higher in Go.

      • CharlieDigital 16 hours ago
        Code gets written once and executed billions of times at Google scale.

        The capex for writing code cannot compare to the opex for running code.

        • lenkite 14 hours ago
          Rust will certainly be used for low-level OS services. But for the middleware space, your assertion does not hold true since I/O is the great equalizer and far more relevant than a +10-20% compute. And Go's runtime is good at I/O bound workloads.

          Google has ported several C++ services to Go: Google Search web indexing infrastructure ported from C++ to Go. Prodspec and Annealing (Google CRE), which manage much of Google's production infrastructure is written in Go. Firebase Hosting which was earlier in Node.js was ported to Go, Google download servers were ported from C++ to Go, Large-scale data processing uses Go.

          Actuating Google Production: How Google’s Site Reliability Engineering Team Uses Go https://go.dev/solutions/google/sitereliability

          Go's lightweight concurrency, despite its warts, is also far easier to manage for middleware compared to Rust's hammer-on-head async complexity. (Not just my ordinary coder opinion)

          • CharlieDigital 5 hours ago
            https://github.com/bazelbuild/bazel/issues/32824

            It's already happening. Bazel is being converted to Rust.

                > Why Rust and why incremental? Other build-system rewrites have explored Go, Zig, C++, and Rust. Go still carries GC overhead on large heaps and proto-heavy paths, and Zig is not yet stable enough for a codebase of this size and lifetime.
            
            So it will happen to more backends in Google as they establish the pattern for doing it.

            It's a matter of time. Don't tie your identity to a programming language.

            • Thaxll 31 minutes ago
              You're clearly don't work at google and it shows, I would be you I would be more worried of Rust replacing C#, not sure why you focus so much on Go.
    • Thaxll 18 hours ago
      C++ is and will be king for games, "forever", garbage collector is not an option for most games. And your take on Go is very naive.
      • Narishma 17 hours ago
        In games C++ is typically only used for the engine, if that. And developers seem to be fine with garbage collectors seeing as all the popular engines use them (Unreal, Unity).
    • mistic92 21 hours ago
      C# for backend? Maybe in banks. Go for the win
      • Atotalnoob 20 hours ago
        C# is a really well designed language with a bunch of useful features to do pretty much anything you want in it.

        It’s fast, has great devex, and is super easy.

        If you are into AI, their AI tooling is top notch, including c# REPL for running services that the AI can inject extra logging or code fixes with instant feedback

        • hirvi74 19 hours ago
          The third-party libraries for .NET leave a lot to be desired though. Idk if Go is better in this regard or not, but that has always been one annoyance I have had with .NET ecosystem.

          My most recent complaint with C# is that it feels like it is becoming more and more of a directionless language with each new release. So many new features and syntax changes that I personally find to be unnecessary considering there are more desirable and useful things that should take priority.

          For example, one can now write single-file C# applications in some bastardized attempt to make C# into some kind of pseudo-scripting language. I mean, cool, I guess? But I think it's kind of a weird thing to add 25 years after the language was released.

          • wvenable 16 hours ago
            > The third-party libraries for .NET leave a lot to be desired though.

            The first-party libraries are so good that I rarely have a want for 3rd party. And heck even the 3rd party ones are pretty good. Certainly there aren't 20 packages for doing the same thing but that can be an advantage.

          • CharlieDigital 19 hours ago
            3rd party libs don't really matter anymore. Just generate what you need. If anything, 3rd party libs are risks.
            • hirvi74 1 hour ago
              I am in the n < 1% that cannot generate what I need on a whim, sadly. Though, I see your point, and you a probably right in the majority of cases.
      • loufe 21 hours ago
        Not just banks, lots of enterprise software in less techy industries rely on c#, like mine.
        • CharlieDigital 20 hours ago
          Basically any shop that doesn't want supply chain risk to be a top concern at night ends up picking C# for backend, IME.

          There's a team in Microsoft that owns each package and they are watching for CVE's, patching and updating. Your TS app has a mystery dep 4 layers down that's 12 months out of date. The guy's NPM account got hijacked. Now it's your problem to deal with.

          I think this becomes more important now, not less. If agents are writing the code, who cares if it's TS or C#? Pick C# because it has much lower risk profile than Node ecosystem.

          Pick Rust if you are Google or Microsoft or Facebook or Anthropic because you'll save b/millions in ongoing operational cost.

          • MBCook 16 hours ago
            I would say Java fits the same role.

            I can’t imagine using node on the server personally. The risk profile alone looks crazy to me.

            But I know it’s popular.

            • vips7L 13 hours ago
              Modern Java frameworks like Quarkus are all batteries included just like .NET too. And it’s backed by Red Hat.
      • CharlieDigital 21 hours ago
        Go will lose because Rust does everything Go does, but Rust does it better.

        Google will switch more of their backends to Rust over time because at their scale, even small % improvements in CPU/RAM means millions in infra opex. The problem with Rust, C/C++ previously was human expertise; Go had simplicity going for it. If we no longer need to design for human understanding, what does Go have left over Rust?

        When Google starts doing that, then Go becomes a hobby language.

        Do not bet on Go because it doesn't do anything better than Rust.

        Anything that's going to grow has to do _____ better than Rust or has to have some specific, entrenched use case that is going to grow (e.g. C# has games, 3D). I can't see this with Go; I think most things using Go today will be rewritten in Rust.

        • benjiro29 6 hours ago
          > Do not bet on Go because it doesn't do anything better than Rust.

          The funny part of that argument applies also to Rust in the age of AI... The advantage is the memory safety into build time, but now with AI being able to build 1000's of tests in a single day, languages like C/C++ get the same benefits. You simply shift the when to where...

          So what does Rust offer over C/C++ then beyond the build time memory safety? I can tell from building multiple 500 to 1m lines of code Go / Rust / C languages that the compiler is a major issue. Way too slow as projects grow, not C++ slow but darn slow and resource hungry when compiling. Especially when your running AIs and building test after test after test.

          Ironically, I have gone from using Go, to Rust, to C for all my projects over the years.

          • nylonstrung 6 hours ago
            > So what does Rust offer over C/C++ then beyond the build time memory safety?

            Package management, better macros/metaprogramming, better build toolchain with no cmake etc, "fearless concurrency".

        • efficax 21 hours ago
          one thing rust doesn't do that go does, is compile fast
          • nylonstrung 6 hours ago
            Compile times have improved so much recently especially if you use the right settings and the Rust roadmap has a lot more improvements coming

            I think the reputation around slow comp speed was true in the past but is relatively unearned today

          • CharlieDigital 21 hours ago
            Does that matter when the AI is 100x'ing the code production time?

            If Google can save $100m in opex from running Rust instead of Go, does faster compile time really make the case?

            The accountants are going to win this one.

            • benjiro29 6 hours ago
              The problem is that Rust is SLOW to compile but also uses a ton of resources as it compiles. My typical dev station is a 32t Zen4 setup, so not some dinky little machine.

              What i noticed over time, was how Rust compiling became the real show stopper. Not the half a dozen AI agents working on tests, no, the AI was waiting on Rust compiling for most of the time. Switching around to different compilers, linkers, all the tricks barely put a dent into the massive 100% CPU when you have several tests compiling your codebase at the same time, non-stop.

              I have no issue stating that Rust its dog slow compiler became the main show stopper in my daily progression. Rust is good when your codebase is small but it suffers from the same C++ issue as the codebase grows.

              Like i posted on your answer above, i have gone from Go, to Rust because of Go its memory/gc usage became a issue. But from Rust then to C as the codebases grew into the million line range, simply because Rust compiler itself become the issue.

              But but C is unsafe ... its as unsafe as the lack of tests is, simple as that. Rust simply pays for that cost earlier into the compile times. Nothing beats having more lines code as tests, then your actual product code lol.

            • Rapzid 16 hours ago
              Are you asking if compile time which mattered a lot to Google when they created Go matters still when they are compiling 100x more often?
              • CharlieDigital 16 hours ago
                Compilation happens 100x.

                That code is going to execute 1,000,000,000x.

                I know what I'm optimizing for if I'm a Google exec.

  • shmolyneaux 22 hours ago
    Game devs are fearful of anti-AI rhetoric, so Facepunch will probably keep silent about how they approached this rewrite. This should be celebrated regardless, but I'm very interested in how they actually managed it.

    > In other ways, we still can’t fully believe that we’re actually at this point now

    This sounds like someone hitting the jackpot with agents, rather than the voice of a team that slogged endlessly to move to a new engine. I don't fault them for wanting to keep things ambiguous, but these days if you do a major rewrite and don't mention LLMs, you probably used LLMs.

    • benoau 22 hours ago
      "Programming" gets a free-pass for using AI, Steam doesn't even require disclosing if your game were entirely programmed by AI. That's where the blowback happens for games using AI. The only fly in that ointment is the Indie Games Festival recently declared using AI for any purpose was an automatic disqualification, but this attitude is very limited:

      > “Programming is a creative discipline whose labour deserves the same respect we extend to any part of making a game. This extends to the past work used to train these models without the creators’ consent.”

      https://www.videogameschronicle.com/news/big-walk-studio-say...

      • ivanjermakov 6 hours ago
        > Steam doesn't even require disclosing

        I'm certain this will change, taking into account their PSA on "rethinking" their Next Fest approach: https://news.ycombinator.com/item?id=50707419

        • benoau 1 hour ago
          The problem they're facing is discovery, they have out-grown Next Fest. Fundamentally what they need to solve, what the purpose of Next Fest is, is to drive attention to the good new games which it can't do at a new scale of <much more quantity>.

          This has happened before, they used to give developers several opportunities to send out promotions to Steam users then it got rebuilt to only target users who already added you to their wishlist. The main reason developers value Next Fest is to get people to wishlist their game because these are the only ones Steam lets them promote their game to when they launch (other than external advertising / publicity / etc).

          So I don't think they're going to solve this with a slightly broader disclosure policy, although I do think they should just follow IGF and not arbitrarily declare some usage irrelevant.

        • c-hendricks 3 hours ago
          Didn't they start by requiring disclosure of AI use in code then walk that back?
      • embedding-shape 22 hours ago
        > Steam doesn't even require disclosing if your game were entirely programmed by AI

        That's not true, Steam requires you to disclose if anything (including code) been "pre-generated":

        > First, we are updating the Content Survey that developers fill out when submitting to Steam. The survey now includes a new AI disclosure section, where you'll need to describe how you are using AI in the development and execution of your game. It separates AI usage in games into two broad categories: Pre-Generated: Any kind of content (art/code/sound/etc) created with the help of AI tools during development.

        > Valve will use this disclosure in our review of your game prior to release. We will also include much of your disclosure on the Steam store page for your game, so customers can also understand how the game uses AI.

        It isn't clear if that information would go onto the Steam listing itself, I guess that's up to Steam to decide.

        • benoau 21 hours ago
          That is from a three-year old blog post, code was removed a long time ago. This is what it says in the developer dashboard where the disclosure is provided:

          > Generative Artificial intelligence (AI)

          > We are aware that many modern game development environments have AI powered tools built into them. Efficiency gains through the use of these tools is not the focus of this section. Instead, it is concerned with the use of AI in creating content that ships with your game, and is consumed by players. This includes content such as artwork, sound, narrative, localization, etc.

          > Does this game use generative artificial intelligence to generate content for the game, either pre-rendered or live-generated? This includes the game itself, the store page, and any Steam community assets or marketing materials.

          > Yes / No

          .

          > Please enter a message to players describing how this game uses generative artificial intelligence.

          > Note: The Steam Store will display this message under the 'About This Game' section on the game's store page. You can return to this survey at any time to update this message or its localizations.

          > <textarea>

          .

          > Content Generated During Gameplay

          > Because the live generation of AI content can produce novel images, audio, text and other content which neither the developer, nor the Steam review process, can verify through standard processes, it is important that you make honest and accurate disclosures about your implementation and its usage. In addition, we will provide users with tools through the Steam Overlay to flag inappropriate, or copyright infringing, output.

          > It is the responsibility of you, the developer, to implement guard rails that will prevent users from being exposed to inappropriate and illegal content. Failure to do so will result in your app being pulled from the store. Does this game use artificial intelligence to generate content or code during gameplay?

          > Yes / No

    • orthoxerox 22 hours ago
      On the other hand, I love that the Unity/Unreal oligopoly is being challenged. First Rimworld, then Rust, writing your own industrial-strength game engine is now possible again. Yes, with LLM assistance, which might upset people that like working on game engines, but if you like working on games it's extremely liberating.
    • flykespice 22 hours ago
      > Game devs are fearful of anti-AI rhetoric

      I mean, can you blame them? The game Big Walk got review-bombed on Steam after they disclosed usage of AI to fix a few lines of code. It doesn't matter how much honest you are or how little you used AI assistance, they witch hunt anyone by the simply presence of the AI disclosure clause on your steam game description.

      > This sounds like someone hitting the jackpot with agents, rather than the voice of a team that slogged endlessly to move to a new engine. I don't fault them for wanting to keep things ambiguous, but these days if you do a major rewrite and don't mention LLMs, you probably used LLMs.

      Unfortunately on this age of AI you can't anymore compliment human talent or effort without getting suspicious of anything being AI generated, it's getting harder by the day as AI generation gets more human-like.

  • 2001zhaozhao 18 hours ago
    > These tests have shown that the new server is quite literally an order of magnitude faster than the old one.

    This a bigger deal for gaming than people realize. 10x faster servers means 10x cheaper servers for the same player count. Free multiplayer games that monetize only a little can now still keep the lights on, and I believe it will unlock a lot of potential for community-run games independent of money-hungry studios and publishers going forward.

    • chimneychanga 16 hours ago
      Every time I see streamers play in a Rust event on a big server, it becomes a laggy rubberbanding mess after a few days. I hope the speed improvement can fix that issue.
  • Permik 20 hours ago
    Interesting, kinda would've thought that they'd use something like https://ahwoo.com/brutal for the game engine, especially because of the Unity roots of the game project, but I guess they're going to bake their own stuff.
    • doctorpangloss 19 hours ago
      Both Rimworld's devs and Facepunch dance around the fact that they used LLMs to do this (BRUTAL is LLM authored, obviously the whole Rimworld port from Unity is), IMO they shouldn't blog about this stuff at all, not until platform owners (Valve) stop mobilizing a hate mob against stuff like this.
      • Grombobulous 18 hours ago
        I’m not a fan of your characterization of Valve “mobilizing a hate mob.”

        All Valve has done is mandated a tiny AI disclosure at the bottom of the product listing. One might say this discourse is easy to miss entirely.

        Maybe one day this disclosure won’t be necessary, but in the status quo, Valve’s customers demand it.

        My opinion is that anyone who is afraid of being honest about their AI usage is akin to a food manufacturer who refuses to disclose ingredients.

        If the free market dislikes the use of AI enough to sacrifice sales, the creative industry will just need to stop using it. The software industry worked fine before 2023 without AI.

        • Grombobulous 15 hours ago
          When I said “discourse” that word was supposed to be “disclosure.”
        • doctorpangloss 18 hours ago
          let he who has not used an LLM for programming, a creative art or sound task, or for communicating with people cast the first stone.
          • Grombobulous 18 hours ago
            Philosophical platitudes like this don’t matter. The only thing that matters in business is what customers are willing to pay for.

            For example, my employer isn’t in a creative industry and none of our clients care at all if we use AI to aid our development process.

            And really the creative industry is one where customers just want honesty right now. They want an ingredients label.

            Many gamers are willing to pay for AI-authored games. Many aren’t. They just want honest disclosure.

            • doctorpangloss 4 hours ago
              you keep bringing up the ingredients labels. they're such a bad example. before GLP1s Americans were fatter than ever. people game the ingredients labels all the time, i was just reading about this - https://news.ycombinator.com/item?id=50023995. not like some small immaterial scam. ingredients labels are completely subverted. it comes to no surprise, i can't tell you what goal it achieved.

              and to all of this, since you're so committed to ingredients labels, you're going to say, "no, ingredients labels, but better." that's the problem. there's no better.

          • ptrl600 18 hours ago
            You probably shouldn't use an LLM to communicate with people, except as a prank or something.
          • JRandomHacker42 16 hours ago
            Great, I've got a pile of rocks and plenty of targets.
            • Firehawke 11 hours ago
              Exactly what I was thinking. I'm more than happy to continue to not use genAI.
      • rbits 17 hours ago
        What do you mean by "Valve mobilising a hate mob"? Steam used to require a disclosure for AI code, but they have since removed that and only require disclosure for non-code assets. I can't think of anything Valve has done that indicates they are against AI coding.
      • EdwardDiego 17 hours ago
        Just to clarify, Rimworld devs didn't build the engine FYI, that was Rocketwerkz, company founded by Dean Hall, of Day Z fame.

        I suspect you knew that already, but your comment read as if Rimworld devs did both aspects.

  • orbital-decay 23 hours ago
    I wonder what that means for cheating. Facepunch is/was known for encouraging players to search for bugs and exploits and freely use and spread them. Eventually they're posted on YouTube and fixed. As a result they have a thoroughly polished game in which it's extremely hard to find e.g. a duping exploit (bane of survival sandboxes) without resorting to actual third-party hacks. There's no way their new codebase will be as polished.
    • Rohansi 15 hours ago
      Only the game engine is being replaced, not the actual game implementation. Shouldn't have any negative effects on cheating. Especially since Unity's IL2CPP ships full symbols for the game by default.
  • jey 23 hours ago
    Seems like it's not actually a change in language, but switching from Unity game engine to an in-house engine.
  • raincole 13 hours ago
    I think Unity is pretty much done.

    What does Unity bring to us?

    From a programmer's perspective, it lets us focus on the gameplay logic more, and less on essential but boring parts like asset compression and cross platform support.

    From a designer's perspective, it lets you change stuff quickly without learning a programming languages or bothering your programmer, like adjusting material parameters, move stuff around it the scene editor, etc.

    Among all things above, the only one I am slightly uncomfortable to hand to LLM is crossplatform support. But if you use libraries like SDL you are 90% covered.

    • bob1029 11 hours ago
      > if you use libraries like SDL you are 90% covered.

      It's that other 10%. Technically correct and practical are different universes.

      No one is operating under some illusion that everything in unity is somehow unique and cannot be replicated OSS. People use this tool because it's a complete functional package that covers 100% of the space with a reasonable degree of fidelity.

      It's about saving time and energy, just like any other tool. Even with frontier AI, I'd rather focus my limited attention on validating the concept. The goal is to make a game, not prove that we can defeat the capitalists at every possible step.

      • ehnto 10 hours ago
        Also tutorials galore, biggest plugin and asset store etc. The ecosystem is huge and has its own lock in effect.
    • locknitpicker 11 hours ago
      > But if you use libraries like SDL you are 90% covered.

      Oh right, if you are a game developer who doesn't want to focus on gameplay logic, or a designer who wants to have to deal with way more than your job, then SDL might be an adequate choice.

      What a sales pitch.

      • raincole 9 hours ago
        I think you completely misunderstood what I said.

        I meant that LLM can write tedious stuff like asset compression so the human programmers can focus on gameplay logic etc.

  • yodon 23 hours ago
    >These tests have shown that the new server is quite literally an order of magnitude faster than the old one.
  • Kuraj 16 hours ago
    I understand why we have these guidelines but not clarifying that it's about the game would have been so funny
  • squidlib 22 hours ago
    The fps scores are enough to make this former gamer happy. I hope other devs can run with this in their own way.
    • Kiro 22 hours ago
      What are you referring to?
  • blinded 23 hours ago
    Mad fun game. Unhinged at times, but fun
  • 0xbadc0de5 23 hours ago
    Misleading title. Should be 'Rust Game Engine...' not to be confused with Rust programming language.
    • danesparza 22 hours ago
      Thank you. I was very confused for a few minutes. (And checking to see if it was April 1st)
    • orbital-decay 23 hours ago
      Should be "Facepunch moves to in-house engine" because Rust the game already runs on Unity. The article says nothing about C#. But I guess OP couldn't resist.
  • pjmlp 1 day ago
    Yeah, modern C# and .NET have plenty of low level coding features that originated in Sing# (Singularity) and System C# (Midori), so it is kind of nice seeing this evolution, even if now everyone is vibe coding.

    However there was a lost opportunity there to rewrite Rust in Rust, pun intended.

    • bryanlarsen 1 day ago
      OTOH if it was rewritten in Rust we wouldn't have gotten this delicious head-snap headline.
  • Zambyte 23 hours ago
    Laravel rewritten in DayZ
  • becquerel 22 hours ago
    Funniest possible way to phrase this headline.
  • t1234s 22 hours ago
    Due to the headline I imagine this link got many clicks from people who know what Rust (the language) is and no idea what facepunch.com is.
  • gsjhdheje 10 hours ago
    I would have liked rust to be rewritten in rust to just make all my rust web searches even more confusing...
  • jluysvi 21 hours ago
    I chuckled and was fully expecting satire about the rust compiler being written in c# or something.
  • HeavyStorm 21 hours ago
    The title is incredible baity. "The game engine for Rust is being rewritten in C#" is probably close to the truth.

    Also I doubt there won't be interop and C/C++ modules as GC can be a problem in a game of this scale. (well that or a lot of unsafe calls...)

  • jamesdftx 13 hours ago
    Searched everywhere and didn't see this comment, but it feels like a missed opportunity to rewrite Rust in Rust.
  • oceansky 22 hours ago
    They really lost the opportunity of rewriting Rust in Rust.
  • flykespice 1 day ago
    Well, I'm just happy Rust team has finally recognized C# language as superior than their previous one :)
  • mehmetkose 20 hours ago
    rust should be rewritten in rust
  • ftchd 1 day ago
    We have come full circle
  • cpascal 1 day ago
    note: rust the game is being rewritten in c#
    • overtone1000 1 day ago
      I was totally expecting a satire about rustc ported to C#.
      • stmw 22 hours ago
        Same
      • daft_pink 21 hours ago
        yes, i was like why would they rewrite rustlang with microsoft's version of java.
  • studioashbell 19 hours ago
    [dead]