Peter Graves | 1 Jun 2008 19:49

Re: license confusion

On Fri, 30 May 2008 at 06:48:17 -0700, Jason Cady wrote:
> I'm confused about the license of abcl. I read it several times, but I
> can't make out how it applies in my situation. I am interested in
> writing zlib and/or proprietary licensed game libraries in jscheme or
> kawa scheme that link to abcl in order to access common lisp
> libraries. Would that violate abcl's license terms?

The point of the license is that you must make public (per the GPL) the
source to any changes you make to ABCL itself.

If you write an application that uses ABCL, you do not normally need to
make the source of the application public. If the application requires
modifications to ABCL, you need to make public only the source of those
modifications.

-Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Peter Graves | 1 Jun 2008 19:57

Re: SpecialBinding not declared public

On Fri, 30 May 2008 at 22:36:33 +0200, Erik Huelsmann wrote:
> In a piece of Java code, I'd like to do something like the lisp code below:
>
>  (let ((*handler-clusters* (cons (list 'error #'foo) *handler-clusters*)))
>    ... <my code>)
>
> When looking at Symbol.java:getDescription(), I see a construct like this:
>
>     final LispThread thread = LispThread.currentThread();
>     SpecialBinding lastSpecialBinding = thread.lastSpecialBinding;
>     thread.bindSpecial(Symbol.PRINT_ESCAPE, NIL);
>     try
>       {
>        ....
>       }
>     finally
>       {
>         thread.lastSpecialBinding = lastSpecialBinding;
>       }
>
> To me, that looks like something I should be able to do in my code
> too. However, while LispThread.lastSpecialBinding is public, its type
> SpecialBinding is not...
>
> I presume this is a bug?
>
> If it is, the patch below fixes this issue:
>
> Index: SpecialBinding.java
> ===================================================================
(Continue reading)

Jason Cady | 3 Jun 2008 04:55
Picon
Gravatar

Re: license confusion

The exception to the GPL that the license includes requires that the
modules linked with it be "independent" and not derived or based on
it. That seems to mean that since my program would have to link to it
from the outside requiring it as a library rather than independent
common lisp code not dependent or specifically linking to it that my
scheme code would be "derived" from it and would have be GPL to not
violate it. This makes abcl unusable for any of my needs. if Scheme
didn't work out for the main code, I would still have to avoid it so
it wouldn't be stuck in walled garden or GPL jail. Since the jvm/class
path are going with the same exception that wierds me out more, but I
don't think I'll need to drop the jvm too. It seems that Sun's & FSF
think that that exception works as intended to allow linking through
from both sides but the wording doesn't seem so at all. That is where
my initial confusion came from.

It would be nice if the of abcl license was changed so I could access
common lisp libraries from outside scheme libraries/programs that have
to be linkable from both GPL and proprietary software

Since there is no other jvm common lisp, I'm going to have to rely on
jacl (tcl) and java (ugh) for more of my library needs. Scheme just
doesn't have enough to complete a online game on its own. At least
with Scheme, I can try jscheme when slib fails to work with kawa
scheme.

- Jason

2008/6/1 Peter Graves <peter <at> armedbear.org>:
> On Fri, 30 May 2008 at 06:48:17 -0700, Jason Cady wrote:
>> I'm confused about the license of abcl. I read it several times, but I
(Continue reading)

Don Sniper | 5 Jun 2008 17:26
Picon

How to use abcl

Hi, I'm using abcl library for a university project. I think it's very valid and powerful, but I can not redirect the output of interpreter.eval () in a string. How can I do?

Thank you for your kind attention
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
armedbear-j-devel mailing list
armedbear-j-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/armedbear-j-devel
Alex Mizrahi | 6 Jun 2008 16:37
Picon
Favicon

Re: How to use abcl

 > Hi, I'm using abcl library for a university project.
 >  I think it's very valid and powerful,
 >  but I can not redirect the output of interpreter.eval ()
 > in a string. How can I do?

i'm not sure what do you mean by "output of eval".
if you mean a return value, that is a LispObject, you
can convert it to string like this:

        LispObject  result = Lisp.eval(obj, new Environment(), thread);
        out.println(result.writeToString());

if want to capture what is printed to output stream during eval,
easiest way would be to use with-output-to-string on Lisp side,
and capturing its output.

another solution is to supply your own stream as a default one --
either pass it to Interpreter's constructor, or use interpreter.resetIO() 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Blake McBride | 1 Jul 2008 00:21

abcl specific documentation


Greetings,

Is there any abcl specific documentation?  Specifically, what I am 
looking for is documentation for:

1.  How to call abcl from Java

2.  How to call Java from abcl

3.  How to pass and return lisp and Java values and how they are 
represented on each side

4.  What are the .cls files?

Thanks.

Blake McBride

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Blake McBride | 1 Jul 2008 00:27

abcl specific documentation #2


Greetings,

If the documentation I seek does not exist and my questions get 
answered, I'd be happy to write the manual.

I have the following additional questions.

1.  What is the relationship between abcl and Java threads?  Can 
multiple abcl lisp function be run at the same time?  Can other Java 
threads be run while abcl is running?

2.  What is the relationship between Java exceptions and abcl?  What 
happens if a Java exception gets raised when abcl calls a Java method? 
Does abcl throw Java exceptions?  Is there any special cleanup required 
when this happens?

3.  Can you create Java classes from abcl?

Thanks.

Blake McBride

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

Gmane