You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Reto Bachmann-Gmuer <re...@trialox.org> on 2010/07/01 17:47:32 UTC

Common Scala Bundles

In apache clerezza we need scala in a way that:
- it can be used in an osgi container
- it exposes the scripting interfaces as per JSR 223 (javax.scripting)

At least the sling project has very similar requirements on the
foundation of their scala support, so I think it would be good to pool
this efforts and I'm wondering if this would best be pursued as an
Apache Comons project.

We have done a first implementation consisting of 3 bundles, 2 bundles
seem to be analogous to the ones available here
http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
(I didn't know about them originally, and the yhave the disadvantage
of not being in maven central). Our implementations has no
dependencies on other clerezza components.

The source of our implementation is here:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/

The current implementation is quite minimalistic and merging it with
the best from the scala support in sling could bring big improvements,
but as far as I know there's no other  javax.scripting implementation
for scala 2.8.

Cheers,
reto

Re: Common Scala Bundles

Posted by Michael Dürig <mi...@day.com>.
Hi Reto,


> The scala 2.7 based version in clerezza was based on the one from
> sling. The 2.8 version started from scratch.
Ok I understand. So it might still be a good idea to start out with the 
Scala script engine form clerezza and try to integrate the requirements 
for Sling. That shouldn't be too difficult I think.

>
> I'm not sure if the scala-incubator would allow to have thing in the
> maven central repo fast enough.
Probably true. So Apache Commons would probably the best place for the 
time being. When it becomes more mature and attracts some interest from 
the Scala community, it might still make sense to contribute it then.

Michael

>
> Cheers,
> reto
>
> On Thu, Jul 1, 2010 at 6:15 PM, Michael Dürig<mi...@day.com>  wrote:
>>
>> Hi,
>>
>> Thanks for bringing this up again. The Scala scripting engine for Sling
>> evolved somewhat since it was copied over to clerezza: Sling dependencies
>> have been removed and factored out. AFIK the current version used in
>> clerezza does not fulfill some of the requirements of the Sling scripting
>> engine (configurability, abstraction of file system). However, since I wont
>> be able to contribute much in the coming weeks, I think the version of
>> clerezza might well serve as a starting point. I'd be happy to merge the
>> changes required by Sling into it later on.
>>
>> However, I think the Scala incubator [1] might be a better place for the
>> Scala scripting engine. That way there is the chance for it making it into
>> the Scala distro some time in the future.
>>
>> Michael
>>
>>
>> On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
>>>
>>> In apache clerezza we need scala in a way that:
>>> - it can be used in an osgi container
>>> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>>>
>>> At least the sling project has very similar requirements on the
>>> foundation of their scala support, so I think it would be good to pool
>>> this efforts and I'm wondering if this would best be pursued as an
>>> Apache Comons project.
>>>
>>> We have done a first implementation consisting of 3 bundles, 2 bundles
>>> seem to be analogous to the ones available here
>>> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
>>> (I didn't know about them originally, and the yhave the disadvantage
>>> of not being in maven central). Our implementations has no
>>> dependencies on other clerezza components.
>>>
>>> The source of our implementation is here:
>>> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>>>
>>> The current implementation is quite minimalistic and merging it with
>>> the best from the scala support in sling could bring big improvements,
>>> but as far as I know there's no other  javax.scripting implementation
>>> for scala 2.8.
>>>
>>> Cheers,
>>> reto
>>


Re: Common Scala Bundles

Posted by Michael Dürig <mi...@day.com>.
Hi Reto,


> The scala 2.7 based version in clerezza was based on the one from
> sling. The 2.8 version started from scratch.
Ok I understand. So it might still be a good idea to start out with the 
Scala script engine form clerezza and try to integrate the requirements 
for Sling. That shouldn't be too difficult I think.

>
> I'm not sure if the scala-incubator would allow to have thing in the
> maven central repo fast enough.
Probably true. So Apache Commons would probably the best place for the 
time being. When it becomes more mature and attracts some interest from 
the Scala community, it might still make sense to contribute it then.

Michael

>
> Cheers,
> reto
>
> On Thu, Jul 1, 2010 at 6:15 PM, Michael Dürig<mi...@day.com>  wrote:
>>
>> Hi,
>>
>> Thanks for bringing this up again. The Scala scripting engine for Sling
>> evolved somewhat since it was copied over to clerezza: Sling dependencies
>> have been removed and factored out. AFIK the current version used in
>> clerezza does not fulfill some of the requirements of the Sling scripting
>> engine (configurability, abstraction of file system). However, since I wont
>> be able to contribute much in the coming weeks, I think the version of
>> clerezza might well serve as a starting point. I'd be happy to merge the
>> changes required by Sling into it later on.
>>
>> However, I think the Scala incubator [1] might be a better place for the
>> Scala scripting engine. That way there is the chance for it making it into
>> the Scala distro some time in the future.
>>
>> Michael
>>
>>
>> On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
>>>
>>> In apache clerezza we need scala in a way that:
>>> - it can be used in an osgi container
>>> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>>>
>>> At least the sling project has very similar requirements on the
>>> foundation of their scala support, so I think it would be good to pool
>>> this efforts and I'm wondering if this would best be pursued as an
>>> Apache Comons project.
>>>
>>> We have done a first implementation consisting of 3 bundles, 2 bundles
>>> seem to be analogous to the ones available here
>>> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
>>> (I didn't know about them originally, and the yhave the disadvantage
>>> of not being in maven central). Our implementations has no
>>> dependencies on other clerezza components.
>>>
>>> The source of our implementation is here:
>>> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>>>
>>> The current implementation is quite minimalistic and merging it with
>>> the best from the scala support in sling could bring big improvements,
>>> but as far as I know there's no other  javax.scripting implementation
>>> for scala 2.8.
>>>
>>> Cheers,
>>> reto
>>


Re: Common Scala Bundles

Posted by Michael Dürig <mi...@day.com>.
Hi Reto,


> The scala 2.7 based version in clerezza was based on the one from
> sling. The 2.8 version started from scratch.
Ok I understand. So it might still be a good idea to start out with the 
Scala script engine form clerezza and try to integrate the requirements 
for Sling. That shouldn't be too difficult I think.

>
> I'm not sure if the scala-incubator would allow to have thing in the
> maven central repo fast enough.
Probably true. So Apache Commons would probably the best place for the 
time being. When it becomes more mature and attracts some interest from 
the Scala community, it might still make sense to contribute it then.

Michael

>
> Cheers,
> reto
>
> On Thu, Jul 1, 2010 at 6:15 PM, Michael Dürig<mi...@day.com>  wrote:
>>
>> Hi,
>>
>> Thanks for bringing this up again. The Scala scripting engine for Sling
>> evolved somewhat since it was copied over to clerezza: Sling dependencies
>> have been removed and factored out. AFIK the current version used in
>> clerezza does not fulfill some of the requirements of the Sling scripting
>> engine (configurability, abstraction of file system). However, since I wont
>> be able to contribute much in the coming weeks, I think the version of
>> clerezza might well serve as a starting point. I'd be happy to merge the
>> changes required by Sling into it later on.
>>
>> However, I think the Scala incubator [1] might be a better place for the
>> Scala scripting engine. That way there is the chance for it making it into
>> the Scala distro some time in the future.
>>
>> Michael
>>
>>
>> On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
>>>
>>> In apache clerezza we need scala in a way that:
>>> - it can be used in an osgi container
>>> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>>>
>>> At least the sling project has very similar requirements on the
>>> foundation of their scala support, so I think it would be good to pool
>>> this efforts and I'm wondering if this would best be pursued as an
>>> Apache Comons project.
>>>
>>> We have done a first implementation consisting of 3 bundles, 2 bundles
>>> seem to be analogous to the ones available here
>>> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
>>> (I didn't know about them originally, and the yhave the disadvantage
>>> of not being in maven central). Our implementations has no
>>> dependencies on other clerezza components.
>>>
>>> The source of our implementation is here:
>>> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>>>
>>> The current implementation is quite minimalistic and merging it with
>>> the best from the scala support in sling could bring big improvements,
>>> but as far as I know there's no other  javax.scripting implementation
>>> for scala 2.8.
>>>
>>> Cheers,
>>> reto
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Common Scala Bundles

Posted by Reto Bachmann-Gmuer <re...@trialox.org>.
Hi Michael

The scala 2.7 based version in clerezza was based on the one from
sling. The 2.8 version started from scratch.

I'm not sure if the scala-incubator would allow to have thing in the
maven central repo fast enough.

Cheers,
reto

On Thu, Jul 1, 2010 at 6:15 PM, Michael Dürig <mi...@day.com> wrote:
>
> Hi,
>
> Thanks for bringing this up again. The Scala scripting engine for Sling
> evolved somewhat since it was copied over to clerezza: Sling dependencies
> have been removed and factored out. AFIK the current version used in
> clerezza does not fulfill some of the requirements of the Sling scripting
> engine (configurability, abstraction of file system). However, since I wont
> be able to contribute much in the coming weeks, I think the version of
> clerezza might well serve as a starting point. I'd be happy to merge the
> changes required by Sling into it later on.
>
> However, I think the Scala incubator [1] might be a better place for the
> Scala scripting engine. That way there is the chance for it making it into
> the Scala distro some time in the future.
>
> Michael
>
>
> On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
>>
>> In apache clerezza we need scala in a way that:
>> - it can be used in an osgi container
>> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>>
>> At least the sling project has very similar requirements on the
>> foundation of their scala support, so I think it would be good to pool
>> this efforts and I'm wondering if this would best be pursued as an
>> Apache Comons project.
>>
>> We have done a first implementation consisting of 3 bundles, 2 bundles
>> seem to be analogous to the ones available here
>> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
>> (I didn't know about them originally, and the yhave the disadvantage
>> of not being in maven central). Our implementations has no
>> dependencies on other clerezza components.
>>
>> The source of our implementation is here:
>> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>>
>> The current implementation is quite minimalistic and merging it with
>> the best from the scala support in sling could bring big improvements,
>> but as far as I know there's no other  javax.scripting implementation
>> for scala 2.8.
>>
>> Cheers,
>> reto
>

Re: Common Scala Bundles

Posted by Reto Bachmann-Gmuer <re...@trialox.org>.
Hi Michael

The scala 2.7 based version in clerezza was based on the one from
sling. The 2.8 version started from scratch.

I'm not sure if the scala-incubator would allow to have thing in the
maven central repo fast enough.

Cheers,
reto

On Thu, Jul 1, 2010 at 6:15 PM, Michael Dürig <mi...@day.com> wrote:
>
> Hi,
>
> Thanks for bringing this up again. The Scala scripting engine for Sling
> evolved somewhat since it was copied over to clerezza: Sling dependencies
> have been removed and factored out. AFIK the current version used in
> clerezza does not fulfill some of the requirements of the Sling scripting
> engine (configurability, abstraction of file system). However, since I wont
> be able to contribute much in the coming weeks, I think the version of
> clerezza might well serve as a starting point. I'd be happy to merge the
> changes required by Sling into it later on.
>
> However, I think the Scala incubator [1] might be a better place for the
> Scala scripting engine. That way there is the chance for it making it into
> the Scala distro some time in the future.
>
> Michael
>
>
> On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
>>
>> In apache clerezza we need scala in a way that:
>> - it can be used in an osgi container
>> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>>
>> At least the sling project has very similar requirements on the
>> foundation of their scala support, so I think it would be good to pool
>> this efforts and I'm wondering if this would best be pursued as an
>> Apache Comons project.
>>
>> We have done a first implementation consisting of 3 bundles, 2 bundles
>> seem to be analogous to the ones available here
>> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
>> (I didn't know about them originally, and the yhave the disadvantage
>> of not being in maven central). Our implementations has no
>> dependencies on other clerezza components.
>>
>> The source of our implementation is here:
>> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>>
>> The current implementation is quite minimalistic and merging it with
>> the best from the scala support in sling could bring big improvements,
>> but as far as I know there's no other  javax.scripting implementation
>> for scala 2.8.
>>
>> Cheers,
>> reto
>

Re: Common Scala Bundles

Posted by Reto Bachmann-Gmuer <re...@trialox.org>.
Hi Michael

The scala 2.7 based version in clerezza was based on the one from
sling. The 2.8 version started from scratch.

I'm not sure if the scala-incubator would allow to have thing in the
maven central repo fast enough.

Cheers,
reto

On Thu, Jul 1, 2010 at 6:15 PM, Michael Dürig <mi...@day.com> wrote:
>
> Hi,
>
> Thanks for bringing this up again. The Scala scripting engine for Sling
> evolved somewhat since it was copied over to clerezza: Sling dependencies
> have been removed and factored out. AFIK the current version used in
> clerezza does not fulfill some of the requirements of the Sling scripting
> engine (configurability, abstraction of file system). However, since I wont
> be able to contribute much in the coming weeks, I think the version of
> clerezza might well serve as a starting point. I'd be happy to merge the
> changes required by Sling into it later on.
>
> However, I think the Scala incubator [1] might be a better place for the
> Scala scripting engine. That way there is the chance for it making it into
> the Scala distro some time in the future.
>
> Michael
>
>
> On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
>>
>> In apache clerezza we need scala in a way that:
>> - it can be used in an osgi container
>> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>>
>> At least the sling project has very similar requirements on the
>> foundation of their scala support, so I think it would be good to pool
>> this efforts and I'm wondering if this would best be pursued as an
>> Apache Comons project.
>>
>> We have done a first implementation consisting of 3 bundles, 2 bundles
>> seem to be analogous to the ones available here
>> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
>> (I didn't know about them originally, and the yhave the disadvantage
>> of not being in maven central). Our implementations has no
>> dependencies on other clerezza components.
>>
>> The source of our implementation is here:
>> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>>
>> The current implementation is quite minimalistic and merging it with
>> the best from the scala support in sling could bring big improvements,
>> but as far as I know there's no other  javax.scripting implementation
>> for scala 2.8.
>>
>> Cheers,
>> reto
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Common Scala Bundles

Posted by Michael Dürig <mi...@day.com>.
Hi,

Thanks for bringing this up again. The Scala scripting engine for Sling 
evolved somewhat since it was copied over to clerezza: Sling 
dependencies have been removed and factored out. AFIK the current 
version used in clerezza does not fulfill some of the requirements of 
the Sling scripting engine (configurability, abstraction of file 
system). However, since I wont be able to contribute much in the coming 
weeks, I think the version of clerezza might well serve as a starting 
point. I'd be happy to merge the changes required by Sling into it later 
on.

However, I think the Scala incubator [1] might be a better place for the 
Scala scripting engine. That way there is the chance for it making it 
into the Scala distro some time in the future.

Michael


On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
> In apache clerezza we need scala in a way that:
> - it can be used in an osgi container
> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>
> At least the sling project has very similar requirements on the
> foundation of their scala support, so I think it would be good to pool
> this efforts and I'm wondering if this would best be pursued as an
> Apache Comons project.
>
> We have done a first implementation consisting of 3 bundles, 2 bundles
> seem to be analogous to the ones available here
> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
> (I didn't know about them originally, and the yhave the disadvantage
> of not being in maven central). Our implementations has no
> dependencies on other clerezza components.
>
> The source of our implementation is here:
> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>
> The current implementation is quite minimalistic and merging it with
> the best from the scala support in sling could bring big improvements,
> but as far as I know there's no other  javax.scripting implementation
> for scala 2.8.
>
> Cheers,
> reto

Re: Common Scala Bundles

Posted by Michael Dürig <mi...@day.com>.
Hi,

Thanks for bringing this up again. The Scala scripting engine for Sling 
evolved somewhat since it was copied over to clerezza: Sling 
dependencies have been removed and factored out. AFIK the current 
version used in clerezza does not fulfill some of the requirements of 
the Sling scripting engine (configurability, abstraction of file 
system). However, since I wont be able to contribute much in the coming 
weeks, I think the version of clerezza might well serve as a starting 
point. I'd be happy to merge the changes required by Sling into it later 
on.

However, I think the Scala incubator [1] might be a better place for the 
Scala scripting engine. That way there is the chance for it making it 
into the Scala distro some time in the future.

Michael


On 1.7.10 17:47, Reto Bachmann-Gmuer wrote:
> In apache clerezza we need scala in a way that:
> - it can be used in an osgi container
> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
>
> At least the sling project has very similar requirements on the
> foundation of their scala support, so I think it would be good to pool
> this efforts and I'm wondering if this would best be pursued as an
> Apache Comons project.
>
> We have done a first implementation consisting of 3 bundles, 2 bundles
> seem to be analogous to the ones available here
> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
> (I didn't know about them originally, and the yhave the disadvantage
> of not being in maven central). Our implementations has no
> dependencies on other clerezza components.
>
> The source of our implementation is here:
> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
>
> The current implementation is quite minimalistic and merging it with
> the best from the scala support in sling could bring big improvements,
> but as far as I know there's no other  javax.scripting implementation
> for scala 2.8.
>
> Cheers,
> reto

Re: Common Scala Bundles

Posted by Phil Steitz <ph...@gmail.com>.
Reto Bachmann-Gmuer wrote:
> In apache clerezza we need scala in a way that:
> - it can be used in an osgi container
> - it exposes the scripting interfaces as per JSR 223 (javax.scripting)
> 
> At least the sling project has very similar requirements on the
> foundation of their scala support, so I think it would be good to pool
> this efforts and I'm wondering if this would best be pursued as an
> Apache Comons project.

This question should be directed to the commons-dev list
(dev@commons.apache.org).  Currently, the scope of Commons is only
Java components (see http://commons.apache.org).

Phil
> 
> We have done a first implementation consisting of 3 bundles, 2 bundles
> seem to be analogous to the ones available here
> http://scala-tools.org/repo-releases/com/weiglewilczek/scala-lang-osgi/
> (I didn't know about them originally, and the yhave the disadvantage
> of not being in maven central). Our implementations has no
> dependencies on other clerezza components.
> 
> The source of our implementation is here:
> http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/
> 
> The current implementation is quite minimalistic and merging it with
> the best from the scala support in sling could bring big improvements,
> but as far as I know there's no other  javax.scripting implementation
> for scala 2.8.
> 
> Cheers,
> reto
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org