I hereby claim:
- I am jkelleyrtp on github.
- I am jkelleyrtp (https://keybase.io/jkelleyrtp) on keybase.
- I have a public key ASC9lYFL_BAdEDf5sFtO1K9nRBh1ZVixwypItG7p7f8oIgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
use tokio::{runtime::Builder, sync::{mpsc}}; | |
use winit::{event::{Event, WindowEvent}, event_loop::{ControlFlow, EventLoop}, window::{Window, WindowBuilder}}; | |
pub struct Gpu { | |
pub surface: wgpu::Surface, | |
pub device: wgpu::Device, | |
pub queue: wgpu::Queue, | |
pub sc_desc: wgpu::SwapChainDescriptor, | |
pub swap_chain: wgpu::SwapChain, |
/* | |
This code shows how you would make a Rust API polymorphic over various functions. | |
It uses a technique to differentiate impls of a trait using a ZST marker. | |
This particular example might be too complex for the intended crate, hence its extraction into a gist. | |
*/ | |
use std::marker::PhantomData; | |
use tokamak::{Request, Response}; | |
fn main() { |
struct GlobalState { | |
name: String, | |
age: i32, | |
user: User, | |
} | |
struct User { | |
name: String, | |
age: i32, | |
config: Config, |
Recently an article very critical of Rust swept r/rust, r/programming, and HackerNews. This isn’t the first time someone has been critical of Rust, but in my experience, it’s one of the few times I didn’t see the typical host of responses piling on the author about “doing Rust wrong.” The post was so thorough and so poignant that it shut up even the loudest of zealots.
With that article, I felt a vibe shift. Someone finally called out Rust on its bullshit, so to speak. It’s true - “Rust gamedev ecosystem lives on hype” - and it’s about time we addressed it. There’s a lot of Rust folks whose answer would be “just get gud.” But the article rightly points out that for startups, small teams, and basically anyone who just wants to ship, Rust is not the answer.