<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keigoi</author_name>
  <author_url>https://blog.hatena.ne.jp/keigoi/</author_url>
  <blog_title>keigoiの日記</blog_title>
  <blog_url>https://keigoi.hatenadiary.org/</blog_url>
  <categories>
    <anon>OCaml</anon>
  </categories>
  <description>この記事は OCaml Advent Calendar 2012 の 18日目の記事です。OCamlでセッション型を実装した、というお話です。ちょっと時間がないので簡潔に書いています。 ソースはこちら セッション型 セッション型とは: 通信チャネルの型です プライベートな二者間のメッセージ送受信が整合していることを保証してくれます。(定義によっては多者間) 例えば let thread1 () = send c &quot;Hello&quot;; send c 123 という関数は文字列と整数をチャネルcに送るが (send c vはチャネルcに値vを送るプリミティブとする。以下同様)、 let thread2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkeigoi.hatenadiary.org%2Fentry%2F20121218%2Fsession_types_in_ocaml&quot; title=&quot; 最強OCamlでセッション型を実現 - keigoiの日記&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>2012-12-18 00:00:00</published>
  <title> 最強OCamlでセッション型を実現</title>
  <type>rich</type>
  <url>https://keigoi.hatenadiary.org/entry/20121218/session_types_in_ocaml</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
