Re: macro helpers

2017-09-12 Thread Matt Wette
> On Sep 12, 2017, at 11:09 AM, Stefan Israelsson Tampe > wrote: > > Writing efficient macros is a bit difficult. Let me explain by using an > example. The background > is that I maintaining a python compiler and python like object system and > would like to program > a scheme macro that woul

macro helpers

2017-09-12 Thread Stefan Israelsson Tampe
Writing efficient macros is a bit difficult. Let me explain by using an example. The background is that I maintaining a python compiler and python like object system and would like to program a scheme macro that would be the scheme counterpart to various python construct. For fun consider pythons f

discussion about fibers etc

2017-09-12 Thread Stefan Israelsson Tampe
Hi all, I noticed two features that other languages have that can be good to have. 1) With guile-2.2. it is possible that the guile execution checks from time to time to stall enabling coroutines to be used as lightweight threads in fibers etc. In java one can force an exception to be thrown in a

Re: Compiler memory consumption

2017-09-12 Thread Ludovic Courtès
Hello, This is a followup to the compiler issue, this time focusing on execution time, trying to see why the compiler takes so long to compile gnu/packages/*.scm, which should be trivial. As a test bed, I built this from the Guix tree: GUILE_LOAD_COMPILED_PATH=$PWD guild compile \ -L $PWD