https://blog.gluegadget.com/ Recent content on Hugo en Tue, 17 Feb 2026 20:59:41 +0000 Fairstream https://blog.gluegadget.com/post/fairstream/ Tue, 17 Feb 2026 20:59:41 +0000 https://blog.gluegadget.com/post/fairstream/ <p><a href="https://en.wikipedia.org/wiki/Backtracking">Backtracking</a> is a versatile approach for solving search problems by building solutions incrementally. If a partial solution cannot be extended, it is discarded and the process returns to a previous step to explore an alternative path. This method is generally more efficient than brute-force searching due to pruning: stopping exploration of a branch as soon as it violates a constraint, which eliminates entire sections of the search space.</p> <p>Strictly speaking, fair backtracking is not required for all search problems. A fair strategy guarantees all branches make progress, preventing any single branch from starving the others. The List monad handles non-deterministic computation well, and within a finite search space it produces the same results as a fair stream. When the search space is infinite, or when one branch may produce unbounded results, fairness becomes essential to ensure completeness.</p> ThinkPad E470 https://blog.gluegadget.com/post/2017-08-22-thinkpad-e470/ Tue, 22 Aug 2017 00:00:00 +0000 https://blog.gluegadget.com/post/2017-08-22-thinkpad-e470/ <p>Recently I&rsquo;ve been looking for a Linux-friendly, budget laptop. I like ThinkPads, and all of my laptops have been either T-series or X-series but this time I didn&rsquo;t want to spend that amount of money and was looking for cheaper alternatives.</p> <p>Browsing Lenovo website, I realised that a reasonably configured <a href="http://www3.lenovo.com/ie/en/laptops/thinkpad/edge-series/E470/p/22TP2TEE470">E470</a> would cost about €1000 which was about how much I was willing to pay. I configured it, so it has:</p> Types and Programming Languages https://blog.gluegadget.com/post/2017-08-16-tapl/ Wed, 16 Aug 2017 00:00:00 +0000 https://blog.gluegadget.com/post/2017-08-16-tapl/ <p>February 2016, as a birthday present to myself I bought a copy of <a href="https://www.cis.upenn.edu/~bcpierce/tapl/">Types and Programming Languages</a>. At the time the only thing I did with it was to take a photo of it, sharing it on Twitter and congratulating myself. To be fair, I did try reading it, but it was so intimidating that I gave up very early in the book. One and a half years later I’m going to give it another go because a few things have changed.</p>