portkey 2019-01-09

This is my favorite channel.

baptiste-from-paris 2019-01-09T09:36:09.063500Z

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

πŸ‘ 2
baptiste-from-paris 2019-01-09T09:36:32.064300Z

I had some tests checking body generation

baptiste-from-paris 2019-01-09T09:36:51.064800Z

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

baptiste-from-paris 2019-01-09T09:37:20.065500Z

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

baptiste-from-paris 2019-01-09T09:37:54.066300Z

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

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)

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)

(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-paris 2019-01-09T20:10:35.076100Z

doing deser right now

baptiste-from-paris 2019-01-09T20:10:47.076500Z

it’s going well for json/rest-json

baptiste-from-paris 2019-01-09T20:10:55.076900Z

offcourse xml is a pain in the ass

baptiste-from-paris 2019-01-09T20:11:42.078Z

and I have to put back documentation done by Mr Kimmo himself πŸ˜‰

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

did I document something? , oo :)

baptiste-from-paris 2019-01-09T20:12:28.079500Z

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

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

baptiste-from-paris 2019-01-09T20:12:56.080800Z

and the ser/deser design rely on pure datastructure

baptiste-from-paris 2019-01-09T20:13:37.082500Z

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

baptiste-from-paris 2019-01-09T20:13:43.082800Z

only signing and request

baptiste-from-paris 2019-01-09T20:13:50.083Z

http calls

baptiste-from-paris 2019-01-09T20:15:12.084300Z

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

hmm, data.xml is cljs too?

baptiste-from-paris 2019-01-09T20:15:31.085Z

yep, but I did not tried it

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

baptiste-from-paris 2019-01-09T20:17:16.087800Z

which is better or kind if the same

I kinda found it neat at repl

but would imagine say Cursive having hard time

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

baptiste-from-paris 2019-01-09T20:18:41.090100Z

ok

baptiste-from-paris 2019-01-09T20:18:49.090400Z

like spec exercise

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

the lib is broken into many artifacts

having only one is a bit easier in the end

baptiste-from-paris 2019-01-09T20:20:50.093700Z

ok

baptiste-from-paris 2019-01-09T20:21:15.094900Z

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

baptiste-from-paris 2019-01-09T20:21:29.095500Z

if nobody use it, it’s fine πŸ˜„

might be even less stressful :)

baptiste-from-paris 2019-01-09T20:22:02.096800Z

but at least it will be truly open-source πŸ˜‹

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-paris 2019-01-09T20:38:23.101500Z

what’s your idea behind all this ?

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

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

but this is just thinking out loud

baptiste-from-paris 2019-01-09T20:45:23.107Z

ok

baptiste-from-paris 2019-01-09T20:45:54.107600Z

I did not look much at all the serverless stuff recently

baptiste-from-paris 2019-01-09T20:45:59.107900Z

seems a lot is happening

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

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

baptiste-from-paris 2019-01-09T20:48:02.110Z

ok

baptiste-from-paris 2019-01-09T20:48:22.111100Z

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

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.

baptiste-from-paris 2019-01-09T20:49:24.112800Z

ok

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

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

hmm, realizing I need sleep

good night! :)

baptiste-from-paris 2019-01-09T20:55:08.117100Z

good night

baptiste-from-paris 2019-01-09T22:57:37.117200Z

xml -> formatted map

baptiste-from-paris 2019-01-09T22:57:59.117900Z

this was not fun πŸ˜„