Skip to content

Instantly share code, notes, and snippets.

@dradtke
Created February 16, 2012 02:08
Show Gist options
  • Select an option

  • Save dradtke/1840965 to your computer and use it in GitHub Desktop.

Select an option

Save dradtke/1840965 to your computer and use it in GitHub Desktop.
A simple hello world program using clisp and cl-gtk2. Quicklisp is used for dependency resolution.
; {{{ Load up GTK+
(LOAD '/opt/lisp/quicklisp/setup.lisp)
(ql:quickload "cffi")
(ql:quickload "trivial-garbage")
(ql:quickload "iterate")
(ql:quickload "bordeaux-threads")
(ql:quickload "closer-mop")
(ql:quickload "cl-opengl")
(ql:quickload "cl-cairo2")
(asdf:operate 'asdf:load-op :cl-gtk2-gtk)
; }}}
; display a window
(gtk:within-main-loop
(let ((window (make-instance 'gtk:gtk-window :title "Hello, world!")))
(gtk:widget-show window)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment