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
2
votes
1 answer

Generators in Chicken Scheme

This code works in the Racket Scheme provided at codepad.org, displaying the numbers 1, 2 and 3 on successive lines before displaying the message "unexpected return", but the same exact code fails using Chicken Scheme at ideone.com, and I don't…
user448810
  • 17,381
  • 4
  • 34
  • 59
2
votes
2 answers

CSP style asynchronous programming in Scheme (CHICKEN)

Is there an egg or some library that would allow me to write CSP style programs in Scheme? By CSP style I mean what's implemented in Go (go/channel/select) or Clojure's core.async.
skrat
  • 5,518
  • 3
  • 32
  • 48
2
votes
2 answers

Is there a standardized way to load a SRFI?

In Chicken it looks like I can (use srfi-9), but in Guile it looks like you say (use-modules (srfi srfi-9)), in Racket it is (require srfi/9). Is there a standardized use-module form that should work across all scheme implementations (so that I can…
Dave
  • 7,555
  • 8
  • 46
  • 88
2
votes
2 answers

get output from system command in Chicken Scheme

How would I go about getting the output from a system command in Chicken Scheme? Here's how I do I typically do it in NewLISP: (nth 0 (exec "")) ;; the `(nth 0...` is just there 'cause I only care about the first element in ;; the list…
Alexej Magura
  • 4,833
  • 3
  • 26
  • 40
2
votes
1 answer

Chicken for python: Extending python with the use of a shared library

I have read that it is possible to extend Python by writing a shared library that the Python interpreter can load as part of an import statement. Could anyone point me to a simple example or tutorial where such an endeavour is accomplished by the…
2
votes
1 answer

Running Chicken Scheme in emacs

I am new to emacs and cannot figure out how to run Chicken Scheme through emacs. From the Chicken Scheme Wiki I came across a solution -- using cluck. So, I followed the directions in the cluck.el file and added(require 'cluck) to my .emacs file.…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
2
votes
1 answer

How to install SRFI-19 with Chicken 4.8.0.3?

How can I install SRFI-19 with Chicken 4.8.0.3? Using sudo chicken-install srfi-19 fails. After some experimentation, I found I needed to run sudo chicken-install setup-helper first, yet I remain stuck. The output I receive is retrieving…
xuinkrbin.
  • 975
  • 2
  • 7
  • 17
2
votes
1 answer

Where can I find documentation on the "use" directive in Scheme?

I am using Chicken Scheme and I am attempting to understand the meaning of (use abcd) and how it differs from (require-extension abcd). The Chicken website does not seem to have sufficient information to clarify and a web search provided no helpful…
xuinkrbin.
  • 975
  • 2
  • 7
  • 17
2
votes
1 answer

Write data to a non existing file in scheme (after creating through the program)

I have made a simple program to write text to existing files: ;; write to an existing file (define write-to-a-file (lambda (path txt) (call-with-output-file path (lambda (output-port) (write txt output-port))))) But I want to…
spk
  • 153
  • 9
1
vote
1 answer

chicken scheme installation gets stuck during "make install"

I am trying to install chicken using brew Salils-MacBook-Pro:bin salilwadnerkar$ brew install chicken ==> Downloading http://code.call-cc.org/releases/4.7.0/chicken-4.7.0.tar.gz Already downloaded: /Library/Caches/Homebrew/chicken-4.7.0.tar.gz ==>…
Salil
  • 9,534
  • 9
  • 42
  • 56
1
vote
2 answers

Chicken Scheme pass on parameters to gcc

In Chicken Scheme, can I pass on certain values that will be given to gcc? I would like to pass on the following options to the gcc but I don't know how: -lX11 -lpthread -lXinerama -lXext -lGL -g -lm -ldl
MWhatsUp
  • 41
  • 6
1
vote
0 answers

How can I provide an imperative default for a relation in miniKanren?

(I am using CHICKEN Scheme's miniKanren, but I would appreciate portable answers!) Suppose I have some relation: (define (rel° x) (conde ((pred?° x)) ((== x (my-awesome-imperative-thing))))) The intention is that this relation can allow x…
Corbin
  • 1,530
  • 1
  • 9
  • 19
1
vote
0 answers

How can I gensym when writing a compiler in Kanren?

I'm writing a compiler from an esolang to WebAssembly, using CHICKEN Scheme's miniKanren. My compiler already works somewhat, but I'd like to extend it with support for named local registers and I'm not sure how to proceed. CHICKEN has a gensym with…
Corbin
  • 1,530
  • 1
  • 9
  • 19
1
vote
0 answers

Compatibility with both Chez and Chicken Scheme

I'm trying to write a program compatible with both Chez and Chicken Scheme. Starting with something maximally simple: (c1) R:\>type hello.ss (display "hello, world\n") (c1) R:\>csc hello.ss (c1) R:\>hello hello, world (c1) R:\>"C:\Program…
rwallace
  • 31,405
  • 40
  • 123
  • 242
1
vote
2 answers

How do I use HTTP Basic Auth with http-client?

I want to use http-client to make an HTTP request equivalent to: curl -u 'user:pass' 'https://api.example.net/a/b/c' I have read the docs for http-client, as well as for intarweb and uri-common, but I am still unsure of how to achieve this. I can…
shadowtalker
  • 12,529
  • 3
  • 53
  • 96