streamich / json-joy

JSON CRDT, JSON CRDT Patch, JSON Patch+, JSON Predicate, JSON Pointer, JSON Expression, JSON Type
https://jsonjoy.com/libs/json-joy-js
Apache License 2.0
746 stars 14 forks source link

Porting to C++, Python and Elixir #359

Open fire opened 11 months ago

fire commented 11 months ago

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.

streamich commented 10 months ago

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:

fire commented 10 months ago

Thanks