profile
viewpoint

kevinzakka/pytorch-goodies 379

PyTorch Boilerplate For Research

nhynes/caffegraph 26

Load graphical Caffe networks in Torch

nhynes/abc 18

SeqGAN but with more bells and whistles

nhynes/comptime-rs 18

Zig comptime using Rust proc macros

eglassman/overcode 15

OverCode's public repo (OverCode 2.0 is still a private repo and will hopefully be released soon). See http://people.csail.mit.edu/elg/overcode for papers, posters, and talks.

nhynes/em 13

Tool for managing deep learning experiments

ekiden/contract-dpcs 5

differentially private logistic regression for credit scoring

nhynes/chisel3-axi 5

Chisel3 AXI4-{Lite, Full, Stream} Definitions

ekiden/contract-token 4

Ekiden token contract

nhynes/airhub 1

Transfer AirTable Tasks to GitHub Issues

create barnchoasislabs/oasis-ethwasi-runtime

branch : use-parity-ws

created branch time in 21 hours

PR opened oasislabs/oasis-ethwasi-runtime

Reviewers
Use latest parity
+211 -213

0 comment

5 changed files

pr created time in 21 hours

PR closed oasislabs/jsonrpc

hyper v0.12
  • Pin ws-rs version
  • Use parity-ws
+11 -10

0 comment

7 changed files

nhynes

pr closed time in 21 hours

create barnchoasislabs/oasis-parity

branch : use-parity-ws

created branch time in 21 hours

PR opened oasislabs/oasis-parity

Reviewers
Use parity-ws
+398 -330

0 comment

3 changed files

pr created time in 21 hours

create barnchoasislabs/jsonrpc

branch : oasis

created branch time in 21 hours

created tagoasislabs/jsonrpc

taghyper-v0.12_parity-ws-v0.10

Rust JSON-RPC implementation

created time in 21 hours

PR opened oasislabs/jsonrpc

hyper v0.12
  • Pin ws-rs version
  • Use parity-ws
+11 -10

0 comment

7 changed files

pr created time in 21 hours

push eventoasislabs/jsonrpc

Nick Hynes

commit sha 646e8f0df8e0542abbaaf26fb733676b9174e2e1

Use parity-ws

view details

push time in 21 hours

issue commentoasislabs/oasis-ethwasi-runtime

Stop using unmainted ws-rs

I guess I can do it now. Shouldn't take more than an hour or two.

ptrus

comment created time in a day

issue commenttokio-rs/tracing

proc-macros: #[traced_test] macro

This would be great. Any ideas how #[traced_test] could coexist with #[tokio::test] though?

You just dump the rest of the attrs out:

use quote::quote;

pub fn test_attr(input: syn::ItemFn) -> proc_macro2::TokenStream {
    let { attrs, vis, sig, block } = &input;
    let test_attr = sig.asyncness.as_ref()
        .map(|_| quote!(#[tokio::test]))
        .unwrap_or_else(|| quote!(#[test]);

    quote! {
        #test_attr
        #(#attrs)*
        #vis #sig {
            crate::init_tracing();
            #block
        }
    }
}
yaahc

comment created time in 6 days

push eventnhynes/rusqlite

Nick Hynes

commit sha 9cc369e249c0ada6d2e5bdce695bc37b3dece89d

Compile sqlite3-sys using OS_OTHER

view details

push time in 9 days

Pull request review commentrusqlite/rusqlite

Add support for compiling sqlite3-sys using OS_OTHER

 SQLITE_API int sqlite3_stmt_init( /* Return the source-id for this library */ SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; } /************************** End of sqlite3.c ******************************/++#if !defined(__clang__)+// The following functions are taken from https://www.openwall.com/lists/musl/2015/06/17/1+// and fill in for the missing libc support functions generatd by `-D_FORTIFY_SOURCE=2`.+void *__memcpy_chk(void *restrict dest, const void *restrict src, size_t n, size_t destlen)+{+  assert(n <= destlen);+	return memcpy(dest, src, n);+}++void *__memset_chk(void *dest, int c, size_t n, size_t destlen)+{+  assert(n <= destlen);+	return memset(dest, c, n);+}+#endif

maybe these should be echoed in by the build script to make it easer to update the sqlite amalgamation?

nhynes

comment created time in 9 days

PullRequestReviewEvent

Pull request review commentrusqlite/rusqlite

Add support for compiling sqlite3-sys using OS_OTHER

 mod build_bundled {             .flag("-DSQLITE_DEFAULT_FOREIGN_KEYS=1")             .flag("-DSQLITE_ENABLE_API_ARMOR")             .flag("-DSQLITE_ENABLE_COLUMN_METADATA")-            .flag("-DSQLITE_ENABLE_DBSTAT_VTAB")-            .flag("-DSQLITE_ENABLE_FTS3")-            .flag("-DSQLITE_ENABLE_FTS3_PARENTHESIS")-            .flag("-DSQLITE_ENABLE_FTS5")             .flag("-DSQLITE_ENABLE_JSON1")-            .flag("-DSQLITE_ENABLE_LOAD_EXTENSION=1")-            .flag("-DSQLITE_ENABLE_MEMORY_MANAGEMENT")-            .flag("-DSQLITE_ENABLE_RTREE")             .flag("-DSQLITE_ENABLE_STAT2")             .flag("-DSQLITE_ENABLE_STAT4")             .flag("-DSQLITE_SOUNDEX")             .flag("-DSQLITE_THREADSAFE=1")-            .flag("-DSQLITE_USE_URI")             .flag("-DHAVE_USLEEP=1")             .flag("-D_POSIX_THREAD_SAFE_FUNCTIONS") // cross compile with MinGW             .warnings(false); +        if cfg!(feature = "os-other") {+            cfg.flag("-DSQLITE_OS_OTHER")

other than this line and the -D_FORTIFY_SOURCE, eliding the optional features is intended to keep the build small and secure on embedded-like platforms. I can revert those changes, if desired.

nhynes

comment created time in 9 days

PullRequestReviewEvent

PR opened rusqlite/rusqlite

Add support for compiling sqlite3-sys using OS_OTHER

This PR adds the option to compile sqlite-sys using OS_OTHER, which is useful when running on exotic platforms.

+50 -12

0 comment

5 changed files

pr created time in 9 days

push eventnhynes/rusqlite

Oliver Wangler

commit sha 203bbb6fe220cab215f6d07ab8a987449f7ba571

Update README.md

view details

gwenn

commit sha e909b80bede6b6b1975cf5b4cfa312dd715f0247

Merge pull request #788 from wngr/patch-1 Update README.md

view details

gwenn

commit sha 18f49164ea144ea7744b13e15bf706e6a8e64de8

Upgrade SQLite bundled sources to 3.23.3

view details

gwenn

commit sha 157256a26c8ac9649131f26157730de2137ffd6c

Merge pull request #790 from gwenn/3.23.3 Upgrade SQLite bundled sources to 3.23.3

view details

Damien Elmes

commit sha 6e33947c2a97161b2685a51de1a8e5e07fcc0c3c

update to sqlite 3.33.0

view details

gwenn

commit sha 0063db53caa63eec65f95caf79d98cf121c96bbc

Merge pull request #793 from ankitects/sqlite3.33.0 update to sqlite 3.33.0

view details

gwenn

commit sha a4691db6d0c63968905b95a6764caff6609c068c

pragma_update fails with ExecuteReturnedResults Ideally, while executing a batch, we should fail if it contains a SELECT statement. But currently there is no way to make the distinction between a SELECT and a PRAGMA which both updates and returns a row. So we fail only when `extra_check` feature is activated.

view details

gwenn

commit sha da2d2e371a77859d596d086a965e3165beadf9fd

Merge pull request #794 from gwenn/fix_pragma_update pragma_update fails with ExecuteReturnedResults

view details

gwenn

commit sha 2a7b11320f29828aeb43670662ad0fbeb9fa0c64

Fix clippy warnings

view details

gwenn

commit sha 301a8d0e75ab7d674827f75fe124ef920ab4b5c3

Merge pull request #795 from gwenn/clippy Fix clippy warnings

view details

gwenn

commit sha 405d0de8f61adc01ccfc9f8ad9327e041ee716de

Prepare release of version 0.24.0

view details

gwenn

commit sha 79ab6894f0f6f651515ab6eac6043685befe9bd8

Merge pull request #797 from gwenn/0.24 Prepare release of version 0.24.0

view details

gwenn

commit sha 78275ab614ebcd6175da2a5266550a02717f7b71

Upgrade to bindgen 0.55

view details

gwenn

commit sha 45903324e59bf7ea427a13b443c3ef641e47dee9

Merge pull request #798 from gwenn/bindgen Upgrade to bindgen 0.55

view details

Michael Sproul

commit sha d7e0536b414b8df2e0d1b121f0ddba619a988b24

Add `must_use` attribute to iterators

view details

gwenn

commit sha 997e6d3cc37fa96f8edc3db9839c7e84246ee315

Merge pull request #799 from michaelsproul/must_use Add `must_use` attribute to iterators

view details

gwenn

commit sha d456cd42f2592a744a9de50cd1c5fdbb9c61a871

Generate doc with 'array' feature enabled Should fix #781

view details

gwenn

commit sha d2dcc2d9871390ff3d0bf72e5f918e4ae3165093

Fix clippy warning

view details

gwenn

commit sha 799b5d3f7b8961bda6be8b57ca0280191e6afd92

Rustfmt

view details

gwenn

commit sha a01d1c5f7d3ed56406e142eba67120b20f3808f6

Merge pull request #806 from gwenn/rarray_doc Generate doc with 'array' feature enabled

view details

push time in 9 days

PR opened emk/rust-musl-builder

Fix name of ghtoken binary in image

Renames ghtoken to the expected git-credential-ghtoken to resolve the following issue:

rust@1adcf00e7df0:~/src$ git clone https://github.com/myorg/private-repo
Cloning into 'private-repo'...
git: 'credential-ghtoken' is not a git command. See 'git --help'.
+1 -1

0 comment

1 changed file

pr created time in 12 days

push eventnhynes/rust-musl-builder

Nick Hynes

commit sha 8fb02bb3ee12fd42c25340fa2d75069285157b66

Fix name of ghtoken binary in image Renames `ghtoken` to the expected `git-credential-ghtoken` to resolve the following issue: ``` rust@1adcf00e7df0:~/src$ git clone https://github.com/myorg/private-repo Cloning into 'private-repo'... git: 'credential-ghtoken' is not a git command. See 'git --help'. ```

view details

push time in 12 days

fork nhynes/rust-musl-builder

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.

fork in 12 days

issue commentoasislabs/oasis-ethwasi-runtime

Stop using unmainted ws-rs

ack. I think this is low priority since our web3 gateway shouldn't be exposed on the public net (it is, but that's not intended), but the fix looks straightforward enough, so I'll give it a go asap.

ptrus

comment created time in 12 days

push eventoasislabs/toolstate

Nick Hynes

commit sha 36a819f952a10aec7af3f487ab4a2ecb034196ae

Update installer bucket link

view details

push time in 13 days

issue commentcypress-io/cypress

Preprocessor opens another Cypress instance when bundling

@chrisbreiding thanks for looking into this. I'm getting the same issue using TS and Parcel without any explicit babel-plugin-istanbul. I'm also using route2, so I can't go back to 4.x.

bahmutov

comment created time in 14 days

pull request commentDefinitelyTyped/DefinitelyTyped

[jsrsasign] Amend `getPEM` return type to `string`

Ready to merge

nhynes

comment created time in 16 days

PR opened DefinitelyTyped/DefinitelyTyped

[jsrsasign] Amend `getPEM` return type to `string`

Please fill in this template.

  • [x] Use a meaningful title for the pull request. Include the name of the package modified.
  • [x] Test the change in your own code. (Compile and run.)
  • [x] Add or edit tests to reflect the change. (Run with npm test YOUR_PACKAGE_NAME.)
  • [x] Follow the advice from the readme.
  • [x] Avoid common mistakes.
  • [x] Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

  • [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/kjur/jsrsasign/blob/c8d3b2aa240350ed2ba5462623a567cc56c8cc52/src/keyutil-1.0.js#L1611-L1616
+1 -1

0 comment

1 changed file

pr created time in 19 days

push eventnhynes/DefinitelyTyped

Nick Hynes

commit sha 71d6c94dd903c24e9f4de3e7ffcc0d3723343ced

[jsrsasign] Amend `getPEM` return type to `string`

view details

push time in 19 days

fork nhynes/DefinitelyTyped

The repository for high quality TypeScript type definitions.

fork in 19 days

Pull request review commentapache/incubator-tvm

Fix type code error in rust resnet example #6528

 fn main() {         graph.into(),         (&lib).into(),         (&ctx.device_type).into(),-        (&ctx.device_id).into(),+        (&(ctx.device_id as i32)).into(),

the real questions are a) why this requires a reference b) why From<T> for DeviceId isn't impld for more types

anyway, thanks for catching this!

qixiuai

comment created time in a month

PullRequestReviewEvent

pull request commentoasislabs/oasis-ethwasi-runtime

oasis core 20 11

thanks for steadfastly keeping this up to date!

ptrus

comment created time in a month

PullRequestReviewEvent

issue closedoasislabs/ready-layer-two

Where is the evaluator function called in demo.ts?

Had another question about this repo while reading through demo.ts. Looking through the code below, I was having trouble figuring out where/how exactly the evaluator program is called. I looked through the CompetitionCompleted.subscribe function and was still struggling with the same confusion and also wasn't sure quite understanding the spawnSync function but am assuming one of these has to call the evaluator program. Could you maybe clarify a little bit here? Thanks!

<br>

Screen Shot 2020-09-14 at 2 26 39 PM

closed time in a month

ltchang2019

issue commentoasislabs/ready-layer-two

Where is the evaluator function called in demo.ts?

Hey @ltchang2019, another good question. When the competition is completed, the on-chain service emits a CompetitionCompleted event, to which the program subscribes. That's the signal that the models are ready to download and test. The top-level demo script invokes the evaluator program with the arguments of the Competition service. The evaluator program pulls down the models and runs the evaluator python script (built into the "enclaved" docker image). The python script runs on the data in the "enclave" and posts the results back to the evaluation program, which posts back to the demo script.

Please let me know if you have any follow-up questions!

ltchang2019

comment created time in a month

delete branch nhynes/cloud-storage-rs

delete branch : optional-length

delete time in a month

Pull request review commentoasislabs/oasis-ethwasi-runtime

bump oasis-core 20.10

 authors = ["Oasis Labs Inc. <info@oasislabs.com>"]  [dependencies] # Oasis Core.-oasis-core-runtime = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v20.9" }-oasis-core-keymanager-client = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v20.9" }+oasis-core-runtime = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v20.10" }+oasis-core-keymanager-client = { git = "https://github.com/oasisprotocol/oasis-core", tag = "v20.10" }

sort

ptrus

comment created time in a month

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentoasislabs/oasis-ethwasi-runtime

bump oasis-core 20.10

 license = "GPL-3.0" authors = ["Oasis Labs Inc. <info@oasislabs.com>", "Parity Technologies <admin@parity.io>"]  [dependencies]-log = "0.3"+log = "0.4"

please sort (I know they're not already)

ptrus

comment created time in a month

Pull request review commentoasislabs/oasis-ethwasi-runtime

bump oasis-core 20.10

 io-context = "0.2.0" serde_bytes = "0.11" serde_json = "1.0" sha3 = "0.6"+log = "0.4"

please sort deps alphabetically

ptrus

comment created time in a month

push eventnhynes/cloud-storage-rs

Nick Hynes

commit sha ad74f8023396d4a2a786883d33fa2f984a31bb45

Make create_streamed take length as optional

view details

push time in a month

push eventnhynes/cloud-storage-rs

Luuk Wester

commit sha 0bdd747f10c1a625e027d824c580ee7dbe8220ae

Feat/integration (#32) Fix some documentation issues and add CI checks.

view details

Nick Hynes

commit sha ad74f8023396d4a2a786883d33fa2f984a31bb45

Make create_streamed take length as optional

view details

push time in a month

push eventnhynes/cloud-storage-rs

Luuk Wester

commit sha c37f2ef18090aec28105d44f301a9f66b1fe075d

Feat/integration (#32) Fix some documentation issues and add CI checks.

view details

push time in a month

issue openedThouCheese/cloud-storage-rs

Return `content-length` header with download stream

download_streamed would ideally return the content-length header (or be a stream with an accurate size_hint()) to obviate an unnecessary extra request to fetch the object size.

created time in a month

push eventnhynes/cloud-storage-rs

Nick Hynes

commit sha d938e2020c87f2fc88626e081c57938c23d90e09

Make create_streamed take length as optional

view details

push time in a month

push eventnhynes/cloud-storage-rs

Nick Hynes

commit sha a94cb9085e6f7caf8e38c3adf99dc010a5a3c1f1

Make create_streamed take length as optional

view details

push time in a month

PR opened ThouCheese/cloud-storage-rs

Make create_streamed take length as optional

GCS doesn't actually require the content-length header, which is nice because a stream's length isn't always known in advance. This is an api breaking change, so if that's not desirable, a new function, create_streamed_unsized could suffice.

+12 -4

0 comment

1 changed file

pr created time in a month

create barnchnhynes/cloud-storage-rs

branch : optional-length

created branch time in a month

fork nhynes/cloud-storage-rs

A crate for uploading files to Google cloud storage, and for generating download urls.

fork in a month

push eventoasislabs/oasis-ethwasi-runtime

Nick Hynes

commit sha fc2c378ba7de7ccca6452df5cc173cd70272610b

start_transaction at the right time (#1012)

view details

push time in 2 months

PR merged oasislabs/oasis-ethwasi-runtime

start_transaction at the right time

The previous location of start_transaction caused all of the transactions' tags to be immediately pushed onto the tag stack. Unfortunately, only the last one is modified, which led to only the final txn in the block being indexed. This PR fixes that by starting the txn right before it's executed.

There are no integration tests other than staging not failing. If we wanted one, however, it'd be to make run-gateway and then set up two txn clients, verifying that there are two txns per block. oasis-net-runner needs to take the maxBatchSize as a parameter, though. Alternatively, we could have the tx clients check if their txs succeeded.

+3 -1

0 comment

2 changed files

nhynes

pr closed time in 2 months

create barnchoasislabs/oasis-ethwasi-runtime

branch : fix-txn-tags

created branch time in 2 months

issue commentapache/incubator-tvm

Performance step about memory reduced for sgx

Nice benchmarks. The latency you're seeing is almost surely due to paging. My guess is that about 12 M are being used for your NN and other housekeeping structures. SGXv1 EPC only has 96 M usable EPC beyond which you're going to start swapping, which is slow.

What's your actual use case? I'm sure there's a way to chop up your data for the algorithm you're using.

simplelins

comment created time in 2 months

PullRequestReviewEvent

Pull request review commentoasislabs/oasis-ethwasi-runtime

benchmarks/transfer: configurable funding address

 func Init(cmd *cobra.Command) { 	cmd.Flags().StringVar(&flagFaucetURL, cfgFaucetURL, "", "Faucet private endpoint URL") 	cmd.Flags().BoolVar(&flagWatchNewHead, cfgWatchNewHead, false, "Subscribe for `newHeads` events") 	cmd.Flags().BoolVar(&flagQueryNonces, cfgQueryNonces, false, "Query explicitly for account nonces")+	cmd.Flags().StringVar(&flagFundingAccount, cfgFundingAccount, "533d62aea9bbcb821dfdda14966bb01bfbbb53b7e9f5f0d69b8326e052e3450c", "Hex encoded funding account key")+	cmd.Flags().StringVar(&flagFundingAccountAddress, cfgFundingAccountAddress, "0x7110316b618d20d0c44728ac2a3d683536ea682b", "Funding account address")  	for _, v := range []string{ 		cfgFaucetURL, 		cfgWatchNewHead, 		cfgQueryNonces,+		flagFundingAccount,+		flagFundingAccountAddress,

you sure this shouldn't be cfg?

ptrus

comment created time in 2 months

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentoasislabs/oasis-ethwasi-runtime

benchmarks/transfer: configurable funding address

 func Init(cmd *cobra.Command) { 		viper.BindPFlag(v, cmd.Flags().Lookup(v)) // nolint: errcheck 	} -	// TODO: This probably shouldn't be hardcoded, but just initialize-	// the funding account here for now.-	const (-		fundingAccount = "533d62aea9bbcb821dfdda14966bb01bfbbb53b7e9f5f0d69b8326e052e3450c"-		fundingAddress = "0x7110316b618d20d0c44728ac2a3d683536ea682b"-	)--	privKey, err := crypto.HexToECDSA(fundingAccount)+	privKey, err := crypto.HexToECDSA(flagFundingAccount) 	if err != nil {-		panic(err)+		panic(fmt.Sprintf("error parsing funding account private key: %v", err)) 	}  	// Sanity check the addresss. 	addr := privKeyToAddress(privKey)-	if strings.ToLower(addr.Hex()) != fundingAddress {+	if strings.ToLower(addr.Hex()) != flagFundingAccountAddress {
	if strings.ToLower(addr.Hex()) != strings.ToLower(flagFundingAccountAddress) {

there's no guarantee that the user won't pass in a lower-cased address

ptrus

comment created time in 2 months

Pull request review commentoasislabs/oasis-ethwasi-runtime

benchmarks/transfer: configurable funding address

 func Init(cmd *cobra.Command) { 	cmd.Flags().StringVar(&flagFaucetURL, cfgFaucetURL, "", "Faucet private endpoint URL") 	cmd.Flags().BoolVar(&flagWatchNewHead, cfgWatchNewHead, false, "Subscribe for `newHeads` events") 	cmd.Flags().BoolVar(&flagQueryNonces, cfgQueryNonces, false, "Query explicitly for account nonces")+	cmd.Flags().StringVar(&flagFundingAccount, cfgFundingAccount, "533d62aea9bbcb821dfdda14966bb01bfbbb53b7e9f5f0d69b8326e052e3450c", "Hex encoded funding account key")+	cmd.Flags().StringVar(&flagFundingAccountAddress, cfgFundingAccountAddress, "0x7110316b618d20d0c44728ac2a3d683536ea682b", "Funding account address")  	for _, v := range []string{ 		cfgFaucetURL,

you sure you don't need to add cfgFundingAccount and cfgFundingAccountAddress?

ptrus

comment created time in 2 months

PullRequestReviewEvent
PullRequestReviewEvent

issue closedoasislabs/ready-layer-two

Super cool! Had two questions to better understand how this works...

I was reading through the repo to get a better understanding of contract development in Rust and this all looks really cool! I had two technical questions though, if you didn't mind me asking.

  1. In the typescript client services files, when you call gateway.rpc(address, payload, options), how does the remote node executing your request know which contract function you are calling? I might be missing something huge but it seems like the contract somehow can "magically" infer which contract function you are calling based on the payload you pass in?

  2. Does the current repo actually have Oasis nodes test the submitted models against the secret test data? I saw that there is an evaluation_program field in the Rust contract but I don't see it being used anywhere. If not, do you know how you would instruct a node to run the evaluation script on the submitted models?

closed time in 2 months

ltchang2019

issue commentoasislabs/ready-layer-two

Super cool! Had two questions to better understand how this works...

Cool, glad it makes sense! I'll close this issue for now, but you should feel encouraged to reopen it or make a new one if you have any other questions.

ltchang2019

comment created time in 2 months

issue commentoasislabs/ready-layer-two

Super cool! Had two questions to better understand how this works...

how does the remote node executing your request know which contract function you are calling?

Good question! You're actually exactly right about the contract inferring the function from the payload. The "magical" part is that the Oasis Eth/WASI SDK generates the dispatch code for you. Basically what happens is

  1. the contract requests the input (i.e. payload), which is encoded as fn_index || encoded_fn_args
  2. it deserializes the input as a tagged union (the tag is the requested function, the other members are the args)
  3. it matches the tag and dispatches the args to the method you wrote

The client's generated code packs the payload up in the expected format.

Oasis nodes test the submitted models against the secret test data

Yes and no. The current SANDBOXED_EVALUATOR_IMAGE actually bakes in the evaluation program, which isn't ideal because then you'd need to trust the evaluation program (possibly through auditing, possibly through static analysis). Otherwise, you'd take the evaluator image and make that a sandbox in which you run the untrusted evaluation program. This demo was written with the assumption that the target environment is a whole-VM enclave like that offered by AMD SEV(-SNP). If you wanted to use a linked-library enclave, you'd need to retool the sandbox a bit and do some trickery for running the evaluation program (e.g., by embedding a python interpreter).

ltchang2019

comment created time in 2 months

Pull request review commentoasislabs/oasis-cli

Add custom section with version info to WASM

 fn build_rust_app(target: &Target, opts: &BuildOptions) -> Result<()> {     Ok(()) } +/// Remove a trailing newline from a byte string.+fn strip_trailing_newline(mut input: Vec<u8>) -> Vec<u8> {

a helper function goes below the method that uses it

mitjat

comment created time in 2 months

Pull request review commentoasislabs/oasis-cli

Add custom section with version info to WASM

 pub fn prep_wasm(input_wasm: &Path, output_wasm: &Path, debug: bool) -> Result<(         }     } +    // Add a section with version info for current git repo.+    let git_sha = match Command::new("git").args(&["rev-parse", "HEAD"]).output() {+        Err(_) => b"(git rev-parse failed)".to_vec(),+        Ok(output) => strip_trailing_newline(output.stdout),+    };+    let is_git_dirty = match Command::new("git")+        .args(&["status", "--porcelain"])+        .output()+    {+        Err(_) => false,+        Ok(output) => !strip_trailing_newline(output.stdout).is_empty(),+    };+    module.customs.add(walrus::RawCustomSection {+        name: "oasis_version".to_string(),+        data: format!(+            r#"{{"sha":"{}{}","serviceName":"{}"}}"#,+            str::from_utf8(&git_sha[..])?,+            if is_git_dirty { " (DIRTY)" } else { "" },+            input_wasm.file_stem().unwrap_or_default().to_string_lossy()+        )+        .as_bytes()+        .to_vec(),
        .into_bytes(),
mitjat

comment created time in 2 months

Pull request review commentoasislabs/oasis-cli

Add custom section with version info to WASM

 pub fn prep_wasm(input_wasm: &Path, output_wasm: &Path, debug: bool) -> Result<(         }     } +    // Add a section with version info for current git repo.+    let git_sha = match Command::new("git").args(&["rev-parse", "HEAD"]).output() {+        Err(_) => b"(git rev-parse failed)".to_vec(),+        Ok(output) => strip_trailing_newline(output.stdout),+    };+    let is_git_dirty = match Command::new("git")+        .args(&["status", "--porcelain"])+        .output()+    {+        Err(_) => false,+        Ok(output) => !strip_trailing_newline(output.stdout).is_empty(),+    };
    let is_git_dirty = match Command::new("git")
        .args(&["status", "--porcelain"])
        .output()
        .map(|o| !strip_trailing_newline(o.stdout).is_empty())
        .unwrap_or_default();
mitjat

comment created time in 2 months

Pull request review commentoasislabs/oasis-cli

Add custom section with version info to WASM

 pub fn prep_wasm(input_wasm: &Path, output_wasm: &Path, debug: bool) -> Result<(         }     } +    // Add a section with version info for current git repo.+    let git_sha = match Command::new("git").args(&["rev-parse", "HEAD"]).output() {+        Err(_) => b"(git rev-parse failed)".to_vec(),+        Ok(output) => strip_trailing_newline(output.stdout),+    };+    let is_git_dirty = match Command::new("git")
    let git_has_dirty_index = match Command::new("git")
mitjat

comment created time in 2 months

Pull request review commentoasislabs/oasis-cli

Add custom section with version info to WASM

 pub fn prep_wasm(input_wasm: &Path, output_wasm: &Path, debug: bool) -> Result<(         }     } +    // Add a section with version info for current git repo.+    let git_sha = match Command::new("git").args(&["rev-parse", "HEAD"]).output() {+        Err(_) => b"(git rev-parse failed)".to_vec(),+        Ok(output) => strip_trailing_newline(output.stdout),+    };+    let is_git_dirty = match Command::new("git")+        .args(&["status", "--porcelain"])+        .output()+    {+        Err(_) => false,+        Ok(output) => !strip_trailing_newline(output.stdout).is_empty(),+    };+    module.customs.add(walrus::RawCustomSection {+        name: "oasis_version".to_string(),+        data: format!(+            r#"{{"sha":"{}{}","serviceName":"{}"}}"#,+            str::from_utf8(&git_sha[..])?,
            String::from_utf8(git_sha)?,
mitjat

comment created time in 2 months

Pull request review commentoasislabs/oasis-cli

Add custom section with version info to WASM

 pub fn prep_wasm(input_wasm: &Path, output_wasm: &Path, debug: bool) -> Result<(         }     } +    // Add a section with version info for current git repo.+    let git_sha = match Command::new("git").args(&["rev-parse", "HEAD"]).output() {+        Err(_) => b"(git rev-parse failed)".to_vec(),+        Ok(output) => strip_trailing_newline(output.stdout),
        Ok(output) => strip_trailing_newline(output.stdout),
        Err(_) => b"(git rev-parse failed)".to_vec(),
mitjat

comment created time in 2 months

PullRequestReviewEvent
PullRequestReviewEvent

PR opened oasisprotocol/deoxysii-rust

Reviewers
Publish
+1 -1

0 comment

1 changed file

pr created time in 2 months

push eventnhynes/deoxysii-rust

Nick Hynes

commit sha 269d240aa4dc58bc10d8647f1a9ba3cf75501320

Publish

view details

push time in 2 months

fork nhynes/deoxysii-rust

Deoxys-II-256-128 MRAE primitives for Rust

fork in 2 months

issue commentnhynes/default-env

Can't put macro inside first argument of `default_env!`

Thanks for the feature request! Unfortunately, proc macros only have access to syntax and can't actually evaluate exprs (you'd need a compiler plugin to do that, and those are not user-friendly). default_env! actually reads the env var itself, so it can't dump the ExprMac and let rustc handle it either. I'm sorry that you can't macro-in-macro for ALL the positional arguments 😞

Unless you restructure your macro such that it generates a fully-baked invocation of default_env, you might just have to use option_env! and unwrap everywhere.

spenserblack

comment created time in 2 months

push eventoasislabs/oasis-cli

Nick Hynes

commit sha 9fb8033ae9a9c43427ac11d3d629f75cd8c6f4b9

Use correct bigint TS type

view details

push time in 2 months

delete branch oasislabs/oasis-ethwasi-runtime

delete branch : ptrus/feature/oasis-core-20-9

delete time in 2 months

push eventoasislabs/oasis-ethwasi-runtime

Peter Us

commit sha ffff210f6de1d41953ca6fbab4c3a9546e51a130

Update to oasis-core 20.9 (#1008)

view details

push time in 2 months

push eventoasislabs/oasis.js

Nick Hynes

commit sha b95ff859b65ac80f463b8978f40fe5d8f53c32a6

Publish - @oasislabs/client@1.0.0-rc.49 - @oasislabs/gateway@1.0.0-rc.45

view details

push time in 3 months

created tagoasislabs/oasis.js

tag@oasislabs/client@1.0.0-rc.49

🕸A web client for the Oasis platform

created time in 3 months

created tagoasislabs/oasis.js

tag@oasislabs/gateway@1.0.0-rc.45

🕸A web client for the Oasis platform

created time in 3 months

push eventoasislabs/oasis.js

Nick Hynes

commit sha 5f7b2544a0e12b828aa887e3320e82ce65b96727

Handle event polling errors

view details

push time in 3 months

push eventnhynes/rusqlite

Nick Hynes

commit sha 7d96c88ad72406db3c3f6354c1670c7d426289d3

Compile sqlite3-sys using OS_OTHER

view details

push time in 3 months

created tagoasislabs/oasis.js

tag@oasislabs/gateway@1.0.0-rc.44

🕸A web client for the Oasis platform

created time in 3 months

created tagoasislabs/oasis.js

tag@oasislabs/client@1.0.0-rc.48

🕸A web client for the Oasis platform

created time in 3 months

push eventoasislabs/oasis.js

Nick Hynes

commit sha 0350537f23c5304e8916ca648e10955fb9695108

Fix polling async rejection

view details

Nick Hynes

commit sha 875abbaa00b83fbc30b51a6b976721d2b68a2a01

Publish - @oasislabs/client@1.0.0-rc.48 - @oasislabs/gateway@1.0.0-rc.44

view details

push time in 3 months

push eventnhynes/rusqlite

Nick Hynes

commit sha fad57e6287f97c10149ca8d3d248f94a74db95f5

Compile sqlite3-sys using OS_OTHER

view details

push time in 3 months

push eventnhynes/rusqlite

Nick Hynes

commit sha 04788ef39c67421d0b0e8153a4c0afdbefcef3d8

Compile sqlite3-sys using OS_OTHER

view details

push time in 3 months

push eventnhynes/rusqlite

gwenn

commit sha ceb9f11de866926da8097e840f7a99feb451dc32

Replace pub(crate) by pub(super) visibilty

view details

gwenn

commit sha 0060ff8a44e59e7ad7e4d3fec4df530632f3a255

Activate extended result codes asap

view details

gwenn

commit sha 36745757bcd5cbf4596066c86085bb7c604f6a55

Include LICENSE into the libsqlite3-sys crate Fix #736

view details

gwenn

commit sha 4655515e72e0fc2f2b0d20758160782a2a1759c7

Merge pull request #737 from gwenn/license Include LICENSE into the libsqlite3-sys crate

view details

gwenn

commit sha 0dd01e999db832253b364b5ed76baef8531e830e

Merge pull request #733 from gwenn/visibility Replace pub(crate) by pub(super) visibilty

view details

gwenn

commit sha 5565ae562935c9576edb550726ad97cb775632de

Merge pull request #735 from gwenn/extended_result_codes Activate extended result codes asap

view details

Thom Chiovoloni

commit sha aabcce9aa6c3fe83e915d47e41acb92cbfe8728e

Add link to gitter channel. Fixes #736

view details

Martin Habovstiak

commit sha c5b2efc099a2ecfd657f5ab09768d40bce86bc04

impl TryFrom<&Row<'_>> for (...) This change implements `TryFrom<&Row>` for tuples up to 16 fields. This is a convenience function that can be used to map rows more easily. The change includes tests for 1-tuple, 2-tuple and 16-tuple.

view details

Martin Habovstiak

commit sha 8a08dff1152c18bd762579b0fc22acf50b0ccd7a

Clippy reports redundant closures even in cases in which removing the closure is impossible. See https://github.com/rust-lang/rust-clippy/issues/5594 Allow this lint until the issue is resolved in clippy or the compiler.

view details

gwenn

commit sha 76fc22c653951b27139b167d71d44300196d50d4

Fix missing docs

view details

gwenn

commit sha 5ebba26a7ec104599f319db038572fa86c0564a2

Add missing docs in session module

view details

gwenn

commit sha e664f82630f8eb989fd1c17fa2bff5c5d63108d4

Add still missing docs in session module

view details

Voodlaz

commit sha d5ed10f3068bfbcb5e556d966c2b6082c5048438

Update README.md

view details

Voodlaz

commit sha dbd1e0bb8576aef3b75c22293d7dce81da26f267

Update README.md

view details

gwenn

commit sha 8cb5b2e58599ccf3e33c254b61f66b2dcbd81ae5

Document Rows::map and FallibleStreamingIterator impl See https://www.reddit.com/r/rust/comments/gov817/rusqlite_only_getting_ok_entries_from_query_map/ ``` let mut stmt = self .db .prepare("SELECT tag FROM tags WHERE tags.entry_id = ?1")?; let tags = stmt.query(params![id])?; tags .map(|res| res.get(0)) .collect() ```

view details

Thom Chiovoloni

commit sha 9b3805a26b9227a8b4382283b259023be69ed1fc

Add doctest variant of the most full --feature set in CI

view details

gwenn

commit sha f7b60d866d0fd970e0ae4ed03f89e3f4a07fa5e2

Merge pull request #743 from gwenn/rows_doc Document Rows::map and FallibleStreamingIterator impl

view details

gwenn

commit sha c1142c309ec4edb1da17d1db07f785163f2d01a8

Upgrade to bindgen 0.54

view details

Evgeniy A. Dushistov

commit sha 8cdfaf36ae7216e543aa9d4fb1a483ec7eabcaa1

little speedup for bundled sqlite3.c

view details

Evgeniy A. Dushistov

commit sha d16748ac9f7ae5d64d25ba7069d1c0d44ac1dae6

adding ability to work with sqlite compiled with -DSQLITE_OMIT_DECLTYPE fix #751

view details

push time in 3 months

pull request commentapache/incubator-tvm

Add TVM application extension with WASM runtime

@tqchen This PR looks fine. I have a few style nits, but I don't think they'd be well received.

Thanks @leonwanghui for the contribution!

leonwanghui

comment created time in 3 months

more