manifold
manifold copied to clipboard
Compatibility with graal native-image
trafficstars
Trying to use manifold downstream with graal's native-image using a patched for CLJ-1472 clojure yields an error with locking:
Syntax error (IllegalArgumentException) compiling fn* at (manifold/deferred.clj:456:5).
Cannot assign to non-mutable: mta
A similar issue with core.memoize reimplemented in Java. Will attempt to rewrite SuccessDeferred in Java to see if this fixes compatibility.
Additional uses of locking may require similar fixes.
Does this still happen with the Clojure 1.10.2 test release? There were a few different patches that tried to fix this issue. Do you have a reproducing test case for this?
@willcohen Do you have a test case and a Clojure version for this error?