This repository contains the exercises I have been doing for myself to learn GNU Guile.
The code is heavily inspired by the Tortoise tutorial.
All exercises use autoconf to build. See the example in the guile
manual.
My first exercise was to setup building with autotools and to create a simple C program which links guile and can
execute Scheme code.
In the second exercise, we invoke Scheme code from a separate script file.
In the third exercise, we add a function in the C program and call that function from the script file.
In the fourth exercise, we add SRFI-9 Records into the script file.
In the fifth exercise, we call functions generated by the record definition from the C program.
Standalone script to test how references work in Scheme / Guile.
Standalone script to test how promises work in Scheme / Guile.
Standalone script to test how testing works in Scheme / Guile. We use SRFI-64 to enable testing.
Standalone script to test how exceptions work in Scheme. As far as I understand, this type of exception raising and handling is specific to Guile Scheme.
Standalone script to test how guile-json works.
Read a file in 3 different ways.
Add a function that compares if two association lists are equivalent with each other. This is distinct from equal? in
that equal? wants the order to be the same for two alists to be equivalent. Instead, our function disregards order
and only cares about contents.