Questions tagged [chez-scheme]

Use this tag for questions about the Chez-Scheme dialect of the Scheme programming language.

The Chez Scheme compiler, interpreter and REPL is an R6RS compliant Scheme programming language compiler and interpreter. Written primarily by R. Kent Dybwig, formerly professor (now professor emeritus) at Indiana University, now currently at Cisco. The compiler was previously a commercial product, but has been "open-sourced" under an Apache license.

88 questions
13
votes
2 answers

(Chez) Scheme benchmarks?

Now that Chez Scheme is open-source, I wonder how it compares to Racket and other Schemes or languages in terms of performance, so that one could make informed choices about using them in one's projects. Unfortunately, I couldn't find any relevant…
MWB
  • 11,740
  • 6
  • 46
  • 91
12
votes
2 answers

Can Chez scheme produce compiled binaries?

I have been using chicken scheme lately and i find it really good, someone suggested that chez scheme is the fastest scheme implementation. So i wanted to try it, but i am not sure how to create compiled binaries from chez like in chicken scheme.
pankajdoharey
  • 1,562
  • 19
  • 30
7
votes
5 answers

How to install Petite Chez Scheme on Ubuntu?

How to install Petite Chez Scheme on Ubuntu? I run Ubuntu 15.10 and try to install pcsv8.4-a6le.tar.gz (non-threaded, 64 bit) for Linux. After having unpacked this tar in /usr/locale, I enter the commands sudo ./configure sudo make install…
Shuzheng
  • 11,288
  • 20
  • 88
  • 186
6
votes
1 answer

Chez Scheme: macro import at top level

I'm running Chez Scheme 9.5 and am trying to define a syntax transformer in a library. Here's an example: (library (forlib) (export for) (import (rnrs (6))) (define-syntax for (syntax-rules (in) [(for x in lst body1 body2 ...) …
5
votes
1 answer

Chez Scheme allocation: --program vs --script

Consider this bit of Chez Scheme code: (import (chezscheme)) (define (list-enumerate ls val proc) (let loop ((ls ls) (return? #f) (val val)) (if (or (null? ls) return?) val (call-with-values (lambda () (proc val…
dharmatech
  • 8,979
  • 8
  • 42
  • 88
5
votes
2 answers

Scheme: Detecting duplicate elements in a list

Does R6RS or Chez Scheme v7.9.4 have a library function to check if a list contains duplicate elements? Alternatively, do either have any built in functionality for sets (which dis-allow duplicate elements)? So far, I've only been able to find an…
Kyle Krull
  • 1,618
  • 2
  • 18
  • 25
5
votes
1 answer

Euclidean algorithm to solve RR' - NN' = 1. Modular exponentiation with Montgomery algorithm to implement Fermat test in python or Petite Chez scheme

This is as a personal challenge in my introductory programming class taught using Scheme, but I would be equally happy with Python examples. I've already implemented the binary method of modular exponentiation in scheme as follows: (define (pow base…
Seth
  • 51
  • 3
4
votes
3 answers

Andmap\ormap - chez scheme

I tried to find information about andmap & ormap operations in chez scheme. Still, I don't understand the use of these operations, and what is the difference between it and map.
Adam Sh
  • 8,137
  • 22
  • 60
  • 75
4
votes
1 answer

SRFI implementations for Chez Scheme

I'm new to Chez, and just looking for some clarity given the various maintained and unmaintained repos existing. Is there a single commonly preferred source repo to obtain the R6RS SRFI libraries (specifically for Chez Scheme)? I know about…
Phil
  • 592
  • 6
  • 15
4
votes
1 answer

FFI in Chez Scheme for C functions with variadic arguments (varargs)

I want to write a FFI for printf function of C in Chez Scheme using foreign-procedure. But I cannot figure out what I should put as the signature, since the last argument in printf function is a variadic argument. Here's my code: (import…
Reza Hajianpour
  • 707
  • 1
  • 10
  • 21
4
votes
1 answer

Installing Chez Scheme 9.4 on Linux Mint LMDE

I am trying to install Chez Scheme 9.4 on a Linux Mint LMDE system. Chez Scheme requires GNU make, gcc, header files and libraries for ncurses, and header files and libraries for X windows. I successfully installed ncurses with the command sudo…
user448810
  • 17,381
  • 4
  • 34
  • 59
4
votes
2 answers

Can Scheme do GUI without Racket? Or have to use Common Lisp?

I like Lisp very much, especially Scheme. I'd like to learn how to use Scheme to do GUI development. I've heard of Racket, but it seems to be a different language from Scheme, as with e.g. set-cdr!. If I use it, I might have to switch between them…
tian tong
  • 793
  • 3
  • 10
  • 21
4
votes
3 answers

How is let* Defined in Chez Scheme/Racket?

How is let* defined in Chez Scheme/Racket? In particular, why does this first example evaluate to 6... (let* ((let +) (a (let 2 4))) a) ...when my understanding from exercise 3.1.3 is that let* can be expanded to nested let (or even nested…
cryptic_star
  • 1,863
  • 3
  • 26
  • 47
3
votes
1 answer

Define goto in scheme

As an exercise to learn call/cc and macros, I tried to define goto. (define-syntax label (syntax-rules () ((_ name) (begin (define name) (call/cc (lambda (c) (set! name c))))))) (define (goto label)…
3
votes
0 answers

R6RS: Does the syntax expression form applied to the empty list return a wrapped syntax object?

Consider the following expression in R6RS Scheme: (syntax ()) When I type this expression into Racket, a (wrapped) syntax object is returned. On the other hand, the same expression yields the (unwrapped) empty list in Chez Scheme. I am wondering…
Marc
  • 4,327
  • 4
  • 30
  • 46
1
2 3 4 5 6