p

caustic

runtime

package runtime

Linear Supertypes
Builder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. runtime
  2. Builder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Builder extends AnyRef

    A program builder.

  2. case class Expression (operator: Operator, operands: List[Program]) extends Program with Product with Serializable

    A literal transformation.

    A literal transformation. Expressions map literal operands to a literal result using their operator. Because all expressions return literal values on literal arguments, every program can eventually be reduced to a single literal value.

    operator

    Transformation.

    operands

    Arguments.

  3. case class Flag (value: Boolean) extends Literal with Product with Serializable
  4. sealed trait Literal extends Program with Serializable

    A typed value.

    A typed value. Literals contain primitive values of type null, flag, real, or text which correspond to null, boolean, double, and string respectively.

  5. sealed trait Operator extends AnyRef

    An enumeration of the various transformations permitted in an expressions.

  6. sealed trait Program extends AnyRef

    A procedure.

    A procedure. Programs are abstract-syntax trees composed of literals and expressions.

  7. case class Real (value: Double) extends Literal with Product with Serializable
  8. class Runtime extends Serializable

    A transactional virtual machine.

    A transactional virtual machine. Thread-safe.

  9. case class Text (value: String) extends Literal with Product with Serializable
  10. trait Volume extends Serializable

    A transactional key-value store.

    A transactional key-value store. Thread-safe.

Value Members

  1. val Empty: Text
    Definition Classes
    Builder
  2. val False: Flag
    Definition Classes
    Builder
  3. val True: Flag
    Definition Classes
    Builder
  4. def add(x: Program, y: Program): Program

    Returns the sum of x and y.

    Returns the sum of x and y.

    x

    Any.

    y

    Any.

    returns

    Any.

    Definition Classes
    Builder
  5. implicit def bol2flag(value: Boolean): Flag
  6. def both(x: Program, y: Program): Program

    Returns whether or not both x and y are satisfied.

    Returns whether or not both x and y are satisfied.

    x

    Flag.

    y

    Flag.

    returns

    Bitwise and.

    Definition Classes
    Builder
  7. def branch(condition: Program, pass: Program, fail: Program): Program

    Returns pass if the condition is satisfied or fail otherwise.

    Returns pass if the condition is satisfied or fail otherwise.

    condition

    Flag.

    pass

    Any.

    fail

    Any.

    returns

    Any.

    Definition Classes
    Builder
  8. def cons(x: Program, y: Program): Program

    Performs x and then y.

    Performs x and then y.

    x

    Any.

    y

    Any.

    returns

    Any.

    Definition Classes
    Builder
  9. def contains(x: Program, y: Program): Program

    Returns whether or not x contains y.

    Returns whether or not x contains y.

    x

    Text.

    y

    Text.

    returns

    Flag.

    Definition Classes
    Builder
  10. def cos(x: Program): Program

    Returns the cosine of x.

    Returns the cosine of x.

    x

    Real.

    returns

    Real.

    Definition Classes
    Builder
  11. def div(x: Program, y: Program): Program

    Returns the quotient of x and y.

    Returns the quotient of x and y.

    x

    Real.

    y

    Real.

    returns

    Real.

    Definition Classes
    Builder
  12. def either(x: Program, y: Program): Program

    Returns whether or not either x or y is satisfied.

    Returns whether or not either x or y is satisfied.

    x

    Flag.

    y

    Flag.

    returns

    Flag.

    Definition Classes
    Builder
  13. def equal(x: Program, y: Program): Program

    Returns whether or not x equals y.

    Returns whether or not x equals y.

    x

    Any.

    y

    Any.

    returns

    Flag.

    Definition Classes
    Builder
  14. def flag(value: Boolean): Flag

    Returns the value as a literal boolean flag.

    Returns the value as a literal boolean flag.

    value

    Boolean.

    returns

    Flag.

    Definition Classes
    Builder
  15. def floor(x: Program): Program

    Returns the largest integer less than x.

    Returns the largest integer less than x.

    x

    Real.

    returns

    Real.

    Definition Classes
    Builder
  16. def indexOf(x: Program, y: Program): Program

    Returns the index of the first occurrence of y in x.

    Returns the index of the first occurrence of y in x.

    x

    Text.

    y

    Text.

    returns

    Real.

    Definition Classes
    Builder
  17. def length(x: Program): Program

    Returns the number of characters in x.

    Returns the number of characters in x.

    x

    Text.

    returns

    Real.

    Definition Classes
    Builder
  18. def less(x: Program, y: Program): Program

    Returns whether or not x is strictly less than y.

    Returns whether or not x is strictly less than y.

    x

    Any.

    y

    Any.

    returns

    Flag.

    Definition Classes
    Builder
  19. def load(key: Program): Program

    Loads the value of the local variable at the specified key.

    Loads the value of the local variable at the specified key.

    key

    Text.

    returns

    Any.

    Definition Classes
    Builder
  20. def log(x: Program): Program

    Returns the natural logarithm of x.

    Returns the natural logarithm of x.

    x

    Real.

    returns

    Real.

    Definition Classes
    Builder
  21. def matches(x: Program, y: Program): Program

    Returns whether or not x matches the regex pattern y.

    Returns whether or not x matches the regex pattern y.

    x

    Text.

    y

    Text.

    returns

    Flag.

    Definition Classes
    Builder
  22. def mod(x: Program, y: Program): Program

    Returns the remainder of x divided by y.

    Returns the remainder of x divided by y.

    x

    Real.

    y

    Real.

    returns

    Real.

    Definition Classes
    Builder
  23. def mul(x: Program, y: Program): Program

    Returns the product of x and y.

    Returns the product of x and y.

    x

    Real.

    y

    Real.

    returns

    Real.

    Definition Classes
    Builder
  24. def negate(x: Program): Program

    Returns the bitwise negation of x.

    Returns the bitwise negation of x.

    x

    Flag.

    returns

    Flag.

    Definition Classes
    Builder
  25. implicit def num2real[T](value: T)(implicit num: Numeric[T]): Real
  26. def pow(x: Program, y: Program): Program

    Returns x raised to the power y.

    Returns x raised to the power y.

    x

    Real.

    y

    Real.

    returns

    Real.

    Definition Classes
    Builder
  27. def prefetch(key: Program, size: Program, refs: Program): Program

    Reads all keys at "prefix/i" for all i in [0, size).

    Reads all keys at "prefix/i" for all i in [0, size). Used to implement prefetched collections.

    key

    Text.

    size

    Real.

    refs

    Real.

    returns

    Null.

    Definition Classes
    Builder
  28. def read(key: Program): Program

    Reads the value of the specified key from the underlying volume.

    Reads the value of the specified key from the underlying volume.

    key

    Text.

    returns

    Any.

    Definition Classes
    Builder
  29. def real(value: Double): Real

    Returns the value as a literal floating point number.

    Returns the value as a literal floating point number.

    value

    Double.

    returns

    Real.

    Definition Classes
    Builder
  30. def repeat(condition: Program, block: Program): Program

    Repeatedly executes the block until the condition is not satisfied.

    Repeatedly executes the block until the condition is not satisfied.

    condition

    Flag.

    block

    Any.

    returns

    Null.

    Definition Classes
    Builder
  31. def rollback(message: Program): Program

    Discards all buffered writes and transactionally returns the message.

    Discards all buffered writes and transactionally returns the message.

    message

    Any.

    returns

    Any.

    Definition Classes
    Builder
  32. def sin(x: Program): Program

    Returns the sine of x.

    Returns the sine of x.

    x

    Real.

    returns

    Real.

    Definition Classes
    Builder
  33. def slice(x: Program, lower: Program, higher: Program): Program

    Returns the substring of x between [lower, higher).

    Returns the substring of x between [lower, higher).

    x

    Text.

    lower

    Real.

    higher

    Real.

    returns

    Text.

    Definition Classes
    Builder
  34. def store(key: Program, value: Program): Program

    Stores the specified value in the local variable at the specified key.

    Stores the specified value in the local variable at the specified key.

    key

    Text.

    value

    Any.

    returns

    Null.

    Definition Classes
    Builder
  35. implicit def str2text(value: String): Text
  36. def sub(x: Program, y: Program): Program

    Returns the difference of x and y.

    Returns the difference of x and y.

    x

    Real.

    y

    Real.

    returns

    Real.

    Definition Classes
    Builder
  37. def text(value: String): Text

    Returns the value as a literal string.

    Returns the value as a literal string.

    value

    String.

    returns

    Text.

    Definition Classes
    Builder
  38. def write(key: Program, value: Program): Program

    Writes the specified value to the specified key in the underlying volume.

    Writes the specified value to the specified key in the underlying volume.

    key

    Text.

    value

    Any.

    returns

    Null.

    Definition Classes
    Builder
  39. object Add extends Operator with Product with Serializable
  40. object Both extends Operator with Product with Serializable
  41. object Branch extends Operator with Product with Serializable
  42. object Cons extends Operator with Product with Serializable
  43. object Contains extends Operator with Product with Serializable
  44. object Cos extends Operator with Product with Serializable
  45. object Div extends Operator with Product with Serializable
  46. object Either extends Operator with Product with Serializable
  47. object Equal extends Operator with Product with Serializable
  48. object Floor extends Operator with Product with Serializable
  49. object IndexOf extends Operator with Product with Serializable
  50. object JBuilder extends Builder

    A stable identifier for Java compatibility.

  51. object Length extends Operator with Product with Serializable
  52. object Less extends Operator with Product with Serializable
  53. object Literal extends Serializable
  54. object Load extends Operator with Product with Serializable
  55. object Log extends Operator with Product with Serializable
  56. object Matches extends Operator with Product with Serializable
  57. object Mod extends Operator with Product with Serializable
  58. object Mul extends Operator with Product with Serializable
  59. object Negate extends Operator with Product with Serializable
  60. object Null extends Literal with Product with Serializable
  61. object Pow extends Operator with Product with Serializable
  62. object Prefetch extends Operator with Product with Serializable
  63. object Read extends Operator with Product with Serializable
  64. object Repeat extends Operator with Product with Serializable
  65. object Rollback extends Operator with Product with Serializable
  66. object Runtime extends Serializable
  67. object Sin extends Operator with Product with Serializable
  68. object Slice extends Operator with Product with Serializable
  69. object Store extends Operator with Product with Serializable
  70. object Sub extends Operator with Product with Serializable
  71. object Volume extends Serializable
  72. object Write extends Operator with Product with Serializable

Inherited from Builder

Inherited from AnyRef

Inherited from Any

Ungrouped