Live data from Hacker News

The Docker+WASM Technical Preview

docker.com

121–130 of 178 posts

Re: The Docker+WASM Technical Preview

#121
post #117

Earlier quoted context omitted.

Basically yes: if you get value out of Docker for container apps today, we think you’ll get value out of Docker for Wasm apps tomorrow.

Seems promising. I think, based on what I read in this, that most folks don't know how challenging working with WASM is.

That’s our experience as well… This Technical Preview is an early downpayment, and we’re definitely looking for feedback on how one may could make the Wasm development experience better!

Re: The Docker+WASM Technical Preview

#122
post #38

Earlier quoted context omitted.

Depends on which "this" you're referring to. We (Docker) are trying to make it easier for developers to use the tools and capabilities they know and love to build, share, and run Wasm applications. As far as Wasm itself, it's designed to provide a fast, lightweight, secure, and portable binary format. While it was originally designed to help bring native code to the browser, it's quickly spreading to the server side.…

I didn't get anything from that. My question was not about WASM but Docker+WASM project. Why problem does it solve?

Sorry for the delayed response, but the problem we're trying to help solve is how to help lower the barrier of entry to using Wasm apps leveraging the tool many developers are already using. As an example example, with Docker+Wasm you can use a Dockerfile to build the app in a container image, distribute the Wasm bundle as an OCI artifact, and test it locally using the Wasm runtime. While the ability to build using containers has existed all along, the ability to actually run the Wasm app locally side-by-side your other containers (and leverage the same container network) is new. Hope that helps!

Re: The Docker+WASM Technical Preview

#125

Earlier quoted context omitted.

> I'm just sincerely confused at what problem this technical preview is intended to solve. This is all good feedback, and we’ll definitely try to explain the added value better in the future. The main advantages we see in this technical preview are: 1. Easy, reproducible dev environment to quickly & reliably develop cloud/edge apps that target Wasm, or code frontend apps that target a Wasm backend (for example, as pa…

I think you are falling into a “deeply-technical explainer” trap. You’ve been so deeply engrossed in the use-cases of this novel technical combo that they are all assumed understood from your POV. And, this tech is so general that there’s a second trap of “What can it do? It can do anything! Sure, but what can it do??” Again, because I’m your head “anything” is pre-supposed to a narrow set of goals that this tech ful…

[deleted]

Re: The Docker+WASM Technical Preview

#126

Earlier quoted context omitted.

Wasm "solves" running your application in a shared environment. i.e not your machine but say a cloudflare machine, that has to run dozens of applications like yours. Without wasm, the unit of containerization for them is operating system process. Each process spins up a jvm that runs your app/backend API. With wasm, the unit of containerization is the exact functions of your backend API. So they can fit more "contain…

Wow. So moving "containerization" up the stack? It is to containers what containers were to VMs? If so, they need diagrams making that argument same way we all saw for containers vs VMs.

Kind of. Cloudflare had a blogpost about this with diagrams and numbers and stuff: https://blog.cloudflare.com/cloud-computing-without-containe...

Re: The Docker+WASM Technical Preview

#127

Earlier quoted context omitted.

"Docker+Wasm" is just a shorthand for the Technical Preview build, which allows you to build both traditional container apps, as well as Wasm apps. Behind the scenes, we try to let Wasm apps be developed largely without interference from any container technology — just giving you a good local environment you can use to code against. That said, if you want, we do offer the ability to run Wasm apps within a Docker Comp…

Hi Tim from Docker How about getting docker running in WASM so I can run containers in the browser?

No post body was provided.

Re: The Docker+WASM Technical Preview

#128

Earlier quoted context omitted.

One benefit of using wasm is architecture-agnostic binary. Right now you can't run x86 binary on ARM or vice-versa. So basically you need to build your containers twice if you have macbook people and x86 servers. And technically those are different images, so there's chance that you'll hit some non-trivial difference. With wasm everything could be simpler.

Docker Desktop can build and run x86 on ARM/OSX and that's how most people use it.

And it is starting an additional emulated x86/amd64 vm that is emulated. The battery takes a big hit. Now imagine you can run wasm that doesn‘t need an extra vm and doesn‘t drain your battery much faster.

Re: The Docker+WASM Technical Preview

#129
post #19

Earlier quoted context omitted.

What compromises does WASM have relative to plain old native code?

Wasm = just a bunch of bytecode executing in a VM / a sandbox. Even with JIT, it will still be slower than the native code. And since it is a sandbox.. either you, or your friendly wasm interpreter (via. wasi etc...) needs to provide the system access APIs for various things like storage/filesystem access, hardware acceleration via. GPU, TPU etc.. And some of the standard APIs we take for granted.

Is WASM typically interpreted? I would have assumed one of the advantages of an assembly language is it would be easy to JIT compile down to machine code.

Re: The Docker+WASM Technical Preview

#130
post #109

Earlier quoted context omitted.

"Docker+Wasm" is just a shorthand for the Technical Preview build, which allows you to build both traditional container apps, as well as Wasm apps. Behind the scenes, we try to let Wasm apps be developed largely without interference from any container technology — just giving you a good local environment you can use to code against. That said, if you want, we do offer the ability to run Wasm apps within a Docker Comp…

It might be easier if you simplify it to, "We're trying not to be just the app you choose to run containers with. You can now use non-container runtimes like WASM."

Now I get it! This should be the tagline, it’s the only thing in the thread that’s made sense to me
Post reply on HN