Recent

Author Topic: I had an idea to improve the quality of FPC  (Read 1758 times)

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 306
  • I use FPC [main] 💪🐯💪
I had an idea to improve the quality of FPC
« on: August 15, 2025, 07:37:07 am »
Various online platforms now offer the ability to compile FPC code online, for example https://godbolt.org

What if we try to negotiate with these platforms so that if an InternalError occurs in the compiler output, they save such code examples separately and send them to us?

Not everyone likes to figure out errors, minimize code, create issues, and describe the steps to reproduce the error.

If the other party agrees, the proposed method will provide an additional source of possible compiler tests.

Just an idea
I may seem rude - please don't take it personally

440bx

  • Hero Member
  • *****
  • Posts: 5909
Re: I had an idea to improve the quality of FPC
« Reply #1 on: August 15, 2025, 08:02:16 am »
Just an idea
Sounds like a practical and reasonable idea to me.

Maybe it's something that should be discussed with the FPC developers to get their opinions as to how it could be implemented.  Of course, first thing is to determine if there is interest in their part.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

dbannon

  • Hero Member
  • *****
  • Posts: 3614
    • tomboy-ng, a rewrite of the classic Tomboy
Re: I had an idea to improve the quality of FPC
« Reply #2 on: August 15, 2025, 09:26:33 am »
Might there be an issue if the service provider saves someone's code and provides it to a third party (ie FPC devs) ?

I think the suggestion that this might happen would scare people off, even if there was a permission process happening ....

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

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 306
  • I use FPC [main] 💪🐯💪
Re: I had an idea to improve the quality of FPC
« Reply #3 on: August 15, 2025, 09:30:35 am »
In the event of an InternalError, it is possible to suggest sending the code to the compiler developers for correction

On the other hand, it is always possible to attempt to negotiate; if you do not try, the chances are definitely 0%, but if you try, the chances are higher than 0%
I may seem rude - please don't take it personally

creaothceann

  • Full Member
  • ***
  • Posts: 223
Re: I had an idea to improve the quality of FPC
« Reply #4 on: August 15, 2025, 10:20:26 am »
Godbolt already has a "Allow my source code to be temporarily stored for diagnostic purposes in the event of an error" checkbox in the settings, that could perhaps be expanded.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: I had an idea to improve the quality of FPC
« Reply #5 on: August 17, 2025, 10:31:28 pm »
Not everyone likes to figure out errors, minimize code, create issues, and describe the steps to reproduce the error.

Minimizing the code is because we don't want to deal with this either. We don't want to wade through other people's code to hopefully find whatever causes the issue. We want an as minimal example as possible so that we can get to the issue at hand with as little work as possible. This is not solved by having this automated. So, no, thank you.

Also we want the issue linked to the user who reported it, because we want to have feedback whether the issue was really fixed for the user as well (cause it can and indeed does happen that some case the user thought of was not thought of by one of us devs). So, again, no.

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: I had an idea to improve the quality of FPC
« Reply #6 on: August 18, 2025, 01:13:11 am »
Not everyone likes to figure out errors, minimize code, create issues, and describe the steps to reproduce the error.

I'm not sure if anyone really likes to. But the more one does it, the easier it gets, and becomes less time consuming.
But yes, if things get fixed and the issue filing helps others, there is satisfaction in that.

Automated collection and analysis in a way that use a useful addition to issues filed by users is far from trivial.

And letting AI assisted bots, or any kind of bots, creating issues in the trackers, or spamming mailing lists, well, that could get out of hand fast...
« Last Edit: August 18, 2025, 01:14:55 am by Bogen85 »

 

TinyPortal © 2005-2018