Conversion/porting to "mainstream" languages

One criticism I've received of the suggestion that we use Haskell in our business is that some particularly large clients will demand code in some 'standard' language that they know they can deal with, especially if they end up stuck with the software and we stop supporting it. How are others dealing with this? How big a project would it be to translate, say, from Haskell to C or Java? I'm guessing that you'd borrow a lot of the type-inferencing, etc. from the current compilers - how easy is their code to get to grips with? I suppose that at least something to translate Haskell to Java bytecode would be useful someday, and then you could 'decompile' back to Java, perhaps, but as we wouldn't be doing graphical stuff with Haskell anyway then C might be best. Anyhow, any thoughts or comments on this difficulty would be of interest. -- Mark

Mark Carroll writes:
One criticism I've received of the suggestion that we use Haskell in our business is that some particularly large clients will demand code in some 'standard' language
How big a project would it be to translate, say, from Haskell to C or Java?
How about `Standard' ML? Shouldn't be too hard, since you could reuse more of the structure than you could for C, I imagine. Common Lisp is probably also easier to translate to, and fairly `standard'.
I suppose that at least something to translate Haskell to Java bytecode would be useful someday, and then you could 'decompile' back to Java
This sounds about as useful as using generated (intermediate) C from GHC. If your client is really daft, they might buy that, but I think it is just about guaranteed to be unmaintainable :-) I'm in the unfortunate situation that, if my current programming effort turns out to be a success, I may have to rewrite the whole thing in order to a) squeeze the last few drops of memory consumption from it and b) run it on large multi-CPU machinery Any suggestions for a suitable language? My program isn't overly complex, nor does it depend much on laziness, so I could get by with C. -kzm -- If I haven't seen further, it is by standing in the footprints of giants
participants (2)
-
ketil@ii.uib.no
-
Mark Carroll