On Sat, 30 Mar 2019 at 15:30, Craig Latta craig@blackpagedigital.com wrote:
Hi Ben--
In the meantime, I'm getting very good results running Squeak in web browser and on Node with SqueakJS. The simple bytecode-to-JS dynamic translator that Bert wrote for it is a big win. You get a decent translation of bytecodes to native code via the underlying JS engine (V8 et al).
btw, Is that then a Slang to SqueakJS writer? Or is the bytecode-to-JS happening as some other level?
It takes a Smalltalk CompiledMethod object, and transcribes the
instructions (bytecodes) into a JavaScript method, and makes sure to run that instead, whenever the CompiledMethod would normally run. Then V8 optimizes the hell out of the native code for that transcribed JS method. It's pretty neat, and makes a huge difference for lots of things, including the UI.
When is the source code for that transcriber?
cheers -ben