Git Product home page Git Product logo

Comments (4)

hokeun avatar hokeun commented on June 18, 2024

Hi @edwardalee @lhstrh, just wanted to let you know that this is on my radar, but I didn't have time to really work on this because of my recent travel and EMSOFT review due. I should have more time to work on it this week. I'll keep you posted and please let me know if there's any specific thing that you want me to prioritize. :)

from lf-lang.github.io.

edwardalee avatar edwardalee commented on June 18, 2024

Thanks @lhstrh for contributing most of the TypeScript examples needed. Still missing:

WARNING: No source file found: ../code/ts/src/Count.lf

In the file Actions.md, I updated the description of the schedule() method as follows. Please let me know if I didn't get this right:

--- start

The schedule() method of an action takes two arguments, a TimeValue and an (optional) payload. If a payload is given and a type is given for the action, then the type of the payload must match the type of the action. See the Target Language Reference for details.

--- end

In Multiports and Banks.md there is a FIXME:

FIXME: How to get the width of the bank in target code?

It looks like you just use c.length, where c is the name of the bank instance?

from lf-lang.github.io.

lhstrh avatar lhstrh commented on June 18, 2024

The API docs for schedule are here: https://lf-lang.github.io/reactor-ts/classes/action.SchedulableAction.html
The payload is not optional, but you can use null if it is a pure event. A third optional intendedTag argument was added recently to accommodate federated stuff, but I'm not sure that should be described here.

Indeed, banks are just arrays in reactor-ts. To get the width, you inspect the length property of the array.

from lf-lang.github.io.

lhstrh avatar lhstrh commented on June 18, 2024

I pushed the missing Count.lf to master earlier today. I just forgot to check it in...

from lf-lang.github.io.

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.