Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2025-08

Pascal intro web page

5 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Christo Crause
to Steve Litt

Steve,

An interesting read, thanks for sharing the link. I particularly appreciate the highlighted boxes pointing out gotcha and other typical syntax quirks.

Christo

On Mon, 11 Aug 2025, 01:10 Steve Litt via fpc-pascal, <

Show quoted text 11 lines
wrote: Hi all, I made (but didn't complete) an introductory Pascal website in 2023, went on to other things, and forgot to uploade it until today. It's at the following URL: https://troubleshooters.com/codecorn/pascal/index.htm
Michael Van Canneyt
to Christo Crause
Christo Crause wrote
Steve, An interesting read, thanks for sharing the link. I particularly appreciate the highlighted boxes pointing out gotcha and other typical syntax quirks.

Indeed !

Actually, I am currently working with the following page:

https://www.freepascal.org/~michael/pas2js-demos/wasmcompiler/

This is a page where you can enter pascal code, have it compiled and run in the browser.

How it works is:
- Pas2js has been compiled to webassembly
- it is executed in a webworker (a kind of thread in the browser)
- output is javascript which is then executed in the main page in a frame.

The idea is to let people learn Pascal in a 'Try it out now' way on the web, live from a series of pages similar to the page by Steve Litt:

https://troubleshooters.com/codecorn/pascal/index.htm

I still need to smooth out some issues (currently you can compile only once, this is easy to fix, and the list of available units is not yet complete) and add a syntax-highlighting editor (I already have this in a private copy of the site).

My plan was/is that once the rough things are smoothed out, to ask for volunteers to create a site similar to the one above using the web-compiler...

The advantage of pas2js is that it needs no server resources. Only some files are downloaded, nothing is executed on the server.

Later on, the same can be done with FPC itself, which would allow to demonstrate more low-level things such as pointer access.

Michael.

Rafael Picanço

Hi Steve,

Thank you for sharing your thoughts and experience in:

https://troubleshooters.com/codecorn/pascal/index.htm

Reading your notes on the market, tinged with nostalgia, reinforces an understanding I hold about Pascal: it proved to be strong against time. Yet I view Free Pascal as outstanding modern, delivering support for generic programming, interfaces, object-oriented programming, interoperability, cross-platform development, and more, all coupled with excellent tooling, readability, and a deep respect for individual and collective freedoms under GPL licenses.

Hi Michael, as usual, I would like to thank you for all your hard work.

https://www.freepascal.org/~michael/pas2js-demos/wasmcompiler/

This is really nice! I think that it would be great for educational purposes.

I just want to mention a documentation website that I really appreciate:

https://docs.pupil-labs.com/core/software/pupil-capture/ https://github.com/pupil-labs/pupil-docs

I am planning a one page style docs with fuzzy search and would be great if I manage to do it 100% with pascal.

Best,
R

Thomas Kurz
to Michael Van Canneyt: Indeed ! Actually, I am currently working with the following page:…

This is great! Congratulations!

Earlier message 50 lines
----- Original Message ----- From: Michael Van Canneyt via fpc-pascal To: Christo Crause via fpc-pascal Sent: Monday, August 11, 2025, 10:12:37 Subject: [fpc-pascal] Pascal intro web page On Mon, 11 Aug 2025, Christo Crause via fpc-pascal wrote: > Steve, > An interesting read, thanks for sharing the link. I particularly appreciate > the highlighted boxes pointing out gotcha and other typical syntax quirks. Indeed ! Actually, I am currently working with the following page: https://www.freepascal.org/~michael/pas2js-demos/wasmcompiler/ This is a page where you can enter pascal code, have it compiled and run in the browser. How it works is: - Pas2js has been compiled to webassembly - it is executed in a webworker (a kind of thread in the browser) - output is javascript which is then executed in the main page in a frame. The idea is to let people learn Pascal in a 'Try it out now' way on the web, live from a series of pages similar to the page by Steve Litt: https://troubleshooters.com/codecorn/pascal/index.htm I still need to smooth out some issues (currently you can compile only once, this is easy to fix, and the list of available units is not yet complete) and add a syntax-highlighting editor (I already have this in a private copy of the site). My plan was/is that once the rough things are smoothed out, to ask for volunteers to create a site similar to the one above using the web-compiler... The advantage of pas2js is that it needs no server resources. Only some files are downloaded, nothing is executed on the server. Later on, the same can be done with FPC itself, which would allow to demonstrate more low-level things such as pointer access. Michael.