<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged graalvm</title>
<link>https://ask.clojure.org/index.php/tag/graalvm</link>
<description></description>
<item>
<title>Cannot invoke &quot;clojure.lang.Var.isBound()&quot; because &quot;clojure.lang.Compiler.LOADER&quot; is null, potential bug?</title>
<link>https://ask.clojure.org/index.php/13819/cannot-clojure-isbound-because-clojure-compiler-potential</link>
<description>&lt;p&gt;As per &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojurians.slack.com/archives/C03S1KBA2/p1713446287942589&quot;&gt;discussion&lt;/a&gt; on slack I'm posting here the findings regarding clojure.lang.Compiler.LOADER being null during the analysis phase of GraalVM native-image run.&lt;/p&gt;
&lt;p&gt;The full reproduction can be found &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/FieryCod/graalvm-repro&quot;&gt;here&lt;/a&gt; and the link to issue on Oracle GraalVM side &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/oracle/graal/issues/8801&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is this issue about?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Native Image cannot be produced and throws an error during analysis phase when Clojure 1.11.2 (although the previous version of Clojure might be also affected) is used and reflection entries for java.lang.UUID and clojure.lang.Keyword are present in &lt;code&gt;reflectionconfig.json&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I can't however reproduce the error prior to Clojure 1.9.0. For more information please kindly take a look into a repro.&lt;/p&gt;
</description>
<category>Compiler</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13819/cannot-clojure-isbound-because-clojure-compiler-potential</guid>
<pubDate>Thu, 18 Apr 2024 16:11:35 +0000</pubDate>
</item>
<item>
<title>Request: AOT-compile clojure.spec with clojure 1.10.3 rather than clojure 1.10.1</title>
<link>https://ask.clojure.org/index.php/11313/request-compile-clojure-spec-with-clojure-rather-than-clojure</link>
<description>&lt;p&gt;The clojure.spec.test.alpha namespace in clojure.spec &lt;code&gt;0.3.214&lt;/code&gt; namepace is still AOT-compiled using the locking macro from clojure 1.10.1:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;clojure.version&amp;gt;1.10.1&amp;lt;/clojure.version&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/spec.alpha/blob/a924efab53b0465f7d2a589d4ae3c79a3826403b/pom.xml#L39&quot;&gt;https://github.com/clojure/spec.alpha/blob/a924efab53b0465f7d2a589d4ae3c79a3826403b/pom.xml#L39&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/spec.alpha/blob/a924efab53b0465f7d2a589d4ae3c79a3826403b/src/main/clojure/clojure/spec/test/alpha.clj#L363&quot;&gt;https://github.com/clojure/spec.alpha/blob/a924efab53b0465f7d2a589d4ae3c79a3826403b/src/main/clojure/clojure/spec/test/alpha.clj#L363&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This old locking macro is troublesome with GraalVM native image. See CLJ-1472.&lt;/p&gt;
&lt;p&gt;I think if you compile clojure.spec with clojure 1.10.3 then you can just keep using locking and the old locking2 workaround can be removed over here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/spec.alpha/blob/a924efab53b0465f7d2a589d4ae3c79a3826403b/src/main/clojure/clojure/spec/gen/alpha.clj#L17&quot;&gt;https://github.com/clojure/spec.alpha/blob/a924efab53b0465f7d2a589d4ae3c79a3826403b/src/main/clojure/clojure/spec/gen/alpha.clj#L17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;An alternative solution would be to also use the locking2 macro in clojure.spec.test.alpha.&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11313/request-compile-clojure-spec-with-clojure-rather-than-clojure</guid>
<pubDate>Wed, 24 Nov 2021 20:58:42 +0000</pubDate>
</item>
<item>
<title>GraalVM for ARM (Raspberry Pi)</title>
<link>https://ask.clojure.org/index.php/8339/graalvm-for-arm-raspberry-pi</link>
<description>&lt;p&gt;Hello everyone! I think I already know the answer but I would like confirmation. I don't see the possibility to download the binaries for ARM in Oracle. Is there any possibility to use GraalVM in Raspberry Pi or similar architectures? Thank you!&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8339/graalvm-for-arm-raspberry-pi</guid>
<pubDate>Tue, 06 Aug 2019 06:46:53 +0000</pubDate>
</item>
</channel>
</rss>