https://www.amolas.dev/Alex MolasThe place where I talk about anything, from machine learning to cooking. 2022-11-24T20:34:53+01:00 Alex Molas https://www.amolas.dev/ Jekyll © 2022 Alex Molas /assets/img/favicons/favicon.ico /assets/img/favicons/favicon-96x96.png Mate with only pawns and no promotions.2022-11-24T00:00:00+01:00 2022-11-24T20:34:29+01:00 https://www.amolas.dev/blog/mate-with-only-pawns/ Alex Molas I started playing chess some years ago, and to be honest I’m not very good at it. However, I like to think about things, and at some point the following question pop into my head Is it possible to mate using only pawns without doing any promotion? I googled a little bit and I didn’t find anything, so I just thought that maybe my idea didn’t make any sense. And the question remained unsol... Computability Theory (ii): uncomputable numbers.2022-10-20T00:00:00+02:00 2022-11-02T16:17:43+01:00 https://www.amolas.dev/blog/uncomputable-numbers/ Alex Molas During my current incursion in computability theory I learnt about uncomputable numbers, this is, numbers that can’t be computed with arbitrary precision. This means that even given all the computational power in the universe you could not compute these numbers. Even if God himself came from Heaven, he could not compute these numbers. Uncomputable numbers are numbers that can’t be computed beca... Computability Theory (i): the Halting Problem.2022-10-19T00:00:00+02:00 2022-10-19T00:00:00+02:00 https://www.amolas.dev/blog/halting-problem/ Alex Molas During these last few days I’ve been reading a little bit about computability theory, and I feel like a kid with a new toy, so I’m going to write some posts about this topic. I don’t pretend to explain anything new, and probably what I’m going to write has been written before, but I’ll write these posts for two reasons: (1) as future notes for myself, and (2) to help me clarify and organize the... Choose the smallest number not chosen yet.2022-09-28T00:00:00+02:00 2022-11-04T11:52:10+01:00 https://www.amolas.dev/blog/choose-the-smallest-number/ Alex Molas If you know me you know I love games where you can apply maths to obtain the best strategy. I’ve written several posts about this kind of games (coin game paradox, Feynman restaurant problem, and continuous blackjack). In today’s post, I’ll present another game of the same kind: select the smallest unique integer 1. Problem Statement Imagine a game where each contestant has to pick a positive... TIL: constant folding in python.2022-09-10T00:00:00+02:00 2022-09-10T14:33:41+02:00 https://www.amolas.dev/blog/til-constant-folding/ Alex Molas I’m working on a blog post about which option is faster x*x or x**2, and while writing it I discovered some interesting things about how python is implemented at a low level. So for today’s post I won’t be able to answer which option is faster, but I’ll explain you how python optimizes your code. First experiment: literals vs symbols To start let’s go back to the original question: what is fa...