TSKaigi 2024 のスライドです
Wikipediaで リアクティブプログラミング (reactive programming)を調べてみました。また、 関数型リアクティブプログラミング (functional reactive programming, FRP)についても少し説明があったので確認してみましたが、どちらも説明が大雑把です。 実際のところ関数型リアクティブプログラミングとはどういう意味なのでしょうか?リアクティブプログラミングは(非リアクティブプログラミングと比べて)何で構成されているのですか?私は命令型のオブジェクト指向言語を使っているので、そのパラダイムに関連させて説明して頂けると大変有難いです。 asked by JtR Answer(s) FRPの感触をまず試してみたいのであれば、 1998年に発表された古典のFran tutorialに目を通してみると良いでしょう。 これは動画で説明されています。
just another scala quantを日本語にしました。 ちなみに、私の解はこちらに。 最初の解答 はてブに書いた解答方針、Inverse Fizzbuzz (FizzBuzzの逆関数) - Qiita - 与えられた範囲内のすべての解を数え上げてます。 もっと簡潔な解答 逆FizzBuzz問題 解きなおし - Qiita それでは、問題の日本語訳をどうぞ。 逆Fizzbuzz問題 2012年ではなく、2016年のお話。 世の中は大して変わっていない。 OOPと書き換え可能なオブジェクトによって何度もひどい目にあった後、世界はやっとのことでJohn Hughesの考察が正しかったことに気づき、関数型プログラミングに移行した。GoogleはTypesafe社を買収し、ScalaがAndroid上でネイティブに動作するようになっている。Googleに負けず劣らず、AppleはHas
I'm glad you're starting by asking about a specification rather than implementation first. There are a lot of ideas floating around about what FRP is. From the very start in the early 90's (when I was working in interactive graphics at Sun Microsystems and then Microsoft Research), it has been about two properties (a) denotative and (b) temporally continuous. Many folks drop both of these properti
この記事は、Monad でつまづいた Haskeller のための Monad 再入門です。 Monadとは何ですか? Monad とは、単なる型クラスの一つです。難しいという風評もありますが、それ以上でもそれ以下でもありません。 この型クラスのメソッドは、return と >>= です。 class Monad m where (>>=) :: m a -> (a -> m b) -> m b return :: a -> m a つまり、以下を満たす型の集合が Monad です。 m a で表現できるように一つの型変数を格納するコンテナ型 >>= と return を実装 return は新しいコンテナを作り、>>= は二つのコンテナを合成します。 Monad のインスタンスは失敗系と状態系に大別できます。以下に代表的なインスタンスを示します。 失敗系: Maybe、[] (リスト)
この二年仕事をしてきた会社ですが、アジア圏での更なる発展をめざし、東京オフィスを香港に移転することになりました。(http://www.cufp.org でも既に東京の求人は止めて、香港で出しています。) え、どこの会社?まぁ調べてくださいよ。(追記: Jane Street Global Trading, LLC です。) アジア金融圏でニューヨーク、ロンドンなみの地位を築けた東京も今は昔。ぼぉっと10年無駄にしてる間に、日本はその地位を確固とすることのないまま、香港、シンガポールと比べ、規模はともかく、税制、規制面で劣るマーケットになってしまいました。地理的なしがらみの少ないファンドやウチの会社のような prop trading の会社の日本脱出は非常に合理的な判断と言えましょう。日本人関数型言語プログラマとしては日本から関数型言語で飯が食える場所が一つ消えてしまうのは忸怩たる思いがあ
Functional Java is an open source library facilitating functional programming in Java. The library implements numerous basic and advanced programming abstractions that assist composition oriented development. Functional Java also serves as a platform for learning functional programming concepts by introducing these concepts using a familiar language. The library is intended for use in production a
Scalaは、JVMで動作するオブジェクト指向関数型言語らしいですよ。詳しい話はよくわかりませんが、なんとなく心の片隅にひっかかっていたので、ちょっと触ってみることにしました。 まずはインストールです。Macなので、Mac portsをつかえば簡単にできます。Emacs向けにscala-modeも用意されているので、ついでにインストールすれば準備は万端になります。 % port install scala % sudo install -m 644 /opt/local/share/scala/misc/scala-tool-support/emacs/*.el /Applications/Emacs.app/Contents/Resources/site-lisp/ とりあえず、初心者向けのドキュメントがあるっぽいので、そちらを淡々と写経していきましょう。JavaプログラマのためのSca
言語Scalaは、EPFL大(仏ローザンヌ)のMartin Odersky教授により開発された、強い型付けをもつ純粋なオブジェクト指向と関数型が理論的にほぼ完全に融合したプログラミング言語です。Scalaは、JVM上で実行されるため、言語内からすべてのJavaクラスが普通に利用可能であり、簡潔で高い表現力とJavaとほぼ同等の実行性能をもっています。 強い型付け言語でありながら型推論機能のおかげで冗長な型宣言が不要であり、Ruby以上にコンパクトなコード記述を許し、GenericやMixin(Trait)等の抽象クラス管理機能、パターンマッチング機能などの簡潔で豊かな表現力と相まって、新世代の実用スクリプト言語としての高い可能性も秘めています。 ○言語Scalaの基本サイト The Scala Programming Language(ダウンロード、ドキュメント充実) http://www
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)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く