Skip to content

Commit c568932

Browse files
committed
.
1 parent 736fc97 commit c568932

16 files changed

+25
-19
lines changed

atom.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<id>https://mt-caret.github.io/blog</id>
44
<title type="text">mt_caret&apos;s blog</title>
5-
<generator uri="https://github.com/mt-caret/blog-src" version="0abd9d2">blog-src</generator>
5+
<generator uri="https://github.com/mt-caret/blog-src" version="14870e6">blog-src</generator>
66
<updated>2025-02-02T00:00:00Z</updated>
77
<author>
88
<name>mt_caret</name>
@@ -1230,7 +1230,6 @@ href=&quot;https://github.com/mt-caret/blog-src&quot;&gt;on GitHub&lt;/a&gt;.&lt
12301230
<content type="html">
12311231
&lt;p&gt;These are some notes on putting together a &lt;code&gt;dune&lt;/code&gt; file for
12321232
creating a C executable which calls OCaml code.&lt;/p&gt;
1233-
&lt;!-- TODO: Add link to repository --&gt;
12341233
&lt;p&gt;The OCaml manual describes how to call OCaml code from C under the
12351234
section “Advanced example with callbacks” in the chapter “Interfacing C
12361235
with OCaml”, using the following invocations to
@@ -1287,6 +1286,9 @@ manually define rules to run the remaining steps:&lt;/p&gt;
12871286
&lt;div class=&quot;sourceCode&quot; id=&quot;cb6&quot;&gt;&lt;pre
12881287
class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;span id=&quot;cb6-1&quot;&gt;&lt;a href=&quot;#cb6-1&quot; aria-hidden=&quot;true&quot; tabindex=&quot;-1&quot;&gt;&lt;/a&gt;&lt;span class=&quot;ex&quot;&gt;$&lt;/span&gt; dune exec ./main.exe&lt;/span&gt;
12891288
&lt;span id=&quot;cb6-2&quot;&gt;&lt;a href=&quot;#cb6-2&quot; aria-hidden=&quot;true&quot; tabindex=&quot;-1&quot;&gt;&lt;/a&gt;&lt;span class=&quot;ex&quot;&gt;fib&lt;/span&gt;&lt;span class=&quot;er&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ex&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;kw&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;ex&quot;&gt;=&lt;/span&gt; Result is: 89 &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
1289+
&lt;p&gt;The full code is available in the &lt;a
1290+
href=&quot;https://github.com/mt-caret/calling-ocaml-from-c&quot;&gt;calling-ocaml-from-c&lt;/a&gt;
1291+
repository.&lt;/p&gt;
12901292
</content>
12911293
<link href="https://mt-caret.github.io/blog/2025-02-02-calling-ocaml-from-c-in-dune" rel="alternate"/>
12921294
</entry>

category/tech.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h1 class="title">category: tech</h1>
4646
<small>
4747
<a href="../index.html">index</a> |
4848
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
49-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
49+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
5050
</small>
5151
</article>
5252
</body>

category/uncategorized.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1 class="title">category: uncategorized</h1>
3434
<small>
3535
<a href="../index.html">index</a> |
3636
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
37-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
37+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
3838
</small>
3939
</article>
4040
</body>

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h1 class="title">blog</h1>
4545
<hr>
4646
<small>
4747
<a href="./atom.xml">atom</a>/<a href="./rss.xml">rss</a> |
48-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
48+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
4949
</small>
5050
</article>
5151
</body>

posts/2020-06-29-optin-state.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ <h1 id="darling-erasure">Darling Erasure</h1>
648648
<small>
649649
<a href="../index.html">index</a> |
650650
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
651-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
651+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
652652
</small>
653653
</article>
654654
</body>

posts/2020-07-25-ldap-client-with-nixos.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ <h1 id="wrapping-up">Wrapping Up</h1>
321321
<small>
322322
<a href="../index.html">index</a> |
323323
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
324-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
324+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
325325
</small>
326326
</article>
327327
</body>

posts/2020-08-07-jepsen-nixos-containers.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h1 class="title">Working Through the Jepsen Tutorial with a NixOS
181181
<small>
182182
<a href="../index.html">index</a> |
183183
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
184-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
184+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
185185
</small>
186186
</article>
187187
</body>

posts/2021-06-19-bootstrapping-nix-channels-in-nixos.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h1 class="title">Bootstrapping Nix channels in NixOS</h1>
182182
<small>
183183
<a href="../index.html">index</a> |
184184
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
185-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
185+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
186186
</small>
187187
</article>
188188
</body>

posts/2024-11-09-static-site-generation-in-dune.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h1 class="title">Static site generation in dune</h1>
139139
<small>
140140
<a href="../index.html">index</a> |
141141
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
142-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
142+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
143143
</small>
144144
</article>
145145
</body>

posts/2025-02-02-calling-ocaml-from-c-in-dune.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ <h1 class="title">Calling OCaml from C in dune</h1>
4242
<p>These are some notes on putting together a
4343
<code>dune</code> file for creating a C executable which
4444
calls OCaml code.</p>
45-
<!-- TODO: Add link to repository -->
4645
<p>The OCaml manual describes how to call OCaml code from C
4746
under the section “Advanced example with callbacks” in the
4847
chapter “Interfacing C with OCaml”, using the following
@@ -104,13 +103,16 @@ <h2 id="translating-to-dune">Translating to dune</h2>
104103
<div class="sourceCode" id="cb6"><pre
105104
class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> dune exec ./main.exe</span>
106105
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="ex">fib</span><span class="er">(</span><span class="ex">10</span><span class="kw">)</span> <span class="ex">=</span> Result is: 89 </span></code></pre></div>
106+
<p>The full code is available in the <a
107+
href="https://github.com/mt-caret/calling-ocaml-from-c">calling-ocaml-from-c</a>
108+
repository.</p>
107109
<script src="https://utteranc.es/client.js" repo="mt-caret/blog" issue-term="pathname" theme="github-light"
108110
crossorigin="anonymous" async></script>
109111
<hr>
110112
<small>
111113
<a href="../index.html">index</a> |
112114
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
113-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
115+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
114116
</small>
115117
</article>
116118
</body>

rss.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,6 @@ href="https://github.com/mt-caret/blog-src">on GitHub</a>.</p>]]>
12171217
<description>
12181218
<![CDATA[<p>These are some notes on putting together a <code>dune</code> file for
12191219
creating a C executable which calls OCaml code.</p>
1220-
<!-- TODO: Add link to repository -->
12211220
<p>The OCaml manual describes how to call OCaml code from C under the
12221221
section “Advanced example with callbacks” in the chapter “Interfacing C
12231222
with OCaml”, using the following invocations to
@@ -1273,7 +1272,10 @@ manually define rules to run the remaining steps:</p>
12731272
<p>And voila!</p>
12741273
<div class="sourceCode" id="cb6"><pre
12751274
class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> dune exec ./main.exe</span>
1276-
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="ex">fib</span><span class="er">(</span><span class="ex">10</span><span class="kw">)</span> <span class="ex">=</span> Result is: 89 </span></code></pre></div>]]>
1275+
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="ex">fib</span><span class="er">(</span><span class="ex">10</span><span class="kw">)</span> <span class="ex">=</span> Result is: 89 </span></code></pre></div>
1276+
<p>The full code is available in the <a
1277+
href="https://github.com/mt-caret/calling-ocaml-from-c">calling-ocaml-from-c</a>
1278+
repository.</p>]]>
12771279
</description>
12781280
<pubDate>Sun, 02 Feb 2025 00:00:00 GMT</pubDate>
12791281
</item>

tag/Jepsen.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1 class="title">tag: Jepsen</h1>
3636
<small>
3737
<a href="../index.html">index</a> |
3838
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
39-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
39+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
4040
</small>
4141
</article>
4242
</body>

tag/Nix.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1 class="title">tag: Nix</h1>
4242
<small>
4343
<a href="../index.html">index</a> |
4444
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
45-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
45+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
4646
</small>
4747
</article>
4848
</body>

tag/NixOS.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1 class="title">tag: NixOS</h1>
4242
<small>
4343
<a href="../index.html">index</a> |
4444
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
45-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
45+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
4646
</small>
4747
</article>
4848
</body>

tag/OCaml.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1 class="title">tag: OCaml</h1>
3636
<small>
3737
<a href="../index.html">index</a> |
3838
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
39-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
39+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
4040
</small>
4141
</article>
4242
</body>

tag/dune.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1 class="title">tag: dune</h1>
3636
<small>
3737
<a href="../index.html">index</a> |
3838
<a href="../atom.xml">atom</a>/<a href="../rss.xml">rss</a> |
39-
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/0abd9d2">0abd9d2</a>
39+
generated off rev <a href="https://github.com/mt-caret/blog-src/commit/14870e6">14870e6</a>
4040
</small>
4141
</article>
4242
</body>

0 commit comments

Comments
 (0)