jpellegrini

Results 138 issues of jpellegrini

Hi @egallesio ! One more example. This one has a mock `ansi-color?` procedure, but it would work better after PR #679 :) This is the usual "geometric shapes" example, but...

Hi @egallesio ! I see that there is `class-direct-methods`, whose semantics is clear to me: ```scheme (define-method method-A ((a )) (print 'A)) (define-class () ()) (define-method method-C ((c )) (print...

So the user can check if an object is one of the symbols that specify ANSI colors. This can be useful when writing code that takes those as argument: ```scheme...

Hi @egallesio ! Another example, showing how to use regexps. I thought it would be OK to write it in a non-Unix style, leaving it as an exercise to "fix"...

```scheme (define aaa 1) (symbol-interned? (string->uninterned-symbol "aaa")) => #f (symbol-interned? (string->uninterned-symbol "aaaaa")) => #f (symbol-interned? (gensym)) => #f (symbol-interned? 'a) => #t (symbol-interned? 'aaa) => #t ``` Inspired by a...

1. When a special form `do-something` is defined in the compiler, we also do `(register-special-form 'do-something)`, which will store it in an list; 2. When the REPL autocomplete does its...

Instead of going through the vector and consing, we allocate all list cells in a single memory region, in a single call to the allocator. This seems to be twice...

As per R7RS. - Make the compiler understand `%and`, `%or` as synonyms for and, or - Add and/or macros to `r7rs.stk` and export them. Passes all tests! :) *** However...