Re: "AIscm" array JIT

2016-06-10 Thread Basa Centro
I've had the AIscm code on my laptop for months, I was looking at how to do something with GOOPS. Nice work, and I hope you continue on it. Another "me too".

Re: Transient environment with standard functions

2016-06-10 Thread Taylan Ulrich Bayırlı/Kammer
Matthew Keeter writes: > However, if I make an empty environment with (null-environment), it > doesn’t have useful functions like + and *; looks like (make-module) > has the same issue. Adding the (guile) module to the environment is going to provide a sane base environment. Let's implement som

Re: Transient environment with standard functions

2016-06-10 Thread Mike Gran
> On Friday, June 10, 2016 3:31 PM, Matthew Keeter > wrote: > > The specific use case is for dataflow graphs, where you’re evaluating a > > bunch of > small > snippets of code that can refer to each other by name. > > I’d like to make an environment in which the variables in the same subg

Re: Transient environment with standard functions

2016-06-10 Thread Chris Vine
On Fri, 10 Jun 2016 14:44:43 -0400 Matthew Keeter wrote: > Thanks for the reply! > > You’ll be sad to hear that I’ve solved the problem by switching to > Racket – (make-base-namespace) creates the kind of temporary > environment I needed, and multiple calls produce multiple independent > namespac

Re: Transient environment with standard functions

2016-06-10 Thread Matthew Keeter
The specific use case is for dataflow graphs, where you’re evaluating a bunch of small snippets of code that can refer to each other by name. I’d like to make an environment in which the variables in the same subgraph are exposed as no-argument thunks. For example, let’s say I have one subgraph

Re: Transient environment with standard functions

2016-06-10 Thread Basa Centro
> First of all: is the "sandboxing" aspect of these environment important? Taylan, Thanks, that's exactly what I meant by "motivation" in my first reply. (There was a recent, 6 months ago or so, thread on sandboxing in guile-user by the way.) Was Matt trying to prevent _access_ (inaccessible vs.

Re: "AIscm" array JIT

2016-06-10 Thread Arne Babenhauserheide
Hi Jan, Jan Wedekind writes: > Yes, here are some examples with empty arrays and arrays with 250,000 > elements. I hope that the upcoming Guile version 2.2 will help increase > performance as well. > > $ make bench > Making bench in bench > make[1]: Entering directory '/home/jan/

Re: Transient environment with standard functions

2016-06-10 Thread Taylan Ulrich Bayırlı/Kammer
Basa Centro writes: > Matt and List, > > As a matter of fact, I've been thinking about defecting to MIT/GNU > Scheme if I don't get better support for scmutils and C++ FFI. :) > > Come on now Guilers, we can't have people defecting to Racket. > > Is there equivalent functionality in Guile to Rack

Re: Transient environment with standard functions

2016-06-10 Thread Basa Centro
Matt and List, As a matter of fact, I've been thinking about defecting to MIT/GNU Scheme if I don't get better support for scmutils and C++ FFI. :) Come on now Guilers, we can't have people defecting to Racket. Is there equivalent functionality in Guile to Racket's make-base-namespace, as Matt n

Re: Transient environment with standard functions

2016-06-10 Thread Matthew Keeter
Thanks for the reply! You’ll be sad to hear that I’ve solved the problem by switching to Racket – (make-base-namespace) creates the kind of temporary environment I needed, and multiple calls produce multiple independent namespaces. -Matt On Jun 10, 2016, at 2:18 PM, Basa Centro wrote: > Hi Mat

Re: Transient environment with standard functions

2016-06-10 Thread Basa Centro
Hi Matthew, [I know this reply is a little delayed. Please let us know how you did it if you have already solved the problem.] Are you using eval-string? https://www.gnu.org/software/guile/manual/html_node/Fly-Evaluation.html#Fly-Evaluation It might help for you to post a minimal code sample o

Re: "AIscm" array JIT

2016-06-10 Thread Nala Ginrut
I've installed from debian repo and tried all the example code, very cool and impressive! Thanks for the work! Last months I tried matrix operations in Guile and ChezScheme, it's too slow. I expect to do some machine learning things to control robot car with the camera. And I found AIscm has the ba

Re: "AIscm" array JIT

2016-06-10 Thread Jan Wedekind
On Fri, 10 Jun 2016, Ludovic Courtès wrote: Jan Wedekind skribis: Here is an example adding an integer to each element of a 2D array and returning the result: scheme@(guile-user)> (use-modules (oop goops) (aiscm jit) (aiscm int) (aiscm pointer) (ai

Re: "AIscm" array JIT

2016-06-10 Thread Ludovic Courtès
Jan Wedekind skribis: > Here is an example adding an integer to each element of a 2D array > and returning the result: > > scheme@(guile-user)> (use-modules (oop goops) (aiscm jit) (aiscm int) > (aiscm pointer) (aiscm sequence)) > scheme@(guile-user