comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Market for an IDL to Java Translator?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Market for an IDL to Java Translator? [message #55132 is a reply to message #55057] Tue, 31 July 2007 12:21 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Brian Larsen wrote:
> Eric,
>
> while this is an interesting idea I think going the other way is what
> people are most interested in. A translator from C or Fortran (yuk)
> to IDL would be something I would pay for, but I imagine this being a
> nearly impossible task to make "good" array based IDL code from c or
> fortan.

Over the years I've converted a good portion of my old IDL code in Fortran95. Everyone has
a f95 compiler (or can get one for free), but not as many people have (or can afford) IDL
licenses. (Wasn't IDL originally written in Fortran -- well, FORTRAN -- way back in the
old olden days on VMS systems?)

Creating on-the-fly things in Fortran is obviously more difficult i.e. it's strongly typed
and you have to allocate arrays as required. In IDL you would do

m = 100 & n = 24
x = FLTARR(100,24)
y = x

whereas in f95 you would do,

REAL, PARAMETER :: zero = 0.0
REAL, ALLOCATABLE :: x(:), y(:)
INTEGER :: m, n

m = 100; n = 24
ALLOCATE( x(m,n), y(m,n) )
x = zero
y = x

Apart from the type declarations, same dog different leg.

(although, Fortran2003 doesn't do OO like IDL does. :o)

> While from a nice platform independent language (IDL) to another such
> language (java) w/o all the gui bells and whistles doesn't sell for
> me.

Agreed.

cheers,

paulv

--
Paul van Delst
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem with large .txt file
Next Topic: Remote object and pointer storage

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:44:16 PDT 2025

Total time taken to generate the page: 0.00420 seconds