Posts

Showing posts from April, 2024

Minimum Distance Classifier (MDC) in Ada

Image
This program is a short example in Ada illustrating basic syntax, subroutines, type constructions and console I/O. Specifically, a basic pattern classifier from Machine Learning, namely a Minimum Distance Classifier (MDC), is constructed by just two core functions/procedures and about 120 lines of code. This type of classifier can successfully address linearly separable problems, here in the 2-D planar domain (X,Y). The Ada programming language is a creation of CII Honeywell Bull company in 1977-1983, under contract to the USA Department of Defense (DoD), with the goal of being the one-fits-all replacement of over 450 other languages used by DoD at that time in various embedded and real-time systems. "Ada" is the credit to Ada Lovelance (1815–1852) or "lady Ada", often referred to as the first computer programmer. The most popular Ada compilers for retro PCs came out Ada came out at the Windows 95/98 era, requiring some DPMI host or extender like DJGPP to run, mak

Queens puzzle solver in LISP

Image
This is a typical example of how LISP can be used to solve complex constrained programming tasks. The eight queens puzzle requires the placement of N (minimum) queens in a chessboard so that they do not threaten each other and at the same time control the entire grid. The definition is very simple, but the number of valid solutions explode exponentially as N becomes larger than eight. LISP was officially released in 1960, making it the third milestone programming language of the first era, along with Fortran and COBOL. The syntax of LISP is saturated with parentheses, which makes it somewhat difficult for reading but very efficient for parsing by the interpreter. At the same time it makes search tree creation very intuitive, a paradigm that was later used by several other declarative laguages like Prolog. Enable captions for more details and walk-through. Source code available at the Github repository (see channel info). Tags: #asmr #coding #programming #notalking #lisp #terminal

Factorization of a number in GW-Basic

Image
The factorization of an integer in retro GW-Basic no talking, in emulated 80286 / MS-DOS machine in DOSbox. This tutorial is a taste of how home programming looked like in the early '80s, while also showing how notoriously slow GW-Basic was with arithmetic calculations. Enable captions for more details and walk-through. Source code available at the Github repository (see channel info). #ambient #coding #programming #notalking #basic #retro #msdos #dosbox

Channel Updates