CsJ5NPkuvE

joined 1 month ago
[โ€“] CsJ5NPkuvE@lemmy.zip -1 points 4 hours ago

Just by the cool 2D art I was kinda expecting a game or interactive website. I yearn for these cool little JavaScript/WebGL experiences. Something that makes the visit to the website worth and makes the point of not having AI summarize it or just read headlines.

Since I got disappointed I'm inclined to post the AI summary of this website but that would be petty.

[โ€“] CsJ5NPkuvE@lemmy.zip 6 points 22 hours ago

I'm trying to come up with a good pun how ownership and safety could have prevented this but..

use std::sync::OnceLock;

#[derive(Debug)] struct BrainCell { in_use: bool, }

static BRAIN_CELL: OnceLock = OnceLock::new();

fn get_brain_cell() -> &'static BrainCell { BRAIN_CELL.get_or_init(|| { println!("Allocating brain power... this might take a while."); BrainCell { in_use: true } }) }