2019-02-25 04:42:52 UTC - Michele Sciabarra: if you publish the code in some 
public repo I can give a look
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551069772154700
----
2019-02-25 04:43:04 UTC - Michele Sciabarra: even if incomplete
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551069784154900
----
2019-02-25 09:11:46 UTC - Roberto Diaz: @Michele Sciabarra hi! here is the repo 
with the current work, it is still in progress 
<https://github.com/rdiaz82/openwhisk-runtime-rust>
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551085906155600
----
2019-02-25 09:11:58 UTC - Michele Sciabarra: yes
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551085918156000
----
2019-02-25 09:12:32 UTC - Michele Sciabarra: great there is the main
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551085952156800
----
2019-02-25 09:12:57 UTC - Roberto Diaz: The main idea is the following:
1) all user code should be under actions folder and it should be uploaded 
either a single <http://lib.rs|lib.rs> (if you don't need any additional 
reference) or a complete folder to override the action folder including your 
own dependencies there
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551085977157600
----
2019-02-25 09:13:17 UTC - Michele Sciabarra: you are calling "mainAction"
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551085997158200
----
2019-02-25 09:13:21 UTC - Roberto Diaz: right now I think that the `launcher` 
is complete
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086001158500
----
2019-02-25 09:13:52 UTC - Michele Sciabarra: is it possible in Rust to have a 
"main(HashMap&lt;String, XXX&gt;)" ?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086032159100
----
2019-02-25 09:14:10 UTC - Michele Sciabarra: where main is the same name as 
"main()" ?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086050159600
----
2019-02-25 09:14:27 UTC - Roberto Diaz: I have to check it
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086067160000
----
2019-02-25 09:14:38 UTC - Roberto Diaz: because main is used in rust for entry 
points
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086078160500
----
2019-02-25 09:14:42 UTC - Michele Sciabarra: also you used a HashMap&lt;String, 
String&gt;
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086082160700
----
2019-02-25 09:14:45 UTC - Michele Sciabarra: yes I know
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086085161000
----
2019-02-25 09:14:51 UTC - Michele Sciabarra: it is the same problem with Go
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086091161400
----
2019-02-25 09:15:01 UTC - Michele Sciabarra: so I used a "capitalized" Main for 
this
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086101161700
----
2019-02-25 09:15:25 UTC - Michele Sciabarra: but is is better to have a default 
so the user does not have to specifiy --main
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086125162100
----
2019-02-25 09:16:27 UTC - Michele Sciabarra: also you are using 
HashMap&lt;String, String&gt; while it should be something like 
HashMap&lt;String, Generic&gt;
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086187162800?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:16:41 UTC - Michele Sciabarra: where I do not know what is the 
rust equivalent of "anything"
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086201163300
----
2019-02-25 09:17:12 UTC - Michele Sciabarra: in Go we have 
map[string]interface{}
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086232164000
----
2019-02-25 09:17:24 UTC - Michele Sciabarra: for python and js they are generic 
objects
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086244164300
----
2019-02-25 09:17:31 UTC - Michele Sciabarra: in Java they are Gson objects
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086251164600
----
2019-02-25 09:18:50 UTC - Michele Sciabarra: if rust supports functions 
overloading we can have a main() that calls a main(HashMap&lt;&gt;)
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086330165300
----
2019-02-25 09:19:19 UTC - Michele Sciabarra: otherwise we need a standard way 
to map the main in some other not-clashing name
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086359166000
----
2019-02-25 09:19:35 UTC - Michele Sciabarra: I strongly recommend to have a 
default
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086375166400
----
2019-02-25 09:20:03 UTC - Michele Sciabarra: in python you have a __main__.py 
module
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086403166900
----
2019-02-25 09:20:39 UTC - Michele Sciabarra: it could be an "action" module or 
something like this containing the main function
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551086439167600
----
2019-02-25 09:39:54 UTC - Roberto Diaz: for this we can use 
`HashMap&lt;String,Value&gt;` where `Value is the generic object extracted from 
Serde, the drawback of this is that with this approach we force the user to 
have Serde as a dependency in his code.
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087594167700?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:40:56 UTC - Michele Sciabarra: I think we cannot avoid this 
because we handle Json
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087656167900?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:41:00 UTC - Roberto Diaz: 
<https://docs.serde.rs/serde_json/value/enum.Value.html>
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087660168100?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:41:06 UTC - Michele Sciabarra: in Java there is dependency for 
Gson
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087666168400?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:41:16 UTC - Michele Sciabarra: in Swift there is a dependency on 
Codable
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087676168600?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:41:37 UTC - Roberto Diaz: yeah, as I saw that gson is used on 
java the use of Value could also fit in this context
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087697168800?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:46:18 UTC - Michele Sciabarra: so you launcher is fine but need 
to rename the mainAction to something like "main(HashMap&lt;String,Value&gt;)" 
if possible
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087978170700?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:46:32 UTC - Michele Sciabarra: so for a single file action the 
runtime can generate the rest
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551087992170900?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:46:54 UTC - Roberto Diaz: I forgot to comment, to test this is 
just do the following:
```
$ cargo build 
$ cargo run -p actionLoop 3&gt; ./out.txt
{"value":{"test":"1","test2":2},"other":22} (whatever json)
```
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088014171200
----
2019-02-25 09:46:59 UTC - Michele Sciabarra: and you can deploy wsk create 
action hello <http://hello.rs|hello.rs>
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088019171300?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:47:09 UTC - Michele Sciabarra: so the kind and the main are 
deduceter
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088029171500?thread_ts=1551086187.162800&cid=C3UDXSFA6
----
2019-02-25 09:47:12 UTC - Michele Sciabarra: this is ok
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088032171800
----
2019-02-25 09:47:25 UTC - Michele Sciabarra: I can help with the builder
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088045172100
----
2019-02-25 09:47:36 UTC - Michele Sciabarra: if you want I do it :smile:
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088056172400
----
2019-02-25 09:47:56 UTC - Roberto Diaz: sure!! you have more clear the process 
than me
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088076172800
----
2019-02-25 09:48:01 UTC - Michele Sciabarra: yes
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088081173200
----
2019-02-25 09:48:12 UTC - Michele Sciabarra: also I am updating the 
documentation and the runtime
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088092173600
----
2019-02-25 09:48:17 UTC - Roberto Diaz: I can support with all rust related 
stuff
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088097173800
----
2019-02-25 09:48:38 UTC - Michele Sciabarra: yup I prepare the rest then I 
leave to you to write the tests in rust
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088118174400
----
2019-02-25 09:49:04 UTC - Roberto Diaz: I was thinking about the possibility to 
have the action name in the loop
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088144175200
----
2019-02-25 09:49:04 UTC - Michele Sciabarra: there are a few simple tests do 
not worry
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088144175300
----
2019-02-25 09:49:08 UTC - Michele Sciabarra: very simple
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088148175700
----
2019-02-25 09:50:04 UTC - Michele Sciabarra: we need to fix the main action 
that should bee imho just main(HashMap&lt;String, Value&gt;)
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088204176700
----
2019-02-25 09:50:12 UTC - Michele Sciabarra: if it is possible
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088212177200
----
2019-02-25 09:50:24 UTC - Roberto Diaz: checking it!
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088224177500
----
2019-02-25 09:54:34 UTC - Michele Sciabarra: I also updated the actionloop to a 
newer version to better support other languages so I can use it 
:slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088474178300
----
2019-02-25 09:55:35 UTC - Michele Sciabarra: if you fix the launcher leave the 
rest to me
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088535179400
----
2019-02-25 09:59:10 UTC - Roberto Diaz: it seems that we can't use `main` as 
action name.
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551088750180100
----
2019-02-25 10:06:05 UTC - Michele Sciabarra: can you put in a different 
namespace/module/whatever ?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551089165180600
----
2019-02-25 10:34:39 UTC - Roberto Diaz: the problem here is that `main` can't 
have any input param
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551090879181200
----
2019-02-25 10:49:08 UTC - Carlos Santana: We can do default same as Go and use 
a method “Main” with capital “M” 
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551091748182300
----
2019-02-25 10:51:19 UTC - Carlos Santana: If no capital letter allowed then 
“main_handler(...”
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551091879183100
----
2019-02-25 10:51:42 UTC - Carlos Santana: It can be overridden by —main 
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551091902183500
----
2019-02-25 10:52:59 UTC - Roberto Diaz: no prob!! I have manage to use main 
:tada:
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551091979183900
----
2019-02-25 10:53:20 UTC - Roberto Diaz: just was a problem with method name 
duplication
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092000184400
----
2019-02-25 10:53:38 UTC - Roberto Diaz: so I used  the `as` with the import
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092018185000
----
2019-02-25 10:53:43 UTC - Roberto Diaz: and it is solved
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092023185200
----
2019-02-25 10:56:16 UTC - Roberto Diaz: @Michele Sciabarra updated the repo 
with latest changes
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092176185600
----
2019-02-25 10:56:24 UTC - Michele Sciabarra: ok
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092184185800
----
2019-02-25 10:56:26 UTC - Roberto Diaz: 
<https://github.com/rdiaz82/openwhisk-runtime-rust>
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092186186000
----
2019-02-25 10:57:22 UTC - Michele Sciabarra: as a base image can be ok the 
official rust ?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092242187100
----
2019-02-25 10:57:45 UTC - Roberto Diaz: yes
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092265187300
----
2019-02-25 10:57:53 UTC - Michele Sciabarra: good so I have already
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092273187500
----
2019-02-25 10:58:04 UTC - Michele Sciabarra: a good amount done
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092284187900
----
2019-02-25 10:58:27 UTC - Michele Sciabarra: I may use the rust example to 
write the tutorial :slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092307188500
----
2019-02-25 10:59:12 UTC - Roberto Diaz: nice!!!
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092352188700
----
2019-02-25 11:01:04 UTC - Roberto Diaz: I'm going to give you write permission 
in the repo
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092464189100
----
2019-02-25 11:01:38 UTC - Michele Sciabarra: good idea then we can submit it
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092498189600
----
2019-02-25 11:02:03 UTC - Michele Sciabarra: I think Carlos can start the 
process to open a new repo incubator-openwhisk-runtime-rust
+1 : Carlos Santana
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092523190300
----
2019-02-25 11:02:48 UTC - Roberto Diaz: what's your github name?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092568190700
----
2019-02-25 11:02:57 UTC - Michele Sciabarra: sciabarracom
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092577191000
----
2019-02-25 11:09:30 UTC - Roberto Diaz: added!
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551092970191200
----
2019-02-25 12:49:07 UTC - Rodric Rabbah: @Michele Sciabarra you can create a 
repo here <https://gitbox.apache.org/setup/newrepo.html>
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551098947191600
----
2019-02-25 12:50:10 UTC - Rodric Rabbah: 
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551099010192000
----
2019-02-25 12:52:31 UTC - Michele Sciabarra: great I did now know that
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551099151192800
----
2019-02-25 15:56:26 UTC - Carlos Santana: @Michele Sciabarra just watch out for 
the name when you enter and don't get double entry in the name. Also work with  
@Roberto Diaz so there is an ICLA on filed, and last sent out email to dev 
mailing list if everyone is cool and no objections with adding a new runtime 
and new repo for it.
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110186194500
----
2019-02-25 15:56:57 UTC - Michele Sciabarra: let finish it first
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110217195200
----
2019-02-25 15:57:08 UTC - Carlos Santana: yep
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110228195500
----
2019-02-25 15:57:16 UTC - Carlos Santana: just giving you steps 2,3,4
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110236195900
----
2019-02-25 15:57:22 UTC - Michele Sciabarra: yup
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110242196200
----
2019-02-25 15:57:22 UTC - Carlos Santana: finish step 1 first :joy:
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110242196300
----
2019-02-25 15:57:36 UTC - Roberto Diaz: cool!
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110256196700
----
2019-02-25 15:58:10 UTC - Roberto Diaz: btw I just have push some minor code 
changes @Michele Sciabarra
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110290197400
----
2019-02-25 16:04:34 UTC - Michele Sciabarra: do it
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110674197600
----
2019-02-25 16:04:40 UTC - Michele Sciabarra: I will leave the launcher to you
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110680197900
----
2019-02-25 16:04:54 UTC - Roberto Diaz: :thumbsup:
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551110694198100
----
2019-02-25 22:57:52 UTC - Jin Choi: I have a question. To use 3rd party modules 
for python:3 the `virtualenv` must be initialized by python3.6, right? (I 
checked that python3 runtime doesn't consider any other python versions) But 
not everyone has python3.6. Some has python3.7 others have python3.5.
What is your suggestion for the situation? I googled `python multiple version 
blah blah` and some tools such as `asdf` `conda` came up. I wonder if there is 
more elegant way to solve this issue.
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551135472203800
----
2019-02-25 23:19:28 UTC - Rodric Rabbah: we should update the image to 3.7
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551136768204600
----
2019-02-25 23:19:44 UTC - Rodric Rabbah: there are images for openwhisk with 
3.7 - are you deploying your own openwhisk?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551136784205000
----
2019-02-25 23:22:09 UTC - Rodric Rabbah: you can replace the python image with 
`openwhisk/actionloop-python-v3.7` in this file
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551136929205400
----
2019-02-25 23:22:17 UTC - Rodric Rabbah: 
<https://github.com/apache/incubator-openwhisk/blob/fec91db86f90bae395e267e3522ca7e3020cc9e3/ansible/files/runtimes.json#L73>
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551136937205600
----
2019-02-25 23:22:40 UTC - Rodric Rabbah: (there’s a similar config if you’re 
using kube or docker compose)
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551136960206000
----
2019-02-25 23:36:07 UTC - Jin Choi: Yes, I deployed my own openwhisk. I'll 
upgrade my python runtime to 3.7 as you suggest. Thanks! But still my question 
is valid. What if my client uses ubuntu 14.04 as his host OS and his default 
python installed from apt-repository is 3.5?
Would you suggest that my client should either upgrade his OS or upgrade python 
version to 3.7?
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551137767209000
----
2019-02-25 23:51:48 UTC - Rodric Rabbah: you can create the venv inside the 
container for the corresponding runtime
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551138708209700
----
2019-02-25 23:52:08 UTC - Rodric Rabbah: eg `docker run -it 
openwhisk/python3action bash`
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551138728210200
----
2019-02-25 23:52:27 UTC - Rodric Rabbah: i think there are some blogs on how to 
do this, from @James Thomas
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551138747210700
----

Reply via email to