Single IEEE754 type
This commit is contained in:
parent
39cb3790df
commit
f3d6e578cb
|
@ -71,8 +71,6 @@ proc grab*(pr: Value): Pattern =
|
||||||
AnyAtom(orKind: AnyAtomKind.`bool`, bool: pr.bool).toPattern
|
AnyAtom(orKind: AnyAtomKind.`bool`, bool: pr.bool).toPattern
|
||||||
of pkFloat:
|
of pkFloat:
|
||||||
AnyAtom(orKind: AnyAtomKind.`float`, float: pr.float).toPattern
|
AnyAtom(orKind: AnyAtomKind.`float`, float: pr.float).toPattern
|
||||||
of pkDouble:
|
|
||||||
AnyAtom(orKind: AnyAtomKind.`double`, double: pr.double).toPattern
|
|
||||||
of pkRegister:
|
of pkRegister:
|
||||||
AnyAtom(orKind: AnyAtomKind.`int`, int: pr.register).toPattern
|
AnyAtom(orKind: AnyAtomKind.`int`, int: pr.register).toPattern
|
||||||
of pkString:
|
of pkString:
|
||||||
|
|
|
@ -11,10 +11,10 @@ type
|
||||||
`bool`*: bool
|
`bool`*: bool
|
||||||
|
|
||||||
of AnyAtomKind.`float`:
|
of AnyAtomKind.`float`:
|
||||||
`float`*: float32
|
`float`*: BiggestFloat
|
||||||
|
|
||||||
of AnyAtomKind.`double`:
|
of AnyAtomKind.`double`:
|
||||||
`double`*: float64
|
`double`*: BiggestFloat
|
||||||
|
|
||||||
of AnyAtomKind.`int`:
|
of AnyAtomKind.`int`:
|
||||||
`int`*: BiggestInt
|
`int`*: BiggestInt
|
||||||
|
|
|
@ -5,17 +5,17 @@ import
|
||||||
type
|
type
|
||||||
TimerExpired* {.preservesRecord: "timer-expired".} = object
|
TimerExpired* {.preservesRecord: "timer-expired".} = object
|
||||||
`label`*: Value
|
`label`*: Value
|
||||||
`seconds`*: float64
|
`seconds`*: BiggestFloat
|
||||||
|
|
||||||
SetTimer* {.preservesRecord: "set-timer".} = object
|
SetTimer* {.preservesRecord: "set-timer".} = object
|
||||||
`label`*: Value
|
`label`*: Value
|
||||||
`seconds`*: float64
|
`seconds`*: BiggestFloat
|
||||||
`kind`*: TimerKind
|
`kind`*: TimerKind
|
||||||
|
|
||||||
`TimerKind`* {.preservesOr, pure.} = enum
|
`TimerKind`* {.preservesOr, pure.} = enum
|
||||||
`relative`, `absolute`, `clear`
|
`relative`, `absolute`, `clear`
|
||||||
LaterThan* {.preservesRecord: "later-than".} = object
|
LaterThan* {.preservesRecord: "later-than".} = object
|
||||||
`seconds`*: float64
|
`seconds`*: BiggestFloat
|
||||||
|
|
||||||
proc `$`*(x: TimerExpired | SetTimer | LaterThan): string =
|
proc `$`*(x: TimerExpired | SetTimer | LaterThan): string =
|
||||||
`$`(toPreserves(x))
|
`$`(toPreserves(x))
|
||||||
|
|
|
@ -86,11 +86,11 @@ type
|
||||||
`reason`*: LinkedTaskReleaseReason
|
`reason`*: LinkedTaskReleaseReason
|
||||||
|
|
||||||
TurnCausePeriodicActivation* {.preservesRecord: "periodic-activation".} = object
|
TurnCausePeriodicActivation* {.preservesRecord: "periodic-activation".} = object
|
||||||
`period`*: float64
|
`period`*: BiggestFloat
|
||||||
|
|
||||||
TurnCauseDelay* {.preservesRecord: "delay".} = object
|
TurnCauseDelay* {.preservesRecord: "delay".} = object
|
||||||
`causingTurn`*: TurnId
|
`causingTurn`*: TurnId
|
||||||
`amount`*: float64
|
`amount`*: BiggestFloat
|
||||||
|
|
||||||
TurnCauseExternal* {.preservesRecord: "external".} = object
|
TurnCauseExternal* {.preservesRecord: "external".} = object
|
||||||
`description`*: Value
|
`description`*: Value
|
||||||
|
@ -170,7 +170,7 @@ type
|
||||||
|
|
||||||
|
|
||||||
TraceEntry* {.preservesRecord: "trace".} = object
|
TraceEntry* {.preservesRecord: "trace".} = object
|
||||||
`timestamp`*: float64
|
`timestamp`*: BiggestFloat
|
||||||
`actor`*: ActorId
|
`actor`*: ActorId
|
||||||
`item`*: ActorActivation
|
`item`*: ActorActivation
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "20240120"
|
version = "20240206"
|
||||||
author = "Emery Hemingway"
|
author = "Emery Hemingway"
|
||||||
description = "Syndicated actors for conversational concurrency"
|
description = "Syndicated actors for conversational concurrency"
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
|
@ -9,4 +9,4 @@ srcDir = "src"
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "https://github.com/ehmry/hashlib.git#f9455d4be988e14e3dc7933eb7cc7d7c4820b7ac", "nim >= 2.0.0", "https://git.syndicate-lang.org/ehmry/preserves-nim.git >= 20240116"
|
requires "https://github.com/ehmry/hashlib.git#f9455d4be988e14e3dc7933eb7cc7d7c4820b7ac", "nim >= 2.0.0", "https://git.syndicate-lang.org/ehmry/preserves-nim.git >= 20240206"
|
||||||
|
|
Loading…
Reference in New Issue