An overview of clever student proposals to sort faster than N log N, and why they fail.
Having been a teaching assistant for a course on algorithms for three years now, I have encountered several cases of students trying to hack sorting algorithms such that they can outperform the established \(O(N \log N)\) average-case time complexity for arbitrary lists. Here’s why they failed.
A second article on mechanics, all about the biomechanics of physical frame, and the psychology of good dancers.
I recently wrote about an essential mindset for how to move your legs in partner dances: dance is walking, a lamentably absent lesson in dance schools. But of course, dance is more than leg mechanics. As will become clear in this article, everything that is not leg mechanics can be captured by all the senses of one word: frame. And indeed, if a dance schools treats frame as an afterthought, it hardly teaches anything about dancing at all.
A short guide to the features that force your package to have a given Python version as its minimum requirement.
When you are writing your pyproject.toml, you may wonder what version of Python you should fill in as the requires-python = ">= 3.xx" value. This post shows you how you’ll know.
under Posts / Relationships / GeneralLast modified at:
4103 words • 20 min. read
I want to talk in the real world. Humans weren’t made for living their relationships over text. We should stop doing that.
I recently took a week-long break from texting. It allowed me to take a step back and reflect on whether it is desirable that I live the rest of my life going back to my usual habits of text messaging, and I’m having my doubts.
Try install with pip, if it fails install NVCC and try again, if it fails build locally, if that fails install a lower version. And then do HuggingFace stuff.
I recently wanted to try if using Flash Attention 2 would speed up my language model training, but installing it was more difficult than I thought. Here is how I did it.
under Posts / Relationships / GeneralLast modified at:
5980 words • 29 min. read
Some hard conversations should probably never be had.
One of my worst fears is being stuck in a relationship where authentic speech is punished, which I have written about in a previous article. If you cannot say what is on your mind out of fear for the other person’s reaction, you cannot solve the problems you see and you cannot assert your boundaries for self-preservation. So, is the solution to just say what you want to say? Not quite.
When spending time with someone, prioritise spending it in the same way that made you want to spend more time with them.
Recently, I have gotten closer with one of my female friends. We met through a shared activity, started having conversations, and since we both enjoyed those a lot, we started sharing more activities together. In the process, I learnt an important life lesson.
under Posts / Relationships / Dating about AttachmentLast modified at:
3904 words • 19 min. read
A look at attachment styles from the perspective of self-censorship.
Breakdown in communication is probably the most common reason for breakups. I have, however, had two short-lived relationships where by the end, breakdown in communication was the reason I didn’t break up sooner. Having recently read a book on attachment styles, I think I can now piece together why.
Nobody can teach you this, because you already know how to walk.
My friend Vuk Vuković, whom I met through dance and who has taught me to be bold about the philosophy of dance, once gave a one-minute speech on a square in my home town summarising the essence of son dance. I happened to film it. As he reflected later, it was actually a perfect summary of all partner dances worth their salt. I have since spread his sermon to many people, and it ties into some other thoughts and experiences I’ve had recently.