Live data from Hacker News

Hello wasm-pack

hacks.mozilla.org

1–10 of 160 posts

Re: Hello wasm-pack

#3
> As Lin Clark emphasizes in her article about Rust and WebAssembly: the goal of WebAssembly is not to replace JavaScript, but to be an awesome tool to use with JavaScript.

Please no. JavaScript's a bit cancerous - we should be erring away from it rather than encouraging it.

Re: Hello wasm-pack

#5

> As Lin Clark emphasizes in her article about Rust and WebAssembly: the goal of WebAssembly is not to replace JavaScript, but to be an awesome tool to use with JavaScript. Please no. JavaScript's a bit cancerous - we should be erring away from it rather than encouraging it.

You are living in the past tbh. There are tools which make augment the language and it is literally taking over the world now!

Re: Hello wasm-pack

#6

This is great. Wasm really seems to be picking up steam. Any examples of a Rust crate that has already been published to the npm registry?

Ashley and I ran a workshop at BoosterConf a monthish ago using this tooling, a bunch of people used it to publish demo packages. This is effectively a release announcement, so we don’t have anything super real yet that I know of. There’s some stuff in the works though.

(You can see those here: https://www.npmjs.com/search?q=hello-wasm)

Re: Hello wasm-pack

#7

> As Lin Clark emphasizes in her article about Rust and WebAssembly: the goal of WebAssembly is not to replace JavaScript, but to be an awesome tool to use with JavaScript. Please no. JavaScript's a bit cancerous - we should be erring away from it rather than encouraging it.

What makes you say so? JavaScript in itself is not a bad language at all, and many programmers genuinely like it.

Re: Hello wasm-pack

#8
post #2

It's great to see WASM taking off! In this context, see also Blazor, which runs C#/.NET code on WASM. https://github.com/aspnet/blazor

What’s the binary size like?

One interesting thing about wasm is the difference between libraries and apps; Rust’s small binary size here can make it useful for this infrastructure work, but for languages that need to bring along the runtime, it’s much more complex. This is one reason why we’re pursuing stuff like wasm-pack.

I’m glad to see more and more languages compiling to wasm though! Exciting times.

Re: Hello wasm-pack

#9

> As Lin Clark emphasizes in her article about Rust and WebAssembly: the goal of WebAssembly is not to replace JavaScript, but to be an awesome tool to use with JavaScript. Please no. JavaScript's a bit cancerous - we should be erring away from it rather than encouraging it.

What makes you say so? JavaScript in itself is not a bad language at all, and many programmers genuinely like it.

It's not a bad language in itself, no - it's just a waste of resources for the end-user, and in general it's being marketed to newcomers as the language they should learn by default - leading to a tonne of unoptimized sites and terrible applications using it.

Then again, I suppose that's a fault of the type of programmers attracted to it than it is the language itself.

Re: Hello wasm-pack

#10

> As Lin Clark emphasizes in her article about Rust and WebAssembly: the goal of WebAssembly is not to replace JavaScript, but to be an awesome tool to use with JavaScript. Please no. JavaScript's a bit cancerous - we should be erring away from it rather than encouraging it.

You are living in the past tbh. There are tools which make augment the language and it is literally taking over the world now!

It focuses on the lowest common denominator of programmers, and in general the community around it doesn't really care to optimize it or teach the people they attract towards good programming standards.
Post reply on HN