- Web系
- Scalatra Sinatraのようなフレームワーク https://github.com/scalatra/scalatra
- Scalate テンプレートエンジン。言語を選べる http://scalate.fusesource.org/
- Play! framework 2.0 プロダクト自体がScalaで実装されている。 http://www.playframework.org/2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c 'import sys, yaml, json; y=yaml.safe_load(sys.stdin.read()); print(json.dumps(y))' |
原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Takes a camel cased identifier name and returns an underscore separated | |
* name | |
* | |
* Example: | |
* camelToUnderscores("thisIsA1Test") == "this_is_a_1_test" | |
*/ | |
def camelToUnderscores(name: String) = "[A-Z\\d]".r.replaceAllIn(name, {m => | |
"_" + m.group(0).toLowerCase() | |
}) |
タイトルは元エントリを改変させて頂きました。
Java6は公式アップデートの終了した古いJavaです。
その古いAPIのみを対象としてJavaを批判するのはいささかフェアでない様に思われます。
現在最新のstable releaseである所のJava7では必要な部分だけ抜粋すると以下の様に記述出来ます。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* To compile: | |
* scalac -optimize ByteBufferPerf.scala | |
* | |
* JAVA_OPTS="-Xmx2g" scala IntArrayPerf 10 | |
* 49 62 48 45 48 45 48 50 47 45 | |
* | |
* JAVA_OPTS="-Xmx2g" scala ByteBufferPerf 10 | |
* 479 491 484 480 484 481 477 477 472 473 |
https://github.com/ueshin/docker
$ docker run -it -p 14040:4040 spark:1.1.0-rc4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary of Behaviour: | |
A. OpenJDK 7 b65. | |
1. Default in java.security is securerandom.source=/dev/urandom | |
2. If securerandom.source=/dev/urandom, NativePRNG is used, SecureRandom.nextBytes() is non-blocking via /dev/urandom ; SecureRandom.generateSeed(x) is blocking via /dev/random | |
3. if securerandom.source=/dev/random, then SHA1PRNG is used. Initial seed is blocking via /dev/random. No other accesses. | |
4. If securerandom.source=/dev/./urandom then SHA1PRNG is used. Initial seed is non-blocking via /dev/./urandom. No other accesses. | |
B. Oracle JDK 8 b25. |
OlderNewer