Re: Visual Studio 2005

Tech-Archive recommends: Speed Up your PC by fixing your registry



Mads Peter Nymand <madspeter@xxxxxxxxxx> wrote:
Thanks a lot for your answer Jon, that cleared things up pretty well.

The .NET framework is better organised than Java in terms of the
standard library being broken up into separate units of functionality.
If you don't need anything to do with System.Messaging, why make either
the compiler or the runtime load that assembly?

I see your point. Does the Java compiler and runtime have to load the
hole standard library (rt.jar) everytime you compile and run a java
program? If this is the case, it doesn't seem optimal. I always thought
that Java only loaded the packages specified in the import statements.

No - the import statement is only the equivalent of the "using"
directive in C#. It's just a namespace issue.

Now, I don't know the extent to which the Java runtime loads the whole
standard library. I'm sure it loads the index telling it which classes
are available and where within the jar file. My guess is that it then
memory maps the file and accesses the classes it needs as it needs
them.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: progress indicator window with Stop button
    ... The calling code has to pass gets a buffer to write to, but gets will continue writing to that buffer until it reaches a newline. ... Java 1.5's major classfile version is 49. ... restarted, double-clicked the jar file, and... ... the 1.5 or 1.6 compiler to produce class files in the 1.4 classfile format, but that doesn't guarantee that the compiled code doesn't call methods that didn't exist - for that, you need to compile against a 1.4 runtime library, which the compiler -source and -target arguments don't do. ...
    (comp.lang.java.programmer)
  • Re: Visual Studio 2005
    ... standard library being broken up into separate units of functionality. ... the compiler or the runtime load that assembly? ... Does the Java compiler and runtime have to load the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cpp Considered Harmful
    ... >> programming language, the compiler, the IDE, the libraries, etc. ... source file, the implementation shall locate the declaration, (and ... to name one of the defining source files on the command line that initiates ... The counterpart to this in Java is accomplished using the following: ...
    (comp.lang.cpp)
  • Re: wie Array für statische Methoden
    ... > auf gar keinen Fall Java empfehlen;) ... Ich hab mal mit virtuellen Methoden auf einem Microkontroller experimentiert und bin zu dem Schluss gekommen: ... > Es ist ja gerade der Vorteil bei Java einen Compiler ... > Dinge zu optimieren, ...
    (de.comp.lang.java)
  • Re: What is the fastest method of parsing scheme?
    ... These issues can be eliminated by the use of custom memory allocators ... Any other ideas why Scheme would be faster than C++ and Java for heap ... For example, in my compiler, the procedure ) ...
    (comp.lang.scheme)