CategoricalData / hydra

Transformations transformed
Apache License 2.0
74 stars 10 forks source link

Migrate JSON coder to Java #44

Open joshsh opened 1 year ago

joshsh commented 1 year ago

See https://github.com/CategoricalData/hydra/tree/e4d85ce5f77798550faba05cb11665aac7106b5f/hydra-haskell/src/main/haskell/Hydra/Langs/Json

This will allow data, schemas, and programs to be communicated between Haskell and Java

joshsh commented 1 year ago

Also note: it is not necessary for the (somewhat complex) adapters framework to be migrated before the JSON decoder becomes useful. This will, for example, allow Hydra-Java to pick up the test suite definition which is defined in Haskell. The JSON encoder will require the adapters framework.

aman-dureja commented 1 year ago

We need to migrate the Flow monad, GraphFlow, and other dependencies too before we can migrate the coder, right?

joshsh commented 1 year ago

The Flow monad is already present in Java as a type, and there is a small Java DSL called Flows which more or less takes the place of the Monads module. We should be almost ready to create a JSON decoder.

joshsh commented 1 year ago

Note: partially completed thanks to #104.