Top
Best
New

Posted by flykespice 6 hours ago

Rust (game) is being rewritten in C#(rust.facepunch.com)
60 points | 69 comments
andrewjvb 4 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).

pennomi 2 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.
MeetingsBrowser 4 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.

hirvi74 2 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.

CharlieDigital 4 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.

CSMastermind 4 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.
gopher_space 3 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 2 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.

CharlieDigital 4 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.

MeetingsBrowser 3 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 3 hours ago||
Gave multiple datapoints.

Slashdata shows the same story.

MeetingsBrowser 2 hours ago||
I agree with the overall message, but using a bad data point detracts from the point being made.
Shalomboy 3 hours ago|||
Shoutout CharlieDigits for speaking the truth the masses are too afraid to hear
TrueSlacker0 4 hours ago|||
What were the reasons to do this?
qaq 3 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 2 hours ago|||
That doesn’t really matter much for large corps like Google. At that scale, you already have an internal stdlib implementation.
CharlieDigital 3 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.

Sleaker 4 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 4 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 4 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.

mistic92 3 hours ago||
C# for backend? Maybe in banks. Go for the win
Atotalnoob 2 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 1 hour 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.

loufe 2 hours ago||||
Not just banks, lots of enterprise software in less techy industries rely on c#, like mine.
CharlieDigital 2 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.

CharlieDigital 3 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.

efficax 3 hours ago||
one thing rust doesn't do that go does, is compile fast
CharlieDigital 3 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.

Permik 2 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.
lazypenguin 4 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

jshier 3 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.
tester756 4 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

a34729t 4 hours ago||
I used C# heavily for a while and really liked it. Is this the programming equivalent of being a (straight) guy getting drunk at a party, and kissing another guy, and liking it?
Tallain 3 hours ago||
No, it's the equivalent of having two drinks, taking an Uber home, and getting a good night's rest.
ShroudedNight 3 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

flykespice 4 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.
ameliaquining 4 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 4 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 3 hours ago||
Was*
orbital-decay 4 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.
yodon 5 hours ago||
>These tests have shown that the new server is quite literally an order of magnitude faster than the old one.
jey 4 hours ago||
Seems like it's not actually a change in language, but switching from Unity game engine to an in-house engine.
shmolyneaux 4 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.

orthoxerox 4 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.
benoau 4 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...

embedding-shape 4 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 3 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

flykespice 4 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.

squidlib 4 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 4 hours ago|
What are you referring to?
More comments...