Fork me on GitHub
#portkey
<
2019-01-09
>
devn06:01:30

This is my favorite channel.

baptiste-from-paris09:01:09

Hello friends, so I finished to implement all protocol for making requests

👏 10
baptiste-from-paris09:01:32

I had some tests checking body generation

baptiste-from-paris09:01:51

Would be great to check headers and URI in the near futur

baptiste-from-paris09:01:20

I propose to create merge it in the official repo on a branch.

baptiste-from-paris09:01:54

It lacks deserialization yet, I have to think about it, if anyone has ideas

viesti19:01:36

hmh, somehow loosing ability to concentrate on reading blog posts. I realized that I only skimmed Matthew's post, and he demonstrated Application CDS too (creating memory mapped archive of user classes)

viesti19:01:09

I have faint memory that class data sharing originated from the jdk build that Apple used to maintain but I might be way off (idea was to lower memory use by sharing read only memory mapped base classes, similar to what native libraries might do)

viesti20:01:20

(case protocol
    "rest-xml"  (params-to-body-rest-xml req)
    "ec2"       (params-to-body-ec2 req)
    "query"     (params-to-body-query req)
    "rest-json" (params-to-body-rest-json req)
    "json"      (params-to-body-json req)))
neat :)

baptiste-from-paris20:01:35

doing deser right now

baptiste-from-paris20:01:47

it’s going well for json/rest-json

baptiste-from-paris20:01:55

offcourse xml is a pain in the ass

baptiste-from-paris20:01:42

and I have to put back documentation done by Mr Kimmo himself 😉

viesti20:01:55

I wonder if there's anything we could share with rhe Cognitect library

viesti20:01:16

did I document something? , oo :)

baptiste-from-paris20:01:28

I’d really love to see some cljs working some day

viesti20:01:52

yeah, there's a issue foe cljs on the aws-api too

baptiste-from-paris20:01:56

and the ser/deser design rely on pure datastructure

baptiste-from-paris20:01:37

which mean it’s possible there is nothing to touch in sdk itself

baptiste-from-paris20:01:43

only signing and request

baptiste-from-paris20:01:12

@viesti, I think ou tried the cognitect one, what do you find better / worst ?

viesti20:01:13

hmm, data.xml is cljs too?

baptiste-from-paris20:01:31

yep, but I did not tried it

viesti20:01:51

they don't gen functions, rely on "data centric" callsite, (aws/invoke s3-client {:op :ListBuckets})

baptiste-from-paris20:01:16

which is better or kind if the same

viesti20:01:27

I kinda found it neat at repl

viesti20:01:42

but would imagine say Cursive having hard time

viesti20:01:23

at the repl, one can ask for supported ops, and request/response shape

baptiste-from-paris20:01:49

like spec exercise

viesti20:01:43

but there are specs, so they should be navigable via a spec browser like cider

viesti20:01:01

the lib is broken into many artifacts

viesti20:01:23

having only one is a bit easier in the end

baptiste-from-paris20:01:15

anyway my point was also to finish an OSS of a big size

baptiste-from-paris20:01:29

if nobody use it, it’s fine 😄

viesti20:01:56

might be even less stressful :)

baptiste-from-paris20:01:02

but at least it will be truly open-source 😋

viesti20:01:57

haven't really yet read on SubtrateVM nor Graal, but this sounds eerily close to portkey abstract interpretation: https://github.com/oracle/graal/blob/master/substratevm/REFLECTION.md

baptiste-from-paris20:01:23

what’s your idea behind all this ?

viesti20:01:18

maybe nothing useful, just that the bytecode analysis in portkey could be used for generating a list of classes for the native-image tool in subtrate/graal

viesti20:01:09

could make native image bulding easier, if in the repl, one could provide entry point function and the pass classes resolved from that point onto native image packager

viesti20:01:20

but this is just thinking out loud

baptiste-from-paris20:01:54

I did not look much at all the serverless stuff recently

baptiste-from-paris20:01:59

seems a lot is happening

viesti20:01:40

re:Invent happened and aws opened up the runtime ability of lambda

viesti20:01:20

but there's stuff aside aws too, that I don't know much of

baptiste-from-paris20:01:22

which means you can create aws for your own language right ?

viesti20:01:06

but in aws, one can now have a custom runtime for any language. You poll events from a local http api, and push back reponses. The runtime just invokes your binary.

viesti20:01:21

and one can share runtimes via layers, Ghadi haa done this https://github.com/ghadishayban/lambdaclj-jdk11

viesti20:01:08

so even though current java aws lambda is on jdk8, you can ship your own version now

viesti20:01:35

hmm, realizing I need sleep

viesti20:01:00

good night! :)

baptiste-from-paris22:01:37

xml -> formatted map

baptiste-from-paris22:01:59

this was not fun 😄