summaryrefslogtreecommitdiffstats
path: root/site/posts/Coqffi.org
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-12-10 14:15:24 +0100
committerThomas Letan <lthms@soap.coffee>2020-12-10 14:15:24 +0100
commit2706544cf000a6f9875e81f86d885d4dc68dfb23 (patch)
tree5c1cf8ce1f5704dabef5e55353a3f9196894eb1a /site/posts/Coqffi.org
parentAdvertise the version of compcert used to build this article (diff)
Add a Series on coqffi, and the first literate program of this blog
Diffstat (limited to 'site/posts/Coqffi.org')
-rw-r--r--site/posts/Coqffi.org17
1 files changed, 17 insertions, 0 deletions
diff --git a/site/posts/Coqffi.org b/site/posts/Coqffi.org
new file mode 100644
index 0000000..7937901
--- /dev/null
+++ b/site/posts/Coqffi.org
@@ -0,0 +1,17 @@
+#+BEGIN_EXPORT html
+<h1>A Series on <code>coqffi</code></h1>
+#+END_EXPORT
+
+~coqffi~ generates Coq FFI modules from compiled OCaml interface
+modules (~.cmi~). In practice, it greatly reduces the hassle to mix
+together OCaml and Coq modules within the same codebase, especially
+when used together with the ~build~ build system.
+
+- [[./CoqffiIntro.org][~coqffi~ in a Nutshell]] ::
+ For each entry of a ~cmi~ file, ~coqffi~ tries to generate an
+ equivalent (from the extraction mechanism perspective) Coq
+ definition. In this article, we walk through how ~coqffi~ works.
+- [[./CoqffiEcho.org][Implementing an Echo Server in Coq with ~coqffi~]] ::
+ In this tutorial, we will demonstrate how ~coqffi~ can be used to
+ implement an echo server, /i.e./, a TCP server which sends back
+ any input it receives from its clients.