Compare commits

...

2 Commits

Author SHA1 Message Date
Emery Hemingway 1827c91da0 Preserves: #! is now #: 2024-02-08 15:50:19 +00:00
Emery Hemingway 40ad6a2dbc Preserves: floats and doubles merged 2024-02-08 15:49:34 +00:00
8 changed files with 21 additions and 21 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/nim.cfg /nim.cfg
.*.check *.check

View File

@ -5,6 +5,6 @@ FileSystemUsage = <file-system-usage @path string @size int>.
# This assertion publishes a dataspace that proxies assertions with # This assertion publishes a dataspace that proxies assertions with
# an exception for <Observe …> which is pulsed every periodSec. # an exception for <Observe …> which is pulsed every periodSec.
# The pulse resolution is no more than one millisecond. # The pulse resolution is no more than one millisecond.
Pulse = <pulse @periodSec double @proxy #!any>. Pulse = <pulse @periodSec float @proxy #:any>.
XmlTranslation = <xml-translation @xml string @pr any>. XmlTranslation = <xml-translation @xml string @pr any>.

View File

@ -2,53 +2,53 @@ version 1 .
embeddedType EntityRef.Cap . embeddedType EntityRef.Cap .
CacheArguments = <cache { CacheArguments = <cache {
dataspace: #!any dataspace: #:any
lifetime: float lifetime: float
}>. }>.
FileSystemUsageArguments = <file-system-usage { FileSystemUsageArguments = <file-system-usage {
dataspace: #!any dataspace: #:any
}>. }>.
JsonTranslatorArguments = <json-stdio-translator { JsonTranslatorArguments = <json-stdio-translator {
argv: [string ...] argv: [string ...]
dataspace: #!any dataspace: #:any
}>. }>.
JsonTranslatorConnected = <connected @path string>. JsonTranslatorConnected = <connected @path string>.
JsonSocketTranslatorArguments = <json-socket-translator { JsonSocketTranslatorArguments = <json-socket-translator {
dataspace: #!any dataspace: #:any
socket: string socket: string
}>. }>.
PostgreArguments = <postgre { PostgreArguments = <postgre {
connection: [PostgreConnectionParameter ...] connection: [PostgreConnectionParameter ...]
dataspace: #!any dataspace: #:any
}>. }>.
PostgreConnectionParameter = [@key string @val string]. PostgreConnectionParameter = [@key string @val string].
PulseArguments = <pulse { PulseArguments = <pulse {
dataspace: #!any dataspace: #:any
}>. }>.
SqliteArguments = <sqlite { SqliteArguments = <sqlite {
database: string database: string
dataspace: #!any dataspace: #:any
}>. }>.
WebhooksArguments = <webhooks { WebhooksArguments = <webhooks {
endpoints: {[string ...]: #!any ...:...} endpoints: {[string ...]: #:any ...:...}
listen: Tcp listen: Tcp
}>. }>.
WebsocketArguments = <websocket { WebsocketArguments = <websocket {
dataspace: #!any dataspace: #:any
url: string url: string
}>. }>.
XmlTranslatorArguments = <xml-translator { XmlTranslatorArguments = <xml-translator {
dataspace: #!any dataspace: #:any
}>. }>.
# Reused from syndicate-protocols/transportAddress # Reused from syndicate-protocols/transportAddress

View File

@ -2,4 +2,4 @@ version 1 .
# When asserted the actor reponds to @target rows as records # When asserted the actor reponds to @target rows as records
# of the given label and row columns as record fields. # of the given label and row columns as record fields.
Query = <query @statement string @target #!any> . Query = <query @statement string @target #:any> .

View File

@ -4,7 +4,7 @@ import
type type
Pulse* {.preservesRecord: "pulse".} = object Pulse* {.preservesRecord: "pulse".} = object
`periodSec`*: float64 `periodSec`*: float
`proxy`* {.preservesEmbedded.}: Value `proxy`* {.preservesEmbedded.}: Value
XmlTranslation* {.preservesRecord: "xml-translation".} = object XmlTranslation* {.preservesRecord: "xml-translation".} = object

View File

@ -49,7 +49,7 @@ type
CacheArgumentsField0* {.preservesDictionary.} = object CacheArgumentsField0* {.preservesDictionary.} = object
`dataspace`* {.preservesEmbedded.}: EmbeddedRef `dataspace`* {.preservesEmbedded.}: EmbeddedRef
`lifetime`*: BiggestFloat `lifetime`*: float
CacheArguments* {.preservesRecord: "cache".} = object CacheArguments* {.preservesRecord: "cache".} = object
`field0`*: CacheArgumentsField0 `field0`*: CacheArgumentsField0

View File

@ -5,9 +5,9 @@ import
type type
RoundTripTime* {.preservesRecord: "rtt".} = object RoundTripTime* {.preservesRecord: "rtt".} = object
`address`*: string `address`*: string
`minimum`*: BiggestFloat `minimum`*: float
`average`*: BiggestFloat `average`*: float
`maximum`*: BiggestFloat `maximum`*: float
proc `$`*(x: RoundTripTime): string = proc `$`*(x: RoundTripTime): string =
`$`(toPreserves(x)) `$`(toPreserves(x))

View File

@ -1,13 +1,13 @@
# Package # Package
version = "20240205" version = "20240208"
author = "Emery Hemingway" author = "Emery Hemingway"
description = "Utilites for Syndicated Actors and Synit" description = "Utilites for Syndicated Actors and Synit"
license = "unlicense" license = "unlicense"
srcDir = "src" srcDir = "src"
bin = @["mintsturdyref", "mount_actor", "msg", "net_mapper", "preserve_process_environment", "syndex_card", "syndump"] bin = @["mintsturdyref", "mount_actor", "msg", "net_mapper", "preserve_process_environment", "syndesizer", "syndex_card", "syndump"]
# Dependencies # Dependencies
requires "nim >= 2.0.0", "illwill", "syndicate >= 20240114", "ws" requires "nim >= 2.0.0", "illwill", "syndicate >= 20240208", "ws"