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

Home » Public Forums » archive » Re: idl file conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: idl file conversion [message #31496] Wed, 24 July 2002 02:00
cees is currently offline  cees
Messages: 7
Registered: January 2002
Junior Member
Michael,

The problem isn't converting your IDL routines to C++. The problem is
linking it to the libraries RSI used to build IDL. In your routines you call
'internal' IDL routines (like make_array, where etc.). In order to call
these routines from your (converted) program you have to rewrite them or use
a IDL library (but RSI isn't goinig to give it to you. Afterall this *IS*
the true value of IDL!)

Your question for 'stand-alone' IDL programs is a topic among users for as
long as I use IDL (9 years or so). A couple of years ago RSI offered to
compile IDL programs to standalone executables. Buth this was VERY expensive
(and they did it for you, so changing your code meant going back to RSI)

Hope this helps.

Cees
Re: idl file conversion [message #31500 is a reply to message #31496] Tue, 23 July 2002 09:41 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
No need to get upset.

Most of the regulars in this group are a lighthearted bunch and I am sure
they really didn't intend for you to take their comments as a "slap into the
face". I'm sure they didn't know you were under the extra stress of
impending examinations.

What they were trying to say is no, there are no publicly available packages
to convert IDL code to C or C++. A package capable of handling the entire
IDL language would be extremely complicated. Just think about. How many
built in functions are there? Direct graphics... Object graphics... And
the GUI stuff.... The point is that even at 50k lines it would probably be
easier to rewrite a program in C/C++ than it would be to write a conversion
application.

There are more languages than C/C++ that can be compiled or interpreted on
many platforms without the need for an expensive license. Maybe there is
one that will be easier for you to pick up given your previous programming
experience.

My guess is that the .rpm packages you found were for the "interface
definition language" and not Interactive Data Language.

-Rick


"Michael Ganzer" <crazy-l@gmx.de> wrote in message
news:ahjsvq$dkh$1@graf.cs.uni-magdeburg.de...
> My IDL program already has more than 9,000 lines!!!!! And because of that
i
> am NOT going to rewrite it and overthink everything for C++...
> I didn't want to have a comment saying that i shall rewrite it with C++,
but
> i wanted help for finding a conversion program...
> So if u can only tell me that there is none, then ok.. but please don't
try
> to tell me what i should do if u were me, when u don't know what this is
all
> about...
>
> Would u learn C++ if u were me just for putting stuff on a homepage or
> wouldn't u search for a way to compile it directly for Internet??!
> I didn't write the text just for getting back a question or a slap into
the
> face like... "hey, that's your problem if u can't write in C++".
> I would appreciate much, if u thought like: there are persons which have
> other more important stuff to do than learning another programming
> language...
> I am performing my exams during these days and i have to learn for them...
>
> All i want is to publish my work to a far more spread public than only the
> owners of IDL.
>
> Thank you
>
>
Re: idl file conversion [message #31501 is a reply to message #31500] Tue, 23 July 2002 09:48 Go to previous message
Michael Ganzer is currently offline  Michael Ganzer
Messages: 5
Registered: July 2002
Junior Member
I see, i see
Seems that i have no choice left than just learn C++.

My program is about chaotic distribution of prime numbers in an
n-dimensional modulo-space... it's about creation of dependencies between
patterns and fragments in this space and i am using lots of lots of matrix
calculations, image processing algorithms and self written speed up
algorithms...
What i am afraid of is that i don't know about how intense the programming
effort time would be for self written conversion to C++ in regard to the
effective routines in IDL.

Anyways i do not have time right now to learn C++ but i have so many ideas
which are in my mind that i can't just write them down to a sheet of paper
and then wait until i understand everything in C++. I go deeper into the
prime number theory every time and what i could present to u probably
already would be worth a topic for a thesis. And that's what makes me
hesitate to publish my program code yet.

Even though for my program i am using a file of more than 500 MBytes,
containing the first 10 Billion prime numbers which i calculated with
another program a while ago. I couldn't find anyone else who is interested
in participation yet. I already almost eliminated all the for- and
while-loops being neccessary for some purpose, but i am afraid that in C++
they would be neccessary again.
Re: idl file conversion [message #31502 is a reply to message #31500] Tue, 23 July 2002 09:18 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Michael Ganzer wrote:
>
> My IDL program already has more than 9,000 lines!!!!! And because of that i
> am NOT going to rewrite it and overthink everything for C++...

good idea.

> Would u learn C++ if u were me just for putting stuff on a homepage or

Nope. I would post the IDL code.

> wouldn't u search for a way to compile it directly for Internet??!

What does that mean?

> I didn't write the text just for getting back a question or a slap into the
> face like... "hey, that's your problem if u can't write in C++".
> I would appreciate much, if u thought like: there are persons which have
> other more important stuff to do than learning another programming
> language...

I think you under/over-estimate the hassle/ease with which (any language) source code
conversion can be done. Without knowing what you code does, one assumes that it is an end
in itself, rather than something that produces numbers (otherwise, why bother? It would be
the numbers that are important, right?) Even if you could automatically convert IDL code
-> C/C++ code, as I said before, the quality of the code would be suspect. Is that what
you would want people to see from your hard work? Rather than think you're a good IDL
programmer, they might think you're a really lousy C/C++ one.

> All i want is to publish my work to a far more spread public than only the
> owners of IDL.

Then you should have taken that into account 9000 lines of code ago and not used IDL. And
don't forget that you would have to supply some way to build your application using the
various C/C++ incarnations out there...and test the code on different platforms, e.g.
Unix, linux, windows, Mac...etc. All that stuff is a lot of work in itself (even if you
already had C/C++ code to start with)

On the plus side, converting the code yourself pretty much guarantees you'll be a gun
C/C++ programmer. Can't hurt to have that on a CV. (Then again...maybe it can.... :o)

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC Beer is good.
Ph: (301)763-8000 x7274 My wife.
Fax:(301)763-8545
Re: idl file conversion [message #31503 is a reply to message #31502] Tue, 23 July 2002 09:11 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Michael Ganzer wrote:
>
> My IDL program already has more than 9,000 lines!!!!! And because of that i
> am NOT going to rewrite it and overthink everything for C++...
> I didn't want to have a comment saying that i shall rewrite it with C++, but
> i wanted help for finding a conversion program...
> So if u can only tell me that there is none, then ok.. but please don't try
> to tell me what i should do if u were me, when u don't know what this is all
> about...
>
> Would u learn C++ if u were me just for putting stuff on a homepage or
> wouldn't u search for a way to compile it directly for Internet??!
> I didn't write the text just for getting back a question or a slap into the
> face like... "hey, that's your problem if u can't write in C++".
> I would appreciate much, if u thought like: there are persons which have
> other more important stuff to do than learning another programming
> language...
> I am performing my exams during these days and i have to learn for them...
>
> All i want is to publish my work to a far more spread public than only the
> owners of IDL.
>
> Thank you

Dear Michael.

ok you have 9000 lines of code but you have nothing told us what's your
program is
doing. Why don't you like setting a link to the pro script? If you set a
nassi
diagram too people who knows C are able to understand a bit more what it
is going on.
May be they are interested in cross compiling.

Why do you like to do this work for them?

The other way is if it is not a widget you can place it on some of the
ion
servers (http://www.rsinc.com/ion/ionscript.cfm). May be your company
has one too.
You have experience whith java so it should be no problem to write the
widget again.
We can discuss if I know a bit more about the project to use probably
our ion server.

The problem with the cross compilation between quite different languages
is
that it could be difficult to get it work. The debugging
could be more difficulty as a new design of the routine for C.
Because normally a lot of the routines we have written for idl exist in
several
libraries for C. But the interface number of parameters and so on could
be different.
Someone who works in the same direction as you probably knows a lot of
this function.
For this person it could be very easy to help coding the project in C.

How much experience did you yourself have which such a thing you are
asking for?
Did you ever used such a program?


Reimar















--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: idl file conversion [message #31504 is a reply to message #31503] Tue, 23 July 2002 08:33 Go to previous message
Michael Ganzer is currently offline  Michael Ganzer
Messages: 5
Registered: July 2002
Junior Member
My IDL program already has more than 9,000 lines!!!!! And because of that i
am NOT going to rewrite it and overthink everything for C++...
I didn't want to have a comment saying that i shall rewrite it with C++, but
i wanted help for finding a conversion program...
So if u can only tell me that there is none, then ok.. but please don't try
to tell me what i should do if u were me, when u don't know what this is all
about...

Would u learn C++ if u were me just for putting stuff on a homepage or
wouldn't u search for a way to compile it directly for Internet??!
I didn't write the text just for getting back a question or a slap into the
face like... "hey, that's your problem if u can't write in C++".
I would appreciate much, if u thought like: there are persons which have
other more important stuff to do than learning another programming
language...
I am performing my exams during these days and i have to learn for them...

All i want is to publish my work to a far more spread public than only the
owners of IDL.

Thank you
Re: idl file conversion [message #31506 is a reply to message #31504] Tue, 23 July 2002 08:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Michael Ganzer wrote:
>
> Hi there...
>
> I am searching for a way of automatic creation of C++ code out of an IDL
> written .pro file... like writing in IDL but being able to transfer whole
> the program into C-code for being able to then compile it with a
> C-compiler...
> I was searching for such conversion programs, but all i found were
> rpm-packages or tar.gz files for linux...
> I do not have idl for linux, but only for Windows due to my studies in
> university..
> All i want is to be able to publish my work on my own homepage without the
> need of publishing whole the written IDL program text...
> My aim, that i would like to reach, is an executeable file for download
> purposes on my page... i even found a compromising IDL-to-Java conversion,
> but Java as interpreted language might be too slow for Internet as well (i
> remember my first semesters at university as we wrote applets and
> applications for presentation in Internet).
>
> I hope i could give u a clear thought of what i ment and i am waiting for
> your answers and suggestions... :-)
>
> Michael


Paul is right you should write your code directly in C/C++ or you can
start writing yourself a cross compiler.
The nassi (http://www.fz-juelich.de/zam/nassi/) to build
Nassi-Shneiderman diagrams
could be useful. If possible use a GNU compiler.



Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: idl file conversion [message #31507 is a reply to message #31506] Tue, 23 July 2002 07:53 Go to previous message
Michael Ganzer is currently offline  Michael Ganzer
Messages: 5
Registered: July 2002
Junior Member
Well... i have to handle IDL, Java, XML, PhP, Prolog and Miranda... i am not
willing to learn another language right now if u can understand me..
Re: idl file conversion [message #31508 is a reply to message #31507] Tue, 23 July 2002 07:41 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Michael Ganzer wrote:
>
> Hi there...
>
> I am searching for a way of automatic creation of C++ code out of an IDL
> written .pro file... like writing in IDL but being able to transfer whole
> the program into C-code for being able to then compile it with a
> C-compiler...

uhh...why don't you write it in C/C++ to start with then?

FWIW, my limited experience with automatically converting code from one language to
another usually produces code on the crappy side.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC Beer is good.
Ph: (301)763-8000 x7274 My wife.
Fax:(301)763-8545
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Linking multiple files...
Next Topic: IDL on OS X

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

Current Time: Fri Oct 10 11:34:03 PDT 2025

Total time taken to generate the page: 0.40226 seconds