|
You are here |
gsomix.github.io | ||
| | | | |
qsantos.fr
|
|
| | | | | This article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec, &Vec with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Example: [i32; 100]Allocated on the stack T[N]Example: int[100]Allocated on the stack &[T; N] (array reference)Example: &[i32; 100]N is tracked at ... Continue reading Rust Strings for C Programmers ? | |
| | | | |
ketansingh.me
|
|
| | | | | A place for me to share my thoughts, experiences, and insights on technology relevant to enthusiasts and hackers like myself | |
| | | | |
www.foonathan.net
|
|
| | | | | Let me share a useful insight with you: constexpr is a platform. Just like you write code that targets Windows or a microcontroller, you write code that targets compile-time execution. In both cases you restrict yourself to the subset of C++ that works on your target platform, use conditional compilation if your code needs to be portable, and execute it on the desired target platform. You can thus view constexpr as another platform you can target; it just so happens to be run by your compiler. This insig... | |
| | | | |
mrcat.au
|
|
| | | I kinda wanted to do something with polystrip, my graphics library, so I thought why not do everything at once? Making a Shadertoy clone gives me a nice excuse to do a number of things, including registering a subdomain, learning how to make a Webassembly project with Rust, tricking myself into working on polystrip even though motivation is very low at the moment, and figuring out the Nix package manager (specifically flakes and dev environments). It's the perfect project! | ||