Crell,
@Crell@phpc.social avatar

This looks very interesting...

https://github.com/extism/php-sdk

#PHP #wasm #plugin

pronskiy,
@pronskiy@phpc.social avatar

@Crell It’s similar to Wasmer https://github.com/wasmerio/wasmer-php, but they use FFI i.e. there is no need to install extension , right?

Crell,
@Crell@phpc.social avatar

@pronskiy I dunno. My knowledge is limited to what's in the Readme. :-)

Its apparently a common Wasm runtime for several languages. I don't know if it's wasmer or wasmtime under the hood.

hunter,
@hunter@social.skrasek.us avatar

@Crell If it’s more than just WASM, almost looks like a user friendly wrapper around FFI no?

Crell,
@Crell@phpc.social avatar

@hunter I don't know what the inner implementation looks like, but I suppose you could think of it as FFI for Wasm rather than for the C ABI.

Though I'm pretty sure it actually is embedding a Wasm runtime, which runs the code. Wasm is designed to make that easy.

fredbrooker,
@fredbrooker@witter.cz avatar

@Crell what's that for? 🤔

Crell, (edited )
@Crell@phpc.social avatar

@fredbrooker Running Wasm plugins in a PHP app, in the same format they can run in other languages.

fredbrooker,
@fredbrooker@witter.cz avatar

@Crell there's a Go framework for building PWA wasm app - but loading 3 MB service worker seems like a shotgun

Crell,
@Crell@phpc.social avatar

@fredbrooker This is all server side.

fredbrooker,
@fredbrooker@witter.cz avatar

@Crell no, the WASM FOR GO runs in the browser, I guess I don't want to run wasm on server, why? 🤔

Crell, (edited )
@Crell@phpc.social avatar

@fredbrooker Because it's a common runtime that is multi language and very fast. It's what the JVM keeps pretending it is. And embedding a Wasm runtime let's your app accept plugins in any language.

fredbrooker,
@fredbrooker@witter.cz avatar

@Crell and I fear of that

Crell,
@Crell@phpc.social avatar

@fredbrooker Why fear? I think it's huge.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • InstantRegret
  • tacticalgear
  • Youngstown
  • khanakhh
  • slotface
  • ngwrru68w68
  • rosin
  • ethstaker
  • kavyap
  • cisconetworking
  • mdbf
  • megavids
  • everett
  • Durango
  • cubers
  • vwfavf
  • osvaldo12
  • GTA5RPClips
  • Leos
  • normalnudes
  • modclub
  • tester
  • provamag3
  • anitta
  • JUstTest
  • All magazines