<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>const</author_name>
  <author_url>https://blog.hatena.ne.jp/const/</author_url>
  <blog_title>仮メモ</blog_title>
  <blog_url>https://const.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>PHP 8.3 で Randomizer に浮動小数点数のメソッドが追加される。 gh#9679 最小値、最大値と区間の開閉を表す enum IntervalBoundary (ClosedClosed, ClosedOpen, OpenClosed, OpenOpen) を指定して浮動小数点値の乱数を生成できる。当初この機能の実装では、区間の種類の判別を文字列比較して行っていた。 if (zend_string_equals_literal(bounds_name, &quot;ClosedOpen&quot;)) というのも pure enum を高速に比較する手段が今のところなく、名前を比較するしかないらし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fconst.hatenadiary.jp%2Fentry%2F2023%2F01%2F11%2F201215&quot; title=&quot;PHP 8.3 で Randomizer に追加される float 取得関数の区間判別の実装 - 仮メモ&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-11 20:12:15</published>
  <title>PHP 8.3 で Randomizer に追加される float 取得関数の区間判別の実装</title>
  <type>rich</type>
  <url>https://const.hatenadiary.jp/entry/2023/01/11/201215</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
