{"id":69040,"date":"2019-04-18T07:48:07","date_gmt":"2019-04-17T22:48:07","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=69040"},"modified":"2019-04-18T07:48:09","modified_gmt":"2019-04-17T22:48:09","slug":"cello","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/cello\/","title":{"rendered":"Cello - \u3082\u306f\u3084\u5225\u7269\u3001C\u8a00\u8a9e\u3067\u9ad8\u30ec\u30d9\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b9f\u73fe\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/04\/s_20190417_102855.jpg\" alt=\"S 20190417 102855\" title=\"s_20190417_102855.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>C\u8a00\u8a9e\u306f\u6a5f\u68b0\u8a9e\u3084\u30a2\u30bb\u30f3\u30d6\u30ea\u8a00\u8a9e\u3068\u3044\u3063\u305f\u4f4e\u6c34\u6e96\u8a00\u8a9e\u306b\u8fd1\u304f\u3001\u6700\u8fd1\u6d41\u884c\u306ePython\u3084Ruby\u3068\u3044\u3063\u305f\u9ad8\u6c34\u6e96\u8a00\u8a9e\u3067\u5229\u7528\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a\u4fbf\u5229\u306a\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u6587\u5b57\u5217\u306b\u3082\u5c02\u7528\u306e\u578b\u304c\u5b58\u5728\u305b\u305a\u3001\u3055\u307e\u3056\u307e\u306a\u843d\u3068\u3057\u7a74\u306b\u6ce8\u610f\u3057\u3064\u3064\u614e\u91cd\u306b\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"http:\/\/libcello.org\/\">Cello<\/a>\u300d\u306f\u3001\u3053\u306e\u306a\u306b\u304b\u3068\u4e0d\u4fbf\u306aC\u8a00\u8a9e\u3067\u3001\u9ad8\u30ec\u30d9\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b9f\u73fe\u3059\u308b\u30e6\u30cb\u30fc\u30af\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/p>\n<p>Cell\u306f\u4ee5\u4e0b\u306e\u6a5f\u80fd\u3092\u5b9f\u73fe\u3059\u308bC\u8a00\u8a9e\u7528\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u4e00\u822c\u7684\u306a\u30c7\u30fc\u30bf\u69cb\u9020<\/li>\n<li>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u95a2\u6570<\/li>\n<li>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\/\u30bf\u30a4\u30d7\u30af\u30e9\u30b9<\/li>\n<li>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u30c7\u30b9\u30c8\u30e9\u30af\u30bf<\/li>\n<li>\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/li>\n<li>\u4f8b\u5916<\/li>\n<li>\u30ea\u30d5\u30ec\u30af\u30b7\u30e7\u30f3<\/li>\n<\/ul>\n<p>\u4f5c\u8005\u306eDaniel Holden\u6c0f\u306f\u3001Ubisoft Montreal\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u7814\u7a76\u54e1\u3067\u3001C\u8a00\u8a9e\u306e\u53ef\u80fd\u6027\u3092\u8ffd\u6c42\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30f3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066Cello\u306e\u958b\u767a\u3092\u59cb\u3081\u305f\u3068\u958b\u767a\u306e\u52d5\u6a5f\u3092\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Cello\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>Cello\u306fC\u8a00\u8a9e\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001gcc\u7b49\u3092\u7528\u3044\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070macOS\u306e\u5834\u5408\u4ee5\u4e0b\u306e\u624b\u9806\u3068\u306a\u308a\u307e\u3059(\u305d\u306e\u4ed6\u8a73\u7d30\u306f<a href=\"https:\/\/github.com\/orangeduck\/Cello\">\u3053\u3061\u3089<\/a>)\u3002<\/p>\n<pre>\ngit clone https:\/\/github.com\/orangeduck\/Cello.git\ncd Cello\nmake\n<\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u6210\u529f\u3059\u308b\u3068\u300clibCello.a\u300d\u3068\u300clibCello.so\u300d\u304c\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u300cmake install\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\/usr\/local\u306a\u3069\u3057\u304b\u308b\u3079\u304d\u5834\u6240\u306b\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u304c\u3001\u30b5\u30f3\u30d7\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u306a\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\/examples\u306e\u4e0b\u306b\u5b9f\u884c\u53ef\u80fd\u306a\u5404\u7a2e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\nmake examples\n<\/pre>\n<p>\u4f8b\u3048\u3070\u6574\u6570\u578b\u306eArray\u3092\u751f\u6210\u3057\u9806\u306b\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u300citeration.c\u300d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<pre>#include \"Cello.h\"\n\nint main(int argc, char** argv) {\n\n  \/* Stack objects are created using \"$\" *\/\n  var i0 = $(Int, 5);\n  var i1 = $(Int, 3);\n  var i2 = $(Int, 4);\n\n  \/* Heap objects are created using \"new\" *\/\n  var items = new(Array, Int, i0, i1, i2);\n\n  \/* Collections can be looped over *\/\n  foreach (item in items) {\n    print(\"Object %$ is of type %$\\n\",\n      item, type_of(item));\n  }\n\n  return 0;\n}\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/04\/s_20190417_105125.jpg\" alt=\"S 20190417 105125\" title=\"s_20190417_105125.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>Array\u306e\u5024\u304c\u300c5\u30013\u30014\u300d\u3068\u9806\u756a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082Cello\u7248\u306eHello World\u3067\u3042\u308b\u300ccello_world.c\u300d\u3084\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\u300cobject.c\u300d\u306a\u3069\u3001Cello\u306e\u57fa\u672c\u6a5f\u80fd\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u683c\u7684\u306bCello\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u5834\u5408\u3001<a href=\"http:\/\/libcello.org\/learn\">Cello\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ac\u30a4\u30c9<\/a>\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Cello\u3092\u5229\u7528\u3059\u308c\u3070C\u8a00\u8a9e\u3067\u3042\u308a\u306a\u304c\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u98a8\u306e\u4fbf\u5229\u306a\u5404\u7a2e\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ed5\u4e8b\u3067\u4f7f\u7528\u3059\u308b\u3068\u554f\u984c\u304c\u767a\u751f\u3057\u305d\u3046\u3067\u3059\u304c\u3001\u81ea\u5206\u306e\u697d\u3057\u307f\u306e\u305f\u3081\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u7528\u3059\u308b\u5206\u306b\u306f\u697d\u3057\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u8a00\u8a9e\u306f\u6a5f\u68b0\u8a9e\u3084\u30a2\u30bb\u30f3\u30d6\u30ea\u8a00\u8a9e\u3068\u3044\u3063\u305f\u4f4e\u6c34\u6e96\u8a00\u8a9e\u306b\u8fd1\u304f\u3001\u6700\u8fd1\u6d41\u884c\u306ePython\u3084Ruby\u3068\u3044\u3063\u305f\u9ad8\u6c34\u6e96\u8a00\u8a9e\u3067\u5229\u7528\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a\u4fbf\u5229\u306a\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u6587\u5b57\u5217\u306b\u3082\u5c02\u7528\u306e\u578b\u304c\u5b58\u5728\u305b\u305a\u3001\u3055\u307e\u3056\u307e\u306a\u843d\u3068\u3057\u7a74 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":69046,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[4241],"class_list":["post-69040","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-cello"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/69040","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=69040"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/69040\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/69046"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=69040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=69040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=69040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}