A search engine in 80 lines of Python
In this post I explain how I built a search engine from scratch using python. The resulting search engine is used to search in the posts of the blogs I follow.
Hello, world, I'm Alex, and this is my blog, where I talk about math, machine learning, and other things like cooking.
Visit alexmolas.com → On Hacker News Jul 2023 – Oct 2025
Software Engineering 3Math & Algorithms 2Life, Learning & Writing 2Web & Frontend 1Science & Space 1Games & Graphics 1
In this post I explain how I built a search engine from scratch using python. The resulting search engine is used to search in the posts of the blogs I follow.
Nobody cares about your blog, but you should keep writing!
In this post I derive the physics of pumping a swing and the physics of jumping from a swing. Then, using both pieces I compute the optimal strategy of jumping from a swing to maximize the traveled distance. I propose this game as a new Olympic sport.
Lately I’ve heard a lot of stories of AI accidentally deleting entire codebases or wiping production databases . But in my case it was the other way around. I removed some working code and the LLM helped me to recover it.
I’ve never been good at playing football 1 . I started playing again last year and I have scored more own goals than goals for my team. Also, I support the RCD Espanyol 2 , which has spent last season in the second division and has miraculously ascended to the first division last week. And to be honest, I only watch…
The other day I was interviewing a developer for a position at Wallapop. The candidate was a little bit junior, but I enjoyed their technical assignment and the conversation was going great. One of the questions I had to ask was