Skip to main content

Will there be an "OpenJava Internals" book?

4 replies [Last post]
leouser
Offline
Joined: 2005-12-12
Points: 0

Source code is fun but its also fun to have an idea of what the purpose of something is. Which leads me to asking, when the source hits the streets in its new open clothing, will there be a corresponding effort to explain the source? I would think having something to learn from would help new members of the community get a jump start. I don't know what would be needed or even warranted. Maybe something small, maybe even something larger like a book?

thoughts?
leouser

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
atripp
Offline
Joined: 2003-07-15
Points: 0

> An internals book is a great idea, but I don't think
> we can write one right now. :-(
>
> One thing that might be helpful is for developers to
> give us some idea of what internals docs would be
> really useful? I can't promise we'll be able to
> create detailed works, but engineers do blog. So what
> would be good to learn about?
>
> -Ray

I'd like to see a full book similar to the OReilly "Understanding the Linux Kernel" book (as one example).

Off the top of my head, maybe a structure like this:

1. Javac
a. Intro: the JLS
b. Lexer
c. Parser
d. Bytecode generation
e. Accessing javac info from your program
2. JVM
a. Bytecode interpretation
b. hotspot
c. class loading
d. JNI
3. The class libraries
a. Overall structure
b. java.lang
c. Swing and AWT
d. java.util
....and so on...

4. Building and deploying Java
a. Licensing issues and Getting the code
d. Source code structure
c. How to compile
d. How to contribute changes back to Sun

leouser
Offline
Joined: 2005-12-12
Points: 0

geesh, maybe there needs to be not just one book but many. That or the one book could end up being large. I wonder if many people would be satisfied with 20 pages about the VM. I suspect the subject is larger than that.

OpenJava Internals: The VM and the Tools
OpenJava Internals: The Class Libraries

leouser

ray_gans
Offline
Joined: 2004-11-12
Points: 0

An internals book is a great idea, but I don't think we can write one right now. :-(

One thing that might be helpful is for developers to give us some idea of what internals docs would be really useful? I can't promise we'll be able to create detailed works, but engineers do blog. So what would be good to learn about?

-Ray

leouser
Offline
Joined: 2005-12-12
Points: 0

My initial guess would be that the VM is a good candidate in general. The JDK I think is simpler to comprehend given that its the thing Java developers use and may even have a long time relationship by reading the src in the src.zip file. Now the VM on the other hand... what is this stuff? I was just peeking at some Solaris VM cpp files and while the source is interesting to look at, its still mysterious. Where is the runtime compiler code located(for example)?

Eventually, when more of the JDK is released the under the hoods stuff would be good. For example, Chris Campbell could blog and explain the SurfaceData class and what the heck are all these pipes and renderers doing in it. Maybe even write about how best to experiment with the OpenGL pipeline he is so fond of writing about.

Blogging about this stuff should be aggregated maybe even catergorized. My guess is that this link would be a good home for such a thing:
http://community.java.net/jdk/opensource/

BH