Giter Club home page Giter Club logo

Comments (1)

alex-sherman avatar alex-sherman commented on May 29, 2024

Thanks for asking about this! Here are my thoughts:

I don't think I'll be able to provide anything better than what already exists in the Python concurrent.futures module as far things like as_completed go. Definitely it would be possible for deco to support this kind of things, but I don't think deco should serve this purpose. Mainly it's just targeted at programmers who have little experience with parallel programming, I wanted to make it more accessible which in turn means deco needs to be simple. For simple programs I think deco can fill a certain need, but definitely for more complicated parallel programs other libraries will continue to be the best choice.

Your second question is a great thought, although I'm not sure there is a way in pure Python to annotate code at a granularity smaller than a function. Using decorators on functions also helps us avoid a lot more complicated data flow analysis which I think would otherwise be necessary if we were just annotating chunks of Python code.

I'm going to close this for now, but thanks for your input! I really appreciate it.

from deco.

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.