CHICKEN Scheme tutorials

This page contains a list of tutorials we have written (or would like someone to write) about CHICKEN Scheme.

A short tour for working with CHICKEN
Learn X in Y minutes, where X=CHICKEN
CHICKEN page for
Eggs Tutorial
A tutorial about creating CHICKEN eggs.
Explicit (and implicit) renaming macros
Introduction to "explicit (and implicit) renaming" macros, the low-level macro systems used in CHICKEN.
Design by Contract
How to use Design by Contract in CHICKEN.
How to use assertions in your code as a way to detect programming errors.
Autoconf - Automake
A tutorial explaining how to use Autoconf and Automake in software packages containing Scheme files meant to be compiled by CHICKEN.
Compiling CHICKEN on Windows XP with MinGW
For the Windows using C/C++ newbies like me.
Some pointers on embedding CHICKEN in another application.
Programming for Performance
Felix explains which optimisations might make your code faster.
Friendly CHICKEN
Little guide that explains some of the pitfalls for CHICKEN starters
Object Orientation with SRFI-99 records
Scheme live-coding with emacs
Building a web application with Spiffy from an Emacs session (YouTube video)


Define-Foreign-Enum-Type, Typedef, and Pointers
Binding Nested Structs in CHICKEN Scheme
Handling callbacks into CHICKEN from other threads
Wrapping simple C structs

General Scheme tutorials

This section contains Scheme tutorials which are not CHICKEN-specific.

JRM's Syntax-rules Primer for the Merely Eccentric
A famous and very friendly introduction to the R5RS high-level macro system known as syntax-rules.
Al* Petrofky's "An Advanced Syntax-Rules Primer for the Mildly Insane"
A useful article to read if you wish to know the nitty-gritty details of how macro renaming works. This may help you to not only understand syntax-rules better, but will also provide a good basis for grokking explicit renaming and other macro systems.

Outdated tutorials

This section contains tutorials which cover older versions of CHICKEN. If you update the tutorials in this section to the latest CHICKEN version, please move it to the topmost section.

A guided tour through the CHICKEN republic
Christian's FrOSCon 2011 talk
Design by Contract old version
How to use Design by Contract in CHICKEN (old version).
Macro systems and chicken (long)
An excellent post by Alex Shinn, explaining different macro systems. Please note: This was written when CHICKEN 4 was not yet released, and hence refers to various different macro systems available for CHICKEN at the time. This is no longer true since CHICKEN now has ER- and IR-macros built in.
The Iup GUI toolkit
Some examples for using Iup in CHICKEN.
CHICKEN on handhelds
A guide to using CHICKEN on embedded devices.

CHICKEN Gazette Omelette Recipes

An introduction to the condition system.