Recent

Author Topic: Ann: Deinline: a de-inline-var-alyzer  (Read 3336 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #45 on: April 17, 2026, 12:37:38 pm »
What I need to do now for being acceptable for codetools is also parsing used units AND include files recursively.
It will not be part of Codetools but it could be part of the Delphi converter. The license must then be GPL like rest of the IDE (LCL and some other libs are LGPL).
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 19115
  • Glad to be alive.
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #46 on: April 17, 2026, 01:01:38 pm »
What I need to do now for being acceptable for codetools is also parsing used units AND include files recursively.
It will not be part of Codetools but it could be part of the Delphi converter. The license must then be GPL like rest of the IDE (LCL and some other libs are LGPL).
No problem. I don't make money out of software anymore, unless old employers or customers get stuck with old code or with COBOL maintenance, so GPL it is... Which one? I prefer LGPL, though.
Oh, have already fixed:
- command line parsing, in which all A.I. models did a (amazingly very!!) bad job. Commented the code to reflect that.
- handling specialized generics properly, again: A.I. fails there.

I am now fixing Delphi syntax for multiline strings and multiline comments. Also an A.I. fail, it worked already and they tend to throw that working code out. All missed the InComment flag or interpreted it wrong.
« Last Edit: April 17, 2026, 01:15:58 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12836
  • FPC developer.
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #47 on: April 17, 2026, 01:35:44 pm »
Embarcadero's implementation may have been strongly requested by a good portion of the developers.

So you think a popularity contest is the best way to develop a language? "Interesting".

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #48 on: April 17, 2026, 02:18:12 pm »
Embarcadero's implementation may have been strongly requested by a good portion of the developers.
So you think a popularity contest is the best way to develop a language? "Interesting".
No, I didn't mean that. I meant that since vars inline are in use and there is not too much debate about it (in Delphi community) I think it's something that was accepted, and may be asked too.

Decision about Delphi is only in the head of Embarcadero.

P.S.: I'm in favor of implementing inline vars, and I use them daily. But I understand the criticism and the position of those who oppose it.
« Last Edit: April 17, 2026, 02:28:54 pm by LeP »
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12836
  • FPC developer.
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #49 on: April 17, 2026, 05:24:09 pm »
No, I didn't mean that. I meant that since vars inline are in use and there is not too much debate about it (in Delphi community) I think it's something that was accepted, and may be asked too.

I don't think there was much choice given the forced subscription.

Quote
Decision about Delphi is only in the head of Embarcadero.

P.S.: I'm in favor of implementing inline vars, and I use them daily. But I understand the criticism and the position of those who oppose it.

I think it was mostly marketing. Probably on some top 10 vote list that mostly people migrating from other languages vote on as a knee jerk reaction. Marketing happy to have something relatively cheap to add to the list for the next release, as they must at least pretend to innovate for their subscription fee.  Much more work is done in keeping volatile targets up to date and working (like mobile), but that is not very marketable .

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #50 on: April 17, 2026, 05:37:32 pm »
so GPL it is... Which one? I prefer LGPL, though.
Well, the whole Lazarus IDE, including Delphi converter is GPL.
If you make a separate IDE plugin then you can decide the license freely but then it is not integrated with the converter.
Maybe a dual license GPL / LGPL is possible for one unit. I am not sure.
« Last Edit: April 17, 2026, 06:23:13 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 19115
  • Glad to be alive.
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #51 on: April 17, 2026, 06:50:56 pm »
Then it is GPL. (as a release, when it parses the multiline strings automatically instead of a todo, although todo's will likely always exist.)
objects are fine constructs. You can even initialize them with constructors.

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: Ann: Deinline: a de-inline-var-alyzer
« Reply #52 on: April 17, 2026, 09:58:08 pm »
No, I didn't mean that. I meant that since vars inline are in use and there is not too much debate about it (in Delphi community) I think it's something that was accepted, and may be asked too.
I don't think there was much choice given the forced subscription.
There are always other alternatives: don't use the new features, complain about it, don't renew teh subscription, move to another environment, etc ...

Quote
Decision about Delphi is only in the head of Embarcadero.
P.S.: I'm in favor of implementing inline vars, and I use them daily. But I understand the criticism and the position of those who oppose it.
I think it was mostly marketing. Probably on some top 10 vote list that mostly people migrating from other languages vote on as a knee jerk reaction. Marketing happy to have something relatively cheap to add to the list for the next release, as they must at least pretend to innovate for their subscription fee.  Much more work is done in keeping volatile targets up to date and working (like mobile), but that is not very marketable .
I agree with you, but then again, Delphi is a paid product, and they have to somehow deliver.
In any case, there are features throughout Delphi's long history that the various "owners" have always maintained, such as maximum code compatibility, compilation performance, technology updates... and certainly also a lot of "sugar" to sweeten customers' appetites.
And then, it's worth remembering that Delphi is a product used for commercial purposes, and therefore some decisions, even if not shared, must also accommodate this aspect.
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

 

TinyPortal © 2005-2018