Git Product home page Git Product logo

lf-python-support's People

Contributors

edwardalee avatar housengw avatar lhstrh avatar patilatharva avatar petervdonovan avatar soroosh129 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lf-python-support's Issues

Reorganization

  • Bring back supporting C code to reactor-c
  • Rename the repo to lf-python-support or lf-py-libor something like that

Too Easy to Share state variable as Pointer in Python

If the target language is Python, it is really easy to share the state variable as a pointer but not as value.
Here is an example of me incorrectly passing the pointer of a list to reactors.
Also, it will be better if the example here from the tutorial video can clarify the state value must not be pointer when share to downstream reactors.

Add a __str__ representation for Tag

It would be nice if we could simply write

print(f"Current tag is: {lf.tag()}")

and get a properly formatted output.
This would require implementing the __str__ method for the Tag type.

CI Errors on Latest Version of Reactor-C-Py for Physical Actions PR

Lingua-Franca PR in question: lf-lang/lingua-franca#1348

It appears the latest version of Reactor-C-Py is breaking lingua-franca CI due to mismatch between const and non-const qualified functions/variables:

Would be good if someone familiar with this repo and reactor-c has a look at the CI errors and makes the changes to ensure matching signatures between reactor-c-py and reactor-c

Python target does not provide user-facing log functions

The C target has a few useful user-facing APIs such as DEBUG_PRINT() and error_print() that will allow the user to add thread-safe print statements in the body of reactions. The output (or lack thereof) of these APIs can then be controlled using the logging target specification.

This could be a very useful feature in the Python target as well.

To-Do

  • Implement log functions
  • Update the wiki once this feature is implemented.

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.