portkey

Portkey: from REPL to Serverless in one call
baptiste-from-paris 2018-05-21T14:15:44.000430Z

for info, digging into shape-usage for splitting spec checks and conforming

baptiste-from-paris 2018-05-21T15:30:12.000798Z

@cgrand, can you remember if you were generating req ser resp deser specs ? gen-operation not working at my place

baptiste-from-paris 2018-05-21T17:50:24.000771Z

so, from what I understand

baptiste-from-paris 2018-05-21T17:50:37.000616Z

1) remove all conforming from spec generation

baptiste-from-paris 2018-05-21T17:51:15.000657Z

2) keep spec generation as it is

baptiste-from-paris 2018-05-21T17:52:16.000341Z

3) on fn generation, add ser-* which are protocol dependent BUT platform independent (replace conforms)

baptiste-from-paris 2018-05-21T17:54:06.000636Z

4) fn make the request protocol and platforrm dependent

baptiste-from-paris 2018-05-21T17:54:19.000678Z

5) resp deserialization

baptiste-from-paris 2018-05-21T17:56:14.000105Z

I don’t see how the req-* resp*` are working as we only need to serialize once and then make the request based on the protocol, not the fn

baptiste-from-paris 2018-05-21T18:40:40.000441Z

I don’t get why you are building the vars =>

baptiste-from-paris 2018-05-21T18:40:49.000508Z

vars (map (comp symbol portkey.aws/dashed)
                   (concat (map #(str "ser-" %) inputs) (map #(str "req<-" %) input-roots)
                     (map #(str "deser-" %) outputs) (map #(str "resp->" %) output-roots)))

cgrand 2018-05-21T20:47:01.000549Z

req ser resp deser are not specs but functions, and they are not generated at the moment. Vars are created beforehand to be declared (because cycles may happen).