News for hackers. Stuff that matters.
Re:Extensible WASM Applications with Go by pjmlp on Friday February 14, 2025 @09:54AM (#43048925)
If you want a plugin-in system, maybe don't pick a language with static linking, and an half-backed plugin implementation in first place.

WebAssembly outside of the browser is a solution looking for a problem that has been sorted out multiple times since the idea of bytecode based execution exist, 1958 to be more precise.

Even on the browser its use, besides bringing back the old plugins is debatable, using GPU compute is much better for number crunching, with much better tooling.

Re:Extensible WASM Applications with Go by coder543 on Friday February 14, 2025 @09:58AM (#43048969)
Yes… I’m aware of the history. I’m also aware that WASM solves problems that those previous ones didn’t. Otherwise you would have provided an option that actually met the requirements, if there are so many to choose from.

> If you want a plugin-in system, maybe don't pick a language with static linking

Or… a plugin system could “just work”, without placing unnecessary restrictions on what I do.

Re:Extensible WASM Applications with Go by pjmlp on Friday February 14, 2025 @10:59AM (#43049732)
It starts by choosing the right language for the job.
Re:Extensible WASM Applications with Go by apitman on Friday February 14, 2025 @01:17PM (#43051311)
The right language for a plugin system is the one that attracts the most plugin writers. Supporting many languages is a huge boon for wasm in this department. It's one of the things that makes the JVM and .NET so appealing in the first place, but WASM is better than both combined when it comes to language selection.
Re:Extensible WASM Applications with Go by pjmlp on Friday February 14, 2025 @01:43PM (#43051622)
That surely isn't any WebAssembly then, if we are counting adoption growth throughout computing history.
Re:Extensible WASM Applications with Go by orf on Friday February 14, 2025 @10:14AM (#43049145)
How do I prevent my statically linked plugins from having any filesystem access, or a bug messing with memory it doesn’t control once it’s loaded?
Re:Extensible WASM Applications with Go by pjmlp on Friday February 14, 2025 @10:59AM (#43049725)
OS IPC and security configuration, no need to add a WebAssembly runtime and compiler toolchain.
Re:Extensible WASM Applications with Go by orf on Friday February 14, 2025 @11:01AM (#43049760)
So: slow, hard, complex and highly OS specific vs simple and secure.

Right.

Re:Extensible WASM Applications with Go by pjmlp on Friday February 14, 2025 @01:42PM (#43051602)
Because WASM tooling is so much better, thank goodness for emscripten.
Re:Extensible WASM Applications with Go by orf on Friday February 14, 2025 @02:19PM (#43051989)
Don’t argue in bad faith, especially if you’ve got nothing substantial to add to the discussion or any real points to make.