{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F10%2F14%2F005653\" title=\"Ruby FFI \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2017-10-14 00:56:53","blog_title":"Camera Obscura","blog_url":"https://obelisk.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/obelisk2/","categories":["Ruby","C\u8a00\u8a9e","\u6570\u5b66"],"height":"190","width":"100%","description":"\u3053\u308c\u307e\u3067 Ruby \u3068 C\u8a00\u8a9e\u3067\u300c\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u300d\u3092\u66f8\u3044\u305f\u306e\u3067\u3001Ruby FFI \u3067\u878d\u5408\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002Ruby FFI \u3067\u7c21\u5358\u306b Ruby \u304b\u3089 C\u8a00\u8a9e\u306e\u95a2\u6570\u3092\u547c\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Linux Mint 18.2, Ruby 2.3.3 \u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002Ruby FFI \u3092\u4f7f\u3046\u306b\u306f libffi \u304c\u5fc5\u8981\u3067\u3059\u304c\u3001Linux Mint \u306b\u306f\u6700\u521d\u304b\u3089\u5165\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3042\u3068\u3001RubyGem 'ffi' \u304c\u5fc5\u8981\u306a\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4e0b\u3055\u3044\u3002\u307e\u305a C\u8a00\u8a9e\u306e\u30bd\u30fc\u30b9\u3002 eratosthenes1.c #include <math.h> int sieve(int max, int *a) { int i, \u2026","provider_url":"https://hatena.blog","image_url":null,"type":"rich","version":"1.0","url":"https://obelisk.hatenablog.com/entry/2017/10/14/005653","author_name":"obelisk2","provider_name":"Hatena Blog","title":"Ruby FFI \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9"}