Skip to main content
2 votes
1 answer
115 views

I have a Scheme interpreter written in JavaScript called LIPS, and I have a define-class macro which is using the ES5 prototype system. But I have a problem in creating super(). I'm trying to create a ...
jcubic's user avatar
  • 67.1k
4 votes
1 answer
75 views

I'm reading "Functional Differential Geometry" by Sussman and Wisdom. The book uses mit-scheme and the scmutils library to teach differential geometry. On page 48 equations (4.29), (4.30) ...
Stephen Blake's user avatar
0 votes
1 answer
58 views

I have a Scheme interpreter written in JavaScript called LIPS. And a recent version of Node changed the precision of the floating-point numbers by one digit (Node 24, because of V8 change). So (expt 0....
jcubic's user avatar
  • 67.1k
0 votes
4 answers
132 views

I am trying to learn Lisp, but it seems like I can not quite get behind how the quotes and the evaluation works. Why does the following expression ((car '(car)) '(a b)) not evaluate to a in the REPL? ...
Nico's user avatar
  • 111
1 vote
2 answers
167 views

Here is the question from Mitchell Wand's Essentials of Programming Language: Exercise 1.19 [⋆ ⋆] (list-set lst n x) returns a list like lst, except that the n-th element, using zero-based indexing, ...
YCH817's user avatar
  • 123
2 votes
0 answers
56 views

I am implementing circular evaluator in Chapter 4 SICP with racket, it seems that the code running fine only it cannot add new frames to the environment due to set-car! issue. I tried the followings: ...
QianruZhou's user avatar
1 vote
1 answer
88 views

I wonder whether it is possible to call define-syntax-rule in a loop-like construction like for-each. I explicitly say 'loop-like' because I know that normal Scheme evaluation comes after macro ...
lemzwerg's user avatar
  • 852
1 vote
1 answer
119 views

I'm playing around with implementing looping using call/cc and wrote a map function like this: (define (map1 f l) ((lambda (state) (let ((cc (car state)) (l (cadr state)) (...
NateT's user avatar
  • 312
1 vote
1 answer
64 views

In the documentation for the array_copy function in Guile Scheme is a warning that in the copy, "the array increments may not be the same as those of src". (Where "src" is the ...
neniu's user avatar
  • 431
4 votes
2 answers
85 views

I have an undirected graph which nodes are numbered from 0 to 5. Adjacencies are given with a vector of lists #((1 2) (0 3) (0) (1) (5) (4))), thus node 0 is connected to nodes 1 and 2, node 1 is ...
david's user avatar
  • 1,593
2 votes
1 answer
135 views

For this code (using Racket IDE) when doing "Run" #lang scheme (define (queue! q x) (let ( (b (list x)) ) (if (null? (car q)) (set-cdr! q b) (set-cdr! (car q) b)...
Scooter's user avatar
  • 7,121
1 vote
3 answers
92 views

Trying to build a very simple stack structure : (define (make-stack lst) (lambda message (case (car message) ((see) (newline) (write lst)) ((empty?) (null? lst)) ((push) (begin ...
david's user avatar
  • 1,593
1 vote
0 answers
61 views

I'm trying to figure out how to implement dynamic-wind in the context of delimited continuations. Any resources or conceptual model? While I found reference implementations of dynamic-wind for the ...
Teng Man Leong's user avatar
1 vote
2 answers
98 views

I'm working with floating-point numbers in Bigloo Scheme, and I encountered a precision issue when performing a simple multiplication: (* 0.005 1e-9) ;; => 5.0000000000000005e-12 I was expecting ...
Gurpreet Singh's user avatar
-1 votes
1 answer
68 views

In Scheme (extempore version) I sometimes use expressions similar to the following to choose alternative defined callback nodes. (random (cons 0.1 'node1) (cons 0.2 'node2) (cons 0.7 'node3)) This ...
George J Wright's user avatar

15 30 50 per page
1
2 3 4 5
548