Questions tagged [chicken-scheme]

CHICKEN is a compiler for the Scheme programming language.

CHICKEN is a compiler for the Scheme programming language. CHICKEN produces portable, efficient C, supports almost all of the R5RS Scheme language standard, and includes many enhancements and extensions. CHICKEN runs on Linux, MacOS X, Windows, and many Unix flavours.

Important Links

185 questions
0
votes
1 answer

Dynamically Loading Compiled Libraries in CHICKEN-Scheme

I would like to know, if it is possible, the best way to dynamically load compiled code in CHICKEN-Scheme. The API states load only loads source files. Specifically my goal in dynamically loading code is to be able to overwrite previously defined…
0
votes
1 answer

Call of non procedure <#unspecific>

I'm trying to convert sexps to xml, I have a recursive function that goes through a list representing an xml tag and its child tags, and then prints them to the standard output with correct indentation. I'm using the chicken scheme…
Anandamide
  • 243
  • 1
  • 15
0
votes
1 answer

how do i write a string to a file without quote marks in scheme

I'm trying to write a string to a file, but every time i do it has quotes around it. I've tried (call-with-output-file file-path (lambda(output-port)(write "some text" output-port))) and (let ((p (open-output-file file-path))) (write…
masukomi
  • 10,313
  • 10
  • 40
  • 49
0
votes
1 answer

chicken scheme - how do i temporarily capture data sent to standard output

I have a procedure that calls (display "foo") I want to write a unit test for it, to confirm that it's sending the correct data there but display sends its input to Standard Output: (define (display x #!optional (port ##sys#standard-output)) …
masukomi
  • 10,313
  • 10
  • 40
  • 49
0
votes
1 answer

Chicken scheme compiler (csc) errors

I have a fresh install of mingw64 and chicken scheme but whenever I try to compile a file with csc from the command line I get the following: error: shell command terminated with non-zero exit status 1: "gcc" "foo.o" -o "foo"…
Anandamide
  • 243
  • 1
  • 15
0
votes
1 answer

A sequential Do for scheme (do*)

In Common Lisp, there's a sequential form of (do *vars* *test* *body*); just like let's sequential parallel let*, it works through *vars* one at a time, so that you can refer back to previously defined variables like so: (do* ((a '(1 2 3) (cdr a)) …
Alexej Magura
  • 4,833
  • 3
  • 26
  • 40
0
votes
1 answer

Chicken Scheme: Does module procedures only use procedures internal to the module?

Assume I have the following two modules: (module mod1 (func2) (define (func1) ...) (define (func2) ... (func1) ...)) (module mod2 () (import (only mod1 func2)) (define (func1) ...) (define (func3) ... (func2) ...)) Does the call to func2…
Haitham Gad
  • 1,529
  • 2
  • 13
  • 23
0
votes
1 answer

scheme chicken regex logical grouping

have (use extras format posix posix-extras regex regex-literals utils srfi-1) have regex with logical groupings 1 and 2 /^(\\W+)\\s+(\\W+)/ but am having trouble with the syntax to actually -use- 1 and 2 . Should I be using $1 $2 , or \1 and \2 ,…
user1201168
  • 415
  • 6
  • 19
0
votes
1 answer

reading in a top-level definition

Chicken Scheme 4.8.0.5 Greetings all, Assuming I have a text file containing a top-level definition topLevelDef.txt (define techDisplays '( ( AG1 fillerIgnore AG1_fillerIgnore t t nil t nil ) ( AG2 drawing AG2_drawing …
user1201168
  • 415
  • 6
  • 19
0
votes
1 answer

Chicken Scheme and malformed definitions

Chicken Scheme 4.8.0.5 Greetings all, Here's a snippet of a malformed definition of a list of lists. I say malformed because the variable name lies outside the leftmost parenthesis and there is no explicit define statement ie. (define techDisplays…
user1201168
  • 415
  • 6
  • 19
0
votes
2 answers

readline history not working

Okay, so Chicken-scheme has this great readline egg that can be used to add history, tab completion, and other sane features to the csi command-line environment. However, I can't seem to get it to work correctly, that is it only works the first…
Alexej Magura
  • 4,833
  • 3
  • 26
  • 40
0
votes
1 answer

scheme chicken implementation, subenvironment script loading

Background I am using the scheme chicken implementation. Latest version (4.9.0.1). I am trying to implement a generic arithmetic system on rational, complex and fix-precision numbers in a file called arithmetic.scm. But for the complex numbers, as…
Archimedes520
  • 191
  • 1
  • 9
0
votes
1 answer

Having a hard time understanding enum "instantiation"?

So I have these classes that I can't change that I need to use in order to send serialized objects across to a server. But I don't have much experience with enums and am having a hard time understanding how to do this? import…
Setton
  • 85
  • 1
  • 4
0
votes
1 answer

Access the querystring in a Spiffy app

One shouldn't have to ask this here, but thanks to the bad documentation, how do I access the querystring in a Spiffy (egg) app? Thanks! (use intarweb spiffy sxml-serializer) (tcp-buffer-size 2048) (server-port 80) (handle-not-found (lambda…
Sunder
  • 1,445
  • 2
  • 12
  • 22
0
votes
1 answer

Convert a resultset into list of hashtables in Chicken Scheme

what would be the easiest way to convert a resultset into a list of hashtables? I'm new to Scheme and would rather use a library function than roll my own. I'm using Chicken Scheme with the postgres egg. Thanks! (use postgresql) (define conn…
Sunder
  • 1,445
  • 2
  • 12
  • 22