3 ms·
This feels huge. I haven't messed with WASM yet but I do love the idea of being able to build something that targets wasm/wasi with Docker like I'm already doi
by nunez 4y ago
This feels huge.
I haven't messed with WASM yet but I do love the idea of being able to build something that targets wasm/wasi with Docker like I'm already doing today and still package all of its dependencies into a single Docker image.
I also love the fact that code that targets wasm can run in a browser or on the machine in an isolate without hard forking.
- pjmlp 4y agoIt used to be called EAR file.
- westurner 4y agoHTTP SXG and Web Bundles (and SRI) - components of W3C Web Packaging - may be useful for a signed WASM package format: https://github.com/WICG/webpackage#packaging-tools https://github.com/WICG/webpackage#packaging-tools How is WASM distinct from an unsigned binary blob?
- pjmlp 4y agoNothing other than trying to reboot the ecosystem for VCs. https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html https://docs.oracle.com/javase/7/docs/technotes/tools/window...
- westurner 4y agoSigstore is a CNCF project for centralized asset signatures for packages, containers, software artifacts; Cosign, Gitsign: https://docs.sigstore.dev/#how-to-use-sigstore https://docs.sigstore.dev/#how-to-use-sigstore Re: TUF, Sigstore, W3C DIDs, CT Certificate Transparency logs, W3C Web Bundles; and reinventing the signed artifact wheel: https://news.ycombinator.com/item?id=30682329 https://news.ycombinator.com/item?id=30682329 ("Podman can transfer container images without a registry") From "HTTP Messages Signatures" (~SXG) https://news.ycombinator.com/item?id=29281449 https://news.ycombinator.com/item?id=29281449 : > blockcerts/cert-verifier-js ? blockchain-certificates/cert-verifier-js: https://github.com/blockchain-certificates/cert-verifier-js https://github.com/blockchain-certificates/cert-verifier-js
- imtringued 4y agoWhen will emscripten output java byte code? Just because something existed before something else doesn't mean a competitor can't spring up and have more momentum. It feels like the JVM is massively falling behind and it loses out massively on things like memory efficiency.
- pjmlp 4y agoEven on that WASM is a follower, "NestedVM provides binary translation for Java Bytecode. This is done by having GCC compile to a MIPS binary which is then translated to a Java class file. Hence any application written in C, C++, Fortran, or any other language supported by GCC can be run in 100% pure Java with no source changes." With greetings from 2006, http://nestedvm.ibex.org/ http://nestedvm.ibex.org/
- westurner 4y agoHow does the memory usage change? Does Java still require initial RAM reservation? /? Java specify how much RAM https://www.google.com/search?q=java+specify+how+much+ram https://www.google.com/search?q=java+specify+how+much+ram VOC transpiles Python to Java bytecode. Py2many transpiles Python to many languages but not yet Java. Apache Arrow can do IPC to share memory references to structs with schema without modification between many languages now; including JS and WASM. https://arrow.apache.org/ https://arrow.apache.org/ FWIU Service Workers and Task Workers and Web Locks are the browser APIs available for concurrency in browsers and thus WASM. https://github.com/jupyterlab/jupyterlab/issues/1639#issuecomment-925223852 https://github.com/jupyterlab/jupyterlab/issues/1639#issueco... "WebVM" https://news.ycombinator.com/item?id=30168491 https://news.ycombinator.com/item?id=30168491 : > Is WebVM a potential solution to "JupyterLite doesn't have a bash/zsh shell"? [Or Git; though there's already isomorphic-git in JS] "WebGPU" https://news.ycombinator.com/item?id=30601415 https://news.ycombinator.com/item?id=30601415 Emscripten-compiled WASM can be packaged with ~conda packages and built and hosted by emscripten-forge ( which works like conda-forge, which has Python, R, Julia, Rust) to be imported from JS and WASM. Here's the picomamba recipe.yml on emscripten-forge: https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/picomamba/recipe.yaml https://github.com/emscripten-forge/recipes/blob/main/recipe... and for CPython: https://github.com/emscripten-forge/recipes/blob/main/recipes/recipes_emscripten/python/recipe.yaml https://github.com/emscripten-forge/recipes/blob/main/recipe... Browsers could run WASM containers, too. How does the browser sandbox+ WASM runtime sandbox (that lacks WASI) compare to the security features of Linux containers? How do the docstrings look after transpilation?