News: 0175237259

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

'Running Clang in the Browser Using WebAssembly' (wasmer.io)

(Saturday October 12, 2024 @11:34AM (EditorDavid) from the what-do-you-C dept.)


This week (MIT-licensed) WebAssembly runtime [1]Wasmer announced "a major milestone in making any software run with WebAssembly."

The announcement's headline? [2]Running Clang in the browser using WebAssembly ...

> Thanks to the newest release of Wasmer (4.4) and the Wasmer JS SDK (0.8.0) you can now run [compiler front-end] clang anywhere Wasmer runs! This allows compiling C programs from virtually anywhere. Including Javascript and your preferred browser! (we tested Chrome, Safari and Firefox and everything is working like a charm)...

>

> - You can compile C code to WebAssembly easily just using the Wasmer CLI: no toolchains or complex installations needed, install Wasmer and you are ready to go...!

>

> - You can compile C projects directly from JavaScript...!

>

> - We expect online IDEs to start adopting the SDK to allow their users compile and run C programs in the browser....

>

> Do you want to use clang in your Javascript project? Thanks to our newly released [3]Wasmer JS SDK you can do it easily, in both the browser and Node.js/Bun etc... Wasmer's clang can even optimize the file for you automatically using wasm-opt under the hood (Clang automatically detects if wasm-opt is used, and it will be automatically called when optimizing the file). Imagine using Emscripten without needing its toolchain installed — or even better, imagine running Emscripten in the browser.

The announcement looks to a future of compiling native Python libraries, when "any project depending on LLVM can now be easily compiled to WebAssembly..."

"This is the beginning of an awesome journey, we can't wait to see what you create next with this."



[1] https://github.com/wasmerio/wasmer

[2] https://wasmer.io/posts/clang-in-browser

[3] https://wasmer.io/posts/introducing-the-wasmer-js-sdk



ActiveX returns (Score:2)

by xack ( 5304745 )

In Wasm form. Can't wait until someone makes a botnet using it.

Sounds like a great platform for viruses (Score:2)

by Guy Smiley ( 9219 )

Then the virus can be shared in (obfuscated) source code, maybe with randomly generated variable and function names to avoid detection, and it will compile and install natively in every target platform. "It's a victory for crypto botnets everywhere", stated an unnamed Russian source.

Your mail is being routed through Germany ... and they're censoring us.