Recent

Author Topic: How is compared for Lazarus from speed to C programming ?  (Read 6368 times)

Warfley

  • Hero Member
  • *****
  • Posts: 2071
Re: How is compared for Lazarus from speed to C programming ?
« Reply #30 on: August 12, 2025, 06:28:54 pm »
Yeah I personally also prefer to use advanced records or oldschool objects whenever possible. What I don't like about objects is that you have to manually call the Destructor and constructor (if a VMT needs to be initialized).

But yeah, if performance is a main concern, classes should be avoided. And with management operators records are more comfortable most of the time.
There are cases where classes are neat, but they come with some issues.

Dzandaa

  • Hero Member
  • *****
  • Posts: 557
  • From C# to Lazarus
Re: How is compared for Lazarus from speed to C programming ?
« Reply #31 on: August 12, 2025, 09:10:39 pm »
Hi,

for me comparing speed of different language is not very useful if you want speed, use assembly.

I started programming in the 1970s, first in Motorola 6800 assembly, then in Motorola 68000. Then in Zilog Z80, 8080, 8086 80386.
And I slowly moved on to programming based on languages like Basic, Cobol, Forth, Fortran, Action, Pascal (which was a learning language and I didn't like it very much), Modula, python, etc., etc.

then I moved on to C, Borland C++ and finally C#, not to mention PHP for web applications. But what I missed most was the portability of being able to easily transfer my codes to Linux or Mac. I discovered Pascal Lazarus much too late, because I was retired at that time. And I was very surprised, not so much by the execution speed, but by the ease of creating windowed programs.

Currently, the programming trend is Python, but it's important to remember that Python was originally an interface language. Most of its libraries are written in C or C++.
As for portability, if you need to use Python in a student classroom, you need to remember to install all the libraries and their dependencies on each computer!

The Lazarus Pascal IDE has the advantage of being open source, not depending on GAFFAM's and their spyware, AI, etc., and providing executable that can run on any platform.
And I think it should have been a better-known teaching tool.

But that's just the opinion of an old geek.

B->


Regards,
Dzandaa

jamie

  • Hero Member
  • *****
  • Posts: 7857
Re: How is compared for Lazarus from speed to C programming ?
« Reply #32 on: August 12, 2025, 11:47:47 pm »
I think you left out the 8051, 6502, 6510.

 How about the 4004 intel processor which I have a frew. :o

 and no, I am not giving any of them up, not even the pulled ones!

Jamie

The only true wisdom is knowing you know nothing

Dzandaa

  • Hero Member
  • *****
  • Posts: 557
  • From C# to Lazarus
Re: How is compared for Lazarus from speed to C programming ?
« Reply #33 on: August 13, 2025, 11:30:21 am »
Hi,

@Jamie:

You're right, I forgot about that good old 6502, I think I still have one in my basement :)

B->
Regards,
Dzandaa

Thaddy

  • Hero Member
  • *****
  • Posts: 19504
  • Glad to be alive.
Re: How is compared for Lazarus from speed to C programming ?
« Reply #34 on: August 13, 2025, 06:20:25 pm »
6510 (Commodore64) still running, floppydisk station is beyond repair as are the flops.

On topic:
Well written Pascal code is faster than average written C code.
Compiler optimizations aside.
( which has nothing to do with a language.  >:( >:( , such optimizations CAN be applied to Pascal compilers )

And nobody in this discussion seems to use WPO anyway....which is a shame.
Language, syntax, itself does not imply speed.
« Last Edit: August 13, 2025, 06:29:16 pm by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

threedslider

  • New Member
  • *
  • Posts: 34
Re: How is compared for Lazarus from speed to C programming ?
« Reply #35 on: August 13, 2025, 09:17:31 pm »
On topic:
Well written Pascal code is faster than average written C code.
Compiler optimizations aside.
( which has nothing to do with a language.  >:( >:( , such optimizations CAN be applied to Pascal compilers )

And nobody in this discussion seems to use WPO anyway....which is a shame.
Language, syntax, itself does not imply speed.

I agreed on what you say, only the good algorithm can make faster in program and it is independent from programming language.  :)
It works in any programming language as well.

 

TinyPortal © 2005-2018