Re: Using Clojure To Debug Java Apps

2011-07-14 Thread Johan Wirde
Yet another way you can get a repl into an existing process running on the JVM: https://github.com/wirde/swank-inject Disclaimer: It's a hack It uses JDI to connect to the process (requires remote debugging on the target, but no other modifications) Won't work well for some

Re: Swank-Inject Issue

2011-06-16 Thread Johan Wirde
Hi! I have only built on OSX so far which is why I haven't noticed this problem. Apparently the com.sun.jdi classes are packaged differently than on other platforms (there is no tools.jar on OSX). The best solution I could come up with involved using a new feature from lein 1.6.0-SNAPSHOT

Re: Type hinting question

2011-02-14 Thread Johan Wirde
On Java HotSpot: -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly You'll need quite a few iterations, and be wary of code with no observable effect (becomes subject to dead code elimination). As far as I could tell cast or no cast made no difference at all (in this particular case). /Johan