logoalt Hacker News

Rust is being rewritten in C#

38 points • by flykespice • today at 6:57 PM • 28 comments • view on HN

Comments

andrewjvb • today at 8:48 PM

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).

lazypenguin • today at 9:03 PM

> 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

CharlieDigital • today at 8:57 PM

I think a few languages are going to survive the AI age.

    - Rust for CLIs, tooling; backends that need to be maximally optimized
    - C# for games, web backends
    - TypeScript for web frontends
Why not Go? Might as well use Rust.

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.

Python will return to its roots. PHP is gone. TS on the backend will be gone. Java likely supplanted by Rust over time.

➕ show 2 replies
orbital-decay • today at 8:34 PM

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.

shmolyneaux • today at 8:46 PM

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.

➕ show 1 reply
cpascal • today at 7:12 PM

note: rust the game is being rewritten in c#

➕ show 1 reply
yodon • today at 8:01 PM

>These tests have shown that the new server is quite literally an order of magnitude faster than the old one.

squidlib • today at 8:53 PM

The fps scores are enough to make this former gamer happy. I hope other devs can run with this in their own way.

jey • today at 8:27 PM

Seems like it's not actually a change in language, but switching from Unity game engine to an in-house engine.

tester756 • today at 8:22 PM

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

➕ show 2 replies
t1234s • today at 8:40 PM

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.

oceansky • today at 8:48 PM

They really lost the opportunity of rewriting Rust in Rust.

Zambyte • today at 7:38 PM

Laravel rewritten in DayZ

pjmlp • today at 7:19 PM

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.

➕ show 1 reply
becquerel • today at 8:46 PM

Funniest possible way to phrase this headline.

blinded • today at 8:23 PM

Mad fun game. Unhinged at times, but fun

ftchd • today at 7:29 PM

We have come full circle

0xbadc0de5 • today at 8:15 PM

Misleading title. Should be 'Rust Game Engine...' not to be confused with Rust programming language.

➕ show 2 replies
flykespice • today at 7:29 PM

Well, I'm just happy Rust team has finally recognized C# language as superior than their previous one :)