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
object Util { | |
def BenchmarkCycles = 100000000 | |
def time[Z](label: String)(f: => Z): Z = { | |
val startTime = System.currentTimeMillis | |
val result = f | |
val endTime = System.currentTimeMillis |
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
object Util { | |
def BenchmarkCycles = 100000000 | |
def time[Z](label: String)(f: => Z): Z = { | |
val startTime = System.currentTimeMillis | |
val result = f | |
val endTime = System.currentTimeMillis |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>scala</string> | |
</array> | |
<key>foldingStartMarker</key> | |
<string>/\*\*|\{\s*$</string> |
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
// Does NOT work | |
aToB >>> bToC | |
// Does NOT work | |
aToB.`>>>`(bToC)(ActorMCategory[M](monad)) | |
// WORKS | |
mab[({type λ[α, β]=ActorM[M, α, β]})#λ, A, B](aToB) >>> bToC | |
// WORKS |
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
// Does NOT work | |
aToB >>> bToC | |
// Does NOT work | |
aToB.`>>>`(bToC)(ActorMCategory[M](monad)) | |
// WORKS | |
mab[({type λ[α, β]=ActorM[M, α, β]})#λ, A, B](aToB) >>> bToC | |
// WORKS |
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
implicit def BindSemigroup[M[_], A](implicit bind: Bind[M]): Semigroup[M[A]] = new Semigroup[M[A]] { | |
def append(v1: M[A], v2: => M[A]): M[A] = bind.bind(v1)((a: A) => v2) | |
} |
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
// [output, nextDT] | |
DT = function(f) { | |
this.f = f; | |
} | |
DT.prototype.send = | |
function(input) { | |
return this.f(input); | |
} | |
DT.prototype.sendMany = | |
function(inputs) { |
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
object BenchmarkCommon { | |
import scala.util.Random | |
val DatasetSize = 10000 | |
val Iterations = 10000 | |
val ArrayPoolSize = 1000 | |
val ArrayPool = { | |
def randomArray(): Array[Int] = { | |
val array = new Array[Int](DatasetSize) | |
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
dateFullyear : Digit{4}; | |
dateMonth : Digit{2}; | |
dateMday : Digit{2}; | |
timeHour : Digit{2}; | |
timeMinute : Digit{2}; | |
timeSecond: Digit{2}; | |
timeSecfrac : '.' Digit{1,}; | |
timeNumOffset : ('+' | '-') timeHour ':' timeMinute; | |
timeOffset: 'Z' | timeNumOffset; | |
partialTime : timeHour ':' timeMinute ':' timeSecond timeSecfrac?; |
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
ejsonValue | |
: (ejsonLiteral | |
| ejsonUnorderedMap | |
| ejsonOrderedMap | |
| ejsonSet | |
| ejsonArray | |
| ejsonNumber | |
| ejsonString) ejsonMetadata?; | |
ejsonMetadata : '@' ejsonValue; |
OlderNewer