News for hackers. Stuff that matters.
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by pjmlp on Wednesday December 07, 2022 @10:28AM (#33895443)
It used to be called EAR file.
Re:New Docker Desktop: Run WASM Applications Alongside Linux... by westurner on Wednesday December 07, 2022 @12:45PM (#33897515)
HTTP 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

How is WASM distinct from an unsigned binary blob?

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by pjmlp on Wednesday December 07, 2022 @04:07PM (#33900254)
Nothing other than trying to reboot the ecosystem for VCs.

https://docs.oracle.com/javase/7/docs/technotes/tools/window...

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by westurner on Wednesday December 07, 2022 @08:29PM (#33902921)
Sigstore is a CNCF project for centralized asset signatures for packages, containers, software artifacts; Cosign, Gitsign: 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 ("Podman can transfer container images without a registry")

From "HTTP Messages Signatures" (~SXG) https://news.ycombinator.com/item?id=29281449 :

> blockcerts/cert-verifier-js ?

blockchain-certificates/cert-verifier-js: https://github.com/blockchain-certificates/cert-verifier-js

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by imtringued on Thursday December 08, 2022 @02:28AM (#33905229)
When 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.

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by pjmlp on Thursday December 08, 2022 @03:00AM (#33905459)
Even 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/

Re:New Docker Desktop: Run WASM Applications Alongside Linux... by westurner on Thursday December 08, 2022 @08:34PM (#33916270)
How 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

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/

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#issueco...

"WebVM" 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

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/recipe... and for CPython: 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?