Replies: 2 comments 9 replies
-
Reflection by default, followed by user-can-override with an interface spec? |
Beta Was this translation helpful? Give feedback.
-
Is the distinction between the two stiles primarily a Run Time vs Ahead of Time one? Some systems like protobufs can be hard to work with if you don't have the protobufs schema. In a JiT environment I wander if it is better to have reification but never save out the generated code. The Reflection can be used to build the functions you need and the JiT can compile them with the "generated code" not being an artifact that you need to deal with. |
Beta Was this translation helpful? Give feedback.
-
commenting on @AaronGoldman 's comment of JSON interop @ https://youtu.be/nUC0KZlQyHw?list=PL05j31Knswhn7RLk-VKHZ6RI4e9D4d-6e&t=5312
Having worked with GWT and Autobeans vs. Gson and Jackson there were some distinctions between the two relative featuresets: (Security is some other discussion than a json spec) , I would go with GWT's lead in this area vs. the gson/jackson/xstream models which are very biased towards non-interface ser/de products
the GWT approach being compile-centric limits the Autobeans logic to an AutobeansCodex factory type java-side class for compiled js output, but was actually a bit more convenient for writing interface based contracts as well
not that AA needs the GWT libs specifically, but the builk of the json interop for the GWT serverside -> client js is in https://github.com/gwtproject/gwt/tree/main/user/src/com/google/web/bindery/autobean/shared
Beta Was this translation helpful? Give feedback.
All reactions