News for hackers. Stuff that matters.
Re:VSCode-WASM: Implement a first version of a WebShell by syrusakbary on Sunday April 30, 2023 @11:46PM (#35768888)
The goal of the extension is great, as it allows developers to use WASI easily when creating new extensions. Mad props to the team that worked on it.

But is unfortunate that they used literally the name of the most famous extension for WebAssembly in VSCode (vscode-wasm), which has been around already for a few years, as it might confuse people on what is what:

https://marketplace.visualstudio.com/items?itemName=dtsvet.v... (113k installations)

Repo here: https://github.com/wasmerio/vscode-wasm

Re:VSCode-WASM: Implement a first version of a WebShell by nl on Monday May 01, 2023 @01:00AM (#35769253)
> allows developers to use WASI easily when creating new extensions

What is WASI?

Re:VSCode-WASM: Implement a first version of a WebShell by re-thc on Monday May 01, 2023 @01:18AM (#35769342)
API for Webassembly. Common interface.
Re:VSCode-WASM: Implement a first version of a WebShell by nindalf on Monday May 01, 2023 @01:48AM (#35769460)
> WASI stands for WebAssembly System Interface. It's an API designed by the Wasmtime project that provides access to several operating-system-like features, including files and filesystems, Berkeley sockets, clocks, and random numbers, that we'll be proposing for standardization.

Read more here - https://github.com/bytecodealliance/wasmtime/blob/main/docs/...

Re:VSCode-WASM: Implement a first version of a WebShell by throwaway525142 on Monday May 01, 2023 @05:08AM (#35770542)
Re:VSCode-WASM: Implement a first version of a WebShell by cjbprime on Monday May 01, 2023 @01:50AM (#35769471)
Am not expert, but here's the understanding I've picked up:

When you use JavaScript through Node, your JS gets the ability to open files and make network sockets and so on, because there are a set of APIs implemented by Node and exposed to your JS code, like so:

JS <-> native APIs <-> Node implementation of platform-specific operations

WASI applies to WebAssembly instead of JS. So again if we're on Node:

wasm <-> native APIs (WASI) <-> Node implementation of platform-specific operations

But WASI is much more general than Node's APIs, and meant to be used by different engines in different environments (browsers, native bindings, etc).

Re:VSCode-WASM: Implement a first version of a WebShell by tcper on Monday May 01, 2023 @08:16AM (#35771742)
Simplely, it's wasm's POSIX
Re:VSCode-WASM: Implement a first version of a WebShell by capableweb on Monday May 01, 2023 @07:37AM (#35771420)
> But is unfortunate that they used literally the name of the most famous extension for WebAssembly in VSCode (vscode-wasm), which has been around already for a few years, as it might confuse people on what is what:

At this point, where Microsoft frequently ends up naming something identically to something else already existing (and sometimes quite popular) I'm done believing it's "unfortunate" and not on purpose. Once or twice maybe it's some unfortunate accident, but at this frequency?

Re:VSCode-WASM: Implement a first version of a WebShell by duped on Monday May 01, 2023 @10:40AM (#35773391)
It's more likely that they just don't care. There's a certain cavalier attitude from the VS Code project in general.
Re:VSCode-WASM: Implement a first version of a WebShell by jeroenhd on Monday May 01, 2023 @11:24AM (#35774113)
It's similar to how Google chose "Go" for their language despite the existence of another programming language named the same.

Big companies don't care unless you have a trademark.

Re:VSCode-WASM: Implement a first version of a WebShell by syrusakbary on Monday May 01, 2023 @12:30PM (#35775182)
Let's give them the benefit of the doubt, and let next actions speak for themselves.

I've created an issue in their repo, so they are fully aware of the issue and they have the opportunity to amend it :)

https://github.com/microsoft/vscode-wasm/issues/62

Re:VSCode-WASM: Implement a first version of a WebShell by capableweb on Monday May 01, 2023 @05:29PM (#35779427)
> So I think from a VS Code user perspective there will be no name clash.

That went well :)

Re:VSCode-WASM: Implement a first version of a WebShell by syrusakbary on Monday May 01, 2023 @09:20PM (#35781886)
(crying in silence)