<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 7:01 PM Michael Van Canneyt via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello !<br>
<br>
If anyone still doubted that Object Pascal is the best programming language, <br>
running on the most platforms:<br>
<br>
It is with considerable pride that I can announce a new major milestone has <br>
been reached in Free Pascal's pas2js story:<br>
<br>
The pas2js compiler runs now embedded in the browser itself.<br>
<br>
A picture says more than a thousand words, see attachment.<br>
<br>
See it in action for yourself:<br>
<br>
<a href="https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html" rel="noreferrer" target="_blank">https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html</a><br>
<br>
How does it work ?<br>
1. Enter the source of your program.<br>
2. Load the necessary units on the 'load units' tab.<br>
(The "Load default units" button is a good start)<br>
3. Hit "Compile" !<br>
4. Observe the output of the compiler in the tab "Compiler output"<br>
5. If all went well, the 'Run' button is now active...<br>
6. Press the 'Run' button !<br>
<br>
The program will be loaded & run in an IFrame at the bottom of the page.<br>
<br>
Obviously, this is only a demo, and there is ample room for improvement<br>
(specifying additional options, viewing generated source code, improving gui) <br>
and you don't have all units available: only the ones in 'rtl' have been<br>
made available. (it's just a matter of uploading them)<br>
<br>
But it works. No server interaction other than loading the extra needed<br>
unit sources is necessary: all is done in the browser.<br>
<br>
All code is committed in SVN, demo/webcompiler.<br>
<br>
Last but not least:<br>
Once more I want to thank Mattias Gaertner for his incredible work on the<br>
compiler, without whose solid foundations I would not have been able to do this <br>
!<br>
<br>
Enjoy, and stay tuned for more wonderful features & cutting edge technology <br>
from the people that bring you Free Pascal & Lazarus !<br>
<br>
Michael.</blockquote><div><br></div><div>Awesome news! Thanks for this incredible work. ☺</div><div><br></div><div>Can we use it for online tests to report bugs via Mantis? (something like JSFiddle)</div><div><br></div><div>Anyway, thanks a lot for sharing it!</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div></div></div>