Lisp Programming Language – Full Course for Beginners
freeCodeCamp.org
Summary
Alberto Lea presents a 25-part Common Lisp course using the SBCL implementation, starting from installing the interpreter, evaluating prefix S-expressions in the REPL, binding local variables with let and let*, and branching with if, cond, and progn. He then explains how linked lists are built from cons cells and backtick templates before showing how defmacro transforms code at compile time, when functions should be preferred over macros, how parameter destructuring and packages work, and how gensym prevents macro variable capture.
The second half covers advanced engineering features that set Common Lisp apart: object-oriented programming and multiple dispatch in CLOS, interactive debugging, and stack-preserving error recovery using signals, handlers, and restarts. Finally, Alberto Lea explores real-world libraries and performance tuning, cutting an edit-distance algorithm's runtime from over 3 seconds to 0.56 seconds with SBCL type declarations, managing manual C memory via CFFI, building let-over-lambda closures, comparing tail recursion to loops, using lazy Series generators, embedding Haskell-like static types with Coalton, and detecting cycles in circular lists.
How time-sensitive the topic is: Evergreen
By the numbers
60 years: Time span over which Lisp has influenced computer science. (Mentioned at 0:08)
3 seconds: Execution time of the unoptimized edit-distance algorithm on two 10KB DNA strings in SBCL. (Mentioned at 2:15:41)
1.8 seconds: Execution time of the edit-distance algorithm after specifying a 16-bit integer element-type for make-array. (Mentioned at 2:16:01)
0.56 seconds: Execution time of the edit-distance algorithm after declaring speed 3, safety 0, and simple-string types. (Mentioned at 2:20:15)
4 bytes: Memory size of a C int on the instructor's system as reported by CFFI foreign-type-size. (Mentioned at 2:24:18)
Questions this video answers
What is the difference between a macro and a function in Common Lisp?
A function evaluates all of its arguments before executing its body and returning a value. A macro receives its arguments unevaluated, constructs and returns a new Lisp S-expression during macroexpansion at compile time, and then that expanded expression is evaluated. This allows macros to define custom control flow and syntax that functions cannot.
Alberto Lea, 56:27 to 1:08:10
From this keypoint: How defmacro expands code before evaluation
How does the Common Lisp condition system differ from exceptions in Python or Java?
When Python or Java throws an exception, the call stack immediately unwinds to the caller, losing the local execution state where the error occurred. Common Lisp splits error handling into signaling a condition, defining recovery options on the spot with restart-case, and selecting a restart from higher up the stack with handler-bind and invoke-restart, all without unwinding the stack.
Alberto Lea, 1:54:51 to 2:04:53
From this keypoint: Signals, handlers, and restarts in the condition system
How can you speed up slow Common Lisp code in SBCL?
You can add explicit type declarations such as specifying :element-type on arrays with make-array, declaring variable types like simple-string, and adding (declare (optimize (speed 3) (safety 0))) in performance-critical functions. In the course benchmark on two 10KB strings, these declarations reduced execution time from over 3 seconds to 0.56 seconds without changing the algorithm.
Alberto Lea, 2:13:13 to 2:21:30
From this keypoint: SBCL type declarations cut runtime from 3s to 0.56s
Why does variable capture happen in Common Lisp macros and how does gensym fix it?
Symbols inside a macro expansion are evaluated in the calling environment, so if a macro defines an internal variable with the same name as a variable passed by the caller, the two names collide. Calling gensym during macroexpansion generates a unique, uninterned symbol guaranteed never to clash with any user-defined variable.
Alberto Lea, 1:32:00 to 1:36:32
From this keypoint: Preventing macro variable capture using gensym
What is the difference between let and let* in Common Lisp?
The let form binds all declared local variables in parallel, meaning one variable cannot reference another variable defined in the same let header. The let* form binds variables sequentially, allowing later bindings in the same declaration list to depend on earlier ones.
Alberto Lea, 13:04 to 20:20
From this keypoint: Local bindings with let and let* and setf mutation
What is the difference between defvar and defparameter in Common Lisp?
Both defvar and defparameter declare dynamically scoped global variables that should be named with leading and trailing asterisks (*earmuffs*). However, defvar only assigns an initial value if the variable is currently unbound—preserving state when reloading files in the REPL—whereas defparameter overwrites the variable's value every time it is evaluated.
Alberto Lea, 2:41:08 to 2:46:45
From this keypoint: Dynamic scope, earmuffs, and defvar vs defparameter
Does Common Lisp guarantee tail call optimization?
No, the ANSI Common Lisp standard does not require implementations to optimize tail recursion, and JVM-based implementations like ABCL cannot support it. While compilers like SBCL optimize tail-recursive calls into assembly jump instructions, portable Common Lisp code should use explicit iteration constructs like do, dotimes, or loop.
Alberto Lea, 2:36:08 to 2:41:08
From this keypoint: Tail recursion optimization in SBCL vs ANSI standard
How does multiple dispatch work in CLOS (Common Lisp Object System)?
Unlike traditional object-oriented languages that dispatch methods based only on the first receiver object, CLOS generic functions defined with defgeneric and defmethod inspect the runtime classes of all arguments simultaneously. This allows a function like make-attack to select the most specific method for any combination of Avatar and Weapon subclasses without writing conditional branches.
Alberto Lea, 1:42:12 to 1:47:21
From this keypoint: Multiple dispatch and call-next-method in CLOS
How can you use static typing and algebraic data types in Common Lisp?
By loading the Coalton library, developers can write Haskell-style statically typed code with type inference, algebraic data types, and pattern matching inside a coalton-toplevel block. Coalton validates types at compile time and compiles its definitions directly into standard Common Lisp functions.
Alberto Lea, 2:52:40 to 2:59:13
From this keypoint: Haskell-style static typing in Lisp with Coalton
How do you safely allocate and free C memory in Common Lisp with CFFI?
While foreign-alloc and foreign-free manually allocate and release C heap memory, an error signaled mid-function can skip foreign-free and leak memory. Wrapping allocations in with-foreign-object uses unwind-protect to guarantee the memory is freed on exit and allows SBCL to allocate constant-size buffers on the stack.
Alberto Lea, 2:21:30 to 2:28:29
From this keypoint: Manual C memory management in Lisp using CFFI
Credible AI™ signals
Confidence: Hands-On Live Coding. Alberto Lea demonstrates every concept live in the SBCL interpreter and compiler, verifying outputs, inspecting assembly with disassemble, and showing real compile-time and runtime errors directly on screen.
Bias: Pragmatic Common Lisp Advocate. While enthusiastic about Common Lisp's macro system, condition handling, and stability, Alberto Lea candidly points out language warts, verbose primitives, non-standard features like FFI and tail call optimization, and when macros or recursion should be avoided.
Originality (76%): Well-Curated Progression. Combines beginner syntax fundamentals with practical ecosystem coverage rarely found in entry-level tutorials, including Alexandria, Serapeum, CFFI manual memory management, the Series package, and Coalton static typing.
Depth (84%): Under-the-Hood Mechanics. Goes beyond surface syntax to inspect cons cell memory layout, macroexpansion phases, assembly jump instructions for tail calls, SBCL type inference, and modular arithmetic proofs for cycle detection.
Key points (25)
Short (36 min): key points 1, 8, 16 and 18
Medium (1h 16min): key points 1, 2, 6, 7, 8, 12, 13, 16, 18 and 24
Relaxed (3h 11min): all 25 key points
1. Alberto Lea sets up SBCL, rlwrap, and VS Code
Timestamp: 00:00:35 to 00:06:46 (6 min)
Speaker: Alberto Lea
Alberto Lea walks through installing the SBCL Common Lisp implementation on Linux, macOS, and Windows, recommending rlwrap on Linux to fix arrow-key navigation in the terminal. He configures Visual Studio Code with the Common Lisp extension for parenthesis coloring and shows how to abort out of unbound variable errors in the interactive shell.
Impact: Medium. Why it matters: Gives beginners a working cross-platform Common Lisp environment and teaches them how to recover from the debugger prompt immediately.
2. Evaluating S-expressions and quoting in the REPL
Timestamp: 00:06:46 to 00:13:04 (6 min)
Speaker: Alberto Lea
Everything in Lisp is a symbolic expression processed by the Read-Eval-Print Loop, where unquoted lists evaluate their first element as a function and the rest as parameters. Using the quadratic formula as a calculator exercise, Alberto Lea shows how prefix notation eliminates operator precedence rules and how a single quote mark prevents evaluation to treat lists and symbols as raw data.
Impact: High. Why it matters: Establishes the foundational code-as-data mental model that makes Lisp's uniform syntax and macro system possible.
“in lisp everything is an expression or better a symbolic expression so learning to write a list program is a two-step process you have to understand how to write expression and how they get evaluated”
In the video: Alberto Lea, at 7:16
3. Local bindings with let and let* and setf mutation
Timestamp: 00:13:04 to 00:20:20 (7 min)
Speaker: Alberto Lea
To store user input without repeating function calls, local variables are bound with let and mutated in place with setf. Because standard let binds variables in parallel, referencing an earlier binding within the same declaration block triggers an unbound variable error that requires switching to sequential let*.
Impact: Medium. Why it matters: Prevents a classic beginner bug by clarifying the exact difference between parallel let bindings and sequential let* bindings.
“variable X is Unbound the problem is that let Works in parall and so you cannot reuse the variable inside the definition the solution is to use let Star instead”
In the video: Alberto Lea, at 19:52
4. Branching with if, cond, and explicit progn blocks
Timestamp: 00:20:20 to 00:28:42 (8 min)
Speaker: Alberto Lea
Because every Lisp expression returns a value, Alberto Lea refactors conditional printing by passing the return value of if or multi-branch cond directly into format. Unlike defun, let, or cond, an if branch can only hold a single expression, so executing multiple statements inside a branch requires wrapping them in a progn form.
Impact: Medium. Why it matters: Shows how expression-oriented branching reduces code duplication while explaining why progn is needed inside if statements.
“we have to be explicit using the pran form which runs multiple statements and return the value of the last one in this case we want to group The Format and the division”
In the video: Alberto Lea, at 27:38
5. Iteration with dotimes and general do loops
Timestamp: 00:28:42 to 00:39:17 (11 min)
Speaker: Alberto Lea
For counted iteration, dotimes loops from 0 to n minus 1 and accepts an optional return value expression in its header. When the number of iterations depends on runtime user input, such as summing numbers until the user enters zero, the general do form manages arbitrary variable initializations, step updates, and exit conditions.
Impact: Medium. Why it matters: Contrasts readable specialized loops with the general do construct so developers pick the clearest tool for imperative iteration.
“when you use the times you're are helping who will read the code after you being more clear on what you want to do”
In the video: Alberto Lea, at 37:26
6. Cons cells, linked lists, and dolist iteration
Timestamp: 00:39:17 to 00:48:47 (10 min)
Speaker: Alberto Lea
There is no standalone list primitive in Common Lisp; lists are linked chains of cons pairs terminated by nil, where first (car) retrieves the head and rest (cdr) points to the remaining list. Because prepending with cons is instantaneous while appending or computing length requires full traversal, Alberto Lea emphasizes understanding linked list complexity and notes that Lisp also includes standard arrays and hash maps.
Impact: High. Why it matters: Demystifies Lisp's core data structure and dispels the myth that Common Lisp lacks arrays or hash tables for random-access workloads.
“in lisp it doesn't exist a list object let's start an interpreter we can verify it if we ask the type of a quoted list the basic element is a cons which is basically a pair”
In the video: Alberto Lea, at 40:00
7. Four ways to build lists: quote, cons, list, backtick
Timestamp: 00:48:47 to 00:56:27 (8 min)
Speaker: Alberto Lea
Alberto Lea compares building unevaluated list structures using quote, nested cons calls, the list function, and the backtick template operator. Backtick combined with comma and comma-at (@) proves the most concise for code generation because it quotes a template while selectively evaluating or splicing dynamic rest arguments.
Impact: High. Why it matters: Equips learners with the backtick, comma, and comma-at splicing syntax essential for writing readable Common Lisp macros.
“finally we can use the btic operator which is the most common way of building list in which we want to evaluate only specific forms”
In the video: Alberto Lea, at 53:19
8. How defmacro expands code before evaluation
Timestamp: 00:56:27 to 01:08:10 (12 min)
Speaker: Alberto Lea
Unlike functions, which evaluate all arguments before running, macros defined with defmacro receive unevaluated forms, build a new Lisp expression during macroexpansion, and then evaluate the resulting code. Alberto Lea inspects built-in when using macroexpand-1 and builds a custom if-let macro that binds a variable and branches on whether it is nil.
Impact: High. Why it matters: Reveals the exact two-phase execution model that lets Common Lisp programmers extend the language with custom control structures.
“a macro builds and return a form an expression this first phase is known as macro expansion then it is valuated in particular the arguments are evaluated after the execution of the macros”
In the video: Alberto Lea, at 57:33
9. Macros vs functions and compile-time computation
Timestamp: 01:08:10 to 01:18:00 (10 min)
Speaker: Alberto Lea
Delayed evaluation can be achieved with ordinary functions by passing lambdas to funcall, and macros cannot be passed to higher-order functions like funcall because they are not runtime functions. Alberto Lea advises using macros rarely—primarily for syntactic clarity or shifting work like HTML generation and recursive my-and expansion to compile time.
Impact: High. Why it matters: Provides a disciplined engineering rule for when to write a macro versus a higher-order function, avoiding unnecessary macro complexity.
“now the question is when should we use macros and the answer is rarely especially at the beginning”
In the video: Alberto Lea, at 1:12:25
10. Flexible parameters and macro destructuring
Timestamp: 01:18:00 to 01:24:23 (6 min)
Speaker: Alberto Lea
Common Lisp functions support &optional, &rest, and &key parameters with custom default values, while macros go further by allowing nested parameter lists that automatically destructure arguments. Refactoring if-let with parameter destructuring makes the expected binding syntax self-documenting and automatically throws an error if a caller passes a non-list.
Impact: Medium. Why it matters: Shows how parameter destructuring in macros simultaneously cleans up macro bodies and validates caller syntax at expansion time.
“when we call the macro lisp verifies that the first argument provided is a list and then it looks at The Binding inside this is known as destructuring”
In the video: Alberto Lea, at 1:23:34
11. Managing namespaces and symbols with packages
Timestamp: 01:24:23 to 01:32:00 (8 min)
Speaker: Alberto Lea
To prevent symbol collisions across developers, Common Lisp organizes symbols into first-class package objects created with defpackage and navigated via in-package. Alberto Lea warns against bypassing encapsulation with double colons (::) or blanket :use clauses, recommending explicit :export declarations, :import-from clauses, and uninterned #: symbols to keep the keyword package clean.
Impact: Medium. Why it matters: Establishes modular hygiene for multi-file Common Lisp projects and explains how symbol interning actually works.
“the usage of use is discarge it should be used only with standard libraries otherwise one should always import only the symbol that he strictly need with the import from keyword”
In the video: Alberto Lea, at 1:30:17
12. Preventing macro variable capture using gensym
Timestamp: 01:32:00 to 01:36:32 (5 min)
Speaker: Alberto Lea
A custom for-loop macro that internally binds a variable named limit breaks silently when a caller passes their own variable named limit, because expanded symbols are evaluated in the calling environment. Alberto Lea fixes this variable capture bug by calling gensym at expansion time to generate a guaranteed unique symbol for internal macro bindings.
Impact: High. Why it matters: Demonstrates the single most dangerous pitfall in non-hygienic macro systems and the standard gensym idiom that solves it.
“the definitive solution is to use the function genim we can see that it produce a symbol name that has never been used and will never be used again”
In the video: Alberto Lea, at 1:34:56
13. Classes, slots, and generic functions in CLOS
Timestamp: 01:36:32 to 01:42:12 (6 min)
Speaker: Alberto Lea
The Common Lisp Object System (CLOS) defines data structures with defclass and slots configured via :initarg, :initform, :reader, and :accessor, supporting multiple inheritance across mixin classes like colored-object. Instead of attaching methods inside classes, CLOS decouples behavior into generic functions declared with defgeneric and specialized per class with defmethod.
Impact: High. Why it matters: Introduces CLOS's class-and-generic-function architecture, which separates state definitions from polymorphic operations.
“in common list we can use close which is common L answer to the need for dynamic object-oriented programming to create different kind of object we have to build a classes”
In the video: Alberto Lea, at 1:36:37
14. Multiple dispatch and call-next-method in CLOS
Timestamp: 01:42:12 to 01:47:21 (5 min)
Speaker: Alberto Lea
Unlike single-dispatch languages that only check the first argument's type, CLOS multi-methods dispatch across the runtime types of all parameters simultaneously, allowing a make-attack generic function to pair Avatar subclasses with Weapon subclasses without conditionals. Subclasses can override specialized methods, invoke parent behavior via call-next-method, and customize REPL output by specializing print-object.
Impact: Medium. Why it matters: Highlights multiple dispatch as a major ergonomic advantage of CLOS over traditional single-receiver object-oriented languages.
“moreover CLA implements multi methods it looks at the type of all the parameters most other programming languages Implement polymorphism just on the first one”
In the video: Alberto Lea, at 1:44:14
15. Debugging with print, trace, break, and inspect
Timestamp: 01:47:21 to 01:54:51 (8 min)
Speaker: Alberto Lea
Because Common Lisp's print function returns its argument, developers can wrap sub-expressions in print without altering control flow or adding progn blocks. For deeper diagnostics, Alberto Lea demonstrates tracing recursive calls with trace, setting conditional breakpoints with break, declaring (optimize (debug 3)) so SBCL preserves step-by-step stack frames, and inspecting object slots visually.
Impact: Medium. Why it matters: Gives developers a practical debugging workflow in SBCL, especially the compiler declaration needed for single-stepping.
“the problem is that by default sbcl optimize a lot the code during the debugging it's useful to set the debug level for optimization”
In the video: Alberto Lea, at 1:51:16
16. Signals, handlers, and restarts in the condition system
Timestamp: 01:54:51 to 02:04:53 (10 min)
Speaker: Alberto Lea
Unlike Java or Python exceptions that immediately unwind the call stack and lose local context, Common Lisp's condition system splits error management into signaling a condition, providing recovery options at the error site with restart-case, and choosing a policy higher up the stack. Using handler-bind and invoke-restart, a caller can instruct a failing factorial function to recover in place using the absolute value without unwinding the stack.
Impact: High. Why it matters: Explains why Common Lisp's condition system is more capable than standard try-catch exceptions by preserving the call stack for in-place recovery.
“we underline the fact that the St is not unwinded we are exactly where the condition was signal this is completely different from what happened with exceptions”
In the video: Alberto Lea, at 1:57:29
17. Dictionary literals with Alexandria, Serapeum, and RUTILS
Timestamp: 02:04:53 to 02:13:13 (8 min)
Speaker: Alberto Lea
Because standard make-hash-table and gethash are verbose low-level primitives, Alberto Lea surveys community libraries that improve dictionary ergonomics: Yason for JSON parsing, Alexandria for alist-hash-table conversions, Serapeum for the dict constructor and href nested lookup, and RUTILS for the #h{} reader macro syntax. He notes that Common Lisp's fixed standard ensures these libraries remain stable indefinitely.
Impact: Medium. Why it matters: Connects beginners to the real-world Common Lisp library ecosystem for handling hash tables and custom reader macros.
“the fact that lisp is a fixed standard doesn't mean that the language is dead and has stopped evolving it just means that all the library that are based on the standard lisp will go on work working”
In the video: Alberto Lea, at 2:12:38
18. SBCL type declarations cut runtime from 3s to 0.56s
Timestamp: 02:13:13 to 02:21:30 (8 min)
Speaker: Alberto Lea
Although Common Lisp is dynamically typed, SBCL performs compile-time type inference and uses optional type declarations to unbox arrays and eliminate dynamic dispatch. On a dynamic-programming edit-distance calculation over two 10KB DNA strings, specifying a 16-bit integer array element-type drops execution time from over 3 seconds to 1.8 seconds, and adding (optimize (speed 3) (safety 0)) with simple-string declarations reduces it to 0.56 seconds.
Impact: High. Why it matters: Demonstrates with concrete benchmarks how gradual type declarations in SBCL deliver over 5x speedups on compute-heavy algorithms.
“now let's try to run the code again we can see that this time the code executed in 0.56 seconds which is much less than before”
In the video: Alberto Lea, at 2:20:08
19. Manual C memory management in Lisp using CFFI
Timestamp: 02:21:30 to 02:28:29 (7 min)
Speaker: Alberto Lea
To interface with C libraries across Lisp implementations, the CFFI package lets developers write bindings directly in Common Lisp using foreign-alloc, foreign-free, and mem-aref for typed pointer dereferencing and array indexing. Because signals or errors can interrupt execution before foreign-free runs, Alberto Lea recommends wrapping allocations in with-foreign-object, which uses unwind-protect and allows SBCL to stack-allocate constant-size buffers.
Impact: Medium. Why it matters: Shows how to safely manage non-garbage-collected C heap and stack memory from inside Common Lisp without memory leaks.
“the solution is to use with forign pointer or its wrapper with forign object which does un unbind protect that is it catches the exception and free the memory”
In the video: Alberto Lea, at 2:24:36
20. Stateful closures and let-over-lambda vs CLOS
Timestamp: 02:28:29 to 02:36:08 (8 min)
Speaker: Alberto Lea
When full CLOS inheritance is overkill for encapsulating state, the let-over-lambda pattern returns anonymous functions that close over lexical variables, creating independent stateful objects like counters or multi-method person records. Alberto Lea advises writing thin function wrappers rather than macro wrappers around closure lists so the getters remain compatible with higher-order functions like mapcar.
Impact: Medium. Why it matters: Demonstrates how lexical closures provide lightweight object encapsulation in a Lisp-2 language and why function wrappers beat macros.
“this is a really wellknown trick which in the lisp world is known as let over Lambda and allows us to create what is known as a closure”
In the video: Alberto Lea, at 2:30:30
21. Tail recursion optimization in SBCL vs ANSI standard
Timestamp: 02:36:08 to 02:41:08 (5 min)
Speaker: Alberto Lea
Writing recursive functions in tail position with an accumulator allows compilers like SBCL to replace stack-allocating call instructions with constant-space assembly jump loops, as verified with disassemble. However, because the Common Lisp standard does not mandate tail call optimization and JVM-based implementations like ABCL cannot support it, Alberto Lea advises writing portable code with explicit iteration constructs instead of relying on tail recursion.
Impact: High. Why it matters: Warns developers about a critical portability trap between SBCL's compiler optimizations and the official ANSI Common Lisp specification.
“when we talk about common lisp first of all we have to look at the standard and sadly the standard doesn't require an implementation to optimize the recursion”
In the video: Alberto Lea, at 2:38:36
22. Dynamic scope, earmuffs, and defvar vs defparameter
Timestamp: 02:41:08 to 02:46:45 (6 min)
Speaker: Alberto Lea
Variables declared with defvar or defparameter are dynamically scoped across the call stack rather than lexically scoped, meaning a local let binding temporarily overrides the global variable for all called functions—a feature useful for rebinding *standard-input* in tests but prone to bugs without the *earmuff* naming convention. Furthermore, defvar only assigns a value if the symbol is unbound so interactive REPL state survives file reloads, whereas defparameter overwrites the value every time.
Impact: Medium. Why it matters: Clarifies both dynamic scoping behavior and why Common Lisp has two separate global variable definition macros for interactive development.
“when we use the VAR the value is assigned only if the variable was previously Unbound while with the parameter we can assign the value at every call”
In the video: Alberto Lea, at 2:44:43
23. Lazy functional pipelines with the Series package
Timestamp: 02:46:45 to 02:52:40 (6 min)
Speaker: Alberto Lea
The Series package enables lazy, unbounded functional pipelines using generators like scan-range, scan-fn, and collect-sum that macroexpand directly into zero-allocation imperative tagbody loops. When computing the sum of the first 1,000 Fibonacci numbers, the declarative Series pipeline runs in the same order of magnitude of time as a manual dotimes loop while keeping sequence generation cleanly separated from accumulation.
Impact: Medium. Why it matters: Shows how macros allow Common Lisp to compile lazy Haskell-style sequence pipelines into allocation-free imperative loops.
“the serious package offers basically some generators so when you generate a sequence it doesn't actually take any space and when you do some computation on it it get executed as efficiently as possible”
In the video: Alberto Lea, at 2:46:59
24. Haskell-style static typing in Lisp with Coalton
Timestamp: 02:52:40 to 02:59:13 (7 min)
Speaker: Alberto Lea
Coalton embeds a statically typed, Haskell-like functional language directly inside Common Lisp via macros, compiling coalton-toplevel blocks into standard defun definitions after enforcing strict compile-time type checking. Alberto Lea demonstrates bidirectional interoperability between Coalton and Common Lisp and builds a polymorphic binary-tree algebraic data type with pattern matching to compute tree height.
Impact: High. Why it matters: Proves that Common Lisp's macro system is powerful enough to host a statically typed Hindley-Milner language with algebraic data types inside the same image.
“coalton is a statically typed functional programming language embedded in common lisp”
In the video: Alberto Lea, at 2:53:11
25. The loop macro and circular list cycle detection
Timestamp: 02:59:13 to 03:11:13 (12 min)
Speaker: Alberto Lea
Alberto Lea explores the non-lispy but expressive loop macro—covering below, by, collect, nconc, parallel zipping across infinite ranges, and destructuring—before examining circular lists created by mutating the last cdr or using the #1= reader macro with *print-circle* set to t. To detect cycles without infinite loops, he compares a linear-space hash-table tracker against Floyd's constant-space tortoise-and-hare two-pointer algorithm.
Impact: Medium. Why it matters: Wraps up the course by mastering Common Lisp's versatile loop DSL and implementing constant-space cycle detection on circular cons structures.
“the loop macro is as much effective as non list you don't need it the do macro is enough for any kind of loop but Loop could really improve readability”
In the video: Alberto Lea, at 2:59:14
Conflicts of interest (1)
Scrimba Channel Sponsorship
Commercial conflict, Low severity
The video description discloses that support for the channel comes from Scrimba, an interactive coding platform.
Sources: YouTube: freeCodeCamp.org, Scrimba
Significance: The sponsorship is limited to a description link and does not influence the Common Lisp curriculum or tools taught by Alberto Lea.
Key sources
Alberto Lea: Course Instructor and DevOps Engineer (@The Lisper)
YouTube: freeCodeCamp.org: Publishing Channel and Course Introducer
Who's in this
SBCL
CLOS
Alexandria
Serapeum
CFFI
Series
Coalton
Scrimba
Also mentioned
Lisp (First mentioned at 0:00)
Common Lisp (First mentioned at 1:03)
RUTILS (First mentioned at 2:10:44)
JavaScript (First mentioned at 0:29)
Python (First mentioned at 0:29)
Linux (First mentioned at 1:10)
rlwrap (First mentioned at 2:00)
Windows (First mentioned at 2:44)
Visual Studio Code (First mentioned at 3:51)
Java (First mentioned at 1:24:38)
C (First mentioned at 1:55:44)
Yason (First mentioned at 2:05:59)
SLY (First mentioned at 2:08:09)
Haskell (First mentioned at 2:49:47)
Rust (First mentioned at 0:29)
Fedora (First mentioned at 1:15)
Ubuntu (First mentioned at 1:27)
macOS (First mentioned at 1:30)
Homebrew (First mentioned at 1:36)
Emacs (First mentioned at 3:41)
C++ (First mentioned at 1:24:38)
UML (First mentioned at 1:39:34)
CCL (First mentioned at 2:22:09)
ECL (First mentioned at 2:22:09)
ABCL (First mentioned at 2:38:48)
JVM (First mentioned at 2:38:48)
Clojure (First mentioned at 2:38:54)
Common Lisp the Language, 2nd Edition (First mentioned at 2:52:13)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.