Questions tagged [guile]

GNU Guile is the GNU project's official plugin infrastructure. Guile typically refers to the Scheme front-end which Guile provides.

GNU Guile is the GNU project's official plugin infrastructure. It is intended to be plugged into applications through libguile, but can also be run as a standalone Scheme interpreter.

Guile has a few front-end languages:

  • Scheme, supporting R5RS fully and some of R6RS (the default)
  • EmacsLisp
  • ECMAScript, which has some implementation, but is not completed
  • Lua, which is planned but as of yet nonexistant

Guile has support for modules outside of the core system, which allow for things that are either at SRFI status, or not implemented in Guile's core. See the list of included modules for exactly what the bundled modules do.

Guile has extensive documentation which is hosted here. It contains details on both embedding Guile into applications as well as its features at the language level.

There is also a tutorial that explains step-by-step how to use guile in a straightforward Logo-like ("turtle graphics") application.

261 questions
0
votes
1 answer

read-line in let won't read the next line

1 (use-modules (ice-9 rdelim)) 2 3 (define (show l) (display l)) 4 5 (define (read-two-lines) 6 (let ((count (read-line)) 7 (l (read-line))) 8 (show l))) ; or (show count) 9 …
Himanshu
  • 2,384
  • 2
  • 24
  • 42
0
votes
2 answers

guile on ubuntu 12.04 gives "input locale conversion error"

Running guile (in interactive mode or with script) gives this error on my ubuntu 12.04 :- guile test.scm Backtrace: In ice-9/boot-9.scm: 149: 2 [catch #t # ...] 157: 1 [#] In unknown file: ?: 0…
Himanshu
  • 2,384
  • 2
  • 24
  • 42
0
votes
0 answers

Implementation of Fifo in GNU-GUILE

I would like to do the following : I want to imple,ment the concept of FIFO in normal files using GUILE. Two processes should communicate via a normal text file, that a third process , if needed, can access. The subordinate of the original two…
Sean
  • 789
  • 6
  • 26
0
votes
1 answer

How to convert a string into bignum in C code which extends Guile?

In Guile 1.6.*, the function scm_istring2number(char *str,int strlen,int radix) does the work. However, this function does not exist in Guile 1.8.. How can I accomplish the same task in Guile 1.8.? This is not trivial because the function…
Omer Zak
  • 1,147
  • 2
  • 8
  • 25
0
votes
1 answer

Is there function like Tcl_LinkVar in guile to link C variable to a guile variable directly?

Tcl_LinkVar can link C variable to Tcl variable directly. When variable in C changes, the Tcl variable changes accordingly. It is very convenient. Example: Tcl_LinkVar(interp, "player_x", (char *) &player.world_x, TCL_LINK_DOUBLE); I am wondering…
louxiu
  • 2,830
  • 3
  • 28
  • 42
-1
votes
1 answer

How to set the environment variable GUILE_WARN_DEPRECATED?

I am using guile (version 2.0) in my C code (compiled in gcc version 4.8.5 and OS centos 6). My makefile looks like this. CC=gcc CFLAGS=-Wall -march=native -O2 -pipe -ffast-math -I/usr/include/guile/2.0 LDFLAGS=-lm -lguile -lgc -lpthread -lfftw3f…
1 2 3
17
18