[apache/incubator-teaclave-sgx-sdk] Channel sender from ocall (#241)

2020-05-26 Thread Frederic Fortier
Is it possible to use ocall with async channels (like in this pseudo code)? ```rust fn subscribe() { let (mut tx, mut rx) = mpsc::unbounded::(); // I know that I can't declare an ocall inside a fn // I want to illustrate of accessing the Receiver in the ocall fn ocall_pick_number(out_number

Re: [apache/incubator-teaclave] Add document on defining customized function (#318)

2020-05-26 Thread Mingshen Sun
Merged #318 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/pull/318#event-3375827719

[apache/incubator-teaclave] Add document on defining customized function (#318)

2020-05-26 Thread Mingshen Sun
## Description - Add "define my own function" section into "my first function" doc. - Improve other docs. You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave/pull/318 -- Commit Summary -- * [docs] Fix links in docs * [docs] Add mes

Re: [apache/incubator-teaclave] [docs] Fix links in docs for website presentation (#316)

2020-05-26 Thread Mingshen Sun
Merged #316 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/pull/316#event-3374732450

Re: [apache/incubator-teaclave-sgx-sdk] TLS -> TCS policy must be bound (#240)

2020-05-26 Thread Frederic Fortier
Thank you so much guys! These were all the right clues. I did recently start using `rand::thread_rng` in the untrusted module. I suspect that this is what caused the error rather than the SDK upgrade. Setting `0` worked although I'm reading more about it to understand its ramification. -- You

Re: [apache/incubator-teaclave-sgx-sdk] TLS -> TCS policy must be bound (#240)

2020-05-26 Thread Frederic Fortier
Closed #240. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/240#event-3374711324

Re: [apache/incubator-teaclave] How to create Functions by useing other language such like Go or Java. (#317)

2020-05-26 Thread xinuo
Closed #317. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/issues/317#event-3372738644

Re: [apache/incubator-teaclave] How to create Functions by useing other language such like Go or Java. (#317)

2020-05-26 Thread xinuo
Ok,thanks for your reply. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/issues/317#issuecomment-633922203

Re: [apache/incubator-teaclave] How to create Functions by useing other language such like Go or Java. (#317)

2020-05-26 Thread Mingshen Sun
Correct. Currently, we have two executors: - native: native functions implemented in Rust - mesapy: python functions We do have plan to implement other executors to support more languages. E.g., we can implement a webassembly executors in SGX, or we can use some libos-like SGX implementatio

[apache/incubator-teaclave] How to create Functions by useing other language such like Go or Java. (#317)

2020-05-26 Thread xinuo
Hi: In this project , i had seen the function such like "builtin-echo".It can be find in function/src/echo.rs ,right? So,if i want to create my function useing other language,must i impl the excutor by useing rust and then create my function? -- You are receiving this because you are subscribe

[apache/incubator-teaclave] [docs] Fix links in docs for website presentation (#316)

2020-05-26 Thread Mingshen Sun
## Description - Fix links in docs for website presentation Note that when writing docs, if link to GitHub code or directories instead of `.md` files, please use absolute links of GitHub. Otherwise, the generated docs in website will not recognize the internal links to code resulting in broken