centerDiv.js - Blåhaj Lemmy

got it from here https://mastodon.social/users/bkastl/statuses/114669143760854678/activity [https://mastodon.social/users/bkastl/statuses/114669143760854678/activity]

Oh yes please. But not JavaScript. I use Rust frameworks to avoid all three!
Eww Rust! I hate memory safe languages, I love torturing myself with C
You can wrap everything in unsafe and keep living dangerously!
unsafe doesn’t deactivate memory safety. It only allows you to then create raw pointers and whatnot, which you could use to circumvent memory safety, but all the normal language constructs still do enforce it.
I know, but it does let you sled off a cliff if you choose to.

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):

  • Every function is unsafe.
  • No references, only pointers.
  • No cargo, build with rustc directly.
  • No std, but libc is allowed.
  • Only Edition 2021.
  • All user structs and enums #[derive(Clone, Copy)].
  • 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).

    GitHub - tsoding/Crust: Rust that is actually Fun

    Rust that is actually Fun. Contribute to tsoding/Crust development by creating an account on GitHub.

    GitHub
    Oh boy, now I can stop missing C++

    Yew* Rust

    FTFY

    Nah, they had it right
    GitHub - elkowar/eww: ElKowars wacky widgets

    ElKowars wacky widgets. Contribute to elkowar/eww development by creating an account on GitHub.

    GitHub

    Knew someone would say that, almost, but it’s akschually eww 🤓

    gets beaten up with a bat

    Btw, sad that it’s gone unmaintained and my man started working on home-manager at home
    …wait

    Yeah I gotta get my workplace to get on board with it. Rust->Webasm is simply amazing
    Flutter like a butterfly, sting like a Dart.