このページは Scala 2.13 へ移行するコレクションユーザーにとっての主な変更を説明し、Scala 2.11、2.12、2.13 向けにクロスビルドする方法をお見せする。
Martin Odersky, Lex Spoon 著 Eugene Yokota 訳 Scala 2.8 の変更点で最も重要なものは新しいコレクションフレームワークだと多くの人が思っている。確かに以前の Scala にもコレクションはあったが、Scala 2.8 になって一貫性があり、包括的な、統一コレクション型のフレームワークを提供することができた。(大部分において新しいフレームワークは旧版と互換性がある) コレクションの変更点は、一見すると微細なものだがプログラミングスタイルに重大な変化をもたらすことができる。コレクション内の要素ではなくコレクション全体を、プログラムを組む時の基本的なパーツとすることで、あたかも一つ上の階層でプログラミングをしているかのように感じるだろう。この新しいスタイルには慣れを必要とするが、幸い新しいコレクションの特長のお陰で楽に適合できるようになっている。
Simple things easyHello, world!ThisBuild / scalaVersion := "3.3.3"You just need one line of build.sbt to get started with Scala. Learn more on sbt by Example page.sbt newChoose from community-maintained Giter8 templates to jump start your project:$ sbt new scala/scala-seed.g8 $ sbt new playframework/play-scala-seed.g8 $ sbt new akka/akka-http-quickstart-scala.g8 $ sbt new http4s/http4s.g8 $ sbt ne
playframework-ja.org is coming soon This domain is managed at
sbt (originally simple build tool, nowadays stands for nothing[4]) is an open-source build tool which can build Java, Scala, and Kotlin projects. It aims to streamline the procedure of constructing, compiling, testing, and packaging applications, libraries, and frameworks. sbt is highly adaptable, permitting developers to customize the build process according to their project's specific needs. sbt
Javaから Rubyへ! ・・・そんな時期が、俺にもありました。 Rubyの記述力は Javaと比べて本当に魅力的で、設定より規約だ!ダックタイピングだ!なんていいながら一時期みんなして Railsに群がってたんだけど。互換性がそれほど重視されないから言語やフレームワークのバージョンアップに置いて行かれるとひどい目にあうし、タイプミスひとつさえテスト回してやらないと拾えないし、なにより実行速度がひどく遅い。そうこうしているうちに Javaの方はアノーションが積極的に使われる始めることで設定ファイルは小さくなったし、動的な型のほうが柔軟でいいというのは誰が言い始めたのか知らないが実は気のせいじゃないかと皆が気付き始めるのも無理はないのだ。 やあ、Javaへお帰りみんな。 そうして Javaに帰って来たはいいけど、やっぱりJavaでWebアプリケーションを作るのには極めて鬱陶しい要素が相変わ
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Hello World Tutorial §Play Tutorials Play’s documentation shows the available features and how to use them, but the documentation will not show how to create an application from start to finish. This is where tutorials and examples come in. Tutorials and examples are useful for sh
Play Framework makes it easy to build web applications with Java & Scala. Play is based on a lightweight, stateless, web-friendly architecture. Built on Pekko (Play 3) and Akka (Play 2), Play provides predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications. Developer friendly. Make your changes and simply hit refresh! All you need is a browser and a tex
Java のクラスライブラリには Date と DateFormat のような強力なユーティリティクラスがあります。Scala は Java とシームレスに連動するので、Scala のクラスライブラリに同様なクラスを実装する必要はありません。対応する Java パッケージのクラスをそのままインポートできます。 import java.util.{Date, Locale} import java.text.DateFormat import java.text.DateFormat._ object FrenchDate { def main(args: Array[String]) { val now = new Date val df = getDateInstance(LONG, Locale.FRANCE) println(df format now) } } Scala の im
When I decided to put Innovation Games® online, I knew that I couldn't afford a massive development effort. I needed a small, sharp team who could leverage best-in-class tools to help us solve the problems we knew that we'd have to solve in creating a new kind of collaborative gaming experience on the web. David suggested Lift and Scala and initial testing proved that we could realize the develope
Lift とは Lift は、Web アプリケーションを記述するための表現力に富んだエレガントなフレームワークです。Lift アプリケーションには、次のような特徴があります。 セキュア -- Lift アプリケーションは、OWASP の10大セキュリティ脆弱性の多くをはじめ、一般的な脆弱性に対する耐性があります。 開発者中心 -- Lift アプリケーションは迅速に構築でき、簡潔で、メンテナンスが容易です。 スケーラブル -- Lift アプリケーションはパフォーマンスが高く、現実の運用でも強力な柔軟性を発揮して膨大なトラフィックを処理できます。 デスクトップアプリケーションのようにインタラクティブ -- Lift の Comet サポートはほかに例のない優れたもので、Ajax サポートも非常に簡単、しかもセキュアです。 上のような特徴を Lift がどのようにして実現しているか興味を持っ
val fruits = List("apple", "banana", "avocado", "papaya") val countsToFruits = // count how many 'a' in each fruit fruits.groupBy(fruit => fruit.count(_ == 'a')) for (count, fruits) <- countsToFruits do println(s"with 'a' × $count = $fruits") // prints: with 'a' × 1 = List(apple) // prints: with 'a' × 2 = List(avocado) // prints: with 'a' × 3 = List(banana, papaya)
2005年夏 JavaOne カンファレンス にて (duke-rockstarのシャツ) ジェームズ・アーサー・ゴスリン(James Arthur Gosling、1955年5月19日 - )は、カナダ出身の計算機科学者である。オブジェクト指向プログラミング言語Javaの生みの親・リードデザイナーとして広く知られており、"Dr. Java"の異名を持つ[3]。 アルバータ州カルガリー近郊に生まれた。計算機科学を専攻し、1977年にカルガリー大学で学士号[4]、カーネギーメロン大学で修士号とPh.D.を取得した[2][5][6]。博士課程在籍中に、UNIXで動作する最初のEmacs風エディタであるGosling Emacs(Gosmacs)を開発した。また、カーネギーメロン大学在学中に、UNIXのマルチプロセサ版[7]や、いくつかのコンパイラとメール転送エージェント(MTA)を開発した。
Scalaとは、キックボクシングのルールに「投げ技」と「グラウンドでの打撃」を組み込んだMMA(総合格闘技)系プログラミング言語である。 HaskellやOCamlなどのレスリング系(もしくは柔道系)の選手が多く所属する言語と、Javaを代表とする打撃系の言語、双方の選手が参入できるようにバランスを取ったルールを採用している。 打撃系の選手がグラウンドテクニックを習得するために、入門用言語としてScalaに参画するケースもあるようだ。 まだマイナーな言語ではあるが、試合展開が間延びすることが少なく選手や観客からの受けも良いので、今後は参入する選手も増えることが予想される。 選手の性質によって試合内容が大きく変わるのが、Scalaの1つの特徴と言える。Javaの試合を見ているような立ち技のみに徹する展開になることもあれば、Haskellの試合のようにグラウンドでの展開が長く続く場合もある。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く