Recent

Author Topic: Commerce website written in pascal  (Read 2750 times)

Joanna

  • Hero Member
  • *****
  • Posts: 1418

cdbc

  • Hero Member
  • *****
  • Posts: 2606
    • http://www.cdbc.dk
Re: Commerce website written in pascal
« Reply #1 on: October 29, 2025, 07:04:12 pm »
Hi
Nice catch Joanna  8)
Interesting read...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

MarkMLl

  • Hero Member
  • *****
  • Posts: 8532
Re: Commerce website written in pascal
« Reply #2 on: October 29, 2025, 09:27:49 pm »
Yes, it's interesting: but it still doesn't cancel the fact that as far as the rest of the World is concerned Pascal is as dead as Queen Anne.

We can't try to promote the language any more: people just aren't interested. There are however two things that we usefully /can/ do:

* Quietly remind people that most of the things considered "good practice" today originated in Pascal or its immediate successors: strong type checking, modularisation and so on.

* Suggest that Lazarus and the LCL are one of the best RAD environments, even if people don't like the underlying language.

I know that some members of this community won't like that. However as one of the greybeards I suggest that FPC+Lazarus is very similar to what in the 1980s we'd have called a "4GL": except that it has a good theoretical underpinning rather than being "yet another variant of BASIC".

Our problem is that if somebody looks at FPC+Lazarus trying to solve a specific problem, whilst we might have the library routines etc. to help him, the machine-generated RTL+FCL documentation leaves much to be desired.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Joanna

  • Hero Member
  • *****
  • Posts: 1418
Re: Commerce website written in pascal
« Reply #3 on: October 30, 2025, 01:53:05 am »
Hi Benny I can’t really claim credit, jns gave me the link in chat. ;)
Here is another link from him https://communitymedia.video/w/h1jdbHm8xTj5VEDuCWAbBW

dbannon

  • Hero Member
  • *****
  • Posts: 3672
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Commerce website written in pascal
« Reply #4 on: October 30, 2025, 02:48:27 am »
* Quietly remind people that most of the things considered "good practice" today originated in Pascal or its immediate successors: strong type checking, modularisation and so on.
Disagree. That only emphasizes that "its history". Better to remind them that Pascal does (and always did if you must) provide the strong typing that is again becoming fashionable. And similarly modularization.
* Suggest that Lazarus and the LCL are one of the best RAD environments, even if people don't like the underlying language.
Defintly agree.
... the machine-generated RTL+FCL documentation leaves much to be desired.
Yes, if I hear "read the source" one more time ....

On a brighter note, at a social event last night, met a young fellow who writes Java for a major telco. I said "brace yourself, I write in Pascal" and his response was "yes, strong typing, thats what we need...".

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

ginoo

  • Full Member
  • ***
  • Posts: 149
Re: Commerce website written in pascal
« Reply #5 on: October 30, 2025, 07:10:36 am »
I wrote myself a web development kit and I'm very happy with it. It works great. This is to say that if you want, you can build your own stuff.

Joanna

  • Hero Member
  • *****
  • Posts: 1418
Re: Commerce website written in pascal
« Reply #6 on: October 30, 2025, 12:32:42 pm »
Don’t worry mark, many programmers will soon have plenty of spare time to come learn pascal after their non pascal programming jobs are replaced by AI.  :D
« Last Edit: October 30, 2025, 12:37:49 pm by Joanna »

MarkMLl

  • Hero Member
  • *****
  • Posts: 8532
Re: Commerce website written in pascal
« Reply #7 on: October 30, 2025, 05:27:57 pm »
Don’t worry mark, many programmers will soon have plenty of spare time to come learn pascal after their non pascal programming jobs are replaced by AI.  :D

We live in interesting times, but since I'm old enough to remember (and had tenuous professional involvement with) the buzz around "intelligent knowledge-based systems" in the mid-1980s I'm sceptical.

To paraphrase an observation made by Sabine Hossenfelder (which might or might not be her own): the problem with current AIs is that they do not test whether output they generate exists in or at least is compatible with their training data. An obvious example of that is the several reported instances where an AI has fabricated a plausible but fictional legal reference.

The current crop of AI systems doesn't reason, it extrapolates and hopes that its output is at least superficially plausible. And even IBM's Watson, which used somewhat different techniques to reason about Jeopardy questions etc., turned out to be virtually impossible to turn into a profitable product.

And to rub it in, if current "AI" is so great, why hasn't it already developed an AGI ** methodology or at least told its keepers what additional material it needs so that it can work on the problem?

MarkMLl

** https://en.wikipedia.org/wiki/Artificial_general_intelligence
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

440bx

  • Hero Member
  • *****
  • Posts: 6074
Re: Commerce website written in pascal
« Reply #8 on: October 30, 2025, 05:43:54 pm »
I'm definitely no proponent of A.I.  I think there are many problems with it, not just technical but also ethical.

As far as the technical part, I'm starting to think of A.I as something like a text editor.  If you know how to use it then "it's a good text editor" and if you don't, it's likely to be a "not so great text editor". (of course, this is typical of any application, not just text editors... it's so much easier to blame the program than oneself.)

I see what forum user @schuler gets from A.I and I have to admit that I find it impressive and, it definitely saves a lot of time but, it's quite obvious to me that I don't have his A.I skills, it is very difficult for me to get anything that I consider really saved time from some A.I thing and, that's quite likely in part because I lack skills in that area.

The A.I thing is a real PITA in more ways than one.

FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12642
  • FPC developer.
Re: Commerce website written in pascal
« Reply #9 on: October 31, 2025, 10:14:50 am »
Our problem is that if somebody looks at FPC+Lazarus trying to solve a specific problem, whilst we might have the library routines etc. to help him, the machine-generated RTL+FCL documentation leaves much to be desired.

I don't understand. Only the prototypes are machine generated, the content is handwritten. (and in the case of FPC quite ok)

dbannon

  • Hero Member
  • *****
  • Posts: 3672
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Commerce website written in pascal
« Reply #10 on: October 31, 2025, 12:16:17 pm »
Our problem is that if somebody looks at FPC+Lazarus trying to solve a specific problem, whilst we might have the library routines etc. to help him, the machine-generated RTL+FCL documentation leaves much to be desired.

I don't understand. Only the prototypes are machine generated, the content is handwritten. (and in the case of FPC quite ok)

Marcov, not to argue, just inform. Some rough notes about how I find the RTL and FCL documentation -

Firstly, I struggle to identify which is RTL (89 items in doc, 66 items in src), FCL (44 items in doc), Packages (154 items in src). The RTL number seems similar but in fact almost no correlation between the doc and src entry titles.

Its possible to search the documentation from a "Search the documentation" link, eg "fcl-web" appears to go off into an endless loop.

Most of the 89 entries under RTL take you to a page containing one or several sentences about the unit. Rarely any mention or links to unit contents or how to use it.

The FCL doc entries in the docs seem to be, on average, more informative but, many are missing. As  I am unsure where, in the source, the FCL exists (is it just fpc-* or all in "packages" ?) its hard to tell just what percentage is documented. But again, fc-web does not seem to be there.

So staying on my theme of fcl-web (for no other reason than its a great package) I find that googling for it takes me to the "daily" documentation, something  I have seen before but can never find when I want it. It says -

FPC is distributed with a lot of units (well over 1500), organized in packages. For most of these no real documentation is available That includes fcl-web,

On the other hand, Lazarus documentation is actually quite good, an enormous credit to Don Siders who works tirelessly away with no thanks. Thanks Don, a really great job !

EDIT : typo in quote
Davo
« Last Edit: October 31, 2025, 12:22:51 pm by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dsiders

  • Hero Member
  • *****
  • Posts: 1522
Re: Commerce website written in pascal
« Reply #11 on: October 31, 2025, 05:20:14 pm »
Our problem is that if somebody looks at FPC+Lazarus trying to solve a specific problem, whilst we might have the library routines etc. to help him, the machine-generated RTL+FCL documentation leaves much to be desired.

I don't understand. Only the prototypes are machine generated, the content is handwritten. (and in the case of FPC quite ok)

Marcov, not to argue, just inform. Some rough notes about how I find the RTL and FCL documentation -

...

On the other hand, Lazarus documentation is actually quite good, an enormous credit to Don Siders who works tirelessly away with no thanks. Thanks Don, a really great job !

@dbannon

Thank you for your kind words. They are much appreciated.

To be fair the scope for LCL+LazUtils is tiny compared to RTL+FCL. Keeping up is easier (but not easy). MvC does a great job considering that docs is not (to my knowledge) his primary task.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8532
Re: Commerce website written in pascal
« Reply #12 on: October 31, 2025, 06:05:03 pm »
On the other hand, Lazarus documentation is actually quite good, an enormous credit to Don Siders who works tirelessly away with no thanks. Thanks Don, a really great job !

I agree, and also massive thanks to MvC.

The problem is the documentation of the RTL etc., and I would highlight among other things

a) Excessive reliance on numeric constants, which as a result aren't indexed. As trivial examples, in the Sockets unit fpSend() and fpRecv() both have a flags parameter declared as a cint, with no cross-reference to available constants.

b) Lack of overall indexing of helpers etc., which as a result are effectively undocumented as far as anybody not intimately familiar with the libraries' structure and available facilities is concerned.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

BSaidus

  • Hero Member
  • *****
  • Posts: 648
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: Commerce website written in pascal
« Reply #13 on: November 20, 2025, 07:39:50 am »
Nice job @joanna.
I wonder what is the exact GNU/Linux distrib you use.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

Joanna

  • Hero Member
  • *****
  • Posts: 1418
Re: Commerce website written in pascal
« Reply #14 on: December 12, 2025, 01:27:08 am »
Me? I haven’t done much lately. I tried fedora before. Don’t remember the details.

 

TinyPortal © 2005-2018