Two Models of Computation: or, Why I’m Switching Trains

“In cognitive science, we only use the lambda-calculus model of computation,” says Dr Philipp Koralus (Phd, Philosophy & Neuroscience, on his way to be a lecturer at Oxford). “We want to talk about what the system is doing, and abstract the how.” Two models of computation: lambda calculus and the Turing machine. Teacher and student, …

Read moreTwo Models of Computation: or, Why I’m Switching Trains

From imperative to data flow to functional style

Functional style makes code more maintainable. How? One way makes processing into a flow of data with discrete steps. Another way separates flow from context, making the context swappable. This post illustrates both. We’ll go from an imperative style to a more and more functional style. Scala is a good language for this illustration, since …

Read moreFrom imperative to data flow to functional style