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

Home » Public Forums » archive » Re: idl bytecode
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 bytecode [message #52633] Mon, 19 February 2007 07:19
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
JD,
Good point, haven't thought of that.

Haje

"JD Smith" <jdsmith@as.arizona.edu> wrote in message
news:pan.2007.02.17.01.13.04.913158@as.arizona.edu...
> On Fri, 16 Feb 2007 08:13:37 -0500, Haje Korth wrote:
>
>> In IDL you do not need a byte code file to run a program. When you run a
>> program it is first compiled into memory and then executed. As Craig
>> pointed out there is a possibility to create SAVE files which can among
>> other things contain byte code. Unless you have code you don't want
>> others
>> to see, save files are in my opinion a rather impractical way for
>> distributing code.
>
> The other time when bytecode is convenient is to package all your
> dependencies into one file which is guaranteed not to conflict with
> various other tools broken inclusion of AstroLib/MPFit/etc. (I know
> people have 5 versions of MPFit from ~2000 via recent releases of
> tools which "bundle" it -- ouch). If everything is in a single sav,
> and they load it, they'll be in fine shape.
>
> JD
>
Re: idl bytecode [message #52648 is a reply to message #52633] Fri, 16 February 2007 17:13 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 16 Feb 2007 08:13:37 -0500, Haje Korth wrote:

> In IDL you do not need a byte code file to run a program. When you run a
> program it is first compiled into memory and then executed. As Craig
> pointed out there is a possibility to create SAVE files which can among
> other things contain byte code. Unless you have code you don't want others
> to see, save files are in my opinion a rather impractical way for
> distributing code.

The other time when bytecode is convenient is to package all your
dependencies into one file which is guaranteed not to conflict with
various other tools broken inclusion of AstroLib/MPFit/etc. (I know
people have 5 versions of MPFit from ~2000 via recent releases of
tools which "bundle" it -- ouch). If everything is in a single sav,
and they load it, they'll be in fine shape.

JD
Re: idl bytecode [message #52660 is a reply to message #52648] Fri, 16 February 2007 05:13 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
In IDL you do not need a byte code file to run a program. When you run a
program it is first compiled into memory and then executed. As Craig pointed
out there is a possibility to create SAVE files which can among other things
contain byte code. Unless you have code you don't want others to see, save
files are in my opinion a rather impractical way for distributing code.

haje


<skymaxwell@gmail.com> wrote in message
news:1171602286.624414.51920@l53g2000cwa.googlegroups.com...
> seems IDL like Java interpritator language
> all IDL programs run in IDL VM
>
> so where is bytecode files (in Java it's files with .class
> extension) ? or how happened run process ?
>
Re: idl bytecode [message #52662 is a reply to message #52660] Thu, 15 February 2007 22:03 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"skymaxwell@gmail.com" <skymaxwell@gmail.com> writes:
> seems IDL like Java interpritator language
> all IDL programs run in IDL VM
>
> so where is bytecode files (in Java it's files with .class
> extension) ? or how happened run process ?

One can save IDL byte code in SAVE files. However, this data is said
to be encrypted now. Most commonly byte code is stored transiently
within the memory of the current session, and is re-compiled from
source for each session.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Retrieving variables from a subroutine
Next Topic: Re: contour on map

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

Current Time: Thu Oct 09 09:17:10 PDT 2025

Total time taken to generate the page: 1.03788 seconds