Re: CPS mystery

2018-05-29 Thread Matt Wette
On 05/29/2018 10:54 AM, Mark H Weaver wrote: Hi Matt, The problem here is that 'resolve' returns a variable object, but 'call' expects a procedure. So, you need another continuation between continuations 6 and 5 above, which does (primcall box-ref <>) to extract the procedure from the variab

Re: macroexpand-1

2018-05-29 Thread Mark H Weaver
Hi, Catonano writes: > 2018-05-29 17:01 GMT+02:00 Mark H Weaver : > > what's the problem with macroexpand-1 and syntax-case ? > > In Guile 1.x, 'macroexpand-1' performed a single macro expansion step at > the top-level form of an expression, using its old non-hygienic macro > expander. Ther

Re: German translation of R5RS

2018-05-29 Thread John Cowan
On Tue, May 29, 2018 at 1:03 PM, pelzflorian (Florian Pelz) < pelzflor...@pelzflorian.de> wrote: > English R5RS has two errors that I know of. Eq? is claimed to return > “true or false”, but the examples make clear it is #t or #f. In the > specification of with-output-to-file a THUNK argument i

Re: macroexpand-1

2018-05-29 Thread Catonano
Mark, 2018-05-29 17:01 GMT+02:00 Mark H Weaver : > Hi, > > Catonano writes: > > > in the NEWS file, I read: > > > > > > ... > > ** Removed function: `macroexpand-1' > > > > It is unclear how to implement `macroexpand-1' with syntax-case, though > > PLT Scheme does prove that it is possible. > >

Re: macroexpand-1

2018-05-29 Thread Catonano
Anyway: thank you !!

Re: CPS mystery

2018-05-29 Thread Mark H Weaver
Hi Matt, Matt Wette writes: > I'm trying to generate CPS to feed to the compiler tower. > The following program is supposed to evaluate, expressed in Scheme, `(+ 1 2)'. > That is, essentially, > scheme@(guile-user)> (apply + '(1 2)) > $1 = 3 > I get the error message following. Any clues wh

Re: capture stdout and stderr

2018-05-29 Thread Catonano
2018-05-27 19:26 GMT+02:00 Thomas Danckaert : > From: Stefan Israelsson Tampe > Subject: Re: capture stdout and stderr > Date: Thu, 24 May 2018 15:25:51 +0200 > > I think that your code whould work but doesn't because string ports are >> not file ports and system commands pipes out to file ports.

Re: German translation of R5RS

2018-05-29 Thread pelzflorian (Florian Pelz)
Hello Mark, Thank you for your reply. Yes, there may not be enough qualified reviewers here who know German and have time to spare. Is there someplace I could go look for reviewers? I would like a German Guile manual to exist and started translating R5RS. Many non-experts in programming are pu

Re: German translation of R5RS

2018-05-29 Thread Freja Nordsiek
Mark does bring up an interesting point. Very good chances to find someone if one reached out to the communities of other implementations like Racket, Chicken, etc. And it would stand to benefit those communities in addition to Guile. If I remember correctly (very good chance I do not), I think

Re: German translation of R5RS

2018-05-29 Thread Mark H Weaver
Hi Florian, "pelzflorian (Florian Pelz)" writes: > Please accept my patches adding a German language info file for R5RS > and fixing some small errors in English R5RS. I believe the patches > to be reasonably correct. I very much appreciate this enormous amount of work that you've done! My pri

Re: macroexpand-1

2018-05-29 Thread Mark H Weaver
Hi, Catonano writes: > in the NEWS file, I read: > > > ... > ** Removed function: `macroexpand-1' > > It is unclear how to implement `macroexpand-1' with syntax-case, though > PLT Scheme does prove that it is possible. > > > what's the problem with macroexpand-1 and syntax-case ? In Guile 1.x,