<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>Algebraic Effects</anon>
    <anon>言語処理系</anon>
  </categories>
  <description>前回のコードをベースに「任意のExtensionハンドラを変更なしで組み合わせて作る」Composable Interpreterを実装する。 問題 前回のコードの何がComposabilityを阻害していたかというとインタプリタを拡張するハンドラが、拡張前のインタプリタ関数を使っている点だ。 例えばhandler2を見ると： let rec handler2 : 'a. 'a D.effect_handler = { D.effc = fun (type b) (eff : b Effect.t) -&gt; match eff with | Extension (Mul(e1,e2)) -&gt; S…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2023%2F01%2F05%2F202652&quot; title=&quot;OCaml 5.0のEffect HandlersでComposable Interpreter - Arantium Maestum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-05 20:26:52</published>
  <title>OCaml 5.0のEffect HandlersでComposable Interpreter</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2023/01/05/202652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
