Skip to content

Instantly share code, notes, and snippets.

View soqb's full-sized avatar
🦀
the Rust programming language

radiish soqb

🦀
the Rust programming language
View GitHub Profile

introduction

inspired by a friend’s fledgling language design and motivated by the JeanHeyd Meneide RustConf Fiasco™ and improving the story for compile-time introspection, i decided i needed a place to spew the last year’s musings on variadic generics in Rust in one mighty, less-than-understandable catharsis.

i think somewhere in here is a considered and reasonable design, so that’s neat!

perhaps i’ll make this an RFC one day. probably not. you have my express permission to do that yourself.

variadic generics?

this nugget of language jargon encapsulates the idea that we might want to bind to an arbitrarily large list of generic parameters, all at once. there are many reasons to want to do this:

@soqb
soqb / config
Created October 19, 2022 20:23
picom & i3
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@soqb
soqb / fragment.hlsl
Created November 14, 2021 11:08
fragemtn shader hlsl
float4 main(): SV_TARGET {
return float4(1, 0, 0, 1);
}