this post was submitted on 12 Jun 2025
565 points (99.0% liked)

Programmer Humor

24347 readers
1215 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
565
centerDiv.js (lemmy.blahaj.zone)
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 1 week ago (8 children)

Eww Rust! I hate memory safe languages, I love torturing myself with C

[–] [email protected] 10 points 1 week ago (4 children)

You can wrap everything in unsafe and keep living dangerously!

[–] [email protected] 1 points 1 week ago (1 children)

Tsoding has created a few rules for writing Rust to make Rust "fun" to program in, and gave them the name of Crust.

Here is the rule set (it may change over time):

  1. Every function is unsafe.
  2. No references, only pointers.
  3. No cargo, build with rustc directly.
  4. No std, but libc is allowed.
  5. Only Edition 2021.
  6. All user structs and enums #[derive(Clone, Copy)].
  7. Everything is pub by default.

If you ever want to try this out for some ungodly reason, there's a GitHub repository with an example Main that shows how to use libc and other libraries (in the example, it's raylib), and with a Makefile showing how to compile your projects (remember we aren't using cargo).

[–] [email protected] 1 points 1 week ago

Oh boy, now I can stop missing C++

load more comments (2 replies)
load more comments (5 replies)