public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Gallager <egall@gwmail.gwu.edu>
To: nick <xerofoify@gmail.com>
Cc: Richard Biener <rguenther@suse.de>,
	GCC Development <gcc@gcc.gnu.org>,
	Nathan Sidwell <nathan@acm.org>
Subject: Re: GSOC Proposal
Date: Mon, 01 Apr 2019 05:25:00 -0000	[thread overview]
Message-ID: <CAMfHzOvN=5ipdwWGe2DJ7CZMNE6RoZuyzy-HT6Jr5bSLPqH5Mg@mail.gmail.com> (raw)
In-Reply-To: <70316c90-b241-3f88-56d8-9e59f3eac0ee@gmail.com>

On 3/29/19, nick <xerofoify@gmail.com> wrote:
>
>
> On 2019-03-29 10:28 a.m., nick wrote:
>>
>>
>> On 2019-03-29 5:08 a.m., Richard Biener wrote:
>>> On Thu, 28 Mar 2019, nick wrote:
>>>
>>>>
>>>>
>>>> On 2019-03-28 4:59 a.m., Richard Biener wrote:
>>>>> On Wed, Mar 27, 2019 at 6:31 PM nick <xerofoify@gmail.com> wrote:
>>>>>>
>>>>>> Greetings All,
>>>>>>
>>>>>> I've already done most of the work required for signing up for GSoC
>>>>>> as of last year i.e. reading getting started, being signed up legally
>>>>>> for contributions.
>>>>>>
>>>>>> My only real concern would be the proposal which I started writing
>>>>>> here:
>>>>>> https://docs.google.com/document/d/1BKVeh62IpigsQYf_fJqkdu_js0EeGdKtXInkWZ-DtU0/edit?usp=sharing
>>>>>>
>>>>>> The biography and success section I'm fine with my bigger concern
>>>>>> would be the project and roadmap
>>>>>> section. The roadmap is there and I will go into more detail about it
>>>>>> in the projects section as
>>>>>> need be. Just wanted to known if the roadmap is detailed enough or can
>>>>>> I just write out a few
>>>>>> paragraphs discussing it in the Projects Section.
>>>>>
>>>>> I'm not sure I understand either the problem analysis nor the project
>>>>> goal parts.  What
>>>>> shared state with respect to garbage collection are you talking about?
>>>>>
>>>>> Richard.
>>>>>
>>>> I just fixed it. Seems we were discussing RTL itself. I edited it to
>>>> reflect those changes. Let me know if it's unclear or you would actually
>>>>
>>>> like me to discuss some changes that may occur in the RTL layer itself.
>>>>
>>>>
>>>> I'm glad to be more exact if that's better but seems your confusion was
>>>>
>>>> just what layer we were touching.
>>>
>>> Let me just throw in some knowledge here.  The issue with RTL
>>> is that we currently can only have a single function in this
>>> intermediate language state since a function in RTL has some
>>> state in global variables that would differ if it were another
>>> function.  We can have multiple functions in GIMPLE intermediate
>>> language state since all such state is in a function-specific
>>> data structure (struct function).  The hard thing about moving
>>> all this "global" state of RTL into the same place is that
>>> there's global state in the various backends (and there's
>>> already a struct funtion 'machine' part for such state, so there's
>>> hope the issue isn't as big as it could be) and that some of
>>> the global state is big and only changes very rarely.
>>> That said, I'm not sure if anybody knows the full details here.
>>>
>>> So as far as I understand you'd like to tackle this as project
>>> with the goal to be able to have multiple functions in RTL
>>> state.
>>>
>>> That's laudable but IMHO also quite ambitious for a GSoC
>>> project.  It's also an area I am not very familiar with so
>>> I opt out of being a mentor for this project.
>>>
>> While I'm aware of three areas where the shared state is an issue
>> currently:
>> 1, Compiler's Proper
>> 2. The expand_functions
>> 3. RTL
>> 4.Garbage Collector
>>
>> Or maybe a project to be more
>> explicit about regions of the code that assume that the garbage-
>> collector can't run within them?[3] (since the GC is state that would
>> be shared by the threads).
>>
>> This is what we were discussing previously and I wrote my proposal for
>> that. You however seem confused about what parts of the garbage collector
>> would be touched. That's fine with me, however seems you want be to
>> be more exact about which part  is touched.
>>
>> My questions would be as it's changed back to the garbage collector
>> project:
>> https://docs.google.com/document/d/1BKVeh62IpigsQYf_fJqkdu_js0EeGdKtXInkWZ-DtU0/edit
>>
>> 1. Your confusion about which part of the garbage collector is touched
>> doesn't
>> really make sense s it's for the whole garbage collector as related to
>> shared
>> state?
>> 2. Injection was my code here in phase 3 for the callers of the new
>> functions or
>> macros, perhaps this is not needed as the work with the garbage collector
>> is enough?
>> 3. Am I not understanding this project as I thought I was in the proposal
>> I wrote?
>>
>> Seems your more confusing my wording probably so I'm going to suggest one
>> of
>> two things here:
>> a) I'm going to allow you to make comments with what's confusing you and
>> it needs that's the issue here more than anything else so I sent you
>> a link and please comment where you are having issues with this not
>> be clear for you:
>> Or maybe a project to be more
>> explicit about regions of the code that assume that the garbage-
>> collector can't run within them?[3] (since the GC is state that would
>> be shared by the threads).
>> as that's the actual project
>>
>> b) Just comment here about the wording that's an issue for you or
>> where you want more exact wording
>>
>> Sorry and hopefully this is helps you understand where I'm going,
>> Nick
>>
>>> Richard.
>>>
>>>> Nick
>>>>>> Any other comments are welcome as well as I write it there,
>>>>>> Nick
>>>>
>
> Richard,
>
> Seems your right touching the complete garbage collector is too much. I'm
> just looking at the users of the garbage collector and it seems one of the
> major ones is pre compiled headers.
>

The thing about pre-compiled headers is that I seem to remember some
GCC devs saying they wanted to rip out pre-compiled headers completely
once the C++ modules branch is merged, so I'm not sure if it's worth
putting that much work into something that might be removed soon,
anyways... I'm pretty sure Nathan Sidwell is the main person working
on the C++ modules branch, so I'm cc-ing him.

> I've narrowed it down to that. My own real final concern is two things:
> 1. Does it make sense to you in my writing?
> 2. Should callers inject the information for state sharing as required
> as that seems better or is it better for the garbage collector to  store
> the state sharing flags,marcos and functions internally for this.
>
> Thanks and seems I was over thinking the last proposal it's too much:),
> Nick
>>>
>

  reply	other threads:[~2019-04-01  5:25 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-27 17:31 nick
2019-03-28  8:59 ` Richard Biener
2019-03-28 13:38   ` nick
2019-03-29  9:08     ` Richard Biener
2019-03-29 14:28       ` nick
2019-03-29 17:00         ` nick
2019-04-01  5:25           ` Eric Gallager [this message]
2019-04-01 11:47             ` Nathan Sidwell
2019-04-01  9:56           ` Richard Biener
2019-04-01 13:39             ` nick
2019-04-01 13:48               ` Richard Biener
2019-04-01 14:14                 ` nick
2019-04-03 11:30                   ` Richard Biener
2019-04-03 15:21                     ` nick
2019-04-05 10:25                       ` Richard Biener
2019-04-05 16:11                         ` nick
2019-04-07  9:31                           ` Richard Biener
2019-04-07 15:40                             ` nick
2019-04-08  7:30                               ` Richard Biener
2019-04-08 13:19                                 ` nick
2019-04-08 13:42                                   ` Richard Biener
2019-04-08 14:17                                     ` nick
  -- strict thread matches above, loose matches on Subject: below --
2022-04-18 17:32 GSoC Proposal Abhigyan Kashyap
2018-03-21 18:39 GSOC proposal Ismael El Houas Ghouddana
2018-03-26 13:31 ` Martin Jambor
2013-03-17  6:02 GSoC Proposal Sai kiran
2013-03-21 18:01 ` Benjamin De Kosnik

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='CAMfHzOvN=5ipdwWGe2DJ7CZMNE6RoZuyzy-HT6Jr5bSLPqH5Mg@mail.gmail.com' \
    --to=egall@gwmail.gwu.edu \
    --cc=gcc@gcc.gnu.org \
    --cc=nathan@acm.org \
    --cc=rguenther@suse.de \
    --cc=xerofoify@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).