Skip to content

Instantly share code, notes, and snippets.

@eiriktsarpalis
Created May 14, 2016 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiriktsarpalis/4f6e913e31533d92408f580c55d15506 to your computer and use it in GitHub Desktop.
Save eiriktsarpalis/4f6e913e31533d92408f580c55d15506 to your computer and use it in GitHub Desktop.
Serialization of a relatively small continuation in MBrace
{
"Success": {
"_flags": "subtype",
"subtype": {
"Case": "GenericTypeInstance",
"GenericDefinition": {
"Case": "NamedType",
"Name": "MBrace.Core.Builders+Bind@331-1",
"Assembly": {
"Name": "MBrace.Core",
"Version": "1.1.8.0",
"Culture": "neutral",
"PublicKeyToken": ""
}
},
"TypeArgs": [
{
"Case": "NamedType",
"Name": "System.String",
"Assembly": {
"Name": "mscorlib",
"Version": "4.0.0.0",
"Culture": "neutral",
"PublicKeyToken": "b77a5c561934e089"
}
},
{
"Case": "GenericTypeInstance",
"GenericDefinition": {
"Case": "NamedType",
"Name": "System.Tuple`2",
"Assembly": {
"_flags": "cached",
"id": 7
}
},
"TypeArgs": [
{
"Case": "NamedType",
"Name": "System.Int32",
"Assembly": {
"_flags": "cached",
"id": 7
}
},
{
"_flags": "cached",
"id": 6
}
]
}
]
},
"instance": {
"g": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "FSI_0034+dive@97-16",
"Assembly": {
"Name": "FSI-ASSEMBLY_21d011f9-b76b-4282-b099-04f1813acda9_1",
"Version": "0.0.0.0",
"Culture": "neutral",
"PublicKeyToken": ""
}
},
"instance": {
"builder": {
"czero": {
"Body": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Core.BuilderImpl+zero@54",
"Assembly": {
"_flags": "cached",
"id": 4
}
},
"instance": {}
}
}
}
}
},
"cont": {
"Success": {
"_flags": "subtype",
"subtype": {
"Case": "GenericTypeInstance",
"GenericDefinition": {
"_flags": "cached",
"id": 3
},
"TypeArgs": [
{
"_flags": "cached",
"id": 8
},
{
"_flags": "cached",
"id": 8
}
]
},
"instance": {
"g": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "FSI_0034+dive@100-17",
"Assembly": {
"_flags": "cached",
"id": 14
}
},
"instance": {
"n": 1,
"builder": {
"_flags": "cached",
"id": 16
}
}
},
"cont": {
"Success": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 21
},
"instance": {
"g": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 24
},
"instance": {
"n": 2,
"builder": {
"_flags": "cached",
"id": 16
}
}
},
"cont": {
"Success": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 21
},
"instance": {
"g": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 24
},
"instance": {
"n": 3,
"builder": {
"_flags": "cached",
"id": 16
}
}
},
"cont": {
"Success": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 21
},
"instance": {
"g": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 24
},
"instance": {
"n": 4,
"builder": {
"_flags": "cached",
"id": 16
}
}
},
"cont": {
"Success": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 21
},
"instance": {
"g": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 24
},
"instance": {
"n": 5,
"builder": {
"czero": {
"Body": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 18
},
"instance": {}
}
}
}
}
},
"cont": {
"Success": {
"_flags": "subtype",
"subtype": {
"Case": "GenericTypeInstance",
"GenericDefinition": {
"Case": "NamedType",
"Name": "MBrace.Runtime.Combinators+scont@357T",
"Assembly": {
"Name": "MBrace.Runtime",
"Version": "1.1.8.0",
"Culture": "neutral",
"PublicKeyToken": ""
}
},
"TypeArgs": [
{
"_flags": "cached",
"id": 8
}
]
},
"instance": {
"setResult": {
"_flags": "subtype",
"subtype": {
"Case": "GenericTypeInstance",
"GenericDefinition": {
"Case": "NamedType",
"Name": "MBrace.Runtime.Combinators+setResult@331-1",
"Assembly": {
"_flags": "cached",
"id": 44
}
},
"TypeArgs": [
{
"_flags": "cached",
"id": 8
}
]
},
"instance": {
"cts": {
"State": {
"Case": "Distributed",
"token": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Thespian.Runtime.ActorCancellationEntry",
"Assembly": {
"Name": "MBrace.Thespian",
"Version": "1.1.8.0",
"Culture": "neutral",
"PublicKeyToken": ""
}
},
"instance": {
"source": {
"serializationEntries": [
{
"Name": "protocolFactories",
"Type": {
"Case": "Array",
"ElementType": {
"Case": "NamedType",
"Name": "Nessos.Thespian.IProtocolFactory",
"Assembly": {
"Name": "Thespian",
"Version": "0.1.11.0",
"Culture": "neutral",
"PublicKeyToken": ""
}
}
},
"Value": {
"length": 1,
"array": [
{
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "Nessos.Thespian.Remote.TcpProtocol.Unidirectional+UTcpFactory",
"Assembly": {
"_flags": "cached",
"id": 59
}
},
"instance": {
"serializationEntries": [
{
"Name": "protocolMode",
"Type": {
"Case": "NamedType",
"Name": "Nessos.Thespian.Remote.TcpProtocol.Unidirectional+ProtocolMode+Client",
"Assembly": {
"_flags": "cached",
"id": 59
}
},
"Value": {
"Case": "Client",
"Item": {
"hostnameOrAddress54": "felix-win",
"port55": 54249,
"toString": "felix-win:54249"
}
}
}
]
}
}
]
}
},
{
"Name": "name",
"Type": {
"_flags": "cached",
"id": 6
},
"Value": "0e0a8c23-da66-4804-9d87-1a414a9f78b7"
},
{
"Name": "messageType",
"Type": {
"Case": "NamedType",
"Name": "System.RuntimeType",
"Assembly": {
"_flags": "cached",
"id": 7
}
},
"Value": {
"Case": "NamedType",
"Name": "MBrace.Thespian.Runtime.CancellationEntryMsg",
"Assembly": {
"_flags": "cached",
"id": 54
}
}
}
]
},
"id": "f680c647-451c-4e58-87e4-c47f731e24f0"
}
}
}
},
"tcs": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Thespian.Runtime.ActorProcessEntry",
"Assembly": {
"_flags": "cached",
"id": 54
}
},
"instance": {
"source": {
"serializationEntries": [
{
"Name": "protocolFactories",
"Type": {
"_flags": "cached",
"id": 57
},
"Value": {
"length": 1,
"array": [
{
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 61
},
"instance": {
"serializationEntries": [
{
"Name": "protocolMode",
"Type": {
"_flags": "cached",
"id": 63
},
"Value": {
"Case": "Client",
"Item": {
"hostnameOrAddress54": "felix-win",
"port55": 54249,
"toString": "felix-win:54249"
}
}
}
]
}
}
]
}
},
{
"Name": "name",
"Type": {
"_flags": "cached",
"id": 6
},
"Value": "a374aa62-77d1-4ca0-a105-16deea70558f"
},
{
"Name": "messageType",
"Type": {
"_flags": "cached",
"id": 66
},
"Value": {
"Case": "NamedType",
"Name": "MBrace.Thespian.Runtime.ActorProcessEntryMsg",
"Assembly": {
"_flags": "cached",
"id": 54
}
}
}
]
},
"localStateF": {
"UUID": "3ee90ad7-2b94-40d8-832c-c099ce238780",
"Factory": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "<StartupCode$MBrace-Thespian>.$ClusterState+localStateFactory@75",
"Assembly": {
"_flags": "cached",
"id": 54
}
},
"instance": {
"maxLogWriteInterval": null,
"fileStore": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Runtime.Store.FileSystemStore",
"Assembly": {
"_flags": "cached",
"id": 44
}
},
"instance": {
"RootPath": "C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596",
"DefaultDirectory": "C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596"
}
},
"assemblyDirectory": "vagabond",
"serializer": {
"useVagabond71": true
},
"cloudValueProvider": {
"Configuration": {
"Id": "FileSystemStore:C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596/C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596\\cloudValue",
"EncapsulationTreshold": 32768,
"MainStore": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 79
},
"instance": {
"RootPath": "C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596",
"DefaultDirectory": "C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596\\cloudValue"
}
},
"LocalStore": null,
"Serializer": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Runtime.FsPicklerBinarySerializer",
"Assembly": {
"_flags": "cached",
"id": 44
}
},
"instance": {
"useVagabond71": true
}
},
"CacheFactory": {
"Some": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "<StartupCode$MBrace-Thespian>.$ClusterState+mkCacheInstance@70",
"Assembly": {
"_flags": "cached",
"id": 54
}
},
"instance": {}
}
},
"ShadowPersistObjects": true,
"CompressionLevel": "NoCompression"
}
},
"persistedValueManager": {
"Resources": {
"Index": {
"count": 2,
"items": [
{
"Item1": "MBrace.Core.Internals.ICloudFileStore, MBrace.Core, Version=1.1.8.0, Culture=neutral, PublicKeyToken=null",
"Item2": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 79
},
"instance": {
"RootPath": "C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596",
"DefaultDirectory": "C:\\Users\\eirik\\AppData\\Local\\Temp\\mbrace-uuidc1ef5263-bd41-410a-8065-77c700bbb596\\mbrace-data"
}
}
},
{
"Item1": "MBrace.Core.Internals.ISerializer, MBrace.Core, Version=1.1.8.0, Culture=neutral, PublicKeyToken=null",
"Item2": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 85
},
"instance": {
"_flags": "cached",
"id": 81
}
}
}
]
}
},
"PersistThreshold": 524288
}
}
}
},
"info": {
"Name": null,
"CancellationTokenSource": {
"_flags": "cached",
"id": 51
},
"Dependencies": [
{
"FullName": "FSharp.Compiler.Interactive.Settings, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"ImageHash": {
"ImageHash": "EMUvo8uGbZNtqny5+FpREqwi"
},
"Extension": ".dll"
},
{
"FullName": "FSI-ASSEMBLY_21d011f9-b76b-4282-b099-04f1813acda9_1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
"ImageHash": {
"ImageHash": "AEbJGBKHNL/jbKbpxJhy8xfe"
},
"Extension": ".dll"
}
],
"AdditionalResources": null,
"ReturnTypeName": "int * string",
"ReturnType": {
"Bytes": {
"Bytes": "AM6R9dAH6f0AAAELU3lzdGVtLlR5cGUAzpH1BQAAAADOkfUAAAAAAA5TeXN0ZW0uVHVwbGVgMgDOkfUACG1zY29ybGliAAc0LjAuMC4wAAduZXV0cmFsABBiNzdhNWM1NjE5MzRlMDg5AM6R9QIAAAAQzpH1AM6R9QAAAAAADFN5c3RlbS5JbnQzMgTOkfUDAAAAAAAAAADOkfUAAAAAAA1TeXN0ZW0uU3RyaW5nBM6R9QMAAAAAAAAA"
}
}
},
"id": "986e0798-e55c-4dc0-92d7-908f618ac307"
}
}
}
},
"self1": {
"setResult": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 47
},
"instance": {
"_flags": "cached",
"id": 50
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Runtime.Combinators+econt@358",
"Assembly": {
"_flags": "cached",
"id": 44
}
},
"instance": {
"setResult": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 47
},
"instance": {
"_flags": "cached",
"id": 50
}
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"Case": "NamedType",
"Name": "MBrace.Runtime.Combinators+ccont@359",
"Assembly": {
"_flags": "cached",
"id": 44
}
},
"instance": {
"setResult": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 47
},
"instance": {
"_flags": "cached",
"id": 50
}
}
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"Case": "GenericTypeInstance",
"GenericDefinition": {
"Case": "NamedType",
"Name": "MBrace.Core.Builders+Bind@331-3",
"Assembly": {
"_flags": "cached",
"id": 4
}
},
"TypeArgs": [
{
"_flags": "cached",
"id": 8
}
]
},
"instance": {
"cont": {
"_flags": "cached",
"id": 41
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 105
},
"instance": {
"_flags": "cached",
"id": 106
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 107
},
"instance": {
"cont": {
"_flags": "cached",
"id": 35
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 105
},
"instance": {
"_flags": "cached",
"id": 106
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 107
},
"instance": {
"cont": {
"_flags": "cached",
"id": 32
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 105
},
"instance": {
"_flags": "cached",
"id": 106
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 107
},
"instance": {
"cont": {
"_flags": "cached",
"id": 29
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 105
},
"instance": {
"_flags": "cached",
"id": 106
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 107
},
"instance": {
"cont": {
"_flags": "cached",
"id": 26
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 105
},
"instance": {
"_flags": "cached",
"id": 106
}
}
}
}
},
"Exception": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 107
},
"instance": {
"cont": {
"_flags": "cached",
"id": 20
}
}
},
"Cancellation": {
"_flags": "subtype",
"subtype": {
"_flags": "cached",
"id": 105
},
"instance": {
"_flags": "cached",
"id": 106
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment