Re: [ANN] Guile-SMC 0.2.0

2021-06-06 Thread Dr. Arne Babenhauserheide
Artyom V. Poptsov writes: > Oh, I forgot to attach the NEWS part. So here it goes, the "List of > User-Visible Changes": very cool! Thank you! Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken signature.asc Description: PGP signature

Re: [ANN] Guile-SMC 0.2.0

2021-06-06 Thread Artyom V. Poptsov
Hello! Oh, I forgot to attach the NEWS part. So here it goes, the "List of User-Visible Changes": --8<---cut here---start->8--- 1 Version 0.2.0 (2021-06-06) 1.1 Fix installation paths for source and compiled and files

[ANN] Guile-SMC 0.2.0

2021-06-06 Thread Artyom V. Poptsov
Hello, I'm pleased to announce Guile State Machine Compiler (Guile-SMC), version 0.2.0: https://github.com/artyom-poptsov/guile-smc/releases/tag/v0.2.0 I'm hoping that it will ease the burden of writing format parsers and other useful GNU Guile libraries for the community. * What is Guile-SMC

Re: define anywhere

2021-06-06 Thread Dr. Arne Babenhauserheide
Linus Björnstam writes: > Andy did a marvellous thing … > So TL/DR: guiles way is the correct way. Thank you for the clarification! Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken signature.asc Description: PGP signature

Re: define anywhere

2021-06-06 Thread Linus Björnstam
Oh, my version is an error. I implemented the macro before definitions in (some) expression contexts were a thing. Andy did a marvellous thing implementinf the new letrec: if it is possible, letrec will have no overhead. It also automatically handle dependant clauses: even though it might seem

Re: define anywhere

2021-06-06 Thread Dr. Arne Babenhauserheide
Linus Björnstam writes: > becomes ONE letrec under gulie3, whereas my library turns it into > (letrec ((a 2) (b 3)) > (display "hej") > (letrec ((c 3)) > (+ a b c))) > > That should be an easy fix, again if there is any interest. I’m not sure which approach I prefer. Your approach is mo

Re: define anywhere

2021-06-06 Thread Linus Björnstam
Note however, that I seem to have forgotten when and unless. also: cond has no support for the extended "test guard => lambda" form. Neither do I believe that the any "special" case form is supported. If there is any interest whatsoever, I can implement it when I have time. The code produced is