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