You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Michael Dürig <mi...@day.com> on 2008/12/18 11:20:36 UTC
Re: Scala in Sling
Bertrand Delacretaz wrote:
> On Thu, Dec 18, 2008 at 9:15 AM, Philip Andrew <ph...@orsa-studio.com> wrote:
>> ...I read your email on the newsgroup, do you know how to do Scala in Sling?...
>
> I didn't get that to work over the summer, but I'm ccing Michael
> Duerig who seems to have found a solution to our Scala-related
> problems. What didn't work well was passing the classpath to the Scala
> embedded compiler.
>
>> ...Can you direct me to any example or blog article to explain to me how to get
>> started...
>
> This is in the "some assembly required" at the moment, but if you have
> some time to work on it that would be a most welcome contribution to
> Sling.
ATM there is not much documentation on this. Have a look at the
sling-scala code at http://code.google.com/p/sling-scala/ to get an idea
on how to integrate a new language with sling. The code also documents
the classpath problem with the Scala compiler.
>> ...I have a project where I need the dynamic content store of Sling and the
>> Scala language...
>
> Sounds great - I don't have a concrete need for that right now, but
> would be willing to help in making this work. We'd then need to
> redirect this discussion to the sling dev list, so that others can
> participate as well.
>
> Michael, can you tell us more about the solution that you envisioned,
> and do you have an estimate of the effort required?
I have a working prototype in my private sandbox. It focuses mostly on
getting the Scala compiler to work at all. That is, resolving classes
without having to provide a hard coded classpath. I will need to do some
cleanup/fixing before attaching it as patch to
http://issues.apache.org/jira/browse/SLING-549.
Michael