Friday, 27 November 2026

Prolog is Turing Complete

Pure Prolog is Turing complete. This means it is computationally equivalent to a universal Turing machine (UTM).

Automatic Differentiation in Machine Learning

C'est Quoi, et Pourquoi?

Automatic differentiation is used in the field of machine learning.

Once you start reading a few good machine learning papers, this concept will pop up repeatedly. Its usefulness appears in backpropagation in a neural network without a manually computed derivative.

Automatic differentiation (AD) and algorithmic differentiation are generally the same thing. The term automatic differentiation term is more common in machine learning and optimisation, and algorithmic differentiation is more often heard in numerical analysis and scientific computing communities.

Both refer to computing exact derivatives by systematically applying the chain rule to a computer program.

Thursday, 26 November 2026

Postgres on Windows

It is best, when using Postgres on Windows, to use WSL, as this will be easier to do testing with production-realism. Check out the instructions here.

mojo-mode

One option for mojo-mode is here. It derives from python-mode.

Emacs Lisp

The initialization file and testing it through

Emacs lisp is needed to configure emacs, right from the initialization file (init.el). The first "skill" needed is a testing skill - "M-x eval-buffer" to load /re-load init.el.

Background to Emacs Lisp

LISP was first developed in the 1950s at MIT for research into Artificial Intelligence. 

The power of Lisp is useful for other applications such as writing editing commands, as demonstrated by the existence of Emacs Lisp. GNU Emacs Lisp was inspired by Maclisp, and a little by Common Lisp. Common Lisp was used to implement Grammarly's grammar engine.

Relevant Manuals

Links to emacs manuals can be found in the link provided, which also links to the GNU emacs manual and emacs lisp reference manual.

 

Quickstart to Mojo Coding

Quickstart here.