janl,
@janl@narrativ.es avatar

Has anyone toyed with distributing “closed source” modules as V8 bytecode? I know you can pre-compile and load bytecode just fine. I also know that to some degree you can turn bytecode back into JS, but is that result useful enough to make the shipping as bytecode a moot point? And are there other options? Can WASM help?

(I know no solution is going to be perfect)

WarrenGallagher,
@WarrenGallagher@twit.social avatar

@janl browser or nodejs or other?

janl,
@janl@narrativ.es avatar
postmodern,
@postmodern@ruby.social avatar

@janl I think this is what WASM is for. Basically bringing the dream of the JVM to JavaScript.

janl,
@janl@narrativ.es avatar

@postmodern I mean: I can do it with v8 bytecode, but is that annoying enough to reconstitute into usable JS, so it is effectively closed source? The same answer should be true for wasm.

WarrenGallagher,
@WarrenGallagher@twit.social avatar

@janl @postmodern if someone finds what you are doing interesting enough, then they WILL decompile it. You can make it a bit inconvenient, but not much more.

janl,
@janl@narrativ.es avatar

@WarrenGallagher @postmodern yeah the bytecode package makes this very easy. And yes, that’s how all computers work, so I’m less worried about that. I’m interested to hear from folks who have used this for distribution.

janl,
@janl@narrativ.es avatar

@WarrenGallagher @postmodern e.g. I’ve only found one piece of software that can actually do the v8 bytecode to ja thing and it is super cumbersome to set up, and IIRC has a proprietary component or something.

oz,
@oz@mastodon.social avatar

@janl no because closed source makes me sad. 😞

janl,
@janl@narrativ.es avatar

@oz useless reply.

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