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.
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:13 PM
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
April 7, 2025 at 8:45 AM
WGPU vs Vulkan
February 6, 2025 at 6:35 PM
I am generally of the opinion that current #AI tech is nearly useless but today I came across trellis3d.github.io.

The models generated using this new paper are unreasonably good. They do lose some quality from the input image but seem good enough to make a prototype for a #game.
December 10, 2024 at 4:34 PM
December 3, 2024 at 4:24 AM
In my experience #AI fails to be anything more than a better autocomplete while taking significantly more time to output a suggestion.

I tried #copilot for a month but the 1-2 second pause really caused any deep thoughts to derail waiting for it to come up with a suggestion.

#programming #software
December 1, 2024 at 5:24 PM
Apparently the Rust drop function for a Box does not get tail call optimized. Ran into a bug where dropping a large tree caused the program to crash due to stack overflow caused by the recursive drop_in_place calls.

#rust #rust-lang
November 30, 2024 at 5:26 PM