« May 2006 »
SunMonTueWedThuFriSat
 
2
3
4
6
7
8
9
10
11
14
15
19
20
22
23
24
25
26
27
28
29
30
31
   
       
Today
XML

Blog::Navigation

GetJava Download Button
Get the Source
Personal Blog

Blog::Referers

Today's Page Hits: 1091

Powered by Roller Weblogger.
« Previous day (May 19, 2006) | Main | Next day (May 21, 2006) »
20060521 Sunday May 21, 2006

JavaOne 2006, May 18 and May 19

Sorry about not being able to write on the next day - as I was doing for the first 2 days. Reasons:

Anyway, here is the summary of the last 2 days:

Thursday - May 18

I attended the following talks/BOFs:

Dynamically Typed languages on the Java platform

Gilad Bracha talked about invokedynamic and how that could be useful when compiling dynamically typed languages to JVM bytecodes. The terminology "dynamic languages" is wrong ("With statically typed languages everything is static so that nothing moves?" - as usual Gilad spoke well!). "dynamically typed languages" is the correct way of speaking.

Summary: JVM's invoke instructions [invokeinterface (calling interface methods), invokestatic (call static methods), invokespecial (used to call private methods, constructors), invokevirtual (invoke any other method)] require method signature and target class (or interface) to be specified. But, when operating with dynamic types, you would know what types are to be used. invokedynamic would accept such "typeless" method spec. (just method name) and search appropriate method at each invocation. When matching method is not found a user specified handler will be called -- which can receive some reflective parameter to specify callsite and method called. Also, in the context of the JSR 292 more flexible hotswap will be investigated (for dynamically typed languages).

Secure coding Anti-patterns: Avoiding vulnerabilities

Nice talk that summarized important anti-patterns to watch out while writing secure code. One important example I liked: do not assume that after throwing exception from constructor (may be after checking for security) will make the object useless. The user can extend the class, define finalize() method and resurrect the partially constructed (unsecure) instance from there. And then, user code can call instance methods -- which assumed that security check has been done already by constructor. Solution is to check a flag in every sensitive instance method - the flag should be initialized by the constructor after security check is successful.

One minor comment about this talk : I had to sit in overflow room and the video quality was poor. Folks in overflow room couldn't see the speakers properly!

Solaris Dynamic Tracing (DTrace) and Java Technology

This is DTrace talk. I liked (and was amazed!) at the way Jarod Jenson was typing D-scripts and Adam followed him to explain the scripts!. This is one of the talks where you have to be physically present to fully appreciate/enjoy the talk (like the Click and Hack, the Type-It brothers talk).

Memory Leaks in Java(TM) Technology-Based Applications: Different Tools for Different Types of Leaks

The speaker explained that there are two ways to detect memory leaking:

  1. Using heap walkers, memory dumpers/analyzers. i.e., using snapshot heap analysis.
  2. Using bytecode instrumentation (BCI) to instrument classes (like the NetBeans profiler

The speaker explained how to use the object "age" (the number of garbage collections the object survived) to detect slow memory leaks. Nice talk.

Using the tools in JDK 5 and Java SE 6 Platform to diagnose problems and monitor applications

I spoke in this BOF along with Alan Bateman and Kelly O'Hair. So, I should not be evaluating the talk ;-) We had starting trouble in this talk - mostly due to my fault. I'm sorry :-(

We covered the serviceability tools, in particular jhat in depth.

Friday - May 19

I could participate in only one talk in which I spoke - "scripting for the Java platform". Mike Grogan explained what JSR 223 is all about.

I covered the implementation aspects:

After the scripting talk, I had to run to the airport to catch my evening flight. I am back to Chennai. Still having jet lag and writing this blog at 11.30 PM :-)



( May 21 2006, 11:27:40 PM IST ) Permalink Comments [2] del.icio.us | furl | simpy | slashdot | technorati | digg

Copyright (C) 2005, A. Sundararajan's Weblog