<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tedd707</author_name>
  <author_url>https://blog.hatena.ne.jp/tedd707/</author_url>
  <blog_title>ITエンジニアが仕事に対して思うこと</blog_title>
  <blog_url>https://pythonjp.ikitai.net/</blog_url>
  <categories>
  </categories>
  <description>**** 皆さん、こんにちは。今回は、C言語とRubyを連携させ、高いパフォーマンスと柔軟性を同時に実現する方法についてお伝えします。C言語の力強い計算機能とRubyのエレガントなスクリプティングを融合させ、開発の可能性を広げましょう。 1. C言語の関数をRubyから呼び出す 最初に、C言語で書かれた関数をRubyから呼び出す例を見てみましょう。これにはRubyのFFI（Foreign Function Interface）を使用して、C言語の関数を呼び出します。 C言語のコード (example.c) #include &lt;stdio.h&gt; void helloFromC() { print…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpythonjp.ikitai.net%2Fentry%2F2024%2F01%2F31%2F180000&quot; title=&quot;C言語とRubyの連携: パフォーマンスと柔軟性の共存 - ITエンジニアが仕事に対して思うこと&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>2024-01-31 18:00:00</published>
  <title>C言語とRubyの連携: パフォーマンスと柔軟性の共存</title>
  <type>rich</type>
  <url>https://pythonjp.ikitai.net/entry/2024/01/31/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
