You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by David Smiley <ds...@mitre.org> on 2008/03/03 06:31:35 UTC

Why translated to C#? Doesn't the CLR avoid the need for ports?

Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net dev.
I thought there is an option or two for Java programs to run on Microsoft's
cool Common-Language-Runtime.  If so, it seems to me quite odd that
Lucene.Net would need to be ported to another programming language.  Part of
the beauty of the CLR is that you don't need to do these sorts of things.
Because it's a common runtime and different languages can interoperate
(within reason).  Even though whatever Java implementation for the CLR isn't
a perfect replica of Sun's implementation and would necessitate some changes
to Lucene, it's hard for me to believe that doing a language port would make
more sense than working on those tweaks.  Please fill me in on the
rationale.  You might want to put the response in a FAQ somewhere.  The
website doesn't have one.

Thanks.

~ David Smiley


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Kurt Mackey <ku...@mubble.net>.
Without a common "Base Class Library", a CLR isn't all that helpful.  Java will compile fine to IL, but a given Java app is going to need whatever library it uses compiled to IL as well.

This is feasible, but leaves you using Java specific classes in an otherwise .NET application.  As crappy as the .NET BCL is, I'd much prefer a .NET application that makes use of it over one that doesn't.

-Kurt

-----Original Message-----
From: Smiley, David W. (DSMILEY) [mailto:dsmiley@mitre.org]
Sent: Tuesday, March 04, 2008 3:52 PM
To: lucene-net-user@incubator.apache.org
Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?
Importance: Low

A disappointing conclusion one could draw from all the reactions to my
question is that the usefulness of a common-language-runtime is flawed and
pointless.  Personally, I'm not willing to accept that.  Do you guys believe
that or is Lucene atypical or...?

~ David


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Michael Mitiaguin <mi...@gmail.com>.
Your point is not very convincing, all depends what kind of application
needs to created. For e.g. it may be practical to use Solr  or anything else
which does exist in .Net world. Otherwise each time we to have search   for
a  substitute  (  which  may be  non-existent  even in a class  of non-free
applications ). As we are in Lucene list very simple example to justify JVM
on one's box  is Luke.

On Wed, Mar 5, 2008 at 9:12 AM, Granroth, Neal V. <
neal.granroth@thermofisher.com> wrote:

> No the CLR is not pointless; but I think maybe there is a misunderstanding
> about what it was intended to do.  Common-language only means languages
> which conform to Microsoft's Common Language Specification.  Just because
> some tool generates valid IL does not mean that the generated code is
> CLS-compliant.
> In the environment in which I work, the CLR's strategic importance is that
> it provides a Microsoft alternative to the JVM.  There is now no longer any
> excuse (from the "IT god's" perspective) for me to have Sun's JVM installed,
> or design products that depend upon it.
>
> -- Neal
>
>  -----Original Message-----
> From: Smiley, David W. (DSMILEY) [mailto:dsmiley@mitre.org]
> Sent: Tuesday, March 04, 2008 3:52 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for
> ports?
> Importance: Low
>
> A disappointing conclusion one could draw from all the reactions to my
> question is that the usefulness of a common-language-runtime is flawed and
> pointless.  Personally, I'm not willing to accept that.  Do you guys
> believe
> that or is Lucene atypical or...?
>
> ~ David
>
>

Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Dean Harding <de...@dload.com.au>.
Smiley, David W. (DSMILEY) wrote:
> Reading some blog entries at ikvm.net... It would seam that ikvm is CLS
> compliant.  Otherwise you wouldn't be able to use it from C# (which you
> can).

It is, but Lucene itself relies on classes in java's system libraries. 
That means you need to install the IKVM runtime and the GNU classpath 
implementation before you could run Lucene under IKVM.

You don't actually need the JVM itself installed, and you can still 
debug stuff in Visual Studio (assuming someone wrote a debug environment 
for IKVM in Visual Studio; I don't think there is one, but it's possible).

The "problem" is that, as I said, in addition to Lucene, you'd also need 
the IKVM runtime, which while not as big as the full JVM, is still 
pretty big. It also means that if I wanted to make customisations of 
Lucene (which I believe is not an insignificant number of people) I 
would have to learn Java, make the change in Java, then re-compile using 
IKVM to get it back in .NET.

I guess it just depends on your particular needs. There's a case for 
using Lucene.NET and there's a case for using IKVM. Like anything in 
software, they both have their pro's and con's :-)

Dean.


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by "Smiley, David W. (DSMILEY)" <ds...@mitre.org>.
Reading some blog entries at ikvm.net... It would seam that ikvm is CLS
compliant.  Otherwise you wouldn't be able to use it from C# (which you
can).

~ David

On 3/4/08 5:12 PM, "Granroth, Neal V." <ne...@thermofisher.com>
wrote:

> No the CLR is not pointless; but I think maybe there is a misunderstanding
> about what it was intended to do.  Common-language only means languages which
> conform to Microsoft's Common Language Specification.  Just because some tool
> generates valid IL does not mean that the generated code is CLS-compliant.
> In the environment in which I work, the CLR's strategic importance is that it
> provides a Microsoft alternative to the JVM.  There is now no longer any
> excuse (from the "IT god's" perspective) for me to have Sun's JVM installed,
> or design products that depend upon it.
> 
> -- Neal
> 
>  -----Original Message-----
> From: Smiley, David W. (DSMILEY) [mailto:dsmiley@mitre.org]
> Sent: Tuesday, March 04, 2008 3:52 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?
> Importance: Low
> 
> A disappointing conclusion one could draw from all the reactions to my
> question is that the usefulness of a common-language-runtime is flawed and
> pointless.  Personally, I'm not willing to accept that.  Do you guys believe
> that or is Lucene atypical or...?
> 
> ~ David
> 


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by "Granroth, Neal V." <ne...@thermofisher.com>.
No the CLR is not pointless; but I think maybe there is a misunderstanding about what it was intended to do.  Common-language only means languages which conform to Microsoft's Common Language Specification.  Just because some tool generates valid IL does not mean that the generated code is CLS-compliant.
In the environment in which I work, the CLR's strategic importance is that it provides a Microsoft alternative to the JVM.  There is now no longer any excuse (from the "IT god's" perspective) for me to have Sun's JVM installed, or design products that depend upon it.

-- Neal

 -----Original Message-----
From: Smiley, David W. (DSMILEY) [mailto:dsmiley@mitre.org]
Sent: Tuesday, March 04, 2008 3:52 PM
To: lucene-net-user@incubator.apache.org
Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?
Importance: Low

A disappointing conclusion one could draw from all the reactions to my
question is that the usefulness of a common-language-runtime is flawed and
pointless.  Personally, I'm not willing to accept that.  Do you guys believe
that or is Lucene atypical or...?

~ David


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by "Smiley, David W. (DSMILEY)" <ds...@mitre.org>.
A disappointing conclusion one could draw from all the reactions to my
question is that the usefulness of a common-language-runtime is flawed and
pointless.  Personally, I'm not willing to accept that.  Do you guys believe
that or is Lucene atypical or...?

~ David


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by "Granroth, Neal V." <ne...@thermofisher.com>.
I see that there are a lot of different perspectives on this.

Another (the one I have to contend with) is that Microsoft Visual Studio is the only development platform environment I am allowed to use.
If I wish to incorporate Lucene, I have to use a port to one of the languages that MSVS supports, preferably C#.

For my projects, I doubt I would have been able to (allowed to) use Lucene if it were implemented using any of these techniques mentioned.

A side benefit of working with the C# port is that when I encounter an error, an exception thrown from within Lucene.NET, with the visual debugger I can seamlessly trace from the top-level UI down through the underling layers (my code) down to the specific line within Lucene that encountered the problem.


-- Neal


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Digy <di...@gmail.com>.
Size is not a big problem. I haven't liked the idea of using ported-java
classes in Visual Studio instead of using 
.NET ones.[ like java.io.Reader instead of System.IO.TextReader]. But if you
want to, it seems to be a great tool.

DIGY

-----Original Message-----
From: Michael Mitiaguin [mailto:mitiaguin@gmail.com] 
Sent: Tuesday, March 04, 2008 4:31 AM
To: lucene-net-user@incubator.apache.org
Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Digy,

Thanks for trying. I asked actually David  to  try , as he had started the
discussion :)
I agree,  Solr is better if all searching/indexing happening  on a server
and having JVM in addition to .Net doesn't really matter as long as all
works reasonably fast. In my case,  Lucene on a desktop , so a requirement
for  JVM to be installed ( though quite likely it has been installed )
instead of huge DLL is not much better. Please explain if you meant
something else.

Michael

On Tue, Mar 4, 2008 at 8:41 AM, Digy <di...@gmail.com> wrote:

> Hi,
>
> With my simple application; basic functions(indexing&searching) of
> Lucene(2.3.1) works well( I have not tested the performance).
>
> But the problem, I think, is the "java framework ported to .NET(~26M)"
> that
> I have to use.
>
> If I wanted to use Lucene.java, I would use Solr and call its methods from
> a
> .NET client.
>
> DIGY.
>
>
>
>
>
>
> -----Original Message-----
> From: Michael Mitiaguin [mailto:mitiaguin@gmail.com]
> Sent: Monday, March 03, 2008 10:59 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for
> ports?
>
> Lucene >= 1.9 requires Java 1.4 .
> You are right, the project you referring to  :
> "Compliance with JDK 1.4 is largely implemented, but there are some holes
> (particularly in the Classpath
> API's<http://www.kaffe.org/%7Estuart/japi/htmlout/h-jdk14-classpath.html
> >).
> In particular,
>
>   - AWT and Swing are not presently functional. This is a low priority
>   item for the project developers.
>   - Security is another fairly large hole missing from the IKVM
>   platform. This will be solved by relying on the sophisticated and
> powerful
>   security model offered by the .NET platform.
>
> Still, enough functionality is in place that several large Java projects
> run
> successfully"
> It is still beta, you could  try with Lucene 2.3  and tell us :)
>
>
> On Mon, Mar 3, 2008 at 4:53 PM, David Smiley <ds...@mitre.org> wrote:
>
> > Are you referring to the core Java libraries?  GNU Classpath is an open
> > implementation of them.  And more recently, the OpenJDK has released it
> > unencumbered.  Here is the CLR based Java solution I was thinking of:
> > http://www.ikvm.net/index.html
> >
> >
> > > As I'm no Java programmer, I might be wrong, but I think the port is
> > needed
> > > because of the underlying class libraries (BCL).
> > >
> > > Cheers,
> > > Ali Shafai
> > >
> > > -----Original Message-----
> > > From: David Smiley [mailto:dsmiley@mitre.org]
> > > Sent: Monday, 3 March 2008 4:32 PM
> > > To: lucene-net-user@incubator.apache.org
> > > Subject: Why translated to C#? Doesn't the CLR avoid the need for
> ports?
> > >
> > > Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
> > dev.
> > > I thought there is an option or two for Java programs to run on
> > Microsoft's
> > > cool Common-Language-Runtime.  If so, it seems to me quite odd that
> > > Lucene.Net would need to be ported to another programming language.
> >  Part of
> > > the beauty of the CLR is that you don't need to do these sorts of
> > things.
> > > Because it's a common runtime and different languages can interoperate
> > > (within reason).  Even though whatever Java implementation for the CLR
> > isn't
> > > a perfect replica of Sun's implementation and would necessitate some
> > changes
> > > to Lucene, it's hard for me to believe that doing a language port
> would
> > make
> > > more sense than working on those tweaks.  Please fill me in on the
> > > rationale.  You might want to put the response in a FAQ somewhere.
>  The
> > > website doesn't have one.
> > >
> > > Thanks.
> > >
> > > ~ David Smiley
> > >
> >
> >
>
>


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Michael Mitiaguin <mi...@gmail.com>.
Digy,

Thanks for trying. I asked actually David  to  try , as he had started the
discussion :)
I agree,  Solr is better if all searching/indexing happening  on a server
and having JVM in addition to .Net doesn't really matter as long as all
works reasonably fast. In my case,  Lucene on a desktop , so a requirement
for  JVM to be installed ( though quite likely it has been installed )
instead of huge DLL is not much better. Please explain if you meant
something else.

Michael

On Tue, Mar 4, 2008 at 8:41 AM, Digy <di...@gmail.com> wrote:

> Hi,
>
> With my simple application; basic functions(indexing&searching) of
> Lucene(2.3.1) works well( I have not tested the performance).
>
> But the problem, I think, is the "java framework ported to .NET(~26M)"
> that
> I have to use.
>
> If I wanted to use Lucene.java, I would use Solr and call its methods from
> a
> .NET client.
>
> DIGY.
>
>
>
>
>
>
> -----Original Message-----
> From: Michael Mitiaguin [mailto:mitiaguin@gmail.com]
> Sent: Monday, March 03, 2008 10:59 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for
> ports?
>
> Lucene >= 1.9 requires Java 1.4 .
> You are right, the project you referring to  :
> "Compliance with JDK 1.4 is largely implemented, but there are some holes
> (particularly in the Classpath
> API's<http://www.kaffe.org/%7Estuart/japi/htmlout/h-jdk14-classpath.html
> >).
> In particular,
>
>   - AWT and Swing are not presently functional. This is a low priority
>   item for the project developers.
>   - Security is another fairly large hole missing from the IKVM
>   platform. This will be solved by relying on the sophisticated and
> powerful
>   security model offered by the .NET platform.
>
> Still, enough functionality is in place that several large Java projects
> run
> successfully"
> It is still beta, you could  try with Lucene 2.3  and tell us :)
>
>
> On Mon, Mar 3, 2008 at 4:53 PM, David Smiley <ds...@mitre.org> wrote:
>
> > Are you referring to the core Java libraries?  GNU Classpath is an open
> > implementation of them.  And more recently, the OpenJDK has released it
> > unencumbered.  Here is the CLR based Java solution I was thinking of:
> > http://www.ikvm.net/index.html
> >
> >
> > > As I'm no Java programmer, I might be wrong, but I think the port is
> > needed
> > > because of the underlying class libraries (BCL).
> > >
> > > Cheers,
> > > Ali Shafai
> > >
> > > -----Original Message-----
> > > From: David Smiley [mailto:dsmiley@mitre.org]
> > > Sent: Monday, 3 March 2008 4:32 PM
> > > To: lucene-net-user@incubator.apache.org
> > > Subject: Why translated to C#? Doesn't the CLR avoid the need for
> ports?
> > >
> > > Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
> > dev.
> > > I thought there is an option or two for Java programs to run on
> > Microsoft's
> > > cool Common-Language-Runtime.  If so, it seems to me quite odd that
> > > Lucene.Net would need to be ported to another programming language.
> >  Part of
> > > the beauty of the CLR is that you don't need to do these sorts of
> > things.
> > > Because it's a common runtime and different languages can interoperate
> > > (within reason).  Even though whatever Java implementation for the CLR
> > isn't
> > > a perfect replica of Sun's implementation and would necessitate some
> > changes
> > > to Lucene, it's hard for me to believe that doing a language port
> would
> > make
> > > more sense than working on those tweaks.  Please fill me in on the
> > > rationale.  You might want to put the response in a FAQ somewhere.
>  The
> > > website doesn't have one.
> > >
> > > Thanks.
> > >
> > > ~ David Smiley
> > >
> >
> >
>
>

RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Digy <di...@gmail.com>.
Hi,

With my simple application; basic functions(indexing&searching) of
Lucene(2.3.1) works well( I have not tested the performance).

But the problem, I think, is the "java framework ported to .NET(~26M)" that
I have to use.

If I wanted to use Lucene.java, I would use Solr and call its methods from a
.NET client.

DIGY.






-----Original Message-----
From: Michael Mitiaguin [mailto:mitiaguin@gmail.com] 
Sent: Monday, March 03, 2008 10:59 PM
To: lucene-net-user@incubator.apache.org
Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Lucene >= 1.9 requires Java 1.4 .
You are right, the project you referring to  :
"Compliance with JDK 1.4 is largely implemented, but there are some holes
(particularly in the Classpath
API's<http://www.kaffe.org/%7Estuart/japi/htmlout/h-jdk14-classpath.html>).
In particular,

   - AWT and Swing are not presently functional. This is a low priority
   item for the project developers.
   - Security is another fairly large hole missing from the IKVM
   platform. This will be solved by relying on the sophisticated and
powerful
   security model offered by the .NET platform.

Still, enough functionality is in place that several large Java projects run
successfully"
It is still beta, you could  try with Lucene 2.3  and tell us :)


On Mon, Mar 3, 2008 at 4:53 PM, David Smiley <ds...@mitre.org> wrote:

> Are you referring to the core Java libraries?  GNU Classpath is an open
> implementation of them.  And more recently, the OpenJDK has released it
> unencumbered.  Here is the CLR based Java solution I was thinking of:
> http://www.ikvm.net/index.html
>
>
> > As I'm no Java programmer, I might be wrong, but I think the port is
> needed
> > because of the underlying class libraries (BCL).
> >
> > Cheers,
> > Ali Shafai
> >
> > -----Original Message-----
> > From: David Smiley [mailto:dsmiley@mitre.org]
> > Sent: Monday, 3 March 2008 4:32 PM
> > To: lucene-net-user@incubator.apache.org
> > Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
> >
> > Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
> dev.
> > I thought there is an option or two for Java programs to run on
> Microsoft's
> > cool Common-Language-Runtime.  If so, it seems to me quite odd that
> > Lucene.Net would need to be ported to another programming language.
>  Part of
> > the beauty of the CLR is that you don't need to do these sorts of
> things.
> > Because it's a common runtime and different languages can interoperate
> > (within reason).  Even though whatever Java implementation for the CLR
> isn't
> > a perfect replica of Sun's implementation and would necessitate some
> changes
> > to Lucene, it's hard for me to believe that doing a language port would
> make
> > more sense than working on those tweaks.  Please fill me in on the
> > rationale.  You might want to put the response in a FAQ somewhere.  The
> > website doesn't have one.
> >
> > Thanks.
> >
> > ~ David Smiley
> >
>
>


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Michael Mitiaguin <mi...@gmail.com>.
Lucene >= 1.9 requires Java 1.4 .
You are right, the project you referring to  :
"Compliance with JDK 1.4 is largely implemented, but there are some holes
(particularly in the Classpath
API's<http://www.kaffe.org/%7Estuart/japi/htmlout/h-jdk14-classpath.html>).
In particular,

   - AWT and Swing are not presently functional. This is a low priority
   item for the project developers.
   - Security is another fairly large hole missing from the IKVM
   platform. This will be solved by relying on the sophisticated and powerful
   security model offered by the .NET platform.

Still, enough functionality is in place that several large Java projects run
successfully"
It is still beta, you could  try with Lucene 2.3  and tell us :)


On Mon, Mar 3, 2008 at 4:53 PM, David Smiley <ds...@mitre.org> wrote:

> Are you referring to the core Java libraries?  GNU Classpath is an open
> implementation of them.  And more recently, the OpenJDK has released it
> unencumbered.  Here is the CLR based Java solution I was thinking of:
> http://www.ikvm.net/index.html
>
>
> > As I'm no Java programmer, I might be wrong, but I think the port is
> needed
> > because of the underlying class libraries (BCL).
> >
> > Cheers,
> > Ali Shafai
> >
> > -----Original Message-----
> > From: David Smiley [mailto:dsmiley@mitre.org]
> > Sent: Monday, 3 March 2008 4:32 PM
> > To: lucene-net-user@incubator.apache.org
> > Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
> >
> > Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
> dev.
> > I thought there is an option or two for Java programs to run on
> Microsoft's
> > cool Common-Language-Runtime.  If so, it seems to me quite odd that
> > Lucene.Net would need to be ported to another programming language.
>  Part of
> > the beauty of the CLR is that you don't need to do these sorts of
> things.
> > Because it's a common runtime and different languages can interoperate
> > (within reason).  Even though whatever Java implementation for the CLR
> isn't
> > a perfect replica of Sun's implementation and would necessitate some
> changes
> > to Lucene, it's hard for me to believe that doing a language port would
> make
> > more sense than working on those tweaks.  Please fill me in on the
> > rationale.  You might want to put the response in a FAQ somewhere.  The
> > website doesn't have one.
> >
> > Thanks.
> >
> > ~ David Smiley
> >
>
>

Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by "Smiley, David W. (DSMILEY)" <ds...@mitre.org>.
AFAIK, no.  The bytecode->IL is generated in advance one-time (think of this
as compiling).  At that point, it's like any other CLR managed language
including C# which is JIT'ed (i.e. Nothing new here to be worried about)
AFAIK.   JIT at runtime is not something to be concerned about, especially
with server oriented software.

I am quite impressed with Microsoft's CLR strategy...  It means projects
like Lucene.net don't have to exist (as a porting effort to c#, any way).

~ David

On 3/3/08 4:15 AM, "Al" <Al...@Roseateview.com> wrote:

> Hey David, thanks for the link. It was amazing...
> I have some doubt about the speed though. To my understanding, it's JIT
> compiling bytecode to IL, which in return is JIT compiled to machine code.
> Doesn't that affect runtime?
> 
> Cheers,
> Ali Shafai
> 
> -----Original Message-----
> From: David Smiley [mailto:dsmiley@mitre.org]
> Sent: Monday, 3 March 2008 4:54 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?
> 
> Are you referring to the core Java libraries?  GNU Classpath is an open
> implementation of them.  And more recently, the OpenJDK has released it
> unencumbered.  Here is the CLR based Java solution I was thinking of:
> http://www.ikvm.net/index.html
> 
> 
>> As I'm no Java programmer, I might be wrong, but I think the port is
> needed
>> because of the underlying class libraries (BCL).
>> 
>> Cheers,
>> Ali Shafai
>> 
>> -----Original Message-----
>> From: David Smiley [mailto:dsmiley@mitre.org]
>> Sent: Monday, 3 March 2008 4:32 PM
>> To: lucene-net-user@incubator.apache.org
>> Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
>> 
>> Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
> dev.
>> I thought there is an option or two for Java programs to run on
> Microsoft's
>> cool Common-Language-Runtime.  If so, it seems to me quite odd that
>> Lucene.Net would need to be ported to another programming language.  Part
> of
>> the beauty of the CLR is that you don't need to do these sorts of things.
>> Because it's a common runtime and different languages can interoperate
>> (within reason).  Even though whatever Java implementation for the CLR
> isn't
>> a perfect replica of Sun's implementation and would necessitate some
> changes
>> to Lucene, it's hard for me to believe that doing a language port would
> make
>> more sense than working on those tweaks.  Please fill me in on the
>> rationale.  You might want to put the response in a FAQ somewhere.  The
>> website doesn't have one.
>> 
>> Thanks.
>> 
>> ~ David Smiley
>> 
> 


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Al <Al...@Roseateview.com>.
Hey David, thanks for the link. It was amazing...
I have some doubt about the speed though. To my understanding, it's JIT
compiling bytecode to IL, which in return is JIT compiled to machine code.
Doesn't that affect runtime?

Cheers,
Ali Shafai

-----Original Message-----
From: David Smiley [mailto:dsmiley@mitre.org] 
Sent: Monday, 3 March 2008 4:54 PM
To: lucene-net-user@incubator.apache.org
Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Are you referring to the core Java libraries?  GNU Classpath is an open
implementation of them.  And more recently, the OpenJDK has released it
unencumbered.  Here is the CLR based Java solution I was thinking of:
http://www.ikvm.net/index.html


> As I'm no Java programmer, I might be wrong, but I think the port is
needed
> because of the underlying class libraries (BCL).
> 
> Cheers,
> Ali Shafai
> 
> -----Original Message-----
> From: David Smiley [mailto:dsmiley@mitre.org]
> Sent: Monday, 3 March 2008 4:32 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
> 
> Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
dev.
> I thought there is an option or two for Java programs to run on
Microsoft's
> cool Common-Language-Runtime.  If so, it seems to me quite odd that
> Lucene.Net would need to be ported to another programming language.  Part
of
> the beauty of the CLR is that you don't need to do these sorts of things.
> Because it's a common runtime and different languages can interoperate
> (within reason).  Even though whatever Java implementation for the CLR
isn't
> a perfect replica of Sun's implementation and would necessitate some
changes
> to Lucene, it's hard for me to believe that doing a language port would
make
> more sense than working on those tweaks.  Please fill me in on the
> rationale.  You might want to put the response in a FAQ somewhere.  The
> website doesn't have one.
> 
> Thanks.
> 
> ~ David Smiley
> 


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by David Smiley <ds...@mitre.org>.
Are you referring to the core Java libraries?  GNU Classpath is an open
implementation of them.  And more recently, the OpenJDK has released it
unencumbered.  Here is the CLR based Java solution I was thinking of:
http://www.ikvm.net/index.html


> As I'm no Java programmer, I might be wrong, but I think the port is needed
> because of the underlying class libraries (BCL).
> 
> Cheers,
> Ali Shafai
> 
> -----Original Message-----
> From: David Smiley [mailto:dsmiley@mitre.org]
> Sent: Monday, 3 March 2008 4:32 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
> 
> Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net dev.
> I thought there is an option or two for Java programs to run on Microsoft's
> cool Common-Language-Runtime.  If so, it seems to me quite odd that
> Lucene.Net would need to be ported to another programming language.  Part of
> the beauty of the CLR is that you don't need to do these sorts of things.
> Because it's a common runtime and different languages can interoperate
> (within reason).  Even though whatever Java implementation for the CLR isn't
> a perfect replica of Sun's implementation and would necessitate some changes
> to Lucene, it's hard for me to believe that doing a language port would make
> more sense than working on those tweaks.  Please fill me in on the
> rationale.  You might want to put the response in a FAQ somewhere.  The
> website doesn't have one.
> 
> Thanks.
> 
> ~ David Smiley
> 


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Al <Al...@Roseateview.com>.
As I'm no Java programmer, I might be wrong, but I think the port is needed
because of the underlying class libraries (BCL). 

Cheers,
Ali Shafai

-----Original Message-----
From: David Smiley [mailto:dsmiley@mitre.org] 
Sent: Monday, 3 March 2008 4:32 PM
To: lucene-net-user@incubator.apache.org
Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?

Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net dev.
I thought there is an option or two for Java programs to run on Microsoft's
cool Common-Language-Runtime.  If so, it seems to me quite odd that
Lucene.Net would need to be ported to another programming language.  Part of
the beauty of the CLR is that you don't need to do these sorts of things.
Because it's a common runtime and different languages can interoperate
(within reason).  Even though whatever Java implementation for the CLR isn't
a perfect replica of Sun's implementation and would necessitate some changes
to Lucene, it's hard for me to believe that doing a language port would make
more sense than working on those tweaks.  Please fill me in on the
rationale.  You might want to put the response in a FAQ somewhere.  The
website doesn't have one.

Thanks.

~ David Smiley


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Digy <di...@gmail.com>.
If .NET and Java framework were static, I would agree with you but, there
are always additions and modifications.
So, I think it is very hard for a project to keep track of the changes in
both environment and make the necessary 
modifications in libraries.

-------------------------------------------------
... ... ...
Yes, I think to myself, what a wonderful world
				Louis Armstrong
-------------------------------------------------


DIGY




-----Original Message-----
From: Smiley, David W. (DSMILEY) [mailto:dsmiley@mitre.org] 
Sent: Monday, March 03, 2008 10:35 PM
To: lucene-net-user@incubator.apache.org
Subject: Re: Why translated to C#? Doesn't the CLR avoid the need for ports?
Importance: Low

I see what you're saying.  It'd be nice if iKVM had mechanisms to
automatically wrap classes that are equivalent in both languages (like
java.io.Reader and System.IO.TextReader ).  It wouldn't be perfect but it
might be something that would be good enough so that library-porting to the
CLR would be a less frequent occurrence.  Ah well.  Perhaps the iKVM
developers could use this feedback.

~ David 


On 3/3/08 3:21 PM, "Digy" <di...@gmail.com> wrote:

> 
> Hi David,
> 
> Starting with IKVM; it is a very great tool. It can be used in many cases
> where .NET version is not available.
> But;
> 
> * Remoting objects is somehow problematic unless both server(where
> lucene.java resides) and client are written
> in Java and then converted to .NET (or unless they are written by using
Java
> Libraries on IKVM framework).
> [for ex,
> IKVM converts  RemoteSearchable class as
> public class RemoteSearchable : UnicastRemoteObject,
> Searchable, Remote
> where is should be
> public class RemoteSearchable : System.MarshalByRefObject,
> Searchable
> ]
> 
> 
> * IKVM forces to use the classes directly converted from java.
> [for ex, java.io.Reader instead of System.IO.TextReader in Analyzer]
> This limits the flexibility of the .NET programmer with the IKVM runtime
> environment. (or he must develop
> new libraries compatible with java).
> 
> 
> Many more examples can be found where .NET programmer must first think its
> java counterpart and then develop the
> .NET version which , I think, is not acceptable as a pure .NET developer.
> The same problems also exist with J# too.
> 
> 
> 
> I think, this can be tought as developing user interfaces with Tcl/Tk.NET
> libraries. They are good but not accepted as a
> general GUI-framework in .NET world. Additionally, .NET programmer doesn't
> have to know the java namespaces/classes
> (provided by IKVM runtime or by others) to develop .NET code.
> 
> 
> Lastly, I make changes in the Lucene.Net codes for some specific cases
while
> developing my projects. If I would use a tool like
> that then I would have to make these changes first in java version (where
my
> only trial is  a "Hello World" application).
> 
> So, I can try to interpret(understand) the Java code while porting the
> Lucene, but I am not willing to use the java convention in
> developing pure .NET codes.
> 
> DIGY
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: David Smiley [mailto:dsmiley@mitre.org]
> Sent: Monday, March 03, 2008 7:32 AM
> To: lucene-net-user@incubator.apache.org
> Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
> 
> Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net
dev.
> I thought there is an option or two for Java programs to run on
Microsoft's
> cool Common-Language-Runtime.  If so, it seems to me quite odd that
> Lucene.Net would need to be ported to another programming language.  Part
of
> the beauty of the CLR is that you don't need to do these sorts of things.
> Because it's a common runtime and different languages can interoperate
> (within reason).  Even though whatever Java implementation for the CLR
isn't
> a perfect replica of Sun's implementation and would necessitate some
changes
> to Lucene, it's hard for me to believe that doing a language port would
make
> more sense than working on those tweaks.  Please fill me in on the
> rationale.  You might want to put the response in a FAQ somewhere.  The
> website doesn't have one.
> 
> Thanks.
> 
> ~ David Smiley
> 


Re: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by "Smiley, David W. (DSMILEY)" <ds...@mitre.org>.
I see what you're saying.  It'd be nice if iKVM had mechanisms to
automatically wrap classes that are equivalent in both languages (like
java.io.Reader and System.IO.TextReader ).  It wouldn't be perfect but it
might be something that would be good enough so that library-porting to the
CLR would be a less frequent occurrence.  Ah well.  Perhaps the iKVM
developers could use this feedback.

~ David 


On 3/3/08 3:21 PM, "Digy" <di...@gmail.com> wrote:

> 
> Hi David,
> 
> Starting with IKVM; it is a very great tool. It can be used in many cases
> where .NET version is not available.
> But;
> 
> * Remoting objects is somehow problematic unless both server(where
> lucene.java resides) and client are written
> in Java and then converted to .NET (or unless they are written by using Java
> Libraries on IKVM framework).
> [for ex,
> IKVM converts  RemoteSearchable class as
> public class RemoteSearchable : UnicastRemoteObject,
> Searchable, Remote
> where is should be
> public class RemoteSearchable : System.MarshalByRefObject,
> Searchable
> ]
> 
> 
> * IKVM forces to use the classes directly converted from java.
> [for ex, java.io.Reader instead of System.IO.TextReader in Analyzer]
> This limits the flexibility of the .NET programmer with the IKVM runtime
> environment. (or he must develop
> new libraries compatible with java).
> 
> 
> Many more examples can be found where .NET programmer must first think its
> java counterpart and then develop the
> .NET version which , I think, is not acceptable as a pure .NET developer.
> The same problems also exist with J# too.
> 
> 
> 
> I think, this can be tought as developing user interfaces with Tcl/Tk.NET
> libraries. They are good but not accepted as a
> general GUI-framework in .NET world. Additionally, .NET programmer doesn't
> have to know the java namespaces/classes
> (provided by IKVM runtime or by others) to develop .NET code.
> 
> 
> Lastly, I make changes in the Lucene.Net codes for some specific cases while
> developing my projects. If I would use a tool like
> that then I would have to make these changes first in java version (where my
> only trial is  a "Hello World" application).
> 
> So, I can try to interpret(understand) the Java code while porting the
> Lucene, but I am not willing to use the java convention in
> developing pure .NET codes.
> 
> DIGY
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: David Smiley [mailto:dsmiley@mitre.org]
> Sent: Monday, March 03, 2008 7:32 AM
> To: lucene-net-user@incubator.apache.org
> Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?
> 
> Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net dev.
> I thought there is an option or two for Java programs to run on Microsoft's
> cool Common-Language-Runtime.  If so, it seems to me quite odd that
> Lucene.Net would need to be ported to another programming language.  Part of
> the beauty of the CLR is that you don't need to do these sorts of things.
> Because it's a common runtime and different languages can interoperate
> (within reason).  Even though whatever Java implementation for the CLR isn't
> a perfect replica of Sun's implementation and would necessitate some changes
> to Lucene, it's hard for me to believe that doing a language port would make
> more sense than working on those tweaks.  Please fill me in on the
> rationale.  You might want to put the response in a FAQ somewhere.  The
> website doesn't have one.
> 
> Thanks.
> 
> ~ David Smiley
> 


RE: Why translated to C#? Doesn't the CLR avoid the need for ports?

Posted by Digy <di...@gmail.com>.
Hi David,

Starting with IKVM; it is a very great tool. It can be used in many cases
where .NET version is not available.
But;

* Remoting objects is somehow problematic unless both server(where
lucene.java resides) and client are written
in Java and then converted to .NET (or unless they are written by using Java
Libraries on IKVM framework).
[for ex,
	IKVM converts  RemoteSearchable class as
		public class RemoteSearchable : UnicastRemoteObject,
Searchable, Remote
	where is should be 
		public class RemoteSearchable : System.MarshalByRefObject,
Searchable
]


* IKVM forces to use the classes directly converted from java.
[for ex, java.io.Reader instead of System.IO.TextReader in Analyzer]
This limits the flexibility of the .NET programmer with the IKVM runtime
environment. (or he must develop
new libraries compatible with java).


Many more examples can be found where .NET programmer must first think its
java counterpart and then develop the
.NET version which , I think, is not acceptable as a pure .NET developer.
The same problems also exist with J# too. 



I think, this can be tought as developing user interfaces with Tcl/Tk.NET
libraries. They are good but not accepted as a
general GUI-framework in .NET world. Additionally, .NET programmer doesn't
have to know the java namespaces/classes
(provided by IKVM runtime or by others) to develop .NET code.


Lastly, I make changes in the Lucene.Net codes for some specific cases while
developing my projects. If I would use a tool like 
that then I would have to make these changes first in java version (where my
only trial is  a "Hello World" application).

So, I can try to interpret(understand) the Java code while porting the
Lucene, but I am not willing to use the java convention in
developing pure .NET codes.

DIGY







-----Original Message-----
From: David Smiley [mailto:dsmiley@mitre.org] 
Sent: Monday, March 03, 2008 7:32 AM
To: lucene-net-user@incubator.apache.org
Subject: Why translated to C#? Doesn't the CLR avoid the need for ports?

Hi; I stumbled across Lucene.Net.  I'm a Java developer, not a C#/.Net dev.
I thought there is an option or two for Java programs to run on Microsoft's
cool Common-Language-Runtime.  If so, it seems to me quite odd that
Lucene.Net would need to be ported to another programming language.  Part of
the beauty of the CLR is that you don't need to do these sorts of things.
Because it's a common runtime and different languages can interoperate
(within reason).  Even though whatever Java implementation for the CLR isn't
a perfect replica of Sun's implementation and would necessitate some changes
to Lucene, it's hard for me to believe that doing a language port would make
more sense than working on those tweaks.  Please fill me in on the
rationale.  You might want to put the response in a FAQ somewhere.  The
website doesn't have one.

Thanks.

~ David Smiley