Git Product home page Git Product logo

Comments (7)

andylokandy avatar andylokandy commented on May 26, 2024 2

From my personal experience in open source projects, for this kind of small project, I'll directly open a pull request to bootstrap the discussion. Although there are risks of going into a completely wrong direction and wasting time, I found it rather efficient to drive me and the reviewers to a better solution even if my first try is bad.

from minitrace-rust.

andylokandy avatar andylokandy commented on May 26, 2024 1

Thank you for bringing this up, the proposal looks petty neat to me. The current codebase is not intended to be this messy and mysterious... It's simply because I've put all ideas into it in one night and to prove they work, so the code structure was not seriously taken into consideration.

To leave some useful information for who is interested in refactoring the macro (I may do it months later if no one does it by that time), here is the original place where some of the codes are copied from:

from minitrace-rust.

andylokandy avatar andylokandy commented on May 26, 2024 1

The reason why we've to elaborate async fn into fn -> impl Future is that, for an async fn foo(), we have to instrument the Span::enter_with_local_parent in the first call to foo(), but not in the poll() or .await, because it's the only chance that local parent is prenent in the context.

from minitrace-rust.

taqtiqa-mark avatar taqtiqa-mark commented on May 26, 2024 1

I think to begin with it'll be baby steps:

  1. Restructure the code layout and introduce tests.
  2. Error reporting / UI
  3. Once some tests are in place would be to introduce a model, etc.

from minitrace-rust.

breezewish avatar breezewish commented on May 26, 2024 1

RFC is a generally great idea for such purpose. However with my current practice experience it may affect agility or hard to be followed until we find a good balance / standard about what should be tracked by a RFC.

I'm also thinking about a lighter way for summarize new changes which should be easier to be followed: always describe the change with more details in the issue + finalize ideas in the doc comment + verbose function comments. We should also have verbose comments for existing code bases.

What do you think?

from minitrace-rust.

taqtiqa-mark avatar taqtiqa-mark commented on May 26, 2024

Agreed. The main risk here is rejecting the whole pipeline idea. I don't propose the RFC be more detailed than what it is now, e.g. the Model is undefined/unspecified - it'll emerge, as you say small PR by small PR.

The goal is to keep the proc-macro working the whole time. I'll try do this by changing the code once it is covered by a test case, so related to #81.

So I believe we are agreed, this will not land with a big-bang single PR.
Rather smaller PRs will indicate how they are heading in the direction set out in this RFC.
Correct?

from minitrace-rust.

taqtiqa-mark avatar taqtiqa-mark commented on May 26, 2024

Voided by PR #127 rejection.

from minitrace-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.