Why is not scala support written in scala?

View: New views
3 Messages — Rating Filter:   Alert me  

Why is not scala support written in scala?

by Jaroslav Tulach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.
I am interested in using scala for writing tests for some of my NetBeans
modules. How can that be done? I went to one of the scala modules to see how
to build and execute scala and to my surprise, they are not written in scala
at all!?

That is surprising. All other IDE vendors write their modules in scala. Is it
because of missing build infrastructure? In such case, here is diff with
necessary changes:
http://wiki.netbeans.org/Diff.jsp?page=Scala&r1=44&r2=43
http://wiki.netbeans.org/attach/Scala/ScalaBuild.diff
Now it is possible to write module classes in scala or java, write tests in
scala or java. The java classes are compiled first, so they cannot refer to
scala ones. The scala classes can refer to java. Indeed, it is easy to revert
the compilation order, if necessary.

One thing that is missing, is a module that would wrap all the necessary scala
libraries. Can we create libs.scala, please?

-jst



Re: Why is not scala support written in scala?

by dcaoyuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good question.

First, I actually created a libs.scala, but did not check in.

Second, the Scala for NetBeans of course can be written in Scala, but
not now. One reason is that I'm also writing Erlang/Fortress for
NetBeans, and all of them are based on GSF, that is, I'd like to get
more work done in Java first, so we can gain more cases for other
languages supporting on NetBeans.

Third point, someday if all things go smoothly, and, Scala has been
proved to be a practice language for all these kind of things, I may
re-write all above modules in Scala.

Regards
Caoyuan


On Mon, May 12, 2008 at 11:45 PM, Jaroslav Tulach
<Jaroslav.Tulach@...> wrote:

> Hi.
> I am interested in using scala for writing tests for some of my NetBeans
> modules. How can that be done? I went to one of the scala modules to see how
> to build and execute scala and to my surprise, they are not written in scala
> at all!?
>
> That is surprising. All other IDE vendors write their modules in scala. Is it
> because of missing build infrastructure? In such case, here is diff with
> necessary changes:
> http://wiki.netbeans.org/Diff.jsp?page=Scala&r1=44&r2=43
> http://wiki.netbeans.org/attach/Scala/ScalaBuild.diff
> Now it is possible to write module classes in scala or java, write tests in
> scala or java. The java classes are compiled first, so they cannot refer to
> scala ones. The scala classes can refer to java. Indeed, it is easy to revert
> the compilation order, if necessary.
>
> One thing that is missing, is a module that would wrap all the necessary scala
> libraries. Can we create libs.scala, please?
>
> -jst
>
>
>

Re: Why is not scala support written in scala?

by Jaroslav Tulach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dne Monday 12 May 2008 18:15:30 Caoyuan napsal(a):
> Good question.
>
> First, I actually created a libs.scala, but did not check in.

OK, let me know when it is in, I'll fix the build script to work with
libs.scala then.

> Second, the Scala for NetBeans of course can be written in Scala, but
> not now.

OK, you have your right to decide. I was afraid that the reason is missing
infrastructure to do the build properly. That is why I wrote the patch[1].
-jst

[1] http://wiki.netbeans.org/attach/Scala/ScalaBuild.diff
LightInTheBox - Buy quality products at wholesale price