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
24
votes
5 answers

Is there a lint for Common Lisp or Chicken Scheme?

Is there a lint for Common Lisp or Chicken Scheme? Possibly something akin to C's splint, Haskell's HLint, Perl's B::Lint, etc.?
mcandre
  • 22,868
  • 20
  • 88
  • 147
15
votes
1 answer

Use vs Import vs Require vs Require-extension in Chicken Scheme

I'm a little hazy on the differences between (use) and (import) in Chicken. Similarly, how do (load), (require) and (require-extension) differ? These things don't seem to be mentioned much on the website.
Sod Almighty
  • 1,768
  • 1
  • 16
  • 29
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
12
votes
2 answers

How to define a variadic function

I'm looking for something similar to Javascript's arguments array: function parent(){ child.apply(this.arguments); } I'm aware of the dot notation for variable argument lengths and also scheme's apply function. This doesn't seem to work as the…
kevzettler
  • 4,783
  • 15
  • 58
  • 103
6
votes
2 answers

How to configure SublimeRepl to work with chicken scheme?

Is there anyone who is able to configure Sublime Text 2 and SublimeRepl to work with chicken scheme? I've got chicken repl in Sublime, but it displays error messages from the chicken scheme only (probably from the stderr output of the csi process),…
5
votes
1 answer

How to (eval ...) in a chicken r7rs library?

I am trying to get a basic eval to work within a library of the r7rs egg. The following toplevel (not library) program work as I expected, when run with csi -R r7rs: (import (scheme base) (scheme eval)) (eval '42 (scheme-report-environment…
lubgr
  • 37,368
  • 3
  • 66
  • 117
5
votes
3 answers

Does Chicken Scheme have an equivalent to Perl's $0?

How can I reliably get the script name in Chicken Scheme? It seems that -ss eats up the script name, so it's not visible unless I use dot slash to run my scripts. scriptedmain.scm: #!/usr/bin/env csi -q (display (command-line-arguments)) (display…
mcandre
  • 22,868
  • 20
  • 88
  • 147
5
votes
3 answers

Is there a Scheme equivalent to SBCL's run-program?

I can run (run-program "/usr/ls" '()) in SBCL. Is there an equivalent in any Scheme implementation?
Isaiah
  • 1,995
  • 2
  • 18
  • 29
5
votes
4 answers

A Chicken Scheme equivalent to Python's virtualenv?

Is there a way to create an equivalent of Python's virtual environments (virtualenv)? With virtualenvs, one can install Python packages inside the virtual environment (a separate directory) without messing up the global python environment. One can…
Frank Henard
  • 3,638
  • 3
  • 28
  • 41
5
votes
1 answer

How to compile multiple Chicken Scheme files?

I need to compile a Chicken Scheme project containing multiple source files, but I'm getting errors. According to the manual and this SO answer, I need to put (declare)s in my sources. Why the compiler can't just see that I'm importing the other…
Sod Almighty
  • 1,768
  • 1
  • 16
  • 29
5
votes
2 answers

Buffered I/O in Chicken Scheme?

Racket has the nice read-bytes-async! function, which I believe exists in every other programming language in the world. It reads what it can from an input stream, without blocking, into a buffer, returning the number of bytes written. Said…
ithisa
  • 752
  • 1
  • 8
  • 25
4
votes
2 answers

Good way to do "either/or" relationship in Entity Framework (SQL Server)

Let's say I have two entity objects "table" and "chicken." Now let's say, I have a "wing" object, and I want that wing to have a 0..1-1 relationship with table and chicken. In otherwords, I want a nullable table.wing and a nullable chicken.wing. Is…
JohnMetta
  • 18,782
  • 5
  • 31
  • 57
4
votes
2 answers

How to implement optional arguments in CHICKEN?

I'm new to CHICKEN and Scheme. In my quest to understanding tail recursion, I wrote: (define (recsum x) (recsum-tail x 0)) (define (recsum-tail x accum) (if (= x 0) accum (recsum-tail (- x 1) (+ x accum)))) This does what I expect it…
4
votes
2 answers

Problem in porting Chicken of VNC Mac application into iphone application

I'm porting Chicken of VNC Mac application into iphone application I am having source code of Chicken of VNC Mac application which take vnc of any LAN connected mac. I have to do same with iphone app. So while debugging mac source code I am not able…
Tariq
  • 9,861
  • 12
  • 62
  • 103
4
votes
1 answer

Just eval first symbol (CHICKEN Scheme)

How can I evaluate an s-expression only by the first term? (define (fn x y) (print x) (print y)) (eval '(fn a b)) I am trying to evaluate something like this on a bigger expression but the interpreter is complaining that a and b variables don't…
shuji
  • 7,369
  • 7
  • 34
  • 49
1
2 3
12 13