hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Migrate JSON coder to Java

Open joshsh opened this issue 2 years ago • 4 comments

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 avatar Mar 01 '23 19:03 joshsh

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.

joshsh avatar Mar 01 '23 20:03 joshsh

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

aman-dureja avatar Mar 04 '23 00:03 aman-dureja

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 avatar Mar 04 '23 00:03 joshsh

Note: partially completed thanks to #104.

joshsh avatar Sep 21 '23 22:09 joshsh