Skip to content

Instantly share code, notes, and snippets.

@cyang-el
Created September 24, 2021 22:55
Show Gist options
  • Save cyang-el/06a853021a6a341099a731c26bc7a414 to your computer and use it in GitHub Desktop.
Save cyang-el/06a853021a6a341099a731c26bc7a414 to your computer and use it in GitHub Desktop.
# my poetry #serial_number_is_a_concept_irreleant_to_me_atm
#
# 01:02 am Sep 25th 2021
# he/him
# Person from Taipei, Taiwan @Berlin, Germany
#
# This is poetry, not prod code.
# BACK OFF!!! coding cops
#
# This whole thing can be beta-or-alpha reduced (or whatever it's called)
# If you are failiar with functional programming
# e.g. any Lisp or Haskell or OCaml or ...
import sys
from functools import reduce
this_is_where_lisp_shines = map(
lambda inner_voice: setattr(sys.modules[__name__], inner_voice, True),
[
'TWO_FULL_BOTTLES_OF_WINE_DOWN_ONTO_THE_3RD',
'IS_THE_99999th_LONELY_FRIDAY_NIGHT',
'IS_A_EMACS_USER',
'LIFE_IS_A_TOTAL_FAILURE_IN_ALL_ASPECTS',
'AM_SAD_AND_FRUSTRATED_AND_LONELY_AND_DEPRESSED',
'NO_ONE_REALLY_CARES',
'FOR_WHATEVER_REASON_MY_FAMILY_AND_PYTHON_ARE_NOT_TOTAL_LETDOWNS',
'I_AM_GRATEFUL_TO_HAVE_THEM',
'ALSO_GRATEFUL_FOR_CATS_AND_TRUE_JAZZ_AND_ANGRY_ROCK',
'AND_EVERYDAY_KINDNESS_FROM_PEOPLE',
'AND_I_AM_PHISICALLY_HEALTHY',
'BUT_THESE_DO_NOT_HELP',
'I_DO_NOT_CARE_IF_I_SOUND_LIKE_A_TEENGAER_NEEDS_TO_GET_LAID',
'GODS_KNOWS_MY_SUFFER_IS_REAL',
'I_DO_NOT_THINK_GOD_OR_BUDDHA_CARES',
'I_DO_NOT_CARE_IF_GODS_EXIST',
]
)
CHANCE_OF_GOOD_THINGS_HAPPENING = 1e-29
CHANCE_OF_SHIT_HAPPENING = 1 - 1e-23
# ^ from authoritarian regimes to racism to my own personal pains
#
# the space between "1 - 1e-23" and "1e-29"
# is called "reason to live"
# or sometimes
# "hope"
#
MY_HUMBLE_EXPECTATION = 0.8
TIME_I_HAVE_IN_THIS_WOLRD = 9999999
def am_happy() -> bool:
return CHANCE_OF_GOOD_THINGS_HAPPENING >= MY_HUMBLE_EXPECTATION
def am_sad() -> bool:
return CHANCE_OF_SHIT_HAPPENING <= MY_HUMBLE_EXPECTATION
def am_a_happy_person() -> bool:
return reduce(
lambda happy, sad: happy and not sad,
map(lambda _: (am_happy(), am_sad()),
[i_ for i_ in range(TIME_I_HAVE_IN_THIS_WOLRD)]))
def hello_frustrations():
return not am_a_happy_person()
if __name__ == '__main__':
[i_am_ok_with_this for i_am_ok_with_this in this_is_where_lisp_shines]
# BTW... Java as a language itself is OKAY,
# JUST its eco system and its toolchain are ""THE""" closest manifestos
# of the fact that humans are DOOMed.
#
# I am so sorry Java... I wish I were stong enough to help...
# It's not ur fault.
#
# HUMANS ARE SHIT !!!!!!! WORST EVER!!!!!!! FUCK!!!!!!!
#
# Why most Java language core people were lisper in their previous lives?
# HAHA! FUNNY! (laughing in sarcastic tears...)
assert TWO_FULL_BOTTLES_OF_WINE_DOWN_ONTO_THE_3RD and \
IS_THE_99999th_LONELY_FRIDAY_NIGHT and \
IS_A_EMACS_USER and \
LIFE_IS_A_TOTAL_FAILURE_IN_ALL_ASPECTS and \
AM_SAD_AND_FRUSTRATED_AND_LONELY_AND_DEPRESSED and \
NO_ONE_REALLY_CARES and \
FOR_WHATEVER_REASON_MY_FAMILY_AND_PYTHON_ARE_NOT_TOTAL_LETDOWNS and \
I_AM_GRATEFUL_TO_HAVE_THEM and \
ALSO_GRATEFUL_FOR_CATS_AND_TRUE_JAZZ_AND_ANGRY_ROCK and \
AND_EVERYDAY_KINDNESS_FROM_PEOPLE and \
AND_I_AM_PHISICALLY_HEALTHY and \
BUT_THESE_DO_NOT_HELP and \
I_DO_NOT_CARE_IF_I_SOUND_LIKE_A_TEENGAER_NEEDS_TO_GET_LAID and \
GODS_KNOWS_MY_SUFFER_IS_REAL and \
I_DO_NOT_THINK_GOD_OR_BUDDHA_CARES and \
I_DO_NOT_CARE_IF_GODS_EXIST
# ^
# Please forgive me, Jedi (Python).
# I am really sorry, these will all be added during runtime.
# I understand you cannot agree with these,
# and I know ur trying ur best to understand these.
# Just trust me.
# For better or worse, always know this;
# I love you.
# Sincerely.
assert hello_frustrations()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment