Matt Russell
Matt Russell
@mattrusselluk.bsky.social
Reposted by Matt Russell
youtu.be/U3GQePblz4M
What is the easiest language?
What is the Easiest Language?
YouTube video by jan Kekan San
youtu.be
February 1, 2025 at 6:02 AM
Blundered into my first infinite loop bug in Lean - and it seems Lean isn't really as set-up to help rule out certain runtime issues ("panics" and non-termination) as I had initially assumed. A teeny bit disappointed!
December 9, 2024 at 5:28 PM
Reposted by Matt Russell
I would love a chiller version of AOC where all the problems are first-week level of difficulty.
December 8, 2024 at 3:04 PM
Day 8 Advent of Code in Lean: github.com/mdr/aoc-2024...
December 8, 2024 at 7:55 PM
Reposted by Matt Russell
I keep trying to migrate this one and the video gets corrupted. It’s just that powerful!

#FunctionalProgramming #Haskell #OCamel #Programming
November 21, 2024 at 2:21 AM
React but for TUIs would be fun, I bet that exists already
December 5, 2024 at 10:30 AM
Reposted by Matt Russell
Day 5 of #AdventofCode in Lean: github.com/chenson2018/...

One of my favorite days so far, came out very cleanly. Having quicksort in the language is nice. I enjoyed writing the function to get the middle of an Array with a provably correct index, though ran into some decidable equality trickiness.
advent-of-code/2024/lean/AoC/Day05.lean at main · chenson2018/advent-of-code
Contribute to chenson2018/advent-of-code development by creating an account on GitHub.
github.com
December 5, 2024 at 8:32 AM
Day 4 Advent of Code in Lean: github.com/mdr/aoc-2024...

I suspect I might begin to fall behind the daily pace soon! Today's was a straightforward puzzle, but it took me a while to get both parts working as a Lean novice.
aoc-2024/Aoc2024/Day04/Solve.lean at main · mdr/aoc-2024
Solutions for Advent of Code 2024 in Lean 4. Contribute to mdr/aoc-2024 development by creating an account on GitHub.
github.com
December 4, 2024 at 3:44 PM
A Shape must be a Circle or a Square. In Scala, I can write

def findCircles(shapes: List[Shape]): List[Circle]

In Haskell (and other FP languages), I'm stuck with:

findCircles :: [Shape] -> [Shape]

Is there a way to achieve the expressivity of the former if you lack subtypes?
December 3, 2024 at 9:06 PM
Reposted by Matt Russell
Microservices are just technical debt: www.youtube.com/watch?v=LltD...
Yes... Microservices REALLY ARE Technical Debt
YouTube video by Continuous Delivery
www.youtube.com
December 3, 2024 at 3:07 PM
Day 3 Lean Advent of Code solution:
github.com/mdr/aoc-2024...
I used regexes (but there was enough unpacking of matches that I suspect parser combinators would have been cleaner), and State monad to turn on/off instructions (probably overkill).
aoc-2024/Aoc2024/Day03/Solve.lean at main · mdr/aoc-2024
Solutions for Advent of Code 2024 in Lean 4. Contribute to mdr/aoc-2024 development by creating an account on GitHub.
github.com
December 3, 2024 at 6:54 PM
Day 2 Advent of Code solution in Lean: github.com/mdr/aoc-2024...

Lean's syntax sugar where you can call certain functions as if they were methods or properties - e.g "report.differences.toSet" - is very pleasant, especially if your day job is OO languages.
December 2, 2024 at 9:26 PM
I'm trying to learn a little #leanlang theorem proving as well as use it as a programming language for Advent of Code. I would especially like to get to where I could start to prove some simple properties about programs!
December 2, 2024 at 9:22 PM
Reposted by Matt Russell
🎁 Just in time for your #AdventOfCode puzzles, the latest Unison version, 0.5.29 contains a few code rendering improvements and a hefty performance boost for some programs using the standard interpreter.
Release release/0.5.29 · unisonweb/unison
What's Changed Fixed a bug that can prevent delete.namespace due to a problem in a library dependency (not your problem) Fixed a bug when rendering code where use statements could interfere with l...
github.com
December 2, 2024 at 8:57 PM
I like Lean's Nested Actions syntax
lean-lang.org/lean4/doc/do...
December 1, 2024 at 5:08 PM
Day 1 Advent of Code solution in Lean
github.com/mdr/aoc-2024...
December 1, 2024 at 5:04 PM
Just reading the #Lean tutorial. Using special Unicode angle brackets that look visually similar to regular angle brackets is a surely just asking for confusion.
November 26, 2024 at 8:56 AM