CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
Play2ã¯ã2.3.0ãããç°å¢æ§ç¯æ¹æ³ãå°ãå¤ããã¾ããååè¨äºã§ç´¹ä»ããããã«ã以åã®ãã¼ã¸ã§ã³ã§ã¯ãplay newããªã©ã®Playã³ãã³ãã§ã¢ããªã±ã¼ã·ã§ã³ã®ç°å¢ãæ§ç¯ãã¾ããããæ¬ãã¼ã¸ã§ã³ããPlay2ã¯ãTypesafe Activatorãã¨ã»ããã§æä¾ãããããã«ãªãActivatorã³ãã³ããå©ç¨ãããã¨ã«ãªãã¾ããåºæ¬çãªæµãã¯åããªã®ã§ç°¡åã«ç´¹ä»ãã¾ãã ãã¦ã³ãã¼ããµã¤ãããZipãã¡ã¤ã«ãtypesafe-activator-1.2.2-minimal.zipãããã¦ã³ãã¼ãããä»»æã®ãã£ã¬ã¯ããªã«å±éãã¾ããçè ã¯ãC:\pleiades\activator\activator-1.2.2ãã¨ãã¾ãããActivatorã³ãã³ããå©ç¨ã§ããããã«å±éãããã£ã¬ã¯ããªãç°å¢å¤æ°ã®ãPathãã«è¿½å ãã¦ããã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã®ä½æã¯ãactivator n
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Getting started §Creating a New Application Play expects a specific project structure. If you already have sbt installed, you can use a giter8 template, similar to a Maven archetype, to create a new Play project. This gives you the advantage of setting up your project folders, bui
1éåä»ï¼ã¤ã³ã¹ãã¼ã«ç / 1éæ¡å çï¼ã³ãã³ã / 2éï¼æ¸ãæ¹ / 3éï¼æã¨å¼ / 4éï¼é¢æ° / 5éï¼ãªãã¸ã§ã¯ãæå / 6éï¼å / 7éï¼æ³¨éç / å±ä¸ï¼è¨èªä»æ§è¦ç´ / é²ï¼scalaããã±ã¼ã¸æ¦è¦³ / é空ï¼ãã®ä»ã®ä»å±ããã±ã¼ã¸æ¦è¦³ ãªãã以ä¸ã®è§£èª¬ã¯Javaã®ææ³ã¨ã³ãã³ããæ¨æºã©ã¤ãã©ãªçãä¸å¿ç¥ã£ã¦ãããã¨ãåæï¼ç¾è¡ã®Scalaã¯ãªãJavaã©ã¤ãã©ãªã¸ã®ä¾å度ãé«ãScalaã ãã§å®çµã§ããç¶æ ã§ã¯ç¡ãããªããScalaã®ã³ã³ãã¤ã©èªä½ã¯Java1.4ç¨ã®ã³ã¼ããåããããæ¨æºã©ã¤ãã©ãªãå¤ã1.5ãåæã¨ãã¦ããï¼ã¨ãããã®éãã ããã¨ããããã¯æ¸ãçãããã®ã§ããããã£ã±ãææ³ãã©ã¤ãã©ãªåç §ç¨ã§ãããã¨ãç®æãã¦ããã®ã§ãä¾ãç¹é·çã¯æ¬¡ã®ãªã³ã¯ãåç §ããããï¼ãªããã ããåèè ãã¡ã®é æ ®ã«ããããããããããã®ä¾ã¯é¢æ°åè¨èªã«é¢ããäºåã®æ¦è¦çææ¡
Scala ã«ããå°ã㪠Lisp 2009.12.10 - 2009.12.15 (é´) 1. ç°¡å㪠S å¼ãã¼ãµ 2. æåå表ç¾ã¸ã®å¤æ 3. ã¢ãã ã¨åºæ¬ï¼é¢æ°ã ãã® eval é¢æ° 4. æ¡ä»¶å¼ã¨é¢æ°é©ç¨ã追å ãã eval é¢æ° 5. ä»ä¸ã ã¯ããã« æ¬ç¨¿ã§ã¯ï¼å°ã㪠Lisp ã®å®è£ ãã¨ããã¦ï¼æåã®å ¥éã®æ¬¡ã®æ®µéã¨ãã¦ã® Scala ãå¦ãã§è¡ãã¾ãã Java 1.5.0 ä¸ã® Scala 2.7.7 ã使ãã¾ããï¼ã³ã¼ã㯠Scala 2.8.0.r20121 ã§ãã²ã¨ã¨ãã確èªãã¦ãã¾ãã Lisp ã®ä»æ§ã¨è©ä¾¡ã®ã¢ã«ã´ãªãºã ã¯åºæ¬çã«ä¸è¨ã«ããããã¾ãã John McCarthy: A Micro-Manual for Lisp - Not the Whole Truth, ACM SIGPLAN Notices, Vol. 13, No. 8, Augus
以åã«åºæ¥ãªãã£ãç°å¢ãå®æãã¾ããï¼ æ³åãã¦ãããã®ã¯ä»¥ä¸ã®ãã㧠çµæã¨ãã¦ãã®ããã«ãªãã¾ããï¼ èæ¯ã¯å¾æ¥å¤ããã... æ¬å®¶ã¿ã¼ããã«ã«tmuxã§ç»é¢åå²ãï¼å·¦ã¨å³ä¸ã«Emacsï¼å³ä¸ã«æ®éã®zshããREPLãå¼ã³åºããã¡ããè£å®ãåºæ¥ã¾ãï¼ ããã«è³ãã¾ã§è²ã åé¡ããã£ãã®ã§ããï¼ç°¡åã«ã¾ã¨ããã¨ä»¥ä¸ãªæãã«ï¼ tmuxã§ã¿ã¼ããã«ãåå²ï¼ azuki_fontãã¿ã¼ããã«ã§ä½¿ãã¨åå²æã®æ ç·ãåããããæ³£ãæ³£ãæ¨ã¦ãï¼ Rictyã¨ãããã©ã³ãã使ãï¼ Emacs daemon使ã£ããï¼è²ãã°ãã£ããã©color-themeãå ¥ãããæã£ã. Rictyã¨color-themeã§Emacs.appã¨ã»ã¼åã綺éºãã«ãªã£ãï¼ ä»¥åã¯Emacsã¨å¥ã«ã¿ã¼ããã«éãã¦REPLã§ç¢ºèªãã度ã«ç§»åããªãããããªãã£ãããå©ããï¼ Emacsã®shell-modeã§REPLéãã¦ãã£
Emacsã§ã®scalaéçºç°å¢ããç´¹ä»ã ã¡ãã£ã¨éãå¤ãã®ã§2åã«åãã¾ãã åç·¨ã¯scala-mode å¾ç·¨ã¯ENSIME(scala IDE) ä»æ¥ã¯åç·¨ scala-modeã«ã¤ã㦠scala-mode ã¤ã³ã¹ãã¼ã« Emacsã«ã¯ããã©ã«ãã§scalaç¨ã®ã¢ã¼ãã¯å ¥ã£ã¦ãã¾ããã èªåã§scala-modeãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ãã scala-modeã¯Scalaã®é å¸ããã±ã¼ã¸ã«å«ã¾ãã¦ãã¾ãã ã¾ãscalaã®tarããã¦ã³ãã¼ããã¾ãã ç¾å¨ã®å®å®æ¿ã¯2.8.0.finalã§ãã ã¾ãã¯ãã¦ã³ãã¼ã $ wget http://www.scala-lang.org/downloads/distrib/files/scala-2.8.0.final.tgz å±éãã¾ãã $ tar zxvf scala-2.8.0.final.tgz scala-2.8.0.f
Just for posterity, here is a Bash one-liner to download the VIM plugins to handle syntax highlighting for Scala: mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do wget --no-check-certificate -O ~/.vim/$d/scala.vim https://raw.githubusercontent.com/derekwyatt/vim-scala/master/syntax/scala.vim; done Update Here is a solution using cURL submitted by Joe: mkdir -p ~/.vi
注æ: éãã§ã¿ãã ããªã®ã§å®ç¨çã§ã¯ãªã*1ã ãããããã®ä»çµã¿ãããã¦ä½¿ã£ã¦ãä¾å ¨ãè¦ããã¨ç¡ãããåå¿è ã¯æ··ä¹±ãããããããªãã®ã§ãã¾ãçé¢ç®ã«è¦ãªãã»ããããããããã¾ãã forã§yield使ããªãã¦ããforeachãå¤ãè¿ãå ´åãforå ¨ä½ãå¤ãè¿ãã®ã§ããã»ã»ã» https://gist.github.com/xuwei-k/5611368 ãpointã¨bindããå®è£ ããã°Monadã ãï¼ã*2ã¨ããã®ãããããããããã«ãããã¨traitä½ãã¾ããããã¹ã¤ã«foreachãç´æ¥MaybeãConsListã«å®è£ ãã¦ãåãã§ã *1:ããããè²ã 工夫ããªãã¨ãpointã®åæ¸ããªãã¨ãããªãã¨ãããããããããã£ã¦foreachãå®ç¾©ãã¦ããªã«ãã¡ãªãããªã?ã¨ã *2:ããã¦ãforeachã¯é常ã§ã¯Unitè¿ãã®ã«ãããã§ã¯ãªã foreach == bind ==
Play 2.1ã«ã¢ããã°ã¬ã¼ããã¦ã³ã³ããã¼ã©ã使ãããªãï¼Scalaï¼Play 2.0ã§Webã¢ããªéçºå ¥éï¼5ï¼ï¼1/3 ãã¼ã¸ï¼ 2.0ããScalaã«å¯¾å¿ããWebã¢ããªéçºã®äººæ°è»½éãã¬ã¼ã ã¯ã¼ã¯ãPlayãã«ã¤ãã¦è§£èª¬ããWebã¢ããªã®ä½ãæ¹ãç´¹ä»ããå ¥éé£è¼ãä»åã¯ãPlay 2.0ãã2.1ã¸ã®ç§»è¡æ¹æ³ããã©ã¡ã¼ã¿ã®ãã¤ã³ãããªãã¼ã¹ã«ã¼ãã£ã³ã°ãã»ãã·ã§ã³ããã©ãã·ã¥ã¹ã³ã¼ãã®ä½¿ãæ¹ãªã©ã解説ãã¾ãã ååã®è¨äºãPlayã³ã³ããã¼ã©ï¼Actionï¼HTTP Routerã®åºæ¬çãªä½¿ãæ¹ãã§ã¯ãã³ã³ããã¼ã©ã®åºæ¬çãªä½¿ç¨æ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ããã ä»åã¯ã¾ããæ°ãããªãªã¼ã¹ãããPlay 2.1ã«ã¤ãã¦ã®æ å ±ã¨ç§»è¡æ¹æ³ãç´¹ä»ãã¾ããã¾ããååç´¹ä»ã§ããªãã£ããã³ã³ããã¼ã©ä½¿ç¨æ¹æ³ã®ç¶ç·¨ã«ã¤ãã¦ã解説ãã¾ãã Play 2.1ã«ã¢ããã°ã¬ã¼ãããã ååè¨äºã®åé ã§Pla
Effective Scala Marius Eriksen, Twitter Inc. marius@twitter.com (@marius) [translated by Yuta Okamoto (@okapies) and Satoshi Kobayashi (@scova0731)] Table of Contents åºç« æ¸å¼: ãã¯ã¤ãã¹ãã¼ã¹, å½å, ã¤ã³ãã¼ã, ä¸ã«ãã³, ãã¿ã¼ã³ããã, ã³ã¡ã³ã åã¨ã¸ã§ããªã¯ã¹: æ»ãåã¢ããã¼ã·ã§ã³, å¤ä½, åã¨ã¤ãªã¢ã¹, æé» ã³ã¬ã¯ã·ã§ã³: é層, 使ã, ã¹ã¿ã¤ã«, æ§è½, Java ã³ã¬ã¯ã·ã§ã³ 並è¡æ§: Future, ã³ã¬ã¯ã·ã§ã³ å¶å¾¡æ§é : å帰, Return, forã«ã¼ãã¨å å , require 㨠assert é¢æ°åããã°ã©ãã³ã°: 代æ°çãã¼ã¿åã¨ãã¦ã®ã±ã¼ã¹ã¯ã©ã¹, Option, ãã¿ã¼ã³ã
å°ã£ã¦ããã®ã¯scalaã ã¨åãªãé¢æ°ã ããé¢æã¯mapãã¢ããã¯flatMapãªã ãã§ããããã®ã©ããé£ããã¨ããã®ã§ãããã åè«ã¨ãã¢ãããªãã¦ç°¡åã ããscalaã使ã£ã¦èª¬æãã¦ã¿ã å 容ã«ã¤ãã¦èãã¦ã¿ããã åã®å®ç¾©ï¼ trait Cat { type A type B def f:A => B } trait Cat { type A type B type C def f:A => B def g:B => C def f_g:A => C = f andThen g } åè«ã¨ãã¢ãããªãã¦ç°¡åã ããscalaã使ã£ã¦èª¬æãã¦ã¿ã ããã§å®ç¾©ããã¦ããCatã¯ãã ã®1æ¬ã®å°ã§ãã£ã¦åã¨ã¯è¨ãé£ããhom setãå®ç¾©ããã¨ããã®ãªãã¾ã ãããããScalazã®Homã¨ã¯ä¼¼ã¦ãããéãå®ç¾©ã ãå ·ä½çã«è¨ãã¨ãHomã¯1æ¬ã®å°fã§ã¯ãªããå°ã表ãåã§ããCãå®ç¾©ããã¦ããã
ã»åãæ¸ãï¼ ã»ååãä»ããï¼ ã»åæããï¼ åãæ¸ãï¼ ãã¯ï¼åæ¨è«ããã®ã«ããããåãªãã¦æ¸ããªãã¦ãããï¼ãã¨æãã¾ãããï¼ ã§ã¯ä¿å®ãä»»ããã¦ç·æ¥ã§ã½ã¼ã¹ãç解ãããæã«ãã®ãããªã³ã¼ãã ã£ãå ´åã¯ã©ãã§ãããã //XXã¨YYã¯ã©ããå¥ã®å ´æã§å®ç¾©ããã¦ãã class AAA[A <: XX, B <: YY] { def f(a:A,b:B) = a.xx + b.yy } ãæ»ãã®åãããæ¸ãã¨ããã°ãããã ãã¨è¨ããããªãã¾ãããããããæ®éã®åå¿ã§ãã class AAA[A <: XX, B <: YY] { def f(a:A,b:B):String = a.xx + b.yy } æ»ãå¤ã®åãããå ´åã¨æ¯ã¹ã¦è¦ã¦ãã ãããã³ã¼ãã®èªã¿ããããå ¨ãéãã¾ãããã®ããã«ã³ã¼ãã£ã³ã°ããéã«ã»ãã®ã²ã¨æéæããã ãã§ãä¿å®æã®ã³ã¹ããå¤§å¹ ã«åæ¸åºæ¥ã¾ãã ä¿å®ã®ã³ã¹ãã
https://github.com/scalajp/introduction-to-category-theory-in-scala-jp/wiki ã«ç§»åãã¾ããããã¡ãã¯ããã©ã¼ã¨ããã¦ããã ãã¾ãã ããã¯ãTypesafe 社㮠Director Professional Services ã§ãã Heiko Seeberger æ°ã«ãããIntroduction to Category Theory in Scalaãã®ç¿»è¨³æã§ãã誤訳ã誤è¨ãªã©ãããã¾ãããã æ¥æ¬Scalaã¦ã¼ã¶ã¼ãºã°ã«ã¼ãã®ãåè«å ¥éãã¬ãã¥ã¼ã®ãé¡ãããããã¯ã«æ稿ãã¦ããã ããã@quassia88 ã«ãé£çµ¡ãã ããã ããåãåã¿ããã«ã以åã¯Javaãã£ããããã¼ã§ãScalaã®ãã¡ã³ã«ãªã£ãã°ãããªããåã¯å¤åé ããæ©ãããã¢ããããé¢æããã®ãåè«ã®åéãããã£ã¦ããè¬ã«ééããã ãããããã
At Devoxx last week I used the phrase "Scala feels like EJB 2 to me". What was on my mind? For a number of years on this blog I've been mentioning a desire to write a post about Scala. Writing such a post is not easy, because anyone who has been paying attention to anti-Scala blog posts will know that writing one is a sure fire way of getting flamed. The Scala community is not tolerant of dissent.
ããæ¥çªç¶ãScala (lift) ã®ããã¸ã§ã¯ãä½ã£ããã Jenkins ã§ãã¹ãçµæã¨ã«ãã¬ãã¸ãããæãã§è¡¨ç¤ºã§ããããã«ãã¦ããããã¨è¨ããã¦ãä¸çæ¸å½è¨å®ããã¨ãã®å 容ãã·ã§ã¢ããã å®æäºæ³å³ ç°å¢ sbt 0.7.5 sbt-coverage 0.2 junit_xml_listener 0.2 Jenkins 1.414 Jenkins Emma plugin 1.25 Jenkins sbt plugin 1.2 ç°å¢è¨å® sbt ãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã Mac OS X ã¦ã¼ã¶ã§ homebrew ã¦ã¼ã¶ãªã $ brew install sbtã§ã¤ã³ã¹ãã¼ã«ããããScala ã®ã¤ã³ã¹ãã¼ã«ã¯ä¸è¦ã ãã¼ã¸ã§ã³ãå°ãå¤ãã¦ãåé¡ãªãã ã¾ãã¯ãã¼ã«ã«ã§è©¦ã (1) Scala (lift) ããã¸ã§ã¯ããç¨æãã ããã§ã¯èª¬æã®ããã Google
Eclipseã«Scalaãã©ã°ã¤ã³ãå ¥ããã¨ãScala Projectããä½æãããã¨ãã§ãããã§ããããã¨ãEclipseã®WTPã使ã£ãAPãµã¼ãä¸ã§ã®éçºã¯ã§ããªããããã§ãä½æããåçWebããã¸ã§ã¯ãã«Scalaç°å¢ã追å ããããã«ããã åçWebããã¸ã§ã¯ãã§ç°¡åãªScalaãµã¼ãã¬ãããåããæé ãã¾ã¨ãã¦ããã ç°å¢ã»Mac OS Xã»JDK1.5.0_13ã»Eclipse(Eclipse IDE for Java Developers) 3.3.1.1 ããã¦ã³ãã¼ãURLï¼ http://www.eclipse.org/downloads/ã»Scala Plugin for Eclipse 2.7.1.r14915-b20080506010100 (BETA)ãã¢ãããã¼ããµã¤ãï¼ http://www.scala-lang.org/downloads/scala
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}