<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmtms</author_name>
  <author_url>https://blog.hatena.ne.jp/tmtms/</author_url>
  <blog_title>tmtms のメモ</blog_title>
  <blog_url>https://blog.tmtms.net/</blog_url>
  <categories>
    <anon>MySQL</anon>
    <anon>Ruby</anon>
    <anon>mruby</anon>
  </categories>
  <description>昨日はmrubyでMySQLのUDFを作ってみたんだけど、関数毎にCのプログラムを書くのがめんどくさいので、簡単なツールを作ってみた。 github.com 詳しくは README 参照。 fib.rb と fib.spec をこんな感じで作っておいて、 fib.rb LONG_LONG_MAX = 9223372036854775807 def fib(n) b = 1 c = 0 n.times do a, b = b, c c = a + b raise 'Overflow' if c &gt; LONG_LONG_MAX end c end fib.spec MrubyUdf.functio…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F202005%2Fmrubyudf&quot; title=&quot;mrubyudf : C を書かずに Ruby だけで MySQL の UDF を作る - tmtms のメモ&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>2020-05-02 23:52:31</published>
  <title>mrubyudf : C を書かずに Ruby だけで MySQL の UDF を作る</title>
  <type>rich</type>
  <url>https://blog.tmtms.net/entry/202005/mrubyudf</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
