Live data from Hacker News

SqueakJS – A Squeak VM in JavaScript

squeak.js.org

11–20 of 25 posts

Re: SqueakJS – A Squeak VM in JavaScript

#13

Earlier quoted context omitted.

it is actually suprisingly fast

The demos are very slow for me. I dunno if I can somehow display it but it feels like ~10 FPS.

Did you try different browsers? The speed is very reasonable for me (considering the amount of BitBlt). I use SqueakJS to develop business software (using only Smalltalk). In these applications I am running SqueakJS headless and create a GUI using WebComponents (created through Smalltalk classes). This also runs very fast (tested on Firefox, Chrome and Safari).

Re: SqueakJS – A Squeak VM in JavaScript

#14
post #9

this is super cool. The JS integration is very interesting.

How so? The functionality was problematic particularly in relation to multi-layer design compliance.

Could you elaborate? I do not understand your response in relation to the remark that JS integration is interesting.

Re: SqueakJS – A Squeak VM in JavaScript

#15

Earlier quoted context omitted.

The demos are very slow for me. I dunno if I can somehow display it but it feels like ~10 FPS.

Did you try different browsers? The speed is very reasonable for me (considering the amount of BitBlt). I use SqueakJS to develop business software (using only Smalltalk). In these applications I am running SqueakJS headless and create a GUI using WebComponents (created through Smalltalk classes). This also runs very fast (tested on Firefox, Chrome and Safari).

Could you elaborate how this works – Headless SqueakJS plus WebComponents GUI?

Re: SqueakJS – A Squeak VM in JavaScript

#16
post #15

Earlier quoted context omitted.

Did you try different browsers? The speed is very reasonable for me (considering the amount of BitBlt). I use SqueakJS to develop business software (using only Smalltalk). In these applications I am running SqueakJS headless and create a GUI using WebComponents (created through Smalltalk classes). This also runs very fast (tested on Firefox, Chrome and Safari).

Could you elaborate how this works – Headless SqueakJS plus WebComponents GUI?

Instead of having a Smalltalk image which contains the typical GUI (Morphic or otherwise being BitBlt on a HTML Canvas) I run a Smalltalk image which has a number of Classes representing WebComponents. These classes have a small interface with Javascript (implemented as primitive calls in case you are familiar, similar to other SqueakJS plugins). When instantiating such a WebComponent, it will also instantiate a DOM element (the WebComponent). Events in the browser are wrapped in Smalltalk event classes and will be given to an event handler process (Smalltalk process) which will do the relevant work. So for example drag and drop is implemented fully in Smalltalk. The Smalltalk image I run to have this Web UI (and run only a Web UI, no business logic in the browser) is very small. It is only a little over 200Kb. My code is free to use. See https://github.com/ErikOnBike/CodeParadise I need to add some more documentation and more demos. I have been very busy with developing software and have been lacking a bit in giving some love to those. Edit: An explanation and demo can be found here: https://vimeo.com/457353130

Re: SqueakJS – A Squeak VM in JavaScript

#17

Earlier quoted context omitted.

The demos are very slow for me. I dunno if I can somehow display it but it feels like ~10 FPS.

Did you try different browsers? The speed is very reasonable for me (considering the amount of BitBlt). I use SqueakJS to develop business software (using only Smalltalk). In these applications I am running SqueakJS headless and create a GUI using WebComponents (created through Smalltalk classes). This also runs very fast (tested on Firefox, Chrome and Safari).

Nope, tested it on Vivaldi only. I may give Firefox and Chromium a try, too.

Re: SqueakJS – A Squeak VM in JavaScript

#19

I loved to see a Cuis version of SqueakJS. Just pare it down to its essential classes just to give developers a clean base to experiment with the language on. No e-Toys, no Metacello, etc.

This. I went down this road for some time before I reached a point with Pharo where I feel comfortable doing things their way.

Re: SqueakJS – A Squeak VM in JavaScript

#20

I loved to see a Cuis version of SqueakJS. Just pare it down to its essential classes just to give developers a clean base to experiment with the language on. No e-Toys, no Metacello, etc.

Been there, done that. You need SqueakJS, a browser an the changes, source and image files for Cuis. Startup is a bit slow, but it works. SqueakJS is just another VM.
Post reply on HN