Blending Guile and GDB together

2014-02-16 Thread Ludovic Courtès
Hello! As a gift for Guile 2.0’s third birthday [0], here’s a quick hack to enhance the debugging experience for Guile hackers in GDB! The attached code is a GDB extension, written in Guile, using the nice Guile API that landed into GDB master last week (thanks, Doug!). Once you have GDB master

Potluck dish - Simple functional reactive programming

2014-02-16 Thread David Thompson
Hello Guilers, I didn't have time to put together a proper potluck dish, but I wanted to find something to share anyway. Lately I've been playing around with functional reactive programming (FRP) applied to video games. This style of programming allows for a declarative, functional way of descri

Re: Potluck dish - Simple functional reactive programming

2014-02-16 Thread Ludovic Courtès
David Thompson skribis: > This code isn't terrible, but wouldn't it be nice to declare that > 'gc-label' will always contain a string with the number of GC runs in > it instead? Enter FRP: > > (define gc-label-position (vector2 0 40)) > (define gc-counter (make-root-signal 0)) > (define gc-label

Re: Blending Guile and GDB together

2014-02-16 Thread Nala Ginrut
Cheers! On Sun, 2014-02-16 at 17:22 +0100, Ludovic Courtès wrote: > Hello! > > As a gift for Guile 2.0’s third birthday [0], here’s a quick hack to > enhance the debugging experience for Guile hackers in GDB! > > The attached code is a GDB extension, written in Guile, using the nice > Guile API

Potluck, midi -> chiptune

2014-02-16 Thread Mike Gran
Hi, For this year's potluck, I wrote prog that converts a MIDI file into an 8-bit-era chiptune, such as might have been rendered by a Game Boy or SNES. It is here:   https://github.com/spk121/furry-nemesis Specifically it converts a file named tmp.midi (that must be in the current directory) t

[PATCH] Improved ^c support for gdb/guile

2014-02-16 Thread Doug Evans
Hi. Here's my modest contribution to the Guile anniversary potluck. The patch to selftest-support.exp could be done differently, I've tried to keep it simple. The problem is that gdb with guile will get SIGPWR from time to time when Guile's GC kicks in, and we need this to not alter test behavio