ho lyun jeong

hi im lucas. i write code and do other things sometimes

the history of philosophy, a.c. grayling - 2 the presocratic philosophers: thales, anaximander, anaximenes

it sure has been a while since i last did this… i have been quite busy – whenever im not at work, eating, or out and about , i am busy consuming the infinite fountain of wisdom some call “instagram reels”. the world could use some innovation in the year of 2025 – we can start by replacing the nonsensical gibberish of lorem ipsum with relatable idioms like “lirili larila”, “bombardiro crocodillo”, “bombombini gusini”, and “tralalero tralala” ...

April 18, 2025

the history of philosophy, a.c. grayling - 1 introduction, philosophy before plato

introduction for almost all of its history ‘philosophy’ had the general meaning of ‘rational enquiry’, though from the beginning of modern times in the renaissance until the nineteenth century it more particularly meant what we now call ‘science’ what we now call “philosophy” was marked by labels such as “metaphysics” and “moral philosophy” to distinguish it from what we now call “science”. the word “scientist” was coined in 1833, since which the words “philosophy” and “science” took on their current meanings ...

February 9, 2025

c++ template-like invocation in python

so the other day for whatever reason i really wanted to invoke python functions as if they were c++ template functions… like so: template <int x> int add(int y) { return x + y; } printf("%d\n", add<5>(3)); if we ignore semantics, add<5>(3) seems to be a valid python expression – roughly translating to add.__lt__(5).__gt__(3) i quickly whipped up a prototype: class TemplateAdd: def __init__(self): self.x = None def __lt__(self, x): self.x = x return self def __gt__(self, y): return self.x + y add = TemplateAdd() print(add<5>(3)) but somehow it prints True… thanks, chained comparisons. the expression add<5>(3) evaluates to add.__lt__(5) and 5 > 3, and with no way to overload the and operator, the dream is dead unless i come to terms with the deranged syntax of (add<5)>3 (doesnt <5)>3 kind of look like a fish?) ...

January 29, 2025