{"id":25887,"date":"2014-12-12T20:36:53","date_gmt":"2014-12-12T11:36:53","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=25887"},"modified":"2014-12-12T20:36:53","modified_gmt":"2014-12-12T11:36:53","slug":"streem","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/streem\/","title":{"rendered":"Ruby\u4f5c\u8005Matz\u4f1d\u8aac\u7b2c2\u7ae0\u3001\u65b0\u8a00\u8a9e\u300cStreem\u300d\u59cb\u307e\u308b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/12\/Imatz_streem.png\" alt=\"Matz streem\" title=\"matz_streem.png\" border=\"0\" width=\"546\" height=\"218\" \/><\/p>\n<p>\u4e16\u754c\u7684\u306b\u3082\u6709\u540d\u306aRuby\u306e\u4f5c\u8005Matz\u3053\u3068\u307e\u3064\u3082\u3068\u3086\u304d\u3072\u308d\u6c0f\u306e\u65b0\u3057\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300c<a href=\"https:\/\/github.com\/matz\/streem\">Streem<\/a>\u300d\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304cGitHub\u3067\u516c\u958b\u3055\u308c\u3001\u6ce8\u76ee\u3092\u6d74\u3073\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8aac\u660e\u306b\u3088\u308b\u3068Streem\u3068\u306f\u300c\u30b9\u30c8\u30ea\u30fc\u30e0\u30d9\u30fc\u30b9\u306e\u4e26\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u300d\u3002\u30b7\u30a7\u30eb\u3068\u4f3c\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e2\u30c7\u30eb\u3092\u57fa\u790e\u3068\u3057\u3066\u3001Ruby\u3084Erlang\u3084\u305d\u306e\u4ed6\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u611f\u5316\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u30b7\u30f3\u30d7\u30eb\u306acat\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\nSTDIN | STDOUT\n<\/pre>\n<p>\u3055\u3089\u306bFizzBuzz\u554f\u984c\u306f\u3053\u306e\u3088\u3046\u306b\u3002<\/p>\n<pre>\nseq(100) | {|x|\n if x % 15 == 0 {\n   \"FizzBuzz\"\n }\n else if x % 3 == 0 {\n   \"Fizz\"\n }\n else if x % 5 == 0 {\n   \"Buzz\"\n }\n else {\n   x\n }\n} | STDOUT\n<\/pre>\n<p>\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u306d\u3002\u30d1\u30a4\u30d7\u3067\u3064\u306a\u3052\u308b\u3068\u3053\u308d\u304c\u30b7\u30a7\u30eb\u3063\u307d\u3044\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/12\/Istreem.png\" alt=\"Streem\" title=\"streem.png\" border=\"0\" width=\"546\" height=\"240\" \/><\/p>\n<p>\u4eca\u306e\u3068\u3053\u308d\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u3001lex.l\u3068parse.y\u3057\u304b\u306a\u304f\u3001\u304b\u306a\u308a\u958b\u767a\u306e\u521d\u671f\u6bb5\u968e\u306e\u3088\u3046\u3067\u3059\u304c\u3001\u300c\u3042\u306eMatz\u6c0f\u304c\u65b0\u3057\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\uff01\uff1f\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u6ce8\u76ee\u5ea6\u306f\u304b\u306a\u308a\u9ad8\u3044\u3067\u3059(<a href=\"https:\/\/news.ycombinator.com\/item?id=8735892\">Hacker News<\/a>\u3001<a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/2oz4el\/streem_prototype_of_stream_based_programming\/\">Reddit<\/a>)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u754c\u7684\u306b\u3082\u6709\u540d\u306aRuby\u306e\u4f5c\u8005Matz\u3053\u3068\u307e\u3064\u3082\u3068\u3086\u304d\u3072\u308d\u6c0f\u306e\u65b0\u3057\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cStreem\u300d\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304cGitHub\u3067\u516c\u958b\u3055\u308c\u3001\u6ce8\u76ee\u3092\u6d74\u3073\u3066\u3044\u307e\u3059\u3002 \u8aac\u660e\u306b\u3088\u308b\u3068Streem\u3068\u306f\u300c\u30b9\u30c8\u30ea\u30fc\u30e0\u30d9\u30fc\u30b9\u306e\u4e26\u884c\u30b9\u30af\u30ea [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":25885,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[2853,154,2854],"class_list":["post-25887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-matz","tag-ruby","tag-streem"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/25887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=25887"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/25887\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/25885"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=25887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=25887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=25887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}