Skip to content

An expedition into low-level JVM bytecode inspired by "Hexing the Technical Interview".

License

Notifications You must be signed in to change notification settings

samlindsaylevine/bytecode-madness

Repository files navigation

This is a silly experiment, just for the joy of it, based on Hexing the Technical Interview.

In that story, an interviewee implements an algorithm, not in Java or in Clojure, but by a raw byte array that represents a JVM class file, and is dynamically loaded at runtime. (But with more poetry, and more eldritch.)

This was such a crazy and ludicrous thing to do that I had to try it myself and see if I could do it.

Indeed, I was able to hand-craft the class file structure, working from the docs, and hand-implement the machine code. Whee! A sane reference implementation of the method is also provided, along with unit tests that validate the identical behavior of both.

Tests

About

An expedition into low-level JVM bytecode inspired by "Hexing the Technical Interview".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages