notes by Steven Gangstead
rapture.io -collection of libraries for scala
jawn json parser. Quicker than Jackson, and I guess Jackson must normally be considered the quickest.
My thoughts: Awesome talk. Look into rapture, looks useful. Jon is smart.
| Always start truning the young generation first. | |
| java -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:/var/tmp/jvm_gc.log | |
| java -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:PrintHeapAtGc -XX:-PrintTenuringDistribution -XX:-HeapDumpOnOutOfMemoryError -verbose:gc -Xloggc:/var/tmp/jvm_gc.log | |
| Histogram | |
| -XX:-PrintClassHistogram (JMap -histo) | |
| ElasticSearch is SchemaFree, Lucene based, Massively scalable, Distributed. | |
| Run as many time as you want. (Multinode) | |
| $> bin/elasticsearch | |
| $> curl -XGET localhost:9200/?pretty | |
| $> curl "http://localhost:9200/_cluster/health?pretty=true" | |
| $> PUT /index/type/id (database/Table/EntityID) | |
| $> curl -XPUT /mysite/node/1 -d |
| http://gallery.mailchimp.com/2956421f3caab54f1e563f370/files/Flexible_Analytics_for_Large_Data_Sets_Using_Elasticsearch.pdf | |
| http://stackoverflow.com/questions/4415511/scala-type-programming-resources |
| #!/bin/sh | |
| # one way (older scala version will be installed) | |
| # sudo apt-get install scala | |
| #2nd way | |
| sudo apt-get remove scala-library scala | |
| wget http://www.scala-lang.org/files/archive/scala-2.11.2.deb | |
| sudo dpkg -i scala-2.11.2.deb | |
| sudo apt-get update |
| TesCase gives confident, and time spent on writing testcase always ended up worthwhile. | |
| Are you stuck? confirm that you read the wiki/document from top-to-bottom, and confirm that you are not trying to jump fence by assuming what is written in wiki |
notes by Steven Gangstead
rapture.io -collection of libraries for scala
jawn json parser. Quicker than Jackson, and I guess Jackson must normally be considered the quickest.
My thoughts: Awesome talk. Look into rapture, looks useful. Jon is smart.
##Scala eXchange 2014 slides
collected by Adam Warski
Feel free to complete the list!
The Binary Compatibility Challenge by Martin Odersky
A Skeptic's Look at scalaz' "Gateway Drugs”: A Practical Exploration by Brendand McAdams
| One | Many | |
|---|---|---|
| Synchronous | T/Try[T] | Iterable[T] |
| Asynchronous | Future[T] | Observable[T] |
Java 8 introduced lambdas to the Java language. While the design choices differ in many regards from Scala's functions, the underlying mechanics used to represent Java lambdas is flexible enough to be used as a target for the Scala compiler.
Java does not have canonical heirarchy of generic function types (ala scala.FunctionN), but instead allows a lambda to be used as a shorthand for an anonymous implementation of an Functional Interface
Here's an example of creating a predicate that closes over one value:
| 2014-03-04 | 15dfb8e6cc4111e3a5bb600308919594 | 11 | |
|---|---|---|---|
| 2014-03-06 | 81da510acc4111e387f3600308919594 | 61 |