Andrei Zhabinski

Results 180 comments of Andrei Zhabinski

Indeed, both - `ForwardDiff.derivative(ℓ, 0.2)` and `FiniteDiff.finite_difference_derivative(ℓ, 0.2)` work well and return the same answer (`5.0`). I must admit at least for this specific example experience with `ForwardDiff` was very...

Caching results from reflection API sounds promising! I also have some progress on a generated functions approach in `high-level-macro` branch, but still not sure this will work well in practice.

JVM internals aren't that elegant, sometimes you really, really want to call a very specific method. For example, in Spark.jl I once encountered two methods of the same object with...

> by adding jdcall, we could achieve chain call like this First of all, this looks really great! Having said that, I still think you and @zot work on a...

By the way, regarding method signatures with different return types: ``` // A.java class A { public Object foo() { return true; } } // B.java class B extends A...

We may also encounter issues with this piece: ``` eval(:(function jdcall_cached(base::Union{JavaObject{$(QuoteNode(C))}, Type{JavaObject{$(QuoteNode(C))}}}, ::Val{$(QuoteNode(Symbol(name)))}, $(params_julia...)) jcall(base, $name, $rettype, $argstype, $(args_julia...)) end)) ``` if we try to use newly defined method at...

I tested it on v0.7.8, but v0.8.0rc-1 gives the same result anyway: ```julia julia> jcall(obj, "hello", JString, (JString,), "Bob") Exception in thread "main" java.lang.NoSuchMethodError: hello ERROR: JavaCall.JavaCallError("Error calling Java: java.lang.NoSuchMethodError:...

Not really. I will try it with the standard `ClassLoader`.

Nope, the same error. Self-containing example ```julia using JavaCall const JFile = @jimport java.io.File const JToolProvider = @jimport javax.tools.ToolProvider const JJavaCompiler = @jimport javax.tools.JavaCompiler const JInputStream = @jimport java.io.InputStream const...

But isn't `FindClass` only needed to locate and load the class? I thought after loading a class is self-containing, including all information required by JNI to work properly. Would it...