Skip to content

Get rid of gperf postprocessing - #443

Closed
ivan-volnov wants to merge 2 commits into
ccache:masterfrom
ivan-volnov:code_cleanup
Closed

ivan-volnov wants to merge 2 commits into
ccache:masterfrom
ivan-volnov:code_cleanup

Conversation

@ivan-volnov

Copy link
Copy Markdown
Contributor

A trying to make things easier. Gperf postprocessing isn't necessary.

@afbjorklund

afbjorklund commented Jul 21, 2019 •

Copy link
Copy Markdown
Contributor

Gperf postprocessing isn't necessary.

Did you try with gperf < 3.1 (as it says) ?

EDIT: tested this PR with 3.0.4, worked ok...

afbjorklund
afbjorklund previously approved these changes Jul 21, 2019

@afbjorklund afbjorklund left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, most likely this would fix the issues on MSYS2 as well (the perl hacks fail there)

@ivan-volnov

Copy link
Copy Markdown
Contributor Author

Did you try with gperf < 3.1 (as it says) ?

Yes, I tried it with 3.0.3 and 3.0.4

@jrosdahl

Copy link
Copy Markdown
Member

Thanks for the suggestion! I appreciate making things easier.

In this case, however, removing the mechanism for adding item numbers makes it harder for the developer, not easier. It was deliberately added recently: 3ff1d5a

Instead I think that we should just get rid of the gperf altogether. It's a cool concept, but it's apparent that it's too much of a hassle for little gain.

I'm currently working on C++-ifying the source code (not rewriting, only compiling the current code as C++ and making it possible to use C++ for new code and to slowly convert old code). I plan to address the lookup tables as part of that. Stay tuned.

@ivan-volnov: By the way, maybe you would like to join the ccache gitter room to discuss ccache development informally?

@ivan-volnov

Copy link
Copy Markdown
Contributor Author

In this case, however, removing the mechanism for adding item numbers makes it harder for the developer, not easier. It was deliberately added recently:

Oh, I see now. But I suppose it really adds more harm than benefit. Consider this fix to be applied before removing gperf completely.

Instead I think that we should just get rid of the gperf altogether. It's a cool concept, but it's apparent that it's too much of a hassle for little gain.

I couldn't agree more.

I'm currently working on C++-ifying the source code...

That would be great!

By the way, maybe you would like to..

Yes, sure.

@afbjorklund

Copy link
Copy Markdown
Contributor

In this case, however, removing the mechanism for adding item numbers makes it harder for the developer, not easier

Right, I do remember those merges from hell. Working on several features, you have to renumber...

@afbjorklund
afbjorklund dismissed their stale review July 21, 2019 16:26

Workflow with numbering

@afbjorklund

Copy link
Copy Markdown
Contributor

I'm currently working on C++-ifying the source code (not rewriting, only compiling the current code as C++ and making it possible to use C++ for new code and to slowly convert old code).

Sounds like the worst of both worlds, but maybe there is some hidden benefit to compiling C as C++

@jrosdahl

Copy link
Copy Markdown
Member

@ivan-volnov wrote:

But I suppose it really adds more harm than benefit. Consider this fix to be applied before removing gperf completely.

Not sure I understand. What's the harm more specifically?

@afbjorklund wrote:

Right, I do remember those merges from hell. Working on several features, you have to renumber...

Exactly, 3ff1d5a was made for you. 🙂

@afbjorklund wrote:

Sounds like the worst of both worlds, but maybe there is some hidden benefit to compiling C as C++

Here's why: C++-ifying in the sense converting all C code to C++ idioms in one go is just not feasible. To be able to convert little by little, I want to be able to call new C++ code from old C code, and that won't work if the old code is compiled as C (unless exposing extern "C" interfaces for all new C++ code, but that way lies madness).

@jrosdahl

Copy link
Copy Markdown
Member

This is obsolete as of 728acfa so closing.

@jrosdahl jrosdahl closed this Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants