Fork me on GitHub
#malli
<
2023-11-28
>
FlavaDave18:11:06

Went looking through Slack history and issues and it doesn't seem like there has been much talk about making Malli compatible with ClojureDart. I have recently been doing more with ClojureDart and I think that making Malli compatible with that runtime would be a huge improvement. Has anyone here made an attempt at that?

ikitommi18:11:51

Haven't heard either, but it would be great to have that! (Don't even know what it mean to be ClojureDart-compatible)

FlavaDave18:11:38

@U055NJ5CC I wont have any bandwidth for this for a few weeks but I could take a swing at it if you would like

FlavaDave18:11:08

looks like we would need to just throw some :cljd reader conditionals in a few places to make it work.

Alex Sky19:11:41

as I know cljDart doesn't have multimethods yet and that could probably complicate things.

FlavaDave19:11:42

That could indeed complicate things

ikitommi06:11:17

ok. so - core, errors, utils, inferring and transforming would work oob, but not the following: • generators • json-schema/swagger • pretty printing

ikitommi06:11:51

generators also support protocols, but as clojure doesn’t have a good story for protocols implemented for protocols (which is IMO one of the core problems in Clojure itself), doesn’t work that either with current codebase.

ikitommi06:11:55

ideas welcome 🙂

cgrand08:11:23

👋 Please come in touch with us before attempting the CLJD port. We have a couple of things to fix to make the experience pleasant. The biggest one is switching the reader from LispReader.java to contrib reader to have sane conditional behavior. (A port can be pulled off in the current state but it requires stupid and useless workaround — we learnt it the hard way by porting Datascript)

👍 3
baptiste-from-paris08:11:30

+1 with @U3E46Q1DG and we can help 🙂

ikitommi13:11:57

Awesome, thanks guys 🙇

FlavaDave18:11:52

@U3E46Q1DG @U2N9GDB1U do you think that multimethods would need to be implemented first as well?