Scala.js 1.18.2 Harness the Scala and JavaScript ecosystems together. Develop robust apps for browsers, Node.js, and serverless. Strong typing guarantees your code is free of silly mistakes; no more mixing up strings or numbers, forgetting what keys an object has, or worrying about typos in your method names. Scala.js takes care of all this tedious book-keeping for you, letting you focus on the ac
タイトルã§å«Œãªäºˆæ„ŸãŒã—ã¦ã‚‹äººã‚‚ã„ã‚‹ã§ã—ょã†ãŒã€ScalaãŒJSã«å¤‰æ›ã•ã‚Œã¦å‹•ãã¾ã™ã€‚ã‚„ã£ãŸãœã€‚ Scala.js http://www.scala-js.org/ 試㙠ã“ã®ã‚µãƒ³ãƒ—ルプãƒã‚¸ã‚§ã‚¯ãƒˆã‚’ git clone ã™ã‚‹ã®ãŒè‰¯ã„ã§ã™ã€‚ sjrd/scala-js-example-app https://github.com/sjrd/scala-js-example-app サンプルコードã¯ã“ã‚“ãªæ„Ÿã˜ package example import scala.scalajs.js import js.Dynamic.{ global => g } object ScalaJSExample { def main(): Unit = { val paragraph = g.document.createElement("p") paragraph.innerHTML = "<strong>
今日ã¯ã€Scalaã®Optionã®ä½¿ã„æ–¹ã«ã¤ã„ã¦è§£èª¬ã—ã¾ã™ã‚ˆã€‚Optionã¯Scala使ã„ã«ã¨ã£ã¦ã¯ãªãã¦ã¯ãªã‚‰ãªã„ã‚‚ã®ã§ã™ã€‚ã“れを覚ãˆã¦ã—ã¾ã†ã¨ä»–ã®è¨€èªžã§ã‚‚Optionを作りãŸããªã‚‹ã€ã‹ã‚‚ã—ã‚Œãªã„? Optionã£ã¦ãªã«? Optionåž‹ã¯ã€å€¤ãŒã‚ã‚‹ã‹ãªã„ã‹åˆ†ã‹ã‚‰ãªã„状態を表ã™ã‚‚ã®ã§ã™ã€‚「Maybeモナドã€ã¨ã‹è¨€ã£ã¦ã—ã¾ã†ã¨ã‚¢ãƒ¬ã§ã™ãŒã¾ããã‚“ãªã‚ˆã†ãªã‚‚ã®ã‚‰ã—ã„ã§ã™ã€‚ Optionã®å®šç¾© ã¾ãšã¯ã€Optionã®å®šç¾©ã‹ã‚‰è¦‹ã¦ã¿ã¾ã—ょã†ã€‚Optionåž‹ã¯ã€æŠ½è±¡ã‚¯ãƒ©ã‚¹Option[+A]ã¨ã€Option[A]を継承ã—ã¦å€¤ãŒã‚ã‚‹å ´åˆã®Some[+A]åž‹ã¨NoneオブジェクトãŒã‚ã‚Šã¾ã™ã€‚ Option - Scala Standard Library API (Scaladoc) 2.10.0-20120530-022829-8d38079ab4 - scala.Option // Optionã®æŠ½
140æ–‡å— âœ• 2ã§è¡¨ã™ã¨ã“ã‚“ãªæ„Ÿã˜ sbt 0.13.1[info] Compiling 1 Scala source[info] Compiling 7[info] Compiling 84[info] Compiling 240[success] Total time: 259 s 2014-01-10 12:56:08 via web sbt 0.13.2-M1[info] Compiling 1 Scala source[success] Total time: 15 sURL URLAwesome!!! 2014-01-10 12:56:52 via web to @xuwei_k 測定方法㯠Scalazã®ã€ç¾çŠ¶ã®æœ€æ–°ã®coreモジュールを使ã£ã¦å®Ÿé¨“ EphemeralStreamã«headOptionã¨tailOptionã¨ã„ã†2ã¤ã®ãƒ¡ã‚½ãƒƒãƒ‰ã‚’è¿½åŠ ã™ã‚‹ã‚³ãƒŸãƒƒãƒˆã‚’使用 htt
This document is intended to outline some basic Scala stylistic guidelines which should be followed with more or less fervency. Wherever possible, this guide attempts to detail why a particular style is encouraged and how it relates to other alternatives. As with all style guides, treat this document as a list of rules to be broken. There are certainly times when alternative styles should be prefe
1. Functional Programming in Scala Reading #2 Sep 19 2013 NaoyukiYamada Software Engineer@AMoAd https://github.com/chokkoyamada 2. • Functional Programming in Scala (by Paul Chiusano and Rúnar Bjarnason) ã®èªæ›¸ä¼š http://www.manning.com/bjarnason/ • 毎週木曜日17:00~18:00@渋谷マークシティ • AMoAdã®ç¤¾å†…勉強会 • 今回ã¯ç¬¬2回。第1回ã®è³‡æ–™ã¯ã“ã¡ã‚‰ https://speakerdeck.com/potix2/fpscala-chapter1 ã“ã‚Œã¯ä½•ï¼Ÿ 3. 開発環境構築(1/2) • 書ç±ç”¨ã®ãƒ¬ãƒã‚¸ãƒˆãƒªã‚’cloneã—ã¦ãã‚‹ http
Usual Scala compilation never seems fast enough. There are two main reasons why: It takes a lot of time to start Scala compiler and to process standard libraries. Scala compiler doesn’t support selective recompilation. The first problem is solved by FSC (Fast Scala Compiler). FSC runs a compilation daemon to avoid subsequent compiler instantiations (at the price of increased memory usage). However
ScalaSeamless data access for your Scala application — Write Scala code to query your database. Type SafeAll database entities and queries are statically checked at compile-time. Slick is an advanced, comprehensive database access library for Scala with strongly-typed, highly composable APIs. Slick makes it easy to use your database in a way that’s natural to it. It allows you to work with relatio
Welcome to JGlobal Limited, the online home of myself, Michael Nash. I am the Director of Capabilities at Lightbend, Inc. This site and my blog and newsletter is all about what I call Reactive Digital Transformations - that is, organizations changing themselves into a digital organization, but using the reactive principles to do it. I have written and co-authored a few books in the software busine
Latest Release - ScalaTest and Scalactic 3.2.19! import collection.mutable.Stack import org.scalatest._ import flatspec._ import matchers._ class ExampleSpec extends AnyFlatSpec with should.Matchers { "A Stack" should "pop values in last-in-first-out order" in { val stack = new Stack[Int] stack.push(1) stack.push(2) stack.pop() should be (2) stack.pop() should be (1) } it should "throw NoSuchEleme
Sébastien Doeraene @sjrdoeraene Scala Days 2013, June 12th LAMP, lamp.epfl.ch École polytechnique fédérale de Lausanne, Switzerland JavaScript The one and only language of the Web A scripting language, designed for programming in the small How to scale to Rich Internet Applications? JavaScript as a target language Compile a higher-level language to JavaScript GWT, Scala/GWT CoffeeScript, Dart, Typ
ãƒ‹ã‚³ãƒ‹ã‚³è¶…ä¼šè° 2012ã®è¶…エンジニアミーティングã®Scalaユーザーグループã®ã‚³ãƒžã§ã€ŒScalaã§ãƒ—ãƒã‚°ãƒ©ãƒ を作りã¾ã—ãŸã€ã®ã‚»ãƒƒã‚·ãƒ§ãƒ³ã‚’è¡Œã„ã¾ã—ãŸãŒã€å³ã®å›³ã¯ãã®ã‚¹ãƒ©ã‚¤ãƒ‰ã§ç”¨ã„ãŸDSLã®åˆ†é¡žã§ã™ã€‚ ã“ã“ã§ã¯ã€DSLを分類ã™ã‚‹è»¸ã¨ã—ã¦ã€ç”¨é€”ã®è»¸ã¨å®Ÿç¾æ–¹æ³•ã®è»¸ã‚’用ã„ã¦ã„ã¾ã™ã€‚ 用途ã®è»¸ã®é …ç›®ã¯ä»¥ä¸‹ã®2ã¤ã§ã™ã€‚ モデルフレームワークAPI実ç¾æ–¹æ³•ã®è»¸ã®é …ç›®ã¯ä»¥ä¸‹ã®2ã¤ã§ã™ã€‚ 内部DSL外部DSL一å£ã«DSLã¨ã„ã£ã¦ã‚‚2×2ã§4種類ã®DSLã«åˆ†é¡žã™ã‚‹ã“ã¨ãŒã§ãã‚‹ã‚ã‘ã§ã™ã€‚å„象é™ã«ã¯ã€ã‚»ãƒƒã‚·ãƒ§ãƒ³ã§å–り上ã’ãŸæŠ€è¡“を分類ã—ã¦é…ç½®ã—ã¦ã„ã¾ã™ã€‚ Scalaã¯ã€é–¢æ•°åž‹è¨€èªžã®æ©Ÿèƒ½ã¨æ–‡æ³•ä¸Šã®å·¥å¤«ã§å†…部DSLã®å®Ÿç¾ã«é©ã—ãŸè¨€èªžã¨ãªã£ã¦ã„ã¾ã™ã€‚ã¾ãŸãƒ‘ーサーコンビãƒãƒ¼ã‚¿ã‚’用ã„ã‚‹ã“ã¨ã§å¤–部DSLã®å®Ÿç¾ã‚‚ç°¡å˜ã«è¡Œã†ã“ã¨ãŒã§ãã¾ã™ã€‚ Scalaã®åå‰ã®ç”±æ¥ã§ã‚る「Scalable Languageã€ã¯ã€è¨€èªžã‚’ドメインå‘ã‘ã«
HerokuãŒJavaã«å¯¾å¿œ*1ã—ã¾ã—ãŸã€‚ãã“ã§ã€Play! frameworkã®Tutorialã§ä½œã‚‹ãƒ–ãƒã‚°ã‚¨ãƒ³ã‚¸ãƒ³ã€ã€ŒYabeã€ã‚’Herokuã§å‹•ã‹ã—ã¦ã¿ã¾ã—ãŸã€‚ Herokuã«ã‚¢ãƒ—リを作æˆ*2 Herokuã«ã‚¢ãƒ—リを作æˆã—ã¾ã™ãŒã€ã“ã®æ™‚ã«ã€Œ--stackã€ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’è¿½åŠ ã—ã¦ã€Œcedarã€ã‚¹ã‚¿ãƒƒã‚¯ã‚’指定ã—ã¦ãã ã•ã„。アプリã®åå‰ã‚’「yabe-nkmrshnã€ã«å¤‰æ›´ã—ã¦ã„ã¾ã™ãŒã€ã“ã‚Œã¯å¿…é ˆã§ã¯ã‚ã‚Šã¾ã›ã‚“。 $ heroku create --stack cedar $ heroku apps:rename yabe-nkmrshn次ã«ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’è¿½åŠ ã€‚ã¨ã‚Šã‚ãˆãšç„¡æ–™ã®å…±æœ‰ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’指定ã—ã¾ã—ãŸã€‚ $ heroku heroku addons:add shared-databaseãã—ã¦ã€conf/application.confã§è¨å®šã™ã‚‹PostgreSQLã®URLã‚’å–å¾—ã—ã¾ã™ã€‚
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
2.0ã§å¤§å¹…ã«æ‹¡å¼µã•ã‚ŒãŸPlay Framework 本連載ã®ç¬¬14回ã€ç¬¬15回ã§ã€ŒPlay Frameworkã€ï¼ˆâ 以下ã€Play)ã¨ã„ã†Javaアプリケーション開発フレームワークを紹介ã—ã¾ã—ãŸã€‚Playã¯ã€Ruby on Railsã®ã‚ˆã†ã«ç°¡å˜ãªã‚³ãƒžãƒ³ãƒ‰ã ã‘ã§MVCスタイルã®Webアプリケーションã®é››å½¢ã‚’構築ã—ã€é–‹ç™ºã‚’スタートã•ã›ã‚‹ã“ã¨ãŒã§ãるフレームワークã§ã™ã€‚ 2012å¹´3月13æ—¥ã€ãã®Playã®æ–°ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€ŒPlay framework 2.0ã€ï¼ˆâ 以下ã€Play 2.0)ãŒãƒªãƒªãƒ¼ã‚¹ã•ã‚Œã¾ã—ãŸã€‚ã“ã®æ–°ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€æ ¸ã¨ãªã‚‹ã‚¢ãƒ¼ã‚テクãƒãƒ£ã«å¤§å¹…ãªå¤‰æ›´ãŒåŠ ãˆã‚‰ã‚Œã¾ã—ãŸã€‚主ãªãƒã‚¤ãƒ³ãƒˆã¨ã—ã¦ã¯æ¬¡ã®ã‚ˆã†ãªé …ç›®ãŒæŒ™ã’られã¦ã„ã¾ã™ã€‚ JavaãŠã‚ˆã³Scalaã®ãƒã‚¤ãƒ†ã‚£ãƒ–サãƒãƒ¼ãƒˆ 強力ãªãƒ“ルドシステムã®æ§‹ç¯‰ 型安全性ã¸ã®ãƒ•ã‚©ãƒ¼ã‚«ã‚¹ éžåŒæœŸãƒ—ãƒã‚°ãƒ©ãƒŸãƒ³ã‚°ã®ã‚ˆã‚Šå¼·åŠ›ãªã‚µãƒãƒ¼ãƒˆ データストアã¨ãƒ¢ãƒ‡ãƒ«
リリースã€éšœå®³æƒ…å ±ãªã©ã®ã‚µãƒ¼ãƒ“スã®ãŠçŸ¥ã‚‰ã›
最新ã®äººæ°—エントリーã®é…ä¿¡
処ç†ã‚’実行ä¸ã§ã™
j次ã®ãƒ–ックマーク
kå‰ã®ãƒ–ックマーク
lã‚ã¨ã§èªã‚€
eコメント一覧を開ã
oページを開ã
{{#tags}}- {{label}}
{{/tags}}