Machine Code, Global memory, the Stack and the Heap

Today we have progressed so far that we have computers with multiple 'cores' (in fact complete processors) on a single chip. But one way to understand the fundamentals of computers is to analyse far simpler computers from the past.  This section will review those very fundamental concepts in terms of each of the following: a… Continue reading Machine Code, Global memory, the Stack and the Heap

Machine Code and Global Memory

updated 1 Jan 2020 To understand how memory works, it can be useful to consider how the CPU itself works, and what follows from that is how memory works.  Languages are built on these underlying principles and automate using the different types of memory. This page uses a 'hypothetical programmable calculator' (Magic Calculator), to illustrate… Continue reading Machine Code and Global Memory

OOP vs Functional: No contest!

Moving to kotlin, the question can arise: "should I program in OOP (Object Oriented Programming) style, or move to Functional programming?".  This page examines reviews what Object Oriented programming really means, what functional programing is, and outlines how there is no incompatibility if the correct approach to OOP is in place, and the two paradigms… Continue reading OOP vs Functional: No contest!

Lists, Dictionaries, Iterations & More

Python uses dictionary, list and tuple to hold collections information, with set also available (but not used as quite as often). Kotlin provides List and Map as collections, and their mutable forms, MutableList and MutableMap as the main solutions for collections equivalent to Python.  Further, Set and MutableSet are available matching the python 'set'.  'List'… Continue reading Lists, Dictionaries, Iterations & More