jvm 2021-09-16

Anyone have recommendations for introductory content on jvm bytecode?

Alex Miller (Clojure team) 2021-09-16T16:05:33.001500Z

there is not a lot out there. there are some very old books. I have the one by Downing and Meyer from 1997 (!!) and still find it to be a useful reference

Alex Miller (Clojure team) 2021-09-16T16:06:30.002400Z

obviously stuff has been added since then, but surprisingly little

Alex Miller (Clojure team) 2021-09-16T16:07:26.002700Z

and the jvm spec is pretty good of course

👍 1

Agreed. The spec is pretty readable

Looking at some bytecode manipulation library can also be helpful

Alex Miller (Clojure team) 2021-09-16T16:11:36.003200Z

yeah, something like asm docs may be just as useful

Alright. I have some friends that have suggested a couple articles, but the jvm spec chapter 2 is the main place people are pointing me to.

And asm docs would be good. The library I'm looking at using for my needs for it is insn, which wraps asm

Alex Miller (Clojure team) 2021-09-16T16:19:43.004900Z

probably the best way to learn is to use javap to dump some bytecode then walk through it line by line with reference materials and write a translation

👍 1

Yeah, no.disassemble I've also heard is good

Alex Miller (Clojure team) 2021-09-16T16:30:13.005600Z

sure, same thing