Sarthak Singh
s31.sh
Sarthak Singh
@s31.sh
Rendering Engineer | Rust Enthusiast 🦀

I dream of starting an indie game studio with others passionate about gamedev.
Imo, the bigger downside of using Pony is that its garbage collected.
Perfect memory safety (outside of ffi ofc) is implemented in a lot of languages. What makes Rust unique is that it gives you reliable memory safety without requiring a garbage collector.
June 20, 2025 at 10:51 PM
Hey, I am working on building my first big game and starting my indie studio. Would love to chat about why you chose to build a custom engine. I am also debating if I should build a custom engine.
June 19, 2025 at 11:35 PM
I think your DMs are not open. By default bsky only allows the people you follow to DM you. Since you don't follow me I can't DM you.
There is a setting in the chat tab to allow anyone to DM you.
June 16, 2025 at 8:38 PM
If the LLM is trained well on the language you are trying to generate, as long as you know how to communicate technical specifications you are good imo.
June 1, 2025 at 4:24 PM
I kinda disagree that there is much skill involved here.
I could never get LLMs to produce usable code for Rust but I recently started working on a React project and the difference is night and day.
It can produce working things in react without anything changing about how I prompt it.
June 1, 2025 at 4:20 PM
The features that are missing from enums are because it needs to support both enums that hold data and those that don't.

Functions to iterate over the variants or convert from int to the variant can only be implemented for enums that don't hold any data.

So rust does not implement them at all.
April 22, 2025 at 10:46 AM
I agree that Rust's enums are not as powerful as they can be. I for one would like to be able to iterate over the elements of an enum without having to derive anything.

For a simple enum like Clex you can just transmute it as shown below. Assuming we are sure that the value is a valid variant.
April 22, 2025 at 10:38 AM
Rust supports an easy way to do this.
play.rust-lang.org?version=stab...
The code below just works
April 21, 2025 at 2:11 PM
You can also use the new crabtime crate. I haven't used it before but it looks very useful for things like this.
March 23, 2025 at 6:56 AM
Only for loops are disallowed in a const context. You can still use a while loop or a loop loop.
March 23, 2025 at 6:53 AM
Have you tried installing rustup on the docker image?

www.rust-lang.org/tools/install
Install Rust
A language empowering everyone to build reliable and efficient software.
www.rust-lang.org
February 15, 2025 at 7:46 AM
Where are you based? The startup that I work at is looking for someone experienced in #Rust and graphics programming in San Fransisco or willing to move to San Fransisco.

DM me if you are interested.
February 8, 2025 at 8:09 AM
I said it was guaranteed because rust is trying to guarantee it. If an optimization is possible and does not happen it is usually treated as a bug in the compiler. There has been a fair bit of work on optimising the MIR to reduce the burden on LLVM to figure out the optimizations for the abstraction
January 31, 2025 at 11:44 AM