Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ranchonyx1046823dfunction* getMood() {
while(true) {
yield Math.random();
}
}
const moodGen = getMood();
let moodResult = moodGen.next();
while(!moodResult.done) {
if(moodResult > 0.5)
console.log(goOutWithFriends());
else
console.log(rotInsideAndPlayGames());
moodResult = moodGen.next();
} -
CaptainRant421722dCallback function to escape void hm... so that would mean that function would have to keep bouncing around in memory.
-
miladrt2120d@Ranchonyx
boot_mood() {
echo " Booting Mood OS..."
sleep 0.5
local MOOD=0
echo " Mood bit: $MOOD"
echo " Mood check failed."
sleep 1
echo "🔌 systemctl --user start void.target"
systemctl --user start void.target 2>/dev/null || true
echo "..."
sleep 1
echo "..."
sleep 1.5
echo " Engulfed by /dev/null"
echo ""
echo " Kernel panic: Recursive introspection triggered a segmentation fault in soul.c"
echo "# Suggestion: Sit. Stare. Breathe. The void is listening and observing. can't get out of this space though."
} -
miladrt2120d@jestdotty
fun main() {
while(true) {
try {
overthink()
} catch (e: Exception) {
println("Embracing the void without resistance. fallen deeper and deeper and donno the feeling and everything is quite blur")
}
}
}
fun overthink() {
if ((1..10).random() > 8) throw Exception()
}
My anxiety runs on an event loop:
while(alive) { overthink(); }
What’s your callback function to escape the void?
(Mine’s () => { orderDumplings(); })
joke/meme