[fpc-pascal] Adding Javascript to Pascal
Michalis Kamburelis
michalis.kambi at gmail.com
Mon Feb 24 12:44:33 CET 2025
Karoly Balogh wrote:
> We're in the offtopic again, but I really hate this kind of elitism. As a
> kid I started with BASIC - on various Commodore home computers then also
> on early IBM PCs - and I hope to think I grew up to be a semi-decent
> programmer. At least I can fix your Pascal compiler for ya...
It's good to hear some positive voices in this thread :)
1. Let's focus on constructive answers to questions like "how do I
integrate Pascal with language X", for any X, *before* we jump into
discussion with statements "I hate X". People want such integration
also because they like Pascal, not only X. We work in an ecosystem
filled with lots of technologies, with devs knowing other languages
than Pascal, with www browsers using JS, whether we like it or not.
The choice of integrating with JS (or really any other popular
language X) may be just reasonable for a given project.
2. I don't have a constructive answer myself, though I know people
working on QuickJS integration with Castle Game Engine, see #quickjs
channel on Castle Game Engine Discord (
https://castle-engine.io/talk.php ) and
https://github.com/castle-engine/quickjs-demo . You can touch with
people on that channel, in particular Coldzer0, if you're looking for
people familiar with Pascal + QuickJS.
3. Discussions whether language X is good or bad should be an
independent discussion, in an independent thread(s), IMHO. Because
such talk can quickly go off-topic -- which this thread clearly shows.
The poster didn't get any sort of an answer he counted on (feedback
about QuickJS + Pascal), instead the thread went into JS and do we
like it, and Python, and Lua, and Basic...
We can all talk about advantages and disadvantages of various
languages, and to be clear I think it can be a constructive
discussion, but it should be a separate thread(s). Because we know
such discussions can get both lengthy and heated :)
4. Personally, from the "integration with other languages", I'm
looking in the future for Python + Castle Game Engine integration,
which I described for
https://castle-engine.io/roadmap#_python_integration . I documented
there the reasons "why" (you can scroll to the "why" section there).
Regards,
Michalis
More information about the fpc-pascal
mailing list