[GSOC] Introduction and microproject selection

2 messages, 2 authors, 2025-02-05 · open the first message on its own page

[GSOC] Introduction and microproject selection

From: Zejun Zhao <hidden>
Date: 2025-02-04 17:51:02

Hi everyone,

I'm Zejun Zhao, currently a first-year MSc student in Computer
Science. I love the idea of open source and have contributed to
several open source projects mostly about OS kernels.

I've been using Git for years and I'm familiar with Git's porcelain
commands. I'd like to dive into its internals now and contribute to
the project directly, which I believe will help me better understand
how Git works and what a well-organized open source community is like.

I have read this year's microprojects list and decided to go to the
"Fix Sign Comparison Warnings in Git's Codebase" idea. I'd like to
choose `apply.c` as my target of the idea. I followed the instructions
and found out that the `-Wsign-compare` warnings there are of
basically three types:

  1. comparing a `length` of `size_t` type with a result of pointer
      arithmetic of `int` type

  2. comparing a `length` of `size_t` type with a `length` of `int` type

  3. comparing a loop count `i` of `int` type with an unsigned loop bound

I think there can be three different strategies, one for each of the
above three types:

  1. cast the result of pointer arithmetic to `size_t` type

  2. try to change the type of the `length` to `size_t` (may fall back
      to Strategy 1 if the variable is not guaranteed to be unsigned)

  3. use a loop count `i` of `size_t` type

Please let me know if I had anything wrong or there is any other
point that I should look into to do better. Any feedback or guidance
is appreciated.

Best wishes,
Zejun Zhao

Re: [GSOC] Introduction and microproject selection

From: Patrick Steinhardt <hidden>
Date: 2025-02-05 07:47:18

On Wed, Feb 05, 2025 at 01:50:49AM +0800, Zejun Zhao wrote:
Hi everyone,

I'm Zejun Zhao, currently a first-year MSc student in Computer
Science. I love the idea of open source and have contributed to
several open source projects mostly about OS kernels.
Welcome to the community, and thanks for showing interest!

[snip]
Please let me know if I had anything wrong or there is any other
point that I should look into to do better. Any feedback or guidance
is appreciated.
I see you've already sent a patch, so I'll be reviewing that patch
instead of answering here.

Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help