[Pas2js] Re GPU.JS Any suggestions for JavaScript to Pascal Transpilation

Michael Van Canneyt michael at freepascal.org
Sat May 5 10:43:44 CEST 2018



On Sat, 5 May 2018, Stephen Wright via Pas2js wrote:

> Hi Michael
> For my own purposes, I want to get a native pascal translation of GPU.JS
> AS I have done no WebGL work or any JavaScript reverse engineering into Pascal this may take a while but will be a good PasToJS/WebGL demo if/when I manage to do it.
> Any suggestions on how best to do the JavaScript to Pascal reverse engineering ?

No, none. Just dive in and learn first. 
I think a line-by line translation may not be the best approach. 
Some Javascript paradigms do not translate well to Pascal.

For the router I had a good look at how Vue.js does it, but the end-result
ended up being different (I also partly reused the server routing mechanism,
since that was well tested).

Michael.


More information about the Pas2js mailing list