kill9/harmful/software/rust.md

31 lines
518 B
Markdown
Raw Permalink Normal View History

2021-06-15 16:02:43 +00:00
# Rust sucks
[Related video](/rust.webm)
* Rust lacks a specification
* There is only one compiler
2021-06-15 16:03:38 +00:00
>\>Everything in rust is undefined
2021-06-15 18:26:36 +00:00
2021-06-15 16:03:38 +00:00
>\>Therefore Rust has more undefined behaviour than C.
2021-06-15 16:02:43 +00:00
* Cargo sucks
* Takes years to build
2021-06-15 16:03:38 +00:00
>\>Consider adding CString/* const i8 literals
2021-06-15 18:26:36 +00:00
2021-06-15 16:03:38 +00:00
>\>Use concat!
2021-06-15 16:02:43 +00:00
```
macro_rules! c_str {
($s:expr) => { {
concat!($s, "\0").as_ptr() as *const i8
} }
}
foo(c_str!("my string"));
```
I'll add more things later, I'm busy rewriting Rust software in C ;-)
2021-06-28 16:18:30 +00:00
![](rust.png)