I've completed "Haunted Wasteland" - Day 8 - Advent of Code 2023 adventofcode.com/2023/day/8 #AdventOfCode
1
25
Code at github.com/jiwhiz/aoc2023/bl…
Glad to use List1 and SortedMap first time!
16
My son played with OpenAI's ChatGPT, and wrote an article about it: github.com/calebji123/OpenAI
His conclusion: AI won't take over all the coding jobs 😅
1
1
Yuan Ji retweeted
Idris 2 version 0.6.0 has been released. For more details, see idris-lang.org/idris-2-versi…
Enjoy!
Was teaching #PFPL chapter 38 to my son, and very puzzled by the example in 38.4, so had a little discussion with Prof Harper. So thankful he accepted by correction 😀
Update idris-2-docker and create a demo project to test it, works very well!
github.com/jiwhiz/idris2-hel…
One of the difficulties to learn @idrislang for beginners is to setup local dev environment for Idris2. My son created a tool to make it much easier, check it out: github.com/joshuanianji/idri…
Category theory in context
Chapter 4 Adjunctions
#CategoryTheory #CategoryTheoryInContext
4
Yuan Ji retweeted
GitHub should allow issues to be optionally monetized. Open source is not "open customer support".
Learning math is like a roller-coaster ride:
"Aha, I got it!"
Next day, "Do I really understand this?"
4.3. Contravariant and multivariable adjoint functors
A cartesian closed category is a category C with finite products in which the product bifunctor C × C → C is closed.
4.2. the unit and counit as universal arrows
Given an adjunction F⊣G, there are two natural transformations
unit η : 1 ⇒ GF
counit ε : FG ⇒ 1
And they satisfy the triangle identities.
Yuan Ji retweeted
A friend asked for an explanation why "It's just Putin" is wrong and dangerous. I felt it needs a longer response. Here it is:
4.1. Adjoint functors
An adjunction is a pair of functors F: C→D and G: D→C, with an isomorphism:
D(F c, d) ≅ C(c, G d)
1
Brendan Fong gave a very good introduction to Adjunction in Programming with Categories - Lecture 8
youtu.be/mU3qcnBMGLw?t=1455
Those three examples are so much easier to understand!




