Re: [infinispan-dev] scala code in Infinispan

2013-02-07 Thread Dan Berindei
On 6 Feb 2013 17:51, "Manik Surtani" wrote: > > On 6 Feb 2013, at 14:58, Mircea Markus wrote: > > On 6 Feb 2013, at 15:37, Galder Zamarreño wrote: > > I don't think that encouraging scala code is good purely for maintenance > reasons. If there's a choice, it should be java. Not saying that learn

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Manik Surtani
On 6 Feb 2013, at 14:58, Mircea Markus wrote: > On 6 Feb 2013, at 15:37, Galder Zamarreño wrote: > I don't think that encouraging scala code is good purely for maintenance > reasons. If there's a choice, it should be java. Not saying that learning > a new language is not cool - but

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Galder Zamarreño
On Feb 6, 2013, at 3:58 PM, Mircea Markus wrote: > On 6 Feb 2013, at 15:37, Galder Zamarreño wrote: > I don't think that encouraging scala code is good purely for maintenance > reasons. If there's a choice, it should be java. Not saying that learning > a new language is not cool -

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Bela Ban
On 2/6/13 3:58 PM, Mircea Markus wrote: > On 6 Feb 2013, at 15:37, Galder Zamarreño wrote: > I don't think that encouraging scala code is good purely for > maintenance reasons. If there's a choice, it should be java. Not > saying that learning a new language is not cool - but in prac

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Mircea Markus
On 6 Feb 2013, at 15:37, Galder Zamarreño wrote: I don't think that encouraging scala code is good purely for maintenance reasons. If there's a choice, it should be java. Not saying that learning a new language is not cool - but in practice people are a bit put off by maintai

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Alan Santos
On Feb 6, 2013, at 9:37 AM, Galder Zamarreño wrote: > > On Jan 31, 2013, at 1:42 PM, Mircea Markus wrote: > >> >> On 31 Jan 2013, at 12:37, Manik Surtani wrote: >> I don't think that encouraging scala code is good purely for maintenance reasons. If there's a choice, it should be

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Galder Zamarreño
On Jan 31, 2013, at 1:42 PM, Mircea Markus wrote: > > On 31 Jan 2013, at 12:37, Manik Surtani wrote: > >>> I don't think that encouraging scala code is good purely for maintenance >>> reasons. If there's a choice, it should be java. Not saying that learning a >>> new language is not cool - b

Re: [infinispan-dev] scala code in Infinispan

2013-02-06 Thread Galder Zamarreño
Hi, On Jan 31, 2013, at 12:45 PM, Mircea Markus wrote: > Hi, > > > The REST module is written in Scala (both main + tests). We have some *test* > contributions written in Java (thanks mlinhard). > There was an IRC discussion on whether it's worth migrating the Java > contribution to Scala c

Re: [infinispan-dev] scala code in Infinispan

2013-02-04 Thread Michal Linhard
no probs. so what about this one? https://github.com/mlinhard/infinispan/commit/9cfadec82dbd082cdaf1f162e5e35ffaf6b117c0 On 02/04/2013 02:05 PM, Mircea Markus wrote: >>> -1. If there's a choice it should be Java. >> So I did some Scala excercise, which I quite enjoyed, but I have to >> admit, it'

Re: [infinispan-dev] scala code in Infinispan

2013-02-04 Thread Mircea Markus
On 1 Feb 2013, at 14:57, Michal Linhard wrote: > On 01/31/2013 01:37 PM, Mircea Markus wrote: >> >> On 31 Jan 2013, at 12:28, Michal Linhard wrote: >> >>> >>> In this special case I'm gonna try to rewrite the test case as an >>> excercise - it doesn't seem like that much extra work, and I'd re

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Michal Linhard
It's not PITA, rewriting it in Scala is actually quite enjoyable. But also not trivial of course and there's not always time for it. If I rewrite it now, then we're postponing the discussion to next time a unit test comes up where for someone it is PITA and he wants to contribute in Java. So I'

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Adrian Nistor
Sure, but in this particular instance is revriting MultiServerStartupListener to scala trivial or a PITA? Because if it's trivial I then I would just do it. On 02/01/2013 04:56 PM, Michal Linhard wrote: > re: crossbreed: > that's what this discussion is supposed to be about: whether to allow >

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Michal Linhard
re: crossbreed: that's what this discussion is supposed to be about: whether to allow mixing java and scala in server module test code. m. On 02/01/2013 03:52 PM, Adrian Nistor wrote: > sorry, it obviously is java but I actually meant to say 'Is it > possbile to convert MultiServerStartupListene

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Adrian Nistor
sorry, it obviously is java but I actually meant to say 'Is it possbile to convert MultiServerStartupListener servlet to _scala_ too?' On 02/01/2013 04:48 PM, Michal Linhard wrote: > MultiServerStartupListener is written in Java. > > but maybe it would be ok to initialize ManagerInstance.instance

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Michal Linhard
MultiServerStartupListener is written in Java. but maybe it would be ok to initialize ManagerInstance.instance directly in ServerInstance.start() actually the code could me much simpler that way :) maybe one reason to let StartupListener to do it's work is that it's the code that it's being tes

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Adrian Nistor
Is it possbile to convert MultiServerStartupListener servlet to java too? Otherwise it looks like an odd crossbreed :) Do we really need a servlet to bootstrap this or just a ServletContextListener will do? On 02/01/2013 03:57 PM, Michal Linhard wrote: > On 01/31/2013 01:37 PM, Mircea Markus wro

Re: [infinispan-dev] scala code in Infinispan

2013-02-01 Thread Michal Linhard
On 01/31/2013 01:37 PM, Mircea Markus wrote: > > On 31 Jan 2013, at 12:28, Michal Linhard wrote: > >> >> In this special case I'm gonna try to rewrite the test case as an >> excercise - it doesn't seem like that much extra work, and I'd rewrite >> it anyway I'm not satisfied with it's current form

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Dan Berindei
On Thu, Jan 31, 2013 at 2:42 PM, Mircea Markus wrote: > > On 31 Jan 2013, at 12:37, Manik Surtani wrote: > > I don't think that encouraging scala code is good purely for maintenance > reasons. If there's a choice, it should be java. Not saying that learning a > new language is not cool - but in

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Bela Ban
On 1/31/13 2:17 PM, Manik Surtani wrote: > On 31 Jan 2013, at 13:14, Bela Ban wrote: > >> >> On 1/31/13 1:48 PM, Mircea Markus wrote: >>> Agreed on all points. >>> OTOH learning/using a new language can be good fun, so with that in >>> mind having Scala in ISPN might be a positive think. From wha

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 14:12, Manik Surtani wrote: > On 31 Jan 2013, at 13:55, Mircea Markus wrote: > >> *Also as a java developer you have the general option of not learning Scala, >> but you don't really have the option of not keeping up with Java8. > > So you generally only learn new things wh

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Bela Ban
The release date for Java 8 is not the date when Infinispan will baseline to Java 8, there's always a lag. In the case of JGroups, some folks are still on JDK 1.5, would you believe it, and were quite pissed when I baselined JGroups to JDK 6 On 1/31/13 2:14 PM, Manik Surtani wrote: > On 31

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Manik Surtani
On 31 Jan 2013, at 13:55, Mircea Markus wrote: > *Also as a java developer you have the general option of not learning Scala, > but you don't really have the option of not keeping up with Java8. So you generally only learn new things when you have no other option? ;) I'm being an arse, ignore

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 13:14, Manik Surtani wrote: > On 31 Jan 2013, at 12:47, Bela Ban wrote: > >> >> On 1/31/13 1:37 PM, Manik Surtani wrote: >>> >>> On 31 Jan 2013, at 12:35, Mircea Markus >> > wrote: >>> I don't think that encouraging scala code is good purely

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Manik Surtani
On 31 Jan 2013, at 13:14, Bela Ban wrote: > *If* someone wants to learn a new *great* language, learn Clojure. Blows > Scala right out of the water**1 :-) Also let's not forget: "The most important thing in the programming language is the name. A language will not succeed without a good name

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Manik Surtani
On 31 Jan 2013, at 13:14, Bela Ban wrote: > > > On 1/31/13 1:48 PM, Mircea Markus wrote: >> Agreed on all points. >> OTOH learning/using a new language can be good fun, so with that in >> mind having Scala in ISPN might be a positive think. From what I saw >> discussing with people is that n

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Manik Surtani
On 31 Jan 2013, at 12:47, Bela Ban wrote: > > On 1/31/13 1:37 PM, Manik Surtani wrote: >> >> On 31 Jan 2013, at 12:35, Mircea Markus > > wrote: >> >>> I don't think that encouraging scala code is good purely for >>> maintenance reasons. If there's a choice, it shou

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Bela Ban
On 1/31/13 1:48 PM, Mircea Markus wrote: > Agreed on all points. > OTOH learning/using a new language can be good fun, so with that in > mind having Scala in ISPN might be a positive think. From what I saw > discussing with people is that not everyone shares this enthusiasm in > using Scala, a

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 12:47, Bela Ban wrote: > On 1/31/13 1:37 PM, Manik Surtani wrote: >> >> On 31 Jan 2013, at 12:35, Mircea Markus > > wrote: >> >>> I don't think that encouraging scala code is good purely for >>> maintenance reasons. If there's a choice, it should b

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 12:08, Bela Ban wrote: > I've said it before and am repeating myself here: I believe including > Scala code is a very bad decision for the following reasons: > > - Not a lot of people are proficient in Scala > - What happens when the people who wrote the Scala code leave ? We

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Bela Ban
On 1/31/13 1:37 PM, Manik Surtani wrote: > > On 31 Jan 2013, at 12:35, Mircea Markus > wrote: > >> I don't think that encouraging scala code is good purely for >> maintenance reasons. If there's a choice, it should be java. Not >> saying that learning a new language i

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 12:37, Manik Surtani wrote: >> I don't think that encouraging scala code is good purely for maintenance >> reasons. If there's a choice, it should be java. Not saying that learning a >> new language is not cool - but in practice people are a bit put off by >> maintaining Sca

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Manik Surtani
On 31 Jan 2013, at 12:35, Mircea Markus wrote: > I don't think that encouraging scala code is good purely for maintenance > reasons. If there's a choice, it should be java. Not saying that learning a > new language is not cool - but in practice people are a bit put off by > maintaining Scala

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 12:28, Michal Linhard wrote: > > In this special case I'm gonna try to rewrite the test case as an > excercise - it doesn't seem like that much extra work, and I'd rewrite > it anyway I'm not satisfied with it's current form even if it was to stay in > Java. -1. If there's

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
On 31 Jan 2013, at 11:53, Manik Surtani wrote: > > On 31 Jan 2013, at 11:45, Mircea Markus wrote: > >> Hi, >> >> >> The REST module is written in Scala (both main + tests). We have some *test* >> contributions written in Java (thanks mlinhard). >> There was an IRC discussion on whether it'

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Michal Linhard
In this special case I'm gonna try to rewrite the test case as an excercise - it doesn't seem like that much extra work, and I'd rewrite it anyway I'm not satisfied with it's current form even if it was to stay in Java. But this is just postponing of this important question. As much as I don't

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Bela Ban
I've said it before and am repeating myself here: I believe including Scala code is a very bad decision for the following reasons: - Not a lot of people are proficient in Scala - What happens when the people who wrote the Scala code leave ? We'd have to build up Scala knowledge in house to be ab

Re: [infinispan-dev] scala code in Infinispan

2013-01-31 Thread Manik Surtani
On 31 Jan 2013, at 11:45, Mircea Markus wrote: > Hi, > > > The REST module is written in Scala (both main + tests). We have some *test* > contributions written in Java (thanks mlinhard). > There was an IRC discussion on whether it's worth migrating the Java > contribution to Scala code or n

[infinispan-dev] scala code in Infinispan

2013-01-31 Thread Mircea Markus
Hi, The REST module is written in Scala (both main + tests). We have some *test* contributions written in Java (thanks mlinhard). There was an IRC discussion on whether it's worth migrating the Java contribution to Scala code or not. Pros for migrating the contribution from Java to Scala: -