From: Simon Marchi <simon.marchi@polymtl.ca>
To: Tom Tromey <tom@tromey.com>
Cc: gdb@sourceware.org
Subject: Re: GSoC
Date: Thu, 09 Feb 2017 15:48:00 -0000 [thread overview]
Message-ID: <09b20ae4ac80cf2958ec873b83379862@polymtl.ca> (raw)
In-Reply-To: <87k2907gk7.fsf@tromey.com>
On 2017-02-08 12:12, Tom Tromey wrote:
> Simon> It would be interesting to gather some feedback from those who
> lead
> Simon> this initiative in the past. Would you suggest trying to go for
> it
> Simon> again? Why, why not?
>
> I did it in the past but stopped because I wasn't spending enough time
> mentoring. I think it is worth doing but you have to be more organized
> and committed than I was.
Ok, thanks for your feedback.
So since nobody spoke against it, I'll submit an application today,
we'll see where it leads.
> Simon> On my side, there's the output colouring support which I'd like
> Simon> to see become a reality some day :).
>
> I actually did this, but I didn't submit it. I got sort of mired in
> design choices.
>
> The first approach I took was to just hack some color stuff directly
> the
> CLI ui-out, and add a way to "set color <mumble>" (I don't actually
> remember exactly how I spelled this, and the branch is long gone).
> This
> required some hacks to get the column computation to be correct so that
> wrapping wouldn't suffer. I think I just made it so the color string,
> whatever it was, was assumed not to take any space -- a hack since this
> wasn't actually enforced.
>
> This was a bit too inflexible for me so I abandoned it.
>
>
> The second approach I took (I still have this branch) was to let the
> Python layer insert an object that would replace the CLI ui-out object.
> Then colorizing and other reformatting -- the Python ui-out object is
> "MI-like" and so had access to more data -- could be done by writing
> some Python code.
>
> I liked this approach ok but it needed some hacks (maybe since
> obsoleted
> due to Pedro's recent work, not sure). Also I think it suffered
> because
> there was no way to get the wrap hints into the Python layer.
Well first of all, what is your idea of how the coloring should be?
As a first step, I am envisioning, at least as a first step, to have
symbols, value, file paths, etc, each printed in their own color, so
that it's easy stop quickly spot the relevant information in a printout.
I have made a mockup here:
http://nova.polymtl.ca/~simark/ssg/filemC7ZUZ.png
However I have found that it's easy to go overboard with it, at which
point it looses of it usefulness, despite being a nice Christmas tree:
http://nova.polymtl.ca/~simark/ssg/fileEv2diU.png
> And, finally, for something like "set color", there's no good way to
> implement completion because there isn't a list of the table- and
> column-names. This could be done by introducing enums or something
> like
> that, but at that point the patch is going to be beyond what I would
> want to commit to.
I don't understand this part. Which tables/columns?
Thanks!
Simon
next prev parent reply other threads:[~2017-02-09 15:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 21:00 GSoC Simon Marchi
2017-02-07 21:40 ` GSoC Phil Muldoon
2017-02-07 22:11 ` GSoC Simon Marchi
2017-02-07 21:41 ` GSoC Jose E. Marchesi
2017-02-07 22:13 ` GSoC Simon Marchi
2017-02-08 17:12 ` GSoC Tom Tromey
2017-02-09 15:48 ` Simon Marchi [this message]
2017-02-09 18:59 ` GSoC Tom Tromey
2017-02-09 21:35 ` GSoC Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09b20ae4ac80cf2958ec873b83379862@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox