Re: Pharo 7 on SqueakJS (demo)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Pharo 7 on SqueakJS (demo)

Bert Freudenberg
 
On 21 May 2018 at 03:01, Pavel Krivanek <[hidden email]> wrote:
Hi,

with some tweaks mostly related to FFI and fonts, we are able to run Pharo 7 on SqueakJS VM.

Do not expect blazing performance. Currently, it is about two orders of magnitude slower than the native VM. 

Cheers,
-- Pavel


​Awesome!​

Did you have to make changes to the image or the VM? Or both?

If you have any pull-requests for the VM I'd be happy to integrate :) 

Please reply to vm-dev.

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Pharo 7 on SqueakJS (demo)

Pavel Krivanek-3
 
Hi,

I started with the Craig's version so I will need to synchronize it with your latest code. I tried to solve everything on the image level and I did changes only related to ad-hoc debugging so there will probably be nothing to contribute right now. However, some changes in the VM code will be required for real issues solutions so I will definitely send some PRs. 

I wanted to ask how do you see the future development of SqueakJS. Do you think that you will have again more time for it in near future (because you are the person with the deepest knowledge of it)? Do you have some concrete ideas how to do next speed improvements? The current code looks already near to the local optimum and next speedup will not be a piece of cake.

Cheers,
-- Pavel   

2018-05-21 23:00 GMT+02:00 Bert Freudenberg <[hidden email]>:
On 21 May 2018 at 03:01, Pavel Krivanek <[hidden email]> wrote:
Hi,

with some tweaks mostly related to FFI and fonts, we are able to run Pharo 7 on SqueakJS VM.

Do not expect blazing performance. Currently, it is about two orders of magnitude slower than the native VM. 

Cheers,
-- Pavel


​Awesome!​

Did you have to make changes to the image or the VM? Or both?

If you have any pull-requests for the VM I'd be happy to integrate :) 

Please reply to vm-dev.

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Pharo 7 on SqueakJS (demo)

Bert Freudenberg
 
Hi Pavel,

yes, I don't think the current JIT can get much faster. It improves bytecode speed, but does nothing for sends, which is the more important part.

I don't have much free time in the near future, but I have written up some ideas for a better JIT:


This is a wiki, feel free to edit / add.

- Bert -


On 21 May 2018 at 15:12, Pavel Krivanek <[hidden email]> wrote:
 
Hi,

I started with the Craig's version so I will need to synchronize it with your latest code. I tried to solve everything on the image level and I did changes only related to ad-hoc debugging so there will probably be nothing to contribute right now. However, some changes in the VM code will be required for real issues solutions so I will definitely send some PRs. 

I wanted to ask how do you see the future development of SqueakJS. Do you think that you will have again more time for it in near future (because you are the person with the deepest knowledge of it)? Do you have some concrete ideas how to do next speed improvements? The current code looks already near to the local optimum and next speedup will not be a piece of cake.

Cheers,
-- Pavel   

2018-05-21 23:00 GMT+02:00 Bert Freudenberg <[hidden email]>:
On 21 May 2018 at 03:01, Pavel Krivanek <[hidden email]> wrote:
Hi,

with some tweaks mostly related to FFI and fonts, we are able to run Pharo 7 on SqueakJS VM.

Do not expect blazing performance. Currently, it is about two orders of magnitude slower than the native VM. 

Cheers,
-- Pavel


​Awesome!​

Did you have to make changes to the image or the VM? Or both?

If you have any pull-requests for the VM I'd be happy to integrate :) 

Please reply to vm-dev.

- Bert -





Reply | Threaded
Open this post in threaded view
|

Re: Pharo 7 on SqueakJS (demo)

Craig Latta
In reply to this post by Pavel Krivanek-3
 

Hi Pavel--

> Do you [Bert] have some concrete ideas how to do next speed
> improvements? The current code looks already near to the local optimum
> and next speedup will not be a piece of cake.

     I think the next step for performance is to build a WebAssembly
version of the stack interpreter. I'm working through the issues brought
up by the emscripten compiler, but no sends happening yet.


-C

--
Craig Latta
Black Page Digital
Amsterdam :: San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)
Reply | Threaded
Open this post in threaded view
|

Re: Pharo 7 on SqueakJS (demo)

Bert Freudenberg
 
On 21 May 2018 at 18:37, Craig Latta <[hidden email]> wrote: 

Hi Pavel--

> Do you [Bert] have some concrete ideas how to do next speed
> improvements? The current code looks already near to the local optimum
> and next speedup will not be a piece of cake.

     I think the next step for performance is to build a WebAssembly
version of the stack interpreter. I'm working through the issues brought
up by the emscripten compiler, but no sends happening yet.

​Meh. Way too practical.​ No fun.

- Bert -

Reply | Threaded
Open this post in threaded view
|

Re: Pharo 7 on SqueakJS (demo)

Craig Latta
 

> ​Meh. Way too practical.​ No fun.

     :)  In the meantime, I'm having a great deal of fun with 3D
presentations in web browsers, movie coming soon...


-C

--
Craig Latta
Black Page Digital
Amsterdam :: San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)