As the author of that question you're concerned about I feel obligated to give you my personal view about why I think my question is "ethically" correct :/ , I shouldn't be explaining anything though.
First of all, it seems you consider my question like a simple "write my software for me" question but I think you haven't considered behind this question there is a lot of research/job behind... before trying to use pygments on a QScintilla widget I've tested like dozen different solutions to come up with a proper Sublime Text standalone widget for couple of months already. That little MCVE I've posted on that thread is the result of a lot of research evaluating advantages/disadvantages about what I think it may become a good intermediate solution for pyqt/pyside2 apps.
My last attempt of having a nice QScintilla with a very versatile highlighter was trying to use one custom wrapper of syntect... you can see it uploaded here, but unfortunately I also got stuck with the same hard problem of figuring out a good optimization algorithm.
I'm concerned that this user is trying to pay people SO rep in
exchange for doing their job for them.
You say this, but you sure haven't thought about all the effort I've put by creating a thread that a lot of people could benefit after all:
I've invested time to make my thread as compact as possible and yeah... this may look like a 5 minutes job but it's not. Actually is been few hours to come up with that piece of code which I'm giving away for "free" to the community
You're underestimating the fact I've put in 500 bounties!!! I've given the maximum amount, because I consider the level of effort in order to solve this thread is not low. In this case, you need to consider how hard is earning bounties... take a look for instance at all the answers I've given over the years on SO and you'll see the mean of reps/answer is quite low on my case, so yeah... well earned rep here :)
Yeah... nowadays earning rep on SO isn't as easy as it used to be 10 years ago...
In fact, if we follow your logic here... should I consider each time I've helped others with their questions I've been making their job for free/rep_points? To me SO is a community where EVERYBODY may benefit from questions & answers.
If I wanted people making my job in the first place I wouldn't be releasing any source code at all and I would be paying/hiring people.
Not only that, this thread is implying like I'm doing something wrong here... What's the purpose of the bounties in the first place? Over the time I've contributed to SO I can proudly say I've got "46 offered bounties for 6,400 reputation" and eventually I'd like to be the #1 person who more bounties offered... :)
When I use the bounty system I feel like a kid in a playground and I'll continue giving bounties to my questions because I enjoy that... it's one of those little tiny things that make SO a good "toy" to play with.
Plus, I've contributed long enough to SO and helped others countless times... it feels like your question is trying to make me feel guilty just by following the existing SO rules in the first place.
EDIT: @timotree I've realized you're the guy who added a comment in that thread asking:
What's the question exactly? Are you asking Stack Overflow volunteers
to optimize your entire program for you?
and I've replied to you before this thread was opened:
@timotree The goal of this thread is to figure out how to use
efficiently pygments on a QScintilla widget. It's not about optimizing
the snippet I've provided but instead is about coming up with a way
(be it with code or just words) that allows to use pygments+QScintilla
on realtime (like any other text editor). Said otherwise, at this point
it's still unclear to me on which parts I should use
caching/memoization
I thought at that time my clarification was good enough, but after reading this thread it seems it wasn't :)