2016-12-27 14:44 GMT-03:00 Vitor Medina Cruz <vitormc...@gmail.com>:
> Hello,
>
> Is the Pharo team aware of the http://webassembly.org/ effort? The Browser
> Preview tentative is for Q1, do you think it is a good opportunity to push
> Pharo to web development more easily? I know next to nothing of VM binary
> (lol), but I am curious on how one could provide an Smalltalk (in this
> particular Pharo) application in the web using webassembly, as the project
> is aimed to broaden the development choices to something different than
> Javascript or Transpilers (which I profoundly wishes to succeed since I hate
> js) .

It's been mentioned that SqueakJS [1] might benefit from WebAssembly,
and use that as a replacement for its JS VM.
So far it is the only Smalltalk project that is in a position to
benefit from that.

With Craig's JS Bridge [2] you can manipulate the DOM from within a
100% smalltalk image like:
((JS document getElementsByTagName: 'h1') at: 0) at: 'innerHTML' put:
'Squeak said Hello World at ', Time now asString

The images being used for Squeak JS examples are mostly old and the
UI/UX are awkward and convoluted by today standards. But it would be a
matter of having a minimal Pharo image that can run there. So you
would have the power of Smalltalk development, with the ubiquity of JS
runtimes.

Regards,

[1] https://squeak.js.org/
[2] https://squeak.js.org/demo/simple.html#document=JSBridge.st

Esteban A. Maringolo

Reply via email to