json-joy icon indicating copy to clipboard operation
json-joy copied to clipboard

Porting to C++, Python and Elixir

Open fire opened this issue 1 year ago • 2 comments

Hi,

I want to port abstract Replicated Growable Array for Godot Engine c++, python for blender and for elixir for my game back-end for merging game scene trees that have been "serialized" and aren't live objects.

You said:

Each JsonNode represents a structural unit of a JSON document. It is like an AST node, where each node has one of the following types: "object", "array", "string", "number", "boolean", and "null".

Do you think it's feasible to merge two structs given we have a unique names in a document and we can get accurate monotonic time.

Python has dictionaries (https://docs.python.org/3/tutorial/datastructures.html#dictionaries).

Godot Engine has dictionaries (https://docs.godotengine.org/en/stable/classes/class_dictionary.html)

and elixir has structs https://elixir-lang.org/getting-started/structs.html.

Looking for a map of the project, and some guidance.

fire avatar Oct 24 '23 23:10 fire

Hey @fire, I don't think I will be able to help you with the details of your implementation. But in general, we have published JSON CRDT specification, which anyone can use to port it to other languages:

streamich avatar Nov 06 '23 18:11 streamich

Thanks

fire avatar Nov 07 '23 00:11 fire