Re: Auto compile from many different languages that interoperates with guile

2017-09-09 Thread Stefan Israelsson Tampe
Hi, I've also playing with functional objects e.g. objects that updates functionally meaning that the objects are non mutating. I added a little suger to handle this in my python to prolog compiler and now we can do this: module(f) # Note that the functional parent means that the class is managed

Re: Auto compile from many different languages that interoperates with guile

2017-09-08 Thread William ML Leslie
On 9 September 2017 at 08:25, Stefan Israelsson Tampe wrote: > def gen(l): > def f(x): > yield(gen) x > Whoa. You're yielding from a different frame?! -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You absolutely M

Re: Auto compile from many different languages that interoperates with guile

2017-09-08 Thread Stefan Israelsson Tampe
FYI I just added generators with a small extension, to the python compiler, now this works: module(f) def foreach(f,l): for x in l: f(x) def gen(l): def f(x): yield(gen) x foreach(f,l) for x in gen(list(1,2,3)): pk(x) >> 1,2,3 Have fun On Fri, Sep 1, 2017 at 1

Re: Auto compile from many different languages that interoperates with guile

2017-09-07 Thread William ML Leslie
On 8 September 2017 at 11:39, William ML Leslie wrote: > https://docs.python.org/3/library/importlib.html#module-importlib > Hmm I could have said something similar about Java's classloaders or OSGi or E's eMakers (eMakers are even better, though require more work to feel guiley). -- William Le

Re: Auto compile from many different languages that interoperates with guile

2017-09-07 Thread William ML Leslie
On 2 September 2017 at 06:45, Stefan Israelsson Tampe wrote: > form is either specified or current-language and what I propose is to add a > knob that enables another version of the default for from e.g. something > like the following. > > (define %extension-map '((("py" "python") python) ((("pl"

Re: Auto compile from many different languages that interoperates with guile

2017-09-02 Thread Matt Wette
> On Sep 2, 2017, at 6:00 AM, Matt Wette wrote: > > >> On Sep 1, 2017, at 1:45 PM, Stefan Israelsson Tampe >> wrote: >> >> Hi, >> >> I am maintaining a prolog->scheme compiler and a python->scheme compiler. >> The nice thing with those implementation is that they work well with the >> gui

Re: Auto compile from many different languages that interoperates with guile

2017-09-02 Thread Matt Wette
> On Sep 1, 2017, at 1:45 PM, Stefan Israelsson Tampe > wrote: > > Hi, > > I am maintaining a prolog->scheme compiler and a python->scheme compiler. The > nice thing with those implementation is that they work well with the guile > module system and are proper scheme functions and variables