IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
バグから学ぶ計算機科学 Scalaのハッシュテーブルにおいて並列コレクションのためのコード変更が大量の衝突を引き起こした事例 書いた人: ると 書いた日: 2012年1月21日 はじめに Twitterで「有名なオープンソースソフトで今まであったおもしろいバグを解説した本とかないだろうか」とツイートしたらそれなりに需要があるようでした。そこで先ず隗より始めよという故事にのっとり、死馬の骨としてバグ解説記事を書いてみます。 今回のバグはScala 2.9の標準ライブラリに含まれるmutable.HashSet(ハッシュテーブルを使った重複無しコレクション)のコピーがJavaの標準ライブラリに含まれるHashSetの100倍遅いというバグです。並列コレクションのためにぱっと見問題の無い変更を加えたら思わぬところで影響が出たというものです。 なお、今回はScalaに関するバグですが、Scalaに
I have been working with Scala for more than five years. In those five years, I've seen Scala evolve and seen the ecosystem and community evolve.An attribute of Scala is that the Scala compiler generates fragile byte-code. This means that all the code in an executable (JAR or WAR) must be compiled with the same library and compiler versions. If you're using Scala 2.9.1 in your project, you must
こんにちは初めましてー。2011年度新卒の田中です。 12月から急に寒くなってきましたね。 11月が暖かかったからといって油断していませんか? 私は完全に油断していました。まだ冬服を買っていません。 さて、まだ暖かかった11月、ドワンゴでScala勉強会という熱いイベントがありました。 私は最近Scalaを勉強し始めたのですが、この勉強会で、Scalaの魅力的な機能をたくさん知ることができました。 今回はScala勉強会から持ち帰った情報や今まで私が勉強してきたことを元に、Scalaのどこが魅力的なのかを記事をしていこうと思います。 それではよろしくお願いいたします。 対象読者 Javaを書いたことがある方 Scalaを知りたい方 Scalaを始めたばかりの方 Scala? ドワンゴはエンジニア同士の技術交流が盛んな会社で、プログラミング言語を中心に日々、情報交換、議論が行われています。
Following up on my recent Scala posts, some commented that because I haven't used Scala seriously, my opinion is of little value. I responded by noting that writing the FCM closures proposal for Java, altering the javac compiler, and talking at conferences about language design might qualify me to have an opinion. Having said all that, I do believe that the most valuable feedback comes from those
This page is about developing Android applications written in the Scala programming language. Our objectives are primarly to share our personal experience and to create emulation among the Android and Scala programmer communities. We kindly thank all people who submitted comments and questions about this work, in particular Johannes, Kevin and Will. Articles In this series of articles we promote t
The new 2.9.0 version of the Scala programming language was released recently and in this tutorial, I’ll show you how it can be used to program Android. Those who want to cut to the chase can clone the project from GitHub and start trying it out. Read on for an explanation of how Scala compilation is added to the Android build system. Since Scala runs in the JVM, it should theoretically be possibl
とあるWeb系企業にscalaを導入させてみた - Presentation Transcript ^:HE 6FDOD [ ][ [ ) $NLQRUL <DPDGD #DBDPDGD WR Z += c c c = TZB a-DYD c 3DUP Z+DGRRS ZPRQJR% Z 2 6FDOD 6FDOD J^ #M LN R Z 6FDOD! ^ F=6FDOD! = c` a6FDOD #M LN R /7 2= /7 3 6FDOD$ "-DYD = [ REMHFW_ a VLQJOHWRQ WUDLW=PL[LQ $FWRU 6/-DYD+ ^ % [ Z aa B[^= ] ^Z-90 Z 4 Z 5 6FDODC ][ ? 6 6FDODC ] ? 7 ,[Z 6FDOD [^ 8 , ,Z = [ Z? 9 3DUP ^:HE ` b ^616 a 3+3 =X[
Pemeliharaan Terjadwal: Spinix pada 01-Oct-2024 dari 23:00:00 sampai 31-Dec-2025 23:59:59. Selama waktu ini, Spinix permainan tidak akan tersedia. Kami memohon maaf atas ketidaknyamanan yang mungkin ditimbulkan. Pemeliharaan Terjadwal: Fairbet pada 14-Jan-2025 dari 12:00:00 sampai 01-Jan-2026 00:00:00. Selama waktu ini, Fairbet permainan tidak akan tersedia. Kami memohon maaf atas ketidaknyamanan
PHP よりは Xslate が好きな加藤和良です。プログラミング言語のなかでは Scala が好き です。 さて今回も いまからでも間に合う開発者テスト Buildbot で継続的インテグレーション Jenkins はじめました + ほか3つ に引き続き開発者テストの話をします。 テストをリモートで実行したい 最近になって何度か「このブランチのテストを Jenkins で一度だけ実行してもらえませんか?」という相談をうけました。最初はなにか勘違いをされているのかと思い「いや Jenkins がやっている仕事はテストを実行しているだけで、テストは手元でも実行できますよ」と説明していたのですが、話を聞いていると「テストの実行が遅いので Jenkins のホストを使いたい」という意図だということに気づきました。 以前に何度か説明している通り mixi における「ブランチ」は開発版です。安定版に
Lift Wiki へようこそ 現在、このサイトを Lift Web フレームワークの一次情報源にするべく作業中です。 Assembla のフリーアカウント作成後、右上隅の “Watch this space” をクリックして “Watcher” になり、サイトの構築を手伝ってください。 探している情報がこのサイトで見つからない場合は、古い Wiki やさらに古い Wiki も参照してみてください。 Lift は、Web アプリケーションを記述するための表現力に富んだエレガントなフレームワークです。Lift は、セキュリティや保守性、スケーラビリティ、パフォーマンスを重視しながら、開発者の生産性の大幅アップも実現しています。 Lift は、次のような既存のフレームワークの長所を受け継いでいます。 Seaside の粒度の高いセッション管理とセキュリティ機能 Rails の手軽さ Djang
[2011/08/23 追記] 続き書いた。Javaプロジェクトにおけるビルドツール2 - @ikikko のはてなダイアリー 1歳ちょっとの自分の子供を抱き上げると高確率で泣かれるikikkoです、こんにちは。早くこんな日がくるとイイですね。 (※:画像はイメージです。実物とは異なる可能性があります。) 前々から色々と考えていたところがあったので、Javaプロジェクトにおけるビルドツールについて少しまとめてみました。とりあげたものは以下の4つ。 [http //ant.apache.org/:title=Ant]:Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension po
とーま @tou_touma @takanorig Advanced Tech Night No2に参加予定だったyuji hayakawaです。急遽参加できなくなってしまい、キャンセルさせていただきます。。。申し訳ありません。 #atn2011 2011-07-19 19:55:02 Takanori Suzuki @takanorig 無事、台風も過ぎ去り、明日は Advanced Tech Night No.2 「ジャバラーが知っておくべき最近の開発言語のこと」 開催です!ありがたいことに、満員御礼となりましたm(__)m スピーカーの皆さん、明日はよろしくお願いします。 #atn2011 2011-07-21 23:56:42 Kenichiro Murata @muraken720 RT @takanorig: 無事、台風も過ぎ去り、明日は Advanced Tech Night
今日はScalaの例外処理について解説しますよ。 基本 - try,catch,finally 例外処理の基本は、try,catch,finallyです。これはJavaと同じですね。 ただし、Scalaでのtry,catch,finallyは値を生成します。つまり、実行されたブロックの値が評価されます。 scala> val n = try{ "99".toInt } catch { case e:Exception => -99 } n: Int = 99 scala> val n = try{ "foo".toInt } catch { case e:Exception => -99 } n: Int = -99 上記のように、catch節には "case e:Exception => ..."のようなパターンマッチを書くことで、対応する例外の型に応じて補足することができます。try,
前回はLiftの基本的な使い方を紹介し、簡単なウェブアルバムサービスを作りました。今回はこのウェブアルバムサービスを拡張しながら、より発展的なLiftの機能やテクニックを紹介していきます。 今回紹介することは次の通りです。 ユーザーアカウントの扱い方 Boxモナドを使ったテクニック Ajaxの実装方法 前回作ったウェブアルバムサービスではすべてのアルバムが公開されました。しかし、実際は家族や友人だけにみてほしい場合もありますよね。例えば結婚式やオフ会での写真を参加者だけで共有したり、子供の成長の記録を家族や親戚で共有できたらとても便利です。 今回は前回のウェブアルバムサービスを拡張し、いろいろな人に使ってもらえるようアカウントを導入し、アルバムごとの権限を導入し、ユーザーが設定できるようにします。 1. アカウントの導入 まずはユーザーアカウントを導入します。Liftにはユーザーアカウント
This document discusses Scala as a domain-specific language (DSL) for building other DSLs. Some key points: - Scala can be used to create internal DSLs within applications as well as external DSLs for defining domain concepts. - Examples shown include using Scala for TODO list management, entity-relationship modeling, and processing streaming data. - Scala's traits, classes, functions and other fe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く