Whither ICU.NET? I don't see it thither...

by Michael S. Kaplan, published on 2008/12/18 03:01 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2008/12/18/9234330.aspx


In the past 10 days I have had four people ask me the same question. Here is one if the most recent ones:

Hi Michael,

One of my friends was asking if there is an ICU for .NET. icu4c-4_0-Win32-msvc8.zip that he got from http://www.icu-project.org/download/4.0.html seems to be the one for Native Win32.

Thanks

Hmmm. I can honestly say that I have no idea whatsoever. :-)

But the whole inquiry scores pretty well on my "scale of 1 to interesting" metric so I think I'll talk about it for a minute. Not as an ICU expert (which I am not), but as an eager and interested external observer who is insanely curious about some of the weirdest things....

As far as I know there are only version for C (ICU4C) and for Java (ICU4J).

Now I do know that many features in ICU4J depend on features and functionality in Java itself, which tells me that ICU4J is not a straight port of ICU4C -- it is an extension to Java to provide the full features of ICU (you must have a minimum version of Java to get full ICU support, for example).

This suggests that someone could choose to build an ICU.NET that took all of the built in features from the appropriate namespaces like System.Globalization and System.Text, and then extended them to add in the other features ICU boasts like the UCA, transliteration, and fuller Unicode Character Database support.

Though I can't imagine Microsoft doing such a project, it does sound like parts of it would be pretty exciting. If I were still a consultant and some client with deep pockets wanted such a deliverable I imagine I'd really push to be one of the deliverers of the deliverable.

But back in the real world, I don't have that kind of time. :-)

I don't know of anyone else working on such a thing either. If anyone does and it isn't a secret they could probably chime in and add a comment or two here. I think it does sound like an interesting idea, and technically speaking it would be a fascinating cross-platform extension of ICU itself (not to mention of .NET which does have other platforms of its own from the Mac to mobile devices and so on).

Anyone out there working on ICU.NET?


This blog brought to you by ? (U+003f, aka QUESTION MARK)


# John Cowan on 18 Dec 2008 1:21 PM:

ikvm.net, an implementation of Java 1.6 (less AWT) for .NET, is probably Teh Win here.  There might possibly be some missing methods in the underlying Java libraries, but if not you should be able to compile ICU4J into a .NET assembly.

# Michael S. Kaplan on 18 Dec 2008 2:44 PM:

I can't imagine people wanting to have two huge runtimes like Java *and* .NET being loaded up by their applications, though. Yuck!

# Stephen A. on 21 Dec 2008 5:44 PM:

I'm pretty sure IKVM.Net does not load on the Java runtime. Indeed, according to its front page, IKVM is:

* A Java Virtual Machine implemented in .NET

* A .NET implementation of the Java class libraries

* Tools that enable Java and .NET interoperability

So only one runtime plus a set of support libraries (bad, but not *too* bad).

# Michael S. Kaplan on 21 Dec 2008 9:44 PM:

Hmmm... but as a base to another library (ICU)? I wonder what kind of overhead that would add....

# Kiran Chand Palakkattiri on 22 Dec 2008 12:14 AM:

Hmmm... Good. It will be really good if somebody brings an ICU Defn for .NET

Michael, what do you think about writing wrapper in .NET for ICU for win32?

I hope, we could use it like native code, or as a COM/ActiveX object. What say?

# Michael S. Kaplan on 22 Dec 2008 12:44 AM:

What do I think about doing the actual work? I can't because of where I work.

But if someone else wants to do such a thing I'd root for them and be supportive and if they had questions I'd try to be helpful and answer them.... :-)

PaxErit on 29 Jul 2009 5:00 AM:

Hi guys,

this has actually already been done. Check out:

http://code.google.com/p/icu-dotnet/

Gotta compile it yourself, but we use it for a number of our language software projects.


Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

go to newer or older post, or back to index or month or day