Java 5 generics provide information that’s useful for many classworking applications. This article shows how the ASM Java bytecode manipulation framework offers flexible access to generics information without going through the Java classloading process. Along the way, It looks deeper into the representation of generics in the binary class format.
ASM should only be associated with assembly.
I resent having the acronym ASM being associated with something as uncool and not hardware related as Java. It makes me think that this is more Java hype to make people think manipulating bytecode is somehow similar and on par to actual machine code. Like Java is still fishing to be respected (and using “by association tactics” to achieve this). Any other name would have been more respectable.
Java bytecode is a form of machine code and it can be made to run on hardware instead of VMs! So ASM and java bytecode are very much related.
As for the coolness/uncoolness of java bytecode, I think you need to have a look at the BCEL project first.
I agree.. From the tried and tested vmware, to the up an coming Xen project we’re going to see the definition of ‘machine’ language change.
With increased virtualisation (especially cross platform stuff – consider Rosetta too) we’ll see binaries running on non native platforms – just like the Java VM.
Virtualisation is not the answer. It’s what limits us. We need to achieve portability by specialisation instead of using monolithic solutions such as bytecode or VM’s. We already have tons of machine languages. Adding a virtual bytecode that isn’t even attached to a machine only serves to compound the problem.
By specialisation, I mean to expand the idea of what OS were supposed to provide. What needs to be done is have a better standard than POSIX or whatever else is out there.
We’re heading in the wrong direction. I sure won’t be following the pack as it jumps into the ocean. And please don’t confuse hardware virtualisation with software virtualisation. They are two very different things although they share the same name.