{"id":4943,"date":"2020-08-05T20:34:55","date_gmt":"2020-08-05T11:34:55","guid":{"rendered":"https:\/\/greentown.tokyo\/?p=4943"},"modified":"2020-08-06T01:00:09","modified_gmt":"2020-08-05T16:00:09","slug":"flutter-memory-2","status":"publish","type":"post","link":"https:\/\/greentown.tokyo\/?p=4943","title":{"rendered":"Flutter\u306e\u8a71\u3092\u30c1\u30e7\u30c3\u30c8\u3068\u30e1\u30e2\u30ea\u52c9\u5f37\u30e1\u30e2"},"content":{"rendered":"\n<p>\u79c1\u306eMacBook\u3001AndroidStudio\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u305f\u3061\u3042\u3052\u3066&#8230;\u3067Flutter\u3084\u308b\u3068\u3001\u3059\u3054\u3044\u97f3\u3060\u3059\u306e\u3067\u3059\u3002CPU\u306e\u97f3\u3067\u3059\u304b\u306d\uff1fHD\u306e\u97f3\u3067\u3059\u304b\u306d\uff1f\u653e\u3063\u3066\u304a\u304f\u3068\u52dd\u624b\u306b\u30ea\u30d6\u30fc\u30c8\u304c\u304b\u304b\u308a\u307e\u3059&#x1f976;<\/p>\n<p>\u30b9\u30da\u30c3\u30af\u306f<\/p>\n<ul>\n<li>Core i5<\/li>\n<li>\u30e1\u30e2\u30ea8G<\/li>\n<li>Macintosh HD<\/li>\n<\/ul>\n<p>\u306a\u306e\u3067\u3059\u304c\u3001\u8cfc\u5165\u5f53\u521d\u306fIDE\u3068\u304b\u305d\u3093\u306a\u5165\u308c\u308b\u4e88\u5b9a\u3058\u3083\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30d1\u30d1\u306b\u30e1\u30e2\u30ea16G\u306f\u3042\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3088\u3068\u3044\u3046\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u304d\u304b\u305a\u306b\u3001\u3053\u3093\u306a\u3082\u3093\u3067\u5341\u5206\u3001\u3068\u601d\u3063\u3066\u8cb7\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u5165\u3063\u3066\u3044\u308b\u3082\u306e\u3092\u307f\u305f\u3089\u3001\u3061\u3087\u3063\u3068\u307f\u305f\u3060\u3051\u3067\u3001<\/p>\n<ul>\n<li>Xcode<\/li>\n<li>GoLand<\/li>\n<li>PyCharm<\/li>\n<li>AndroidStudio<\/li>\n<li>\u30c7\u30b6\u30a4\u30f3\u7cfb\uff08Adobe\u88fd\u54c1\u3044\u308d\u3044\u308d\uff09<\/li>\n<li>Docker\uff08\u3044\u308d\u3093\u306a\u30a4\u30e1\u30fc\u30b8\u304c\u3044\u308d\u3044\u308d\uff09<\/li>\n<li>VisualStudio<\/li>\n<li>VS Code<\/li>\n<\/ul>\n<p>\u307b\u304b\u306b\u3082\u3001\u91cd\u305f\u305d\u3046\u306a\u30a2\u30d7\u30ea\u304c\u6570\u3048\u5207\u308c\u306a\u3044\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3057\u305f\u30fb\u30fb\uff08\u305d\u3057\u3066\u306a\u3093\u304b\u3001\u30b9\u30bf\u30f3\u30d0\u3063\u3066\u308b\u5b50\u304c\u3044\u308b\u3057\uff09<\/p>\n<p>\u30bd\u30b5\u30a8\u30c6\u30a3\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3067\u3001Flutter\u3084\u3063\u3066\u308b\u3068\u91cd\u3044\u3093\u3067\u3059\u30fc\u3068\u8a71\u3057\u305f\u3089\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u307f\u306a\u3055\u3093\u3001\u3053\u3093\u306a\u3057\u3087\u30fc\u3082\u306a\u3044\u8cea\u554f\u306b\u3001\u3044\u308d\u3044\u308d\u7b54\u3048\u3066\u304f\u308c\u3066\u3001\u307f\u3093\u306a\u3084\u3055\u3057\u3044&#x1f62d;\u3000\u3002<\/p>\n<p>\u8cea\u554f\u300cMacbookPro\u304c\u91cd\u305f\u304f\u3066\uff08\u3068\u304f\u306bFlutter\u3084\u3063\u3066\u3044\u308b\u3068\u304d\uff09\u3001\u6b21\u306fMacMini\u8cb7\u3063\u3066\u307f\u3088\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u307f\u306a\u3055\u3093\u3069\u308c\u304f\u3089\u3044\u306e\u30b9\u30da\u30c3\u30af\u306e\u30de\u30b7\u30f3\u3067\u958b\u767a\u3055\u308c\u3044\u307e\u3059\u304b\uff1f\u300d<\/p>\n<ul>\n<li>CPU\u3044\u3061\u3070\u3093\u3044\u3044\u306e\u8cb7\u3046\u6d3e<\/li>\n<li>SSD\u306f\u4e88\u7b97\u3086\u308b\u3059\u304b\u304e\u308a\u5927\u304d\u3044\u306e\u8cb7\u3046\u6d3e<\/li>\n<li>\u30b3\u30fc\u30c9\u306f\u307f\u3093\u306agithub\u306b\u3042\u3052\u3061\u3083\u3046\u306e\u3067\u3001SSD\u306f\u5c11\u306a\u3081\u6d3e<\/li>\n<li>MacMini\u306a\u3089\u5916\u4ed8SSD\u3068\u3044\u3046\u65b9\u6cd5\u3082<\/li>\n<\/ul>\n<p>\u306a\u3069\u306a\u3069\u3001\u6559\u3048\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u307b\u304b\u306b\u3082<\/p>\n<blockquote>\n<p>\u30af\u30e9\u30a6\u30c9\u3067\u4eee\u60f3\u74b0\u5883\u7acb\u3066\u305f\u65b9\u304c\u30ea\u30fc\u30ba\u30ca\u30d6\u30eb\u3058\u3083\u306d\uff1f\u3068\u3044\u3046\u610f\u898b\u3082\u3042\u308a\u307e\u3059\u3088\u306d<\/p>\n<\/blockquote>\n<p>\u3068\u304b\uff08\u305d\u3093\u306a\u3053\u3068\u3067\u304d\u308b\u306e\uff1f&#x1f633;\uff09<\/p>\n<blockquote>\n<p>Xcode\u7cfb\u306ebuild\u3060\u3068\u30af\u30e9\u30a6\u30c9\u3067\u3082mac\u4f7f\u3046\u5fc5\u8981\u3042\u3063\u3066\u30b3\u30b9\u30c8\u304b\u304b\u308a\u307e\u3059\u3088\u306d\u3002\u4f55\u3092\u3069\u3046\u30d3\u30eb\u30c9\u3059\u308b\u304b\u306b\u3088\u308a\u307e\u3059\u306d\u3002<\/p>\n<\/blockquote>\n<p>Xcode\u7cfb\u306ebuild\u3092\u30af\u30e9\u30a6\u30c9\u3067\u3063\u3066\u3069\u3086\u3053\u3068\uff1f\uff1f \uff1f\uff1f\uff1f\uff1f\uff1f<\/p>\n<p>\u4e2d\u5cf6\u8061\u3055\u3093\u304b\u3089\u3082\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304f&#x1f633;<\/p>\n<blockquote>\n<p>Flutter \u3082\u540c\u3058\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001Xcode \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u4e00\u756a\u5f71\u97ff\u304c\u3042\u308b\u306e\u306f\u3001\uff08CPU\u30b9\u30d4\u30fc\u30c9\u3067\u3082\u3001SSD\u306e\u5bb9\u91cf\u3067\u3082\u306a\u304f\u3066\uff09\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u30b5\u30a4\u30ba\u3067\u3059\u3002\u5fc5\u8981\u306a\u30e1\u30e2\u30ea\u304c\u4e0d\u8db3\u3059\u308b\u3068\u3001SSD\u3068\u306e\u9593\u3067\u983b\u7e41\u306a\u30c7\u30fc\u30bf\u306e\u3084\u308a\u3068\u308a\uff08\u30da\u30fc\u30b8\u30f3\u30b0\uff09\u304c\u5fc5\u8981\u306b\u306a\u308b\u305f\u3081\u3001\u6975\u7aef\u306b\u9045\u304f\u306a\u308b\u306e\u3067\u3059\u3002\u79c1\u306e MacBook Pro \u306f\u8cfc\u5165\u6642\uff082016\u5e74\uff09\u306b\u6700\u5927\u306e 16GB \u306b\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u8cb7\u3044\u63db\u3048\u308b\u6642\uff08\u4eca\u5e74\u306e\u672b\u306b Apple \u30c1\u30c3\u30d7\u5185\u81d3\u306e MacBook \u304c\u51fa\u305f\u6642\uff09\u306b\u306f 32GB \u306b\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\u958b\u767a\u7528\u306b\u306f\u3001CPU\u3092\u6700\u901f\u306e\u3082\u306e\u306b\u3059\u308b\u5fc5\u8981\u306f\u5168\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<\/blockquote>\n<p>\u30da\u30fc\u30b8\u30f3\u30b0\u3063\u3066\u3001\u305d\u3046\u3044\u3048\u3070\u3001\u6614LPIC\u306e\u52c9\u5f37\u3057\u305f\u3068\u304d\u306b\u3084\u3063\u305f\u306a\u30fc\u3068\u3001\u305d\u306e\u3068\u304d\u306f\u307c\u3093\u3084\u308a\u3067\u3057\u305f\u304c\u3001<\/p>\n<p><span style=\"color: #ff99cc;\"><strong><span style=\"font-size: 150%;\">SSD\u3068\u306e\u9593\u3067\u983b\u7e41\u306a\u30c7\u30fc\u30bf\u306e\u3084\u308a\u3068\u308a<\/span><\/strong><\/span><\/p>\n<p>\u306a\u308b\u307b\u3069\u30fb\u30fb\u6570\u5341\u5e74\u306e\u3068\u304d\u3092\u7d4c\u3066\u30a4\u30e1\u30fc\u30b8\u304c\u3064\u304b\u3081\u305f\u306e\u3067\u3057\u305f\u3002\u3002\u3002\u3002\u3002\u3002CS\u77e5\u8b58\u30bc\u30ed\u3059\u304e\u3066\u3064\u3089\u3044\u3002<\/p>\n<p>Go\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u4eba\u305f\u3061\u3082\u305d\u3046\u3067\u3059\u304c\uff08\u3042\u3068\u6700\u8fd1\u5165\u308a\u6d78\u3063\u3066\u308b\u5973\u6027Only\u306ePython\u682a\u4fa1\u5206\u6790\u306e\u52c9\u5f37\u4f1a\u3068\u304b\u3001Flutter\u306e\u3082\u304f\u3082\u304f\u4f1a\u3068\u304b\uff09\u3001\u307f\u3093\u306a\u3001\u3084\u3055\u3057\u3044\u3057\u3001\u30a2\u30db\u306a\u8cea\u554f\u306b\u3082\u5869\u5bfe\u5fdc\u305b\u305a\u308f\u304b\u308a\u3084\u3059\u304f\u6559\u3048\u3066\u304f\u308c\u308b\u3057\u3067\u3001\u3082\u3046\u307f\u3093\u306a\u795e\u69d8\u306b\u3057\u304b\u898b\u3048\u307e\u305b\u3093\u3002\u3044\u3044\u6642\u4ee3\u3060&#8230;&#8230;.\u3002\u82e5\u3044\u6642\u306b\u3053\u3046\u3044\u3046\u306e\u307b\u3057\u304b\u3063\u305f\u3002<\/p>\n<p>\uff08\u8ffd\u8a18\uff09\u306a\u3093\u3068\u3001\u30c4\u30a4\u30fc\u30c8\u3055\u308c\u3066\u308b<\/p>\n<p><blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"ja\" dir=\"ltr\">Xcode \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u4e00\u756a\u5f71\u97ff\u304c\u3042\u308b\u306e\u306f\u3001\uff08CPU\u30b9\u30d4\u30fc\u30c9\u3067\u3082\u3001SSD\u306e\u5bb9\u91cf\u3067\u3082\u306a\u304f\u3066\uff09\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u30b5\u30a4\u30ba\u3067\u3059\u3002\u5927\u304d\u306a\u30a2\u30d7\u30ea\u3092\u8d70\u3089\u305b\u308b\u3068\u3001SSD\u3068\u306e\u9593\u3067\u983b\u7e41\u306a\u30c7\u30fc\u30bf\u306e\u3084\u308a\u3068\u308a\uff08Thrashing\uff09\u304c\u8d77\u3053\u308b\u305f\u3081\u3001\u6975\u7aef\u306b\u9045\u304f\u306a\u308b\u306e\u3067\u3059\u3002\u958b\u767a\u30de\u30b7\u30f3\u3092\u8cfc\u5165\u3059\u308b\u969b\u306f\u3001\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3067\u8d05\u6ca2\u3057\u307e\u3057\u3087\u3046\u3002<\/p>&mdash; Satoshi Nakajima (@snakajima) <a href=\"https:\/\/twitter.com\/snakajima\/status\/1290504275206971393?ref_src=twsrc%5Etfw\">August 4, 2020<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p><blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"ja\" dir=\"ltr\">OS\u306e\u30e1\u30e2\u30ea\u30fc\u30de\u30cd\u30fc\u30b8\u30e3\u306b\u8a73\u3057\u3044\u4eba\u305f\u3061\u306e\u9593\u3067\u306f\u826f\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u304c\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u4e2d\u306e\u983b\u7e41\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u90e8\u5206\u304c\u5b9f\u30e1\u30e2\u30ea\u306e\u30b5\u30a4\u30ba\u3092\u8d8a\u3048\u308b\u3068\u3001Thrashing\u3068\u547c\u3070\u308c\u308b\u983b\u7e41\u306a\u30da\u30fc\u30b8\u30f3\u30b0\u304c\u8d77\u3053\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u30e1\u30e2\u30ea\u306e\u5c11\u306a\u3044Mac\u3067Xcode\u3092\u8d70\u3089\u305b\u308b\u3068\u8d77\u3053\u308b\u306e\u304c\u3053\u308c\u3067\u3059\u3002 <a href=\"https:\/\/t.co\/9034fStGgP\">https:\/\/t.co\/9034fStGgP<\/a><\/p>&mdash; Satoshi Nakajima (@snakajima) <a href=\"https:\/\/twitter.com\/snakajima\/status\/1290508143638675456?ref_src=twsrc%5Etfw\">August 4, 2020<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>Flutter\u304b\u3089\u96e2\u308c\u307e\u3059\u304c\u3001\u30e1\u30e2\u30ea\u8a71\u304c\u7d9a\u304d\u307e\u3059\u3002\u5148\u65e5SoftwareDesign\u306e\u7279\u96c6\u300c\u30c7\u30fc\u30bf\u578b\u3092\u6b63\u3057\u304f\u8aac\u660e\u3067\u304d\u307e\u3059\u304b\uff1f\u300d\u3092\u8aad\u3093\u3060\u306e\u3067\u3059\u304c\u3001\u30e1\u30e2\u30ea\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u66f8\u304b\u308c\u3066\u3044\u3066\u52c9\u5f37\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5148\u65e5\u3082\u30d2\u30fc\u30d7\u3068\u304b\u30b9\u30bf\u30c3\u30af\u3068\u304b\u30d6\u30ed\u30b0\u306b\u66f8\u3044\u305f\u6c17\u304c\u3057\u307e\u3059\u304c\u3001\u304a\u3055\u3089\u3044\u30e1\u30e2\u2193\u3002<\/p>\n<h4>\u30e1\u30e2\u30ea<\/h4>\n<p><strong>\u9759\u7684\u9818\u57df<\/strong><\/p>\n<ul>\n<li>\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3084static\u5ba3\u8a00\u3057\u305f\u5909\u6570\u306e\u5024\u304c\u683c\u7d0d\u3055\u308c\u308b\u9818\u57df<\/li>\n<li>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6700\u521d\u304b\u3089\u6700\u5f8c\u307e\u3067\u5b58\u5728\u3057\u7d9a\u3051\u308b<\/li>\n<\/ul>\n<p><strong>\u30b9\u30bf\u30c3\u30af<\/strong><\/p>\n<ul>\n<li>\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3092\u4fdd\u6301\u3059\u308b\u9818\u57df<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306f\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u629c\u3051\u308b\u307e\u3067\u3057\u304b\u4f7f\u7528\u3057\u306a\u3044\u306e\u3067\u3001\u30e1\u30bd\u30c3\u30c9\u3092\u629c\u3051\u305f\u3089\u3001\u305d\u306e\u9818\u57df\u306f\u7e2e\u3080<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u30b9\u30bf\u30c3\u30af\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u73fe\u5728\u52d5\u3044\u3066\u3044\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u306e\u30ed\u30fc\u30ab\u30eb\u6570\u5206\u306e\u9818\u57df\u304c\u7bc0\u7d04\u3067\u304d\u308b<\/li>\n<li>\u518d\u5e30\u547c\u3073\u51fa\u3057\u3082\u53ef\u80fd<\/li>\n<\/ul>\n<p><strong>\u30d2\u30fc\u30d7<\/strong><\/p>\n<ul>\n<li>C\u306a\u3089malloc()\u3001Java\u3084C#\u306a\u3089new\u3067\u78ba\u4fdd\u3059\u308b\u9818\u57df<\/li>\n<li>\u89e3\u653e\u306fC\u306a\u3089free()\u3001\u4ed6\u306e\u8a00\u8a9e\u306fGC\u304c\u89e3\u653e\u3059\u308b<\/li>\n<li>\u30d2\u30fc\u30d7\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u4efb\u610f\u306e\u9806\u5e8f\u3067\u4e0d\u8981\u306b\u306a\u308b\u305f\u3081\u3001\u3044\u307e\u30e1\u30e2\u30ea\u306e\u3069\u3053\u304c\u4f7f\u7528\u4e2d\u3067\u3001\u3069\u3053\u304c\u672a\u4f7f\u7528\u306a\u306e\u304b\u3092\u51e6\u7406\u7cfb\u304c\u7ba1\u7406\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<\/li>\n<\/ul>\n<p><strong>GC\u306e\u51e6\u7406\u7cfb\u304c\u4f55\u3092\u6301\u3063\u3066\u30e1\u30e2\u30ea\u306e\u9818\u57df\uff08\u30d2\u30fc\u30d7\u3067\u78ba\u4fdd\u3057\u305f\u9818\u57df\uff09\u3092\u4e0d\u8981\u3068\u5224\u65ad\u3059\u308b\u306e\u304b<\/strong><\/p>\n<ul>\n<li>\u9759\u7684\u9818\u57df\u3084\u30b9\u30bf\u30c3\u30af\u304b\u3089\u53c2\u7167\u304c\u8fbf\u308c\u306a\u304f\u306a\u3063\u305f\u3089\u4e0d\u8981\u3068\u5224\u65ad\u3059\u308b<\/li>\n<\/ul>\n<p>C\u306f\u914d\u5217\u3084\u69cb\u9020\u4f53\u3092\u9759\u7684\u9818\u57df\u3084\u30b9\u30bf\u30c3\u30af\u306b\u76f4\u63a5\u683c\u7d0d\u53ef\u80fd\u3002<br \/>Java\u306f\u3001\u914d\u5217\u3084\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3059\u3079\u3066\u30d2\u30fc\u30d7\u306b\u683c\u7d0d\u3059\u308b\u3002<\/p>\n<p><strong>\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\uff08\u53c2\u7167\u578b\uff09<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-\" data-file=\"Java\"><code>int[] a = new int[]{1, 2, 3}\nint[] b = a; \/\/ \u2460\nb[1] = 10;   \/\/ \u2461<\/code><\/pre><\/div>\n\n\n\n<ol>\n<li>a\u304c\u6301\u3063\u3066\u3044\u308b\u53c2\u7167\u5024\u3092\u30b3\u30d4\u30fc<\/li>\n<li>a[1]\u308210\u306b\u306a\u308b<\/li>\n<\/ol>\n<p><strong>\u52d5\u7684\u578b\u4ed8\u3051\u8a00\u8a9e<\/strong><\/p>\n<ul>\n<li>\u3069\u3093\u306a\u5024\u3067\u3082\u683c\u7d0d\u3067\u304d\u308b = \u3059\u3079\u3066\u306e\u5909\u6570\u304c\u53c2\u7167\u578b\u3000\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/li>\n<li>\u53c2\u7167\u578b\u306f\u30e1\u30e2\u30ea\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u793a\u3059\u578b\u306a\u306e\u3067\u3001\u30b5\u30a4\u30ba\u304c\u4e00\u5b9a<\/li>\n<li>\u306a\u306e\u3067Ruby\u3084Python\u306b\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u3046\u6982\u5ff5\u304c\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-ruby\" data-lang=\"Ruby\"><code>a = 10 # \u2460\nb = a  # \u2461\na += 1 # \u2462<\/code><\/pre><\/div>\n\n\n\n<ol>\n<li>immutable\uff08\u5909\u66f4\u4e0d\u80fd\uff09\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081<\/li>\n<li>\u3053\u3053\u3067\u540c\u3058\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u3066\u3044\u3066\u3082\u554f\u984c\u306f\u767a\u751f\u3057\u306a\u3044\u3002\u3002<\/li>\n<li>a, b \u306f\u540c\u305810\u3092\u6307\u3057\u3066\u3044\u308b\u3051\u3069\u3001\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u305f\u6642\u70b9\u3067\u3001\u65b0\u3057\u304f11\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u3089\u308c\u3001b\u306f10\u3092\u6307\u3057\u305f\u307e\u307e\u3002<\/li>\n<\/ol>\n<ul>\n<li>\u6bce\u56de\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u3089\u308c\u3061\u3083\u3046\u3068\u3001\u3059\u3050\u306b\u30d2\u30fc\u30d7\u304c\u3044\u3063\u3071\u3044\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff08GC\u5927\u5fd9\u3057\uff09<\/li>\n<li>\u5b9f\u969b\u306f\u3059\u3079\u3066\u30d2\u30fc\u30d7\u306b\u78ba\u4fdd\u3055\u308c\u308b\u308f\u3051\u3058\u3083\u306a\u3044<\/li>\n<li>\u4f7f\u7528\u983b\u5ea6\u306e\u9ad8\u3044\u578b\u306f\u3001\u5909\u6570\u306e\u4e2d\u306b\u5024\u3092\u4fdd\u6301\u3057\u3066\u3044\u305f\u308a\u3059\u308b<\/li>\n<\/ul>\n<p><strong>\u8907\u5408\u578b<\/strong><\/p>\n<p>\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3002C\u306f\u5024\u578b\u3002\u305d\u308c\u81ea\u4f53\u306bname\u3068age\u3092\u542b\u3080\u3002C\u306e\u69cb\u9020\u4f53\u306e\u5834\u5408\u2193<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>typedef struct {\n \tchar name[32];\n \tint age;\n} Person;\n\nPerson p; \/\/ \u2460\nstrcpy(p.name, &quot;hanako&quot;); \/\/ \u2461\np.age = 24;               \/\/ \u2461<\/code><\/pre><\/div>\n\n\n\n<ol>\n<li>\u5ba3\u8a00\u3057\u305f\u3089\u30e1\u30e2\u30ea\u306b\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b\u9818\u57df\u304c\u3067\u304d\u308b\u306e\u3067<\/li>\n<li>\u3059\u3050\u306b\u4f7f\u3048\u3061\u3083\u3046\uff01<\/li>\n<\/ol>\n\n\n<p><strong>\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3002Java\u306f\u53c2\u7167\u578b\u3002\u53c2\u7167\u3060\u3051\u3082\u3064\u3002Java\u306e\u30af\u30e9\u30b9\u2193<\/strong><\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plane\" data-file=\"Java\"><code>class Person {\n \tString name;\n \tint age;\n}\n\nPerson p; \/\/ \u2460\np = new Person(); \/\/ \u2461\np.name = &quot;\u82b1\u3061\u3083\u3093&quot;\np.age = 21;<\/code><\/pre><\/div>\n\n\n\n<ol>\n<li>\u5165\u3063\u3066\u3044\u308b\u306e\u306f\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b\u9818\u57df\u3078\u306e\u53c2\u7167\u5024\u306a\u306e\u3067\u3001\u5ba3\u8a00\u3057\u3066\u3082\u3059\u3050\u4f7f\u3048\u306a\u3044<\/li>\n<li>\u300cnew Person()\u300d\u3067\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b\u30e1\u30e2\u30ea\u9818\u57df\u3092\u78ba\u4fdd\u3057\u3001\u300cp =\u300d\u3067p\u3092\u305d\u3053\u306b\u5411\u3051\u308b<\/li>\n<\/ol>\n<p><strong>\u52d5\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3002\u53c2\u7167\u578b\u3002\u53c2\u7167\u5024\u3057\u304b\u3082\u305f\u306a\u3044\u3002<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-ruby\" data-lang=\"Ruby\"><code>class Oyatsu\n \tattr_reader: snacks, :cnt\n \tdef initialize(snacks, quantity) \/\/ \u2461\n \t  @snacks = snacks\n \t  @cnt = cnt\n  end\nend\n\nhoge = 1\nhoge = &quot;\u3042\u3089\u3044\u3050\u307e\u30e9\u30b9\u30ab\u30eb&quot;\nhoge = Oyatsu.new(&quot;\u98f4\u3061\u3083\u3093&quot;, 10) \/\/ \u2460<\/code><\/pre><\/div>\n\n\n\n<ol>\n<li>hoge = Oyatsu.new(&#8220;\u98f4\u3061\u3083\u3093&#8221;, 10)\u3067\u3001Oyatsu.new\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210<\/li>\n<li>initialize\u3067snacks\u3068cnt\u306b\u4ee3\u5165\u3057\u305f\u6642\u70b9\u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u4f5c\u6210\u3055\u308c\u308b\uff08\u30e1\u30e2\u30ea\u304c\u78ba\u4fdd\u3055\u308c\u308b\uff09<\/li>\n<\/ol>\n<p>\u6761\u4ef6\u5206\u5c90\u3067snacks\u306b\u5024\u304c\u306f\u3044\u308a\u3001cnt\u306b\u5024\u304c\u306f\u3044\u3089\u306a\u3044\u3068\u304d\u3001snacks\u306f\u30e1\u30e2\u30ea\u4e0a\u306b\u5b58\u5728\u3057\u3001cnt\u306f\u5b58\u5728\u3057\u306a\u3044\u3068\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3067\u304d\u308b\u3002<\/p>\n<p><span style=\"color: #ff99cc;\"><strong>Ruby\u3001Python\u3068\u304bJavaScript\u3068\u3044\u3063\u305f\u8a00\u8a9e\u306f\u300c\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u300d\u300c\u53c2\u7167\u578b\u300d\u3092\u533a\u5225\u3059\u308b\u5fc5\u8981\u306a\u306a\u3044\uff08\u533a\u5225\u304c\u306a\u3044\u3068\u3046\u3044\u308f\u3051\u3067\u306f\u306a\u3044\uff09\u3002\u3059\u3079\u3066\u3092\u53c2\u7167\u578b\u3068\u3057\u3066\u6271\u3048\u308b\u3002<\/strong><\/span><\/p>\n<p>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306f\u3001<a href=\"https:\/\/wa3.i-3-i.info\/word15876.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u306e\u30b5\u30a4\u30c8<\/a> \u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3002<\/p>\n<p>\u6700\u8fd1\u306eJava\u3084C#\u306f auto boxing\u3068\u304b\u3044\u3046\u6a5f\u80fd\u3067\u3001 Object obj = 1; \u3068\u304b\u66f8\u3051\u3061\u3083\u3046\u3089\u3057\u3044\uff08\u4f3c\u305f\u3088\u3046\u306a\u3053\u3068\u3092\u524d\u65e5\u53c2\u52a0\u3057\u305fGo\u306e\u8f2a\u8aad\u4f1a\u3067\u8a33\u8005\u306e\u67f4\u7530\u3055\u3093\u3082\u3044\u3063\u3066\u307e\u3057\u305f\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>int[] a = new int[]{1, 2, 3} int[] b = a; \/\/ \u2460 b[1] = 10; \/\/ \u2461 a = 10 # \u2460 b = a # \u2461 a += 1 # \u2462 typed &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4951,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,71],"tags":[],"class_list":["post-4943","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter","category-technical-note"],"_links":{"self":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/4943"}],"collection":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4943"}],"version-history":[{"count":28,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/4943\/revisions"}],"predecessor-version":[{"id":4988,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/4943\/revisions\/4988"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/media\/4951"}],"wp:attachment":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}