jvm

2021-09-16T15:52:00.000700Z

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
Ben Sless 2021-09-16T16:09:27.002800Z

Agreed. The spec is pretty readable

Ben Sless 2021-09-16T16:11:18.002900Z

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

2021-09-16T16:12:52.003700Z

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.

2021-09-16T16:13:30.004100Z

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:15:18.004300Z

https://asm.ow2.io/asm4-guide.pdf

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
2021-09-16T16:22:28.005400Z

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

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

sure, same thing