{"id":15095,"date":"2013-11-16T21:00:38","date_gmt":"2013-11-16T12:00:38","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=15095"},"modified":"2013-11-17T20:02:22","modified_gmt":"2013-11-17T11:02:22","slug":"%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e8%a8%80%e8%aa%9eceylon","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/15095.html","title":{"rendered":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eCeylon\u3067Hello World"},"content":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eCeylon\u304c1.0\u306b\u306a\u3063\u305f\u305d\u3046\u3067\u3059\u3002<a href=\"http:\/\/ceylon-lang.org\/\">Ceylon: Welcome to Ceylon<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<!--more--><br \/>\n\u300c<a href=\"http:\/\/ceylon-lang.org\/documentation\/1.0\/introduction\/\">Ceylon: Quick introduction<\/a>\u300d\u3042\u305f\u308a\u304b\u3089\u59cb\u3081\u308c\u3070\u3044\u3044\u306e\u304b\u3068\u601d\u3063\u305f\u3089\u3001\u65e5\u672c\u8a9e\u3078\u7ffb\u8a33\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u30021\u5e74\u4ee5\u4e0a\u524d\u306e\u3088\u3046\u306a\u306e\u3067\u3001\u539f\u6587\u3092\u8aad\u3093\u3060\u65b9\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u7d39\u4ecb\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/etc9.hatenablog.com\/entry\/20120722\/1342974776\">Ceylon \uff1a Quick introduction \u90a6\u8a33(1) &#8211; A Memorandum<\/a><\/li>\n<\/ul>\n<p>IDE\u306fEclipse\u30d9\u30fc\u30b9\u306e\u3082\u306e\u304c\u3042\u308b\u305d\u3046\u3067\u3001<a href=\"http:\/\/ceylon-lang.org\/documentation\/1.0\/ide\/\">Ceylon: Ceylon IDE<\/a>\u306b\u89e3\u8aac\u304c\u3042\u308a\u307e\u3059\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u3088\u3046\u3067\u3059\u304c\u3001\u3082\u306e\u306b\u3088\u3063\u3066\u5909\u308f\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/ceylon-lang.org\/code\/licenses\/\">Ceylon: Licenses<\/a><\/li>\n<\/ul>\n<p>\u30b3\u30de\u30f3\u30c9\u30c4\u30fc\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u4e0b\u8a18\u304b\u3089\u3067\u304d\u307e\u3059\u3002ZIP, Fedora\/RedHat\u7528\u306eRPM, Debian\/Ubuntu\u7528\u306eDEB\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/ceylon-lang.org\/download\/?utm_source=news&amp;utm_medium=web&amp;utm_content=download&amp;utm_campaign=latestrelease\">Ceylon: Download Ceylon<\/a><\/li>\n<\/ul>\n<p>\u52d5\u4f5c\u3055\u305b\u308b\u306b\u306fJava7\u304c\u5fc5\u8981\u3067\u3059\u3002OpenJDK7\u304c\u63a8\u5968\u306e\u3088\u3046\u306a\u306e\u3067\u3001Ubuntu\u3067\u4f7f\u3046\u306a\u3089\u4e0b\u8a18\u306e\u3088\u3046\u306bJDK7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002JRE7\u3067\u3082\u826f\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Java6\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u308b\u5834\u5408\u306f\u3001\u3069\u306ejava\u3092\u4f7f\u3046\u304b\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ sudo apt-get install openjdk-7-jdk\r\n$ sudo update-alternatives --config java\r\n<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001ceylon-1.0.0.zip\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3057\u305f\u3002Ubuntu 12.04 \u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ unzip ~\/Download\/ceylon-1.0.0.zip \r\n$ ceylon-1.0.0\/bin\/ceylon --version\r\nceylon version 1.0.0 (No More Mr Nice Guy)\r\n<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u304c\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3057\u3066\u307f\u307e\u3059\u3002Apache Ant\u3092\u4f7f\u3046\u3068\u697d\u305d\u3046\u306a\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002ant run \u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ sudo apt-get install ant\r\n$ cd ceylon-1.0.0\/samples\/helloworld\r\n$ ant run\r\nBuildfile: \/home\/hiro345\/applications\/ceylon-1.0.0\/samples\/helloworld\/build.xml\r\n\r\nceylon-ant-taskdefs:\r\n\r\ncompile:\r\n[ceylon-compile] No need to compile com.example.helloworld\/1.0.0, it&#039;s up to date\r\n[ceylon-compile] Everything&#039;s up to date\r\n\r\nrun:\r\n[ceylon-run] Hello, World!\r\n\r\nBUILD SUCCESSFUL\r\nTotal time: 4 seconds\r\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u3066\u3082\u3067\u304d\u307e\u3059\u3002ceylon-1.0.0\u306f$HOME\/applications\/ceylon-1.0.0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u308b\u3068\u3057\u307e\u3059\u3002hello.ceylon\u3068\u3044\u3046\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306b\u5b9f\u884c\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ mkdir -p workspace\/ceylon\/source\r\n$ cd workspace\/ceylon\r\n$ cat &lt;&lt; EOF &gt; source\/hello.ceylon\r\n&gt; void hello() {\r\n&gt;   print(&quot;Hello, World!&quot;);\r\n&gt; }\r\n&gt; EOF\r\n$ cat hello.ceylon\r\nvoid hello() {\r\n  print(&quot;Hello, World!&quot;);\r\n}\r\n$ ~\/applications\/ceylon-1.0.0\/bin\/ceylon compile source\/hello.ceylon \r\n\u6ce8\u610f:Created module default\r\n$ ls\r\nmodules  source\r\n$ ~\/applications\/ceylon-1.0.0\/bin\/ceylon run --run hello default\r\nHello, World!\r\n<\/pre>\n<p>Ceylon\u306e\u53c2\u8003\u8cc7\u6599\u306f\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3042\u308c\u3070\u4e0b\u8a18\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30af\u30e9\u30b9\u30d9\u30fc\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u57fa\u790e\u3092\u5b66\u3076\u306b\u306f &#8230; <a type=\"amzn\" asin=\"484432523X\">\u6539\u8a02\u7248 \u57fa\u790eJava(CD-ROM\u4ed8) (IMPRESS KISO SERIES)<\/a><\/li>\n<li>\u30af\u30e9\u30b9\u30d9\u30fc\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u5b66\u3076\u306b\u306f &#8230; <a type=\"amzn\" asin=\"4894717166\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eJava (The Java Series)<\/a><\/li>\n<li>\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u5b66\u3076\u306b\u306f &#8230; <a type=\"amzn\" asin=\"4844330845\">Scala\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7b2c2\u7248<\/a><\/li>\n<li>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u7406\u8ad6\u3092\u5b66\u306b\u306f &#8230; <a type=\"amzn\" asin=\"4781912850\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u57fa\u790e\u6982\u5ff5 (\u30e9\u30a4\u30d6\u30e9\u30ea\u60c5\u5831\u5b66\u30b3\u30a2\u30fb\u30c6\u30ad\u30b9\u30c8) <\/a><\/li>\n<\/ul>\n<div>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=484432523X&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4894717166&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4844330845&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4781912850&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eCeylon\u304c1.0\u306b\u306a\u3063\u305f\u305d\u3046\u3067\u3059\u3002Ceylon: Welcome to Ceylon\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[951],"class_list":["post-15095","post","type-post","status-publish","format-standard","hentry","category-program","tag-ceylon"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/15095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=15095"}],"version-history":[{"count":2,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/15095\/revisions"}],"predecessor-version":[{"id":15097,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/15095\/revisions\/15097"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=15095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=15095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=15095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}